/*!
 * gb5s - gb5s-home.css : page d'accueil modernisée (recherche + types de logement)
 * Couleurs de la marque : bleu nuit du logo + or.
 */
:root {
    --gb-navy: #2f4256;
    --gb-navy-2: #3d5670;
    --gb-gold: #e2a70b;
    --gb-ink: #1d2733;
    --gb-muted: #6b7684;
    --gb-line: #e6e9ee;
    --gb-mist: #f5f7fa;
}

/* ---------- Teintes des types de logement ---------- */
.tone-coral   { --c: #d9542b; --t: #fdece5; }
.tone-teal    { --c: #0d9488; --t: #e0f5f2; }
.tone-indigo  { --c: #4f56cf; --t: #eceefd; }
.tone-slate   { --c: #3a6ea5; --t: #e5eef8; }
.tone-wood    { --c: #b8641c; --t: #fbeee0; }
.tone-violet  { --c: #7a4bb7; --t: #f1eafa; }
.tone-forest  { --c: #2e8a55; --t: #e3f4ea; }
.tone-amber   { --c: #a66a12; --t: #fbf0dc; }
.tone-sky     { --c: #1b86c9; --t: #e1f1fb; }
.tone-ocean   { --c: #156f9e; --t: #ddeff8; }
.tone-sand    { --c: #a7792f; --t: #f8f0e1; }
.tone-navy    { --c: #2f4256; --t: #e7ecf2; }
.tone-olive   { --c: #6b7f1f; --t: #eff3dc; }
.tone-mint    { --c: #0f8f7a; --t: #ddf5ef; }
.tone-berry   { --c: #b83a72; --t: #fbe6ef; }
.tone-rose    { --c: #c8455b; --t: #fce7ea; }
.tone-gold    { --c: #b98608; --t: #fbf2d6; }
.tone-neutral { --c: #4b5563; --t: #eef0f3; }

/* ---------- Barre des types de logement ---------- */
.sv_search_page .sv_search_icon {
    border-bottom: 1px solid var(--gb-line);
    padding-bottom: 10px;
}
.property_slider .item { padding: 6px 2px 2px; }
.property_slider .item label.form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 0 !important;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--gb-ink);
    min-height: 92px;
    padding: 0 4px 10px;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
.gb5s-type-ico {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--t);
    color: var(--c);
    flex: 0 0 auto;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.gb5s-type-ico svg { display: block; }
.gb5s-type-ico .f { fill: currentColor; stroke: none; opacity: .18; }
.gb5s-type-ico img { width: 26px !important; height: 26px !important; object-fit: contain; margin: 0 !important; }
.property_slider .item label:hover .gb5s-type-ico { transform: translateY(-2px); }
.property_slider .item label:hover { color: var(--gb-navy); }

/* Type sélectionné : pastille pleine + trait sous le nom */
.property_slider .active_icon label,
.active_icon label { color: var(--gb-ink) !important; }
.active_icon .gb5s-type-ico { background: var(--c); color: #fff; }
.active_icon .gb5s-type-ico .f { opacity: .28; }
.active_icon label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 3px;
    margin-left: -14px;
    border-radius: 3px;
    background: var(--gb-ink);
}
.property_slider label:focus-within .gb5s-type-ico { outline: 2px solid var(--gb-navy); outline-offset: 2px; }

/* Flèches du carrousel */
.property_slider button.owl-prev,
.property_slider button.owl-next {
    top: 18px !important;
    width: 34px !important;
    height: 34px !important;
    background: #fff !important;
    border: 1px solid var(--gb-line) !important;
    box-shadow: 0 2px 8px rgba(29, 39, 51, .12);
    color: var(--gb-navy) !important;
}
.property_slider button.owl-prev:hover,
.property_slider button.owl-next:hover { border-color: var(--gb-navy) !important; }

/* Bouton « Plus de filtres » */
#more_filters {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gb-line) !important;
    border-radius: 999px !important;
    background: #fff;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    color: var(--gb-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
#more_filters:hover { border-color: var(--gb-navy) !important; box-shadow: 0 2px 10px rgba(29, 39, 51, .08); }
#more_filters img { display: none; }
#more_filters .gb5s-filter-ico { color: var(--gb-navy); }

/* ---------- Cartes des annonces ---------- */
#properties_show .card-1 {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#properties_show .card-1 figure,
#properties_show .card-1 .carousel-multi-item {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--gb-mist);
    position: relative;
}
#properties_show .room-image-container200 {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
    transition: transform .35s ease;
}
#properties_show .card-1:hover .room-image-container200 { transform: scale(1.035); }
#properties_show .card-1 .mb-2 { margin-bottom: 0 !important; }
#properties_show .card-1 .card-body { padding: 12px 4px 0 !important; }
#properties_show .card-1 .card-body p.text-14 {
    font-size: 15.5px !important;
    color: var(--gb-ink);
    line-height: 1.35;
    margin-bottom: 4px !important;
}
#properties_show .card-1 .list-inline { margin-bottom: 6px; }
#properties_show .card-1 .list-inline-item { padding: 0 !important; margin-right: 10px; }
#properties_show .card-1 .text-muted { color: var(--gb-muted) !important; }
#properties_show .card-1 .text-color-hover:hover { text-decoration: none; }
#properties_show .card-1 .fa-star,
#properties_show .card-1 .icon-star { color: var(--gb-gold) !important; }

/* Cœur (favoris) */
#properties_show .wishicon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}
#properties_show .wishicon i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    cursor: pointer;
    font-size: 17px;
    color: var(--gb-ink);
}
#properties_show .wishicon i.icon-heart { color: #e0405b; }

/* Points du diaporama photo */
#properties_show .carousel-indicators li { width: 6px; height: 6px; border-radius: 50%; border: 0; margin: 0 3px; }

/* ---------- Pagination + bouton Carte ---------- */
#pager .page-item .page-link {
    border: 0;
    border-radius: 10px !important;
    min-width: 40px;
    text-align: center;
    color: var(--gb-ink);
    font-weight: 600;
    margin-right: 6px;
}
#pager .page-item.active .page-link { background: var(--gb-navy) !important; color: #fff !important; }
#map-btn, #res-btn {
    background: var(--gb-navy) !important;
    box-shadow: 0 8px 22px rgba(29, 39, 51, .28);
}
#map-btn i, #res-btn i { color: var(--gb-gold); margin-left: 6px; }
#map-btn:hover, #res-btn:hover { background: var(--gb-navy-2) !important; }

/* ---------- Bandeau cookies ---------- */
.cookiealert {
    background: var(--gb-navy) !important;
    color: #fff;
    font-size: 14px;
}
.cookiealert .acceptcookies {
    background: var(--gb-gold) !important;
    border-color: var(--gb-gold) !important;
    color: var(--gb-ink) !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 18px;
}

@media (max-width: 767px) {
    .gb5s-type-ico { width: 46px; height: 46px; border-radius: 14px; }
    .property_slider .item label.form-check-label { font-size: 12px; min-height: 84px; }
    #properties_show .room-image-container200 { height: 230px !important; }
    #more_filters .sv_filter_txt { display: none; }
    #more_filters { padding: 10px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .gb5s-type-ico, #properties_show .room-image-container200 { transition: none; }
    #properties_show .card-1:hover .room-image-container200 { transform: none; }
}

/* Badge « Coup de cœur » (note moyenne >= 4,5) */
#properties_show .card-1 { position: relative; }
#properties_show .gb5s-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: #fff;
    color: var(--gb-ink);
    font-weight: 700;
    font-size: 12.5px;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
