/*!
 * gb5s - gb5s-extras.css : recherche (dates souples, au mois, flexible, voyageurs + animaux),
 * badges, fiche logement (coup de cœur, couchages, prix au mois, visite en photos), blog.
 */

/* ===================== Barre de recherche ===================== */
.gb5s-hero { flex-direction: column; align-items: center; gap: 10px; }
.gb5s-modes { display: inline-flex; gap: 4px; padding: 4px; background: var(--gb-mist, #f5f7fa); border-radius: 999px; }
.gb5s-modes button {
    border: 0; background: transparent; border-radius: 999px; padding: 7px 16px;
    font-size: 14px; font-weight: 600; color: var(--gb-muted, #6b7684); transition: background-color .15s ease, color .15s ease;
}
.gb5s-modes button[aria-selected="true"] { background: #fff; color: var(--gb-ink, #1d2733); box-shadow: 0 1px 4px rgba(29, 39, 51, .15); }
.gb5s-modes button:focus-visible { outline: 2px solid var(--gb-gold, #e2a70b); outline-offset: 2px; }

.gb5s-sbar .gb5s-only-dates, .gb5s-sbar .gb5s-only-months, .gb5s-sbar .gb5s-only-flex { display: none; }
.gb5s-sbar[data-mode="dates"] .gb5s-only-dates,
.gb5s-sbar[data-mode="months"] .gb5s-only-months,
.gb5s-sbar[data-mode="flex"] .gb5s-only-flex { display: block; }
.gb5s-sbar .gb5s-sf-when { flex-grow: 2; }
.gb5s-until { display: block; color: var(--gb-muted, #6b7684); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gb5s-pick {
    display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left;
    font-size: 15px; color: var(--gb-ink, #1d2733); min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.gb5s-pick:focus-visible { outline: 2px solid var(--gb-gold, #e2a70b); outline-offset: 3px; border-radius: 4px; }

.gb5s-pop {
    position: absolute; top: calc(100% + 10px); right: 60px; z-index: 80; width: 360px; max-width: calc(100vw - 32px);
    background: #fff; border-radius: 22px; padding: 14px 24px 18px; box-shadow: 0 12px 40px rgba(29, 39, 51, .18);
}
.gb5s-pop[hidden] { display: none; }
.gb5s-pop-wide { width: 640px; left: 50%; right: auto; transform: translateX(-50%); }
.gb5s-pop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gb-line, #e6e9ee); }
.gb5s-pop-row:last-of-type { border-bottom: 0; }
.gb5s-pop-row strong { display: block; font-size: 15.5px; color: var(--gb-ink, #1d2733); }
.gb5s-pop-row small { color: var(--gb-muted, #6b7684); font-size: 13px; }
.gb5s-pop-row .gb5s-stepper button { width: 32px; height: 32px; }
.gb5s-pop-t { font-weight: 700; font-size: 15.5px; margin: 8px 0 10px; text-align: center; color: var(--gb-ink, #1d2733); }
.gb5s-pop-ok {
    display: block; margin: 12px 0 0 auto; border: 0; border-radius: 10px; padding: 9px 18px;
    background: var(--gb-navy, #2f4256); color: #fff; font-weight: 700; font-size: 14px;
}

.gb5s-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gb5s-chips button, .gb5s-months button {
    border: 1px solid var(--gb-line, #e6e9ee); background: #fff; color: var(--gb-ink, #1d2733);
    border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; transition: border-color .15s ease, background-color .15s ease;
}
.gb5s-chips button:hover, .gb5s-months button:hover { border-color: var(--gb-ink, #1d2733); }
.gb5s-chips button[aria-pressed="true"] { border-color: var(--gb-ink, #1d2733); background: var(--gb-mist, #f5f7fa); box-shadow: inset 0 0 0 1px var(--gb-ink, #1d2733); }
.gb5s-flexdays[hidden] { display: none; }
.gb5s-flexdays button { padding: 5px 12px; font-size: 13px; }

.gb5s-months { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gb5s-months button {
    flex: 0 0 104px; border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; scroll-snap-align: start;
}
.gb5s-months button svg { color: var(--gb-muted, #6b7684); }
.gb5s-months button span { font-size: 13.5px; }
.gb5s-months button small { color: var(--gb-muted, #6b7684); font-weight: 500; font-size: 12px; }
.gb5s-months button[aria-pressed="true"] { border-color: var(--gb-ink, #1d2733); box-shadow: inset 0 0 0 1px var(--gb-ink, #1d2733); background: var(--gb-mist, #f5f7fa); }
.gb5s-months button[aria-pressed="true"] svg { color: var(--gb-gold, #e2a70b); }

@media (max-width: 767px) {
    .gb5s-hero { gap: 8px; }
    .gb5s-sbar[data-mode="flex"] .gb5s-sf-when { flex-basis: 100%; }
    .gb5s-pop, .gb5s-pop-wide { left: 0; right: 0; width: auto; max-width: none; transform: none; top: calc(100% + 6px); border-radius: 18px; padding: 10px 16px 14px; }
    .gb5s-modes button { padding: 6px 12px; font-size: 13px; }
    .gb5s-flexdays { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
    .gb5s-flexdays::-webkit-scrollbar { display: none; }
    .gb5s-flexdays button { flex: 0 0 auto; }
}

/* ===================== Badges des cartes ===================== */
#properties_show .gb5s-badges { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
#properties_show .gb5s-badges .gb5s-badge { position: static; }
.gb5s-label {
    display: inline-block; background: var(--lc, #2f4256); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.2;
    padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); letter-spacing: .01em;
}
.property-title .gb5s-label { vertical-align: middle; margin: 0 10px 0 0; }

/* ===================== Fiche logement ===================== */
.gb5s-fav {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
    border: 1px solid var(--gb-line, #e6e9ee); border-radius: 18px; padding: 16px 22px; margin: 18px 0 6px;
}
.gb5s-fav-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--gb-gold, #e2a70b); text-align: center; max-width: 130px; }
.gb5s-fav-badge strong { color: var(--gb-ink, #1d2733); font-size: 14.5px; line-height: 1.2; }
.gb5s-fav p { margin: 0; color: var(--gb-muted, #6b7684); font-size: 14px; }
.gb5s-fav-num { text-align: center; padding-left: 18px; border-left: 1px solid var(--gb-line, #e6e9ee); }
.gb5s-fav-num b { display: block; font-size: 21px; color: var(--gb-ink, #1d2733); line-height: 1.1; }
.gb5s-fav-num small { color: var(--gb-muted, #6b7684); font-size: 12px; }
@media (max-width: 575px) {
    .gb5s-fav { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
    .gb5s-fav-badge, .gb5s-fav p { grid-column: 1 / -1; max-width: none; }
    .gb5s-fav-num { border-left: 0; padding-left: 0; }
}

.gb5s-sleep h3 { font-size: 22px; font-weight: 700; margin: 6px 0 14px; color: var(--gb-ink, #1d2733); }
.gb5s-sleep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gb5s-sleep-card { border: 1px solid var(--gb-line, #e6e9ee); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 3px; color: var(--gb-ink, #1d2733); }
.gb5s-sleep-card svg { color: var(--gb-navy, #2f4256); margin-bottom: 8px; }
.gb5s-sleep-card b { font-size: 15.5px; }
.gb5s-sleep-card span { font-size: 14px; color: var(--gb-muted, #6b7684); }

.gb5s-monthly { font-size: 13.5px; color: var(--gb-muted, #6b7684); margin: 6px 0 2px; clear: both; }
.gb5s-monthly strong { color: var(--gb-ink, #1d2733); }
.gb5s-monthly span { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3f4ea; color: #1f6b43; font-weight: 700; font-size: 12px; }

html.gb5s-noscroll, html.gb5s-noscroll body { overflow: hidden; }
.gb5s-tour { position: fixed; inset: 0; z-index: 2000; background: #fff; overflow-y: auto; }
.gb5s-tour[hidden] { display: none; }
.gb5s-tour-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--gb-line, #e6e9ee); }
.gb5s-tour-bar h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--gb-ink, #1d2733); }
.gb5s-tour-bar small { color: var(--gb-muted, #6b7684); font-weight: 500; font-size: 14px; margin-left: 6px; }
.gb5s-tour-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gb-mist, #f5f7fa); color: var(--gb-ink, #1d2733); display: inline-flex; align-items: center; justify-content: center; }
.gb5s-tour-x:hover { background: var(--gb-line, #e6e9ee); }
.gb5s-tour-grid { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gb5s-tour-item { position: relative; border: 0; padding: 0; background: var(--gb-mist, #f5f7fa); border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.gb5s-tour-item.is-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gb5s-tour-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gb5s-tour-item:hover img { transform: scale(1.02); }
.gb5s-tour-item span { position: absolute; left: 10px; bottom: 10px; background: rgba(29, 39, 51, .72); color: #fff; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 575px) { .gb5s-tour-grid { grid-template-columns: 1fr; } .gb5s-tour-item, .gb5s-tour-item.is-wide { aspect-ratio: 4 / 3; } }

/* ===================== Blog ===================== */
.gb5s-blog { padding-bottom: 60px; }
.gb5s-blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gb5s-blog-head { padding: 34px 0 20px; }
.gb5s-blog-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 6px; color: var(--gb-ink, #1d2733); }
.gb5s-blog-head p { color: var(--gb-muted, #6b7684); font-size: 16px; margin: 0; }
.gb5s-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 22px; }
.gb5s-post-card { display: flex; flex-direction: column; }
.gb5s-post-img { display: block; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; background: var(--gb-mist, #f5f7fa); }
.gb5s-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gb5s-post-card:hover .gb5s-post-img img { transform: scale(1.03); }
.gb5s-post-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--gb-navy, #2f4256), #4d6a88); }
.gb5s-post-body { padding-top: 12px; }
.gb5s-post-meta { color: var(--gb-muted, #6b7684); font-size: 13px; margin: 0 0 4px; }
.gb5s-post-card h2, .gb5s-post-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.gb5s-post-card h3 { font-size: 16.5px; }
.gb5s-post-card h2 a, .gb5s-post-card h3 a { color: var(--gb-ink, #1d2733) !important; text-decoration: none !important; }
.gb5s-post-card h2 a:hover, .gb5s-post-card h3 a:hover { text-decoration: underline !important; }
.gb5s-post-ex { color: #4a5563; font-size: 14.5px; margin: 0 0 8px; }
.gb5s-post-more { font-weight: 700; font-size: 14px; color: var(--gb-navy, #2f4256) !important; }
@media (min-width: 992px) {
    .gb5s-post-card.is-first { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
    .gb5s-post-card.is-first h2 { font-size: 28px; }
    .gb5s-post-card.is-first .gb5s-post-ex { font-size: 16px; }
}
.gb5s-blog-pages { margin-top: 30px; display: flex; justify-content: center; }
.gb5s-blog-empty { color: var(--gb-muted, #6b7684); padding: 40px 0; }

.gb5s-article { max-width: 760px; margin: 0 auto; padding: 26px 24px 10px; color: var(--gb-ink, #1d2733); }
.gb5s-back { display: inline-block; font-weight: 600; font-size: 14px; color: var(--gb-muted, #6b7684) !important; margin-bottom: 18px; }
.gb5s-draft { background: #fff3c4; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.gb5s-article h1 { font-size: 36px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.gb5s-article-img { width: 100%; border-radius: 18px; margin: 18px 0 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.gb5s-article-lead { font-size: 19px; line-height: 1.6; color: #3c4653; margin: 18px 0; }
.gb5s-article-body { font-size: 17px; line-height: 1.75; }
.gb5s-article-body h2 { font-size: 26px; font-weight: 700; margin: 34px 0 10px; }
.gb5s-article-body h3 { font-size: 21px; font-weight: 700; margin: 26px 0 8px; }
.gb5s-article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0; }
.gb5s-article-body a { color: var(--gb-navy, #2f4256); text-decoration: underline; }
.gb5s-article-body blockquote { border-left: 4px solid var(--gb-gold, #e2a70b); margin: 20px 0; padding: 4px 0 4px 18px; color: #3c4653; font-style: italic; }
.gb5s-article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.gb5s-article-body td, .gb5s-article-body th { border: 1px solid var(--gb-line, #e6e9ee); padding: 8px 10px; }
.gb5s-more { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--gb-line, #e6e9ee); }
.gb5s-more h2 { font-size: 24px; font-weight: 800; margin: 0 0 18px; }
@media (max-width: 767px) {
    .gb5s-blog-wrap { padding: 0 16px; }
    .gb5s-blog-head h1 { font-size: 28px; }
    .gb5s-article { padding: 18px 16px 6px; }
    .gb5s-article h1 { font-size: 27px; }
    .gb5s-article-body { font-size: 16.5px; }
}

/* ===================== Référencement : titre de page, articles en pied de page ===================== */
.gb5s-h1 { font-size: 22px; font-weight: 800; color: var(--gb-ink, #1d2733); margin: 2px 0 0; text-align: center; letter-spacing: -.01em; line-height: 1.25; }
.property-title h1 { font-size: 26px !important; font-weight: 700; color: var(--gb-ink, #1d2733); letter-spacing: -.01em; margin: 8px 0 4px; line-height: 1.25; }
.gb5s-f-blog { padding: 34px 0 10px; border-top: 1px solid var(--gb-line, #e6e9ee); background: #fff; }
.gb5s-f-blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gb5s-f-blog-head h2 { font-size: 22px; font-weight: 800; margin: 0 0 2px; color: var(--gb-ink, #1d2733); }
.gb5s-f-blog-head p { margin: 0; color: var(--gb-muted, #6b7684); font-size: 14.5px; }
.gb5s-f-blog-head a { font-weight: 700; font-size: 14.5px; color: var(--gb-navy, #2f4256) !important; white-space: nowrap; }
.gb5s-f-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gb5s-f-post { display: flex; gap: 12px; align-items: center; color: var(--gb-ink, #1d2733) !important; text-decoration: none !important; }
.gb5s-f-post-img { flex: 0 0 96px; height: 72px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--gb-navy, #2f4256), #4d6a88); }
.gb5s-f-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb5s-f-post-txt small { display: block; color: var(--gb-muted, #6b7684); font-size: 12.5px; margin-bottom: 2px; }
.gb5s-f-post-txt strong { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gb5s-f-post:hover strong { text-decoration: underline; }
@media (max-width: 991px) { .gb5s-f-blog-grid { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 767px) {
    .gb5s-h1 { font-size: 18px; padding: 0 8px; }
    .property-title h1 { font-size: 21px !important; }
    .gb5s-f-blog-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ===================== Paiement ===================== */
.gb5s-pay-note { font-size: 13px; color: var(--gb-muted, #6b7684); margin: -8px 0 0; }
.gb5s-pay-note .fa { color: #1f8a5b; margin-right: 4px; }

/* gb5s : étoiles de notation (sans chiffre) */
.gb5s-rate{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;vertical-align:middle}
.gb5s-stars{position:relative;display:inline-block;line-height:1;font-size:15px;letter-spacing:1px;color:#d9d9d9;font-family:Arial,sans-serif}
.gb5s-stars-fg{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#f4b400}
.gb5s-stars-n{font-size:13px;color:#6b6b6b}
.gb5s-stars-new{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:10px;background:#f1f1f1;color:#444}
.gb5s-ustars{margin:4px 0 6px}
.gb5s-urate{display:inline-flex;align-items:center;gap:6px}
.gb5s-urate-l{font-size:13px;font-weight:600;color:#444;min-width:62px}
.gb5s-fav .gb5s-fav-num .gb5s-stars{font-size:18px}
