/* Material styling for the public rental catalogue; customer branding stays separate. */
.rental-public {
    --accent-blue: #126c63;
    --sidebar-bg: #173f39;
    --deep: #126c63;
    --ink: #132e40;
    --muted: #526773;
    --line: #dce5e5;
    background: #f6f8f7;
    color: #132e40;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.rental-public :focus-visible { outline: 3px solid #126c63; outline-offset: 4px; }
.rental-public h1, .rental-public h2 { letter-spacing: -.04em; }
.rental-public .topbar, .rental-public .top-fixed { background: #f8faf9; border-bottom: 1px solid #dce5e5; box-shadow: 0 2px 12px #173f3908 !important; }
.rental-public .hero { background: #e7efec; color: #132e40; padding-block: 80px 100px; }
.rental-public .hero h1 { color: #132e40; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 650; }
.rental-public .hero p { color: #526773; }
.rental-public .eyebrow { background: #d9e9e2; color: #126c63; border-color: #c6dcd1; }
.rental-public .search, .rental-public .search-engine { border: 1px solid #dce5e5; background: #fff; box-shadow: 0 8px 28px #173f390a; border-radius: 24px; }
.rental-public .search button, .rental-public .nav-btn { border-radius: 999px; background: #126c63; color: #fff; }
.rental-public .search-item { min-width: 0; padding-block: 10px; }
.rental-public .search-item label { color: #526773; letter-spacing: .08em; font-size: 10px; }
.rental-public .search-item input:not([type=range]), .rental-public .search-item select { min-height: 32px; }
.rental-public .stats { border: 1px solid #dce5e5; border-radius: 24px; box-shadow: 0 8px 28px #173f3908; }
.rental-public .stat strong { color: #126c63; }
.rental-public .country-card, .rental-public .type-card, .rental-public .property-card,
.rental-public .booking-card, .rental-public .info-card { border: 1px solid #dce5e5; border-radius: 24px; box-shadow: 0 2px 8px #173f3906, 0 12px 28px #173f3908; overflow: hidden; }
.rental-public .type-card.long { background: #173f39; }
.rental-public .type-card.short { background: #e2ede7; color: #163f36; }
.rental-public .property-card:hover { border: 1px solid #a9cdbd; background: #fff; box-shadow: 0 10px 30px #173f3915; transform: translateY(-3px); }
.rental-public .results-list { background: #f6f8f7; align-content: flex-start; }
.rental-public .card-body-custom { padding: 20px; }
.rental-public .card-carousel { border-radius: 0; }
.rental-public .btn-primary { background: #126c63; border-color: #126c63; border-radius: 999px; }
.rental-public .filter-item { padding: 8px 12px; border-radius: 16px; }
.rental-public .filter-item.active { background: #e2ede7; }
.rental-public .form-control, .rental-public .form-select { border-radius: 12px; min-height: 46px; border-color: #c8d9d1; }
.rental-public.rental-search { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.rental-public.rental-search .top-fixed { position: relative; flex: 0 0 auto; }
.rental-public.rental-search .main-container { margin-top: 0; height: auto; flex: 1 1 auto; min-height: 0; }
.rental-public.rental-search footer { position: static; flex: 0 0 auto; }
.rental-public .rental-home { display: inline-flex; align-items: center; padding: 10px 20px 0; color: #126c63; font-size: 13px; font-weight: 600; text-decoration: none; }
@media (max-width: 992px) {
    .rental-public.rental-search { height: auto; min-height: 100dvh; overflow: auto; }
    .rental-public .top-fixed-inner { flex-direction: column; align-items: stretch; }
    .rental-public .top-fixed-brand { margin: 16px 20px 0; }
    .rental-public .search-engine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 8px; width: calc(100% - 32px); margin: 16px; }
    .rental-public .search-item { min-width: 0 !important; max-width: none !important; width: 100%; padding: 10px; border-bottom: 1px solid #dce5e5; border-right: 0; }
    .rental-public .search-item:first-child { grid-column: 1 / -1; }
    .rental-public .search-item input:not([type=range]), .rental-public .search-item select { font-size: 16px; }
    .rental-public .search-engine > button { justify-self: end; }
    .rental-public .main-container { display: flex; flex-direction: column; }
    .rental-public .results-col, .rental-public .results-list { width: 100%; overflow: visible; }
    .rental-public .results-list { padding: 16px; }
    .rental-public .property-card { width: calc(50% - 10px); }
    .rental-public .map-section { display: block; width: 100%; height: 320px; flex: 0 0 320px; border: 0; }
    .rental-public .hero { padding: 48px 20px 72px; }
    .rental-public footer { height: auto; min-height: 48px; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
}
@media (max-width: 575px) {
    .rental-public .property-card { width: 100%; }
    .rental-public .traveler-dropdown { width: min(250px, calc(100vw - 55px)); left: auto; right: 0; }
    .rental-public .type-card { padding: 24px; }
    .rental-public .hero h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .rental-public *, .rental-public *::before, .rental-public *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.rental-public { --p-blue: #126c63; --p-dark: #132e40; --p-radius: 24px; }
.rental-public .sidebar { border-radius: 0 24px 24px 0; }
.rental-public .main-content { padding: 40px; }
@media (max-width: 992px) {
    html.rental-search-document { height: auto; overflow: auto; }
    .rental-public .sidebar { border-radius: 0 0 24px 24px; }
    .rental-public .main-content { padding: 24px 12px; }
    .rental-public .main-content .carousel-item img,
    .rental-public .main-content .carousel-item iframe { height: clamp(240px, 65vw, 420px); }
}

/* Menu des pages publiques (locations/public_nav.php) : tarifs, langue, thème. */
.rental-public .nav-actions { display: flex; align-items: center; gap: 14px; }
.rental-public .nav-link-plain { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }
.rental-public .nav-link-plain:hover, .rental-public .nav-link-plain.active { color: var(--deep); }
.rental-public .nav-btn { display: inline-flex; align-items: center; gap: 8px; }
.rental-public .nav-lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.rental-public .nav-lang a { padding: 5px 9px; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 800; line-height: 1; }
.rental-public .nav-lang a:hover { color: var(--ink); }
.rental-public .nav-lang a.active { background: var(--deep); color: #fff; }
.rental-public .nav-theme { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.rental-public .nav-theme:hover { color: var(--deep); border-color: var(--deep); }
.rental-public .nav-login { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--deep); border-radius: 999px; color: var(--deep); font-weight: 700; white-space: nowrap; }
.rental-public .nav-login:hover { background: var(--deep); color: #fff; }
@media (max-width: 680px) {
    .rental-public .nav-actions { gap: 8px; }
    .rental-public .nav-label { display: none; }
    .rental-public .nav-btn { padding: 9px 12px; }
    .rental-public .brand img { max-width: 110px; }
    .rental-public .nav-theme { width: 34px; height: 34px; }
    .rental-public .nav-login { width: 34px; height: 34px; padding: 0; justify-content: center; }
}

/* Mode sombre des pages publiques : classe posée par locationsThemeScript(). */
html.smartlife-dark-mode { color-scheme: dark; }
html.smartlife-dark-mode .rental-public { --ink: #e6edf5; --muted: #9aabbf; --line: #2b3a4f; --deep: #83d4b5; background: #0f1722; color: #e6edf5; }
html.smartlife-dark-mode .rental-public .topbar { background: #111b27f2; border-bottom-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .nav-lang a.active { background: #126c63; }
html.smartlife-dark-mode .rental-public .hero { background: #162c28; }
html.smartlife-dark-mode .rental-public .hero h1 { color: #f1f5fb; }
html.smartlife-dark-mode .rental-public .hero p { color: #9aabbf; }
html.smartlife-dark-mode .rental-public .eyebrow { background: #203e35; color: #a8d9c9; border-color: #33574a; }
html.smartlife-dark-mode .rental-public .search { background: #172231; border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .field { color: #9aabbf; }
html.smartlife-dark-mode .rental-public .field input { background: transparent; color: #e6edf5; }
html.smartlife-dark-mode .rental-public .stats { background: #172231; border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .stat strong { color: #83d4b5; }
html.smartlife-dark-mode .rental-public .type-card { border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .type-card.long { background: #1b4038; }
html.smartlife-dark-mode .rental-public .type-card.short, html.smartlife-dark-mode .rental-public .type-card.short:hover { background: #183a36; color: #d7f5ea; }
html.smartlife-dark-mode .rental-public .country-card { background: #172231; border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .country-image { background: #1e2b3d; }
html.smartlife-dark-mode .rental-public .country-image span { background: #0f1722e6; color: #5fd4a6; }
html.smartlife-dark-mode .rental-public .country-links b { background: #203e35; color: #d0eade; }
html.smartlife-dark-mode .rental-public .offer-card, html.smartlife-dark-mode .rental-public .note { background: #172231; border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .offer-card.popular { border-color: #83d4b5; }
html.smartlife-dark-mode .rental-public .offer-icon { background: #203e35; }
html.smartlife-dark-mode .rental-public .offer-features li { color: #c4d0dd; }
html.smartlife-dark-mode .rental-public .offer-badge, html.smartlife-dark-mode .rental-public .offer-btn { background: #126c63; color: #fff; }
html.smartlife-dark-mode .rental-public .offer-btn:hover { background: #178276; }
html.smartlife-dark-mode .rental-public footer { background: #0a111a; color: #9aabbf; }

/* Pied de page partagé (locationsPublicFooter() dans locations/public_layout.php).
   Propriétés redéfinies explicitement : certaines pages ont leur propre règle "footer {}". */
.rental-public footer.locations-footer { position: static; display: block; height: auto; width: 100%; margin: 0; padding: 48px 16px 0; background: #fff; color: #526773; border-top: 1px solid #dce5e5; text-align: left; font-size: .92rem; z-index: auto; }
.rental-public .locations-footer a { color: #132e40; text-decoration: none; }
.rental-public .locations-footer a:hover { color: #126c63; }
.rental-public .locations-footer .lf-inner { width: min(1180px, 100%); margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.rental-public .locations-footer .lf-logo { display: inline-block; padding: 8px 12px; border-radius: 14px; background: #fff; }
.rental-public .locations-footer .lf-logo img { max-width: 170px; max-height: 60px; }
.rental-public .locations-footer .lf-brand p { margin: 10px 0 0; }
.rental-public .locations-footer h2 { margin: 0 0 12px; color: #132e40; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rental-public .locations-footer .lf-col a { display: block; padding: 4px 0; overflow-wrap: anywhere; }
.rental-public .locations-footer .lf-bottom { width: min(1180px, 100%); margin: 36px auto 0; padding: 18px 0 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid #dce5e5; font-size: .82rem; }
.rental-public .locations-footer .lf-bottom a { color: #126c63; font-weight: 700; }
.rental-public footer.locations-footer.compact { padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; font-size: .8rem; }
.rental-public .locations-footer.compact .lf-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 900px) { .rental-public .locations-footer .lf-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rental-public .locations-footer .lf-inner { grid-template-columns: 1fr; gap: 24px; } }
html.smartlife-dark-mode .rental-public footer.locations-footer { background: #0a111a; color: #9aabbf; border-top-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .locations-footer a, html.smartlife-dark-mode .rental-public .locations-footer h2 { color: #e6edf5; }
html.smartlife-dark-mode .rental-public .locations-footer a:hover, html.smartlife-dark-mode .rental-public .locations-footer .lf-bottom a { color: #83d4b5; }
html.smartlife-dark-mode .rental-public .locations-footer .lf-bottom { border-top-color: #2b3a4f; }
html.smartlife-dark-mode .rental-public .brand img { padding: 4px 8px; border-radius: 10px; background: #fff; }

/* En-tête autonome : reste lisible sur toutes les pages et à fort zoom. */
.rental-public .topbar { height: auto; min-height: 76px; }
.rental-public .topbar .nav-inner { min-height: 76px; height: auto; padding-block: 12px; gap: 20px; flex-wrap: wrap; }
.rental-public .topbar .brand { display: inline-flex; flex-shrink: 0; }
.rental-public .topbar .brand img { display: block; width: 170px; height: 44px; object-fit: contain; }
.rental-public .nav-actions { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.rental-public .nav-actions a { text-decoration: none; }
.rental-public .nav-properties { font-size: .88rem; }
.rental-public .locations-footer .lf-inner > * { min-width: 0; }
.rental-public .locations-footer .lf-logo img { display: block; width: 170px; height: 56px; object-fit: contain; }
.rental-public .locations-footer .lf-brand p { max-width: 32ch; line-height: 1.7; }
.rental-public .type-card.short p { color: #3e6057; }
.rental-public .type-card.short .type-icon, .rental-public .type-card.short .type-bottom b { background: #c9e0d4; }
html.smartlife-dark-mode .rental-public .type-card.short p { color: #c2dfd7; }
html.smartlife-dark-mode .rental-public .type-card.short .type-icon,
html.smartlife-dark-mode .rental-public .type-card.short .type-bottom b { background: #254f47; }

/* Accueil du catalogue : même palette que l’accueil Properties. */
.rental-catalog-home { --ink: #132e40; --deep: #126c63; --blue: #126c63; --muted: #526773; --line: #dce5e5; background: #f6f8f7; color: var(--ink); }
.rental-catalog-home .hero { background: #e7efec; padding-block: 72px 94px; }
.rental-catalog-home .hero:after { background: #126c6309; }
.rental-catalog-home .hero h1 { color: #132e40; font-weight: 650; }
.rental-catalog-home .hero p { color: #526773; line-height: 1.7; }
.rental-catalog-home .eyebrow { background: #d9e9e2; color: #126c63; border-color: #c6dcd1; }
.rental-catalog-home .search { border-radius: 16px; border-color: var(--line); }
.rental-catalog-home .search button, .rental-catalog-home .nav-btn { background: #132e40; border-radius: 10px; }
.rental-catalog-home .search button:hover, .rental-catalog-home .nav-btn:hover { background: #126c63; }
.rental-catalog-home .field input { background: transparent; color: var(--ink); }
.rental-catalog-home .search:focus-within { outline: 3px solid #126c63; outline-offset: 4px; }
.rental-catalog-home .stats { border-radius: 18px; }
.rental-catalog-home .stat strong { color: var(--deep); }
.rental-catalog-home .heading h2 { font-weight: 650; letter-spacing: -.035em; }
.rental-catalog-home .type-card { box-shadow: none; border-radius: 22px; }
.rental-catalog-home .type-card.long { background: #132e40; }
.rental-catalog-home .type-card.short { background: #e2ede7; color: #163f36; }
.rental-catalog-home .type-card.short p { color: #3e6057; }
.rental-catalog-home .type-card.short .type-icon, .rental-catalog-home .type-card.short .type-bottom b { background: #c9e0d4; }
.rental-catalog-home .featured-card, .rental-catalog-home .dest-card { border-radius: 20px; }
.rental-catalog-home .featured-card:not(.is-boosted), .rental-catalog-home .dest-card { box-shadow: 0 4px 20px #132e4006; }
.rental-catalog-home .featured-image { height: 220px; }
.rental-catalog-home .featured-body { padding: 24px; }
.rental-catalog-home .dest-head { flex-wrap: wrap; }
.rental-catalog-home .dest-head > div { min-width: 0; flex: 1; }
.rental-catalog-home .dest-head h3 { overflow-wrap: anywhere; }
.rental-catalog-home .dest-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rental-catalog-home .dest-links a, .rental-catalog-home .dest-links span { flex-wrap: wrap; }
html.smartlife-dark-mode .rental-catalog-home .featured-card:not(.featured-promo) { background: #172231; border-color: #2b3a4f; }
html.smartlife-dark-mode .rental-catalog-home .city-chip,
html.smartlife-dark-mode .rental-catalog-home .dest-links a { background: #203e35; color: #d0eade; }
html.smartlife-dark-mode .rental-catalog-home .dest-links .is-empty { background: #1e2938; color: #a4b1c3; }
html.smartlife-dark-mode .rental-catalog-home .soon-list li { color: #c4d0dd; }
@media (max-width: 900px) {
    .rental-public .topbar .nav-inner { justify-content: center; gap: 12px; }
    .rental-public .nav-actions { justify-content: center; }
}
@media (max-width: 680px) {
    .rental-public .topbar { position: relative; }
    .rental-public .topbar .nav-inner { flex-direction: column; }
    .rental-public .topbar .brand img { width: 160px; max-width: 160px; }
    .rental-public .nav-actions { gap: 10px; width: 100%; }
    .rental-public .nav-actions .nav-label { display: inline; }
    .rental-public .nav-login { width: auto; height: auto; padding: 8px 12px; font-size: .82rem; }
    .rental-public .nav-link-plain { font-size: .82rem; }
    .rental-catalog-home .hero { padding: 44px 16px 64px; }
    .rental-catalog-home .hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
    .rental-catalog-home .stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .rental-catalog-home .stat { padding: 16px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
    .rental-catalog-home .stat:last-child { border: 0; }
    .rental-catalog-home .stat strong { display: block; margin: 0; }
    .rental-catalog-home .stat span { display: block; font-size: .73rem; overflow-wrap: anywhere; }
    .rental-public footer.locations-footer { padding-top: 32px; }
}

/* Recherche de l'accueil : choix du séjour et suggestions d'adresse. */
.rental-catalog-home .hero{overflow:visible;z-index:3;padding-bottom:40px}.rental-catalog-home .stats{margin:24px auto 0}.rental-catalog-home .hero:after{display:none}
.catalog-search{max-width:760px;margin:auto}.rental-type-switch{display:flex;gap:4px;padding:5px;margin:0 auto 20px;border:1px solid var(--line);border-radius:999px;background:var(--doc-surface,#fff);width:fit-content;max-width:100%}.rental-type-switch label{position:relative;margin:0;cursor:pointer;flex:1;display:flex;min-width:0}.rental-type-switch input{position:absolute;opacity:0;width:1px;height:1px}.rental-type-switch span{display:flex;align-items:center;justify-content:center;flex:1;min-height:48px;line-height:1.35;text-align:center;border-radius:999px;padding:10px 20px;color:#526773;font-size:.9rem;font-weight:650}.rental-type-switch input:checked+span{background:#126c63;color:white}.rental-type-switch input:focus-visible+span{outline:3px solid #b58228;outline-offset:2px}
.catalog-search .address-field{position:relative;flex:1;min-width:0}.catalog-search .field{margin:0}.catalog-search .field input{font-size:16px;min-width:0}.catalog-search .search>button{min-height:48px}.address-suggestions{position:absolute;left:0;right:0;top:calc(100% + 12px);padding:6px;margin:0;list-style:none;text-align:left;background:white;color:#132e40;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 36px #132e4030;max-height:300px;overflow-y:auto;z-index:10}.address-suggestions li{padding:12px 14px;border-radius:9px;font-size:.9rem;line-height:1.45;cursor:pointer;overflow-wrap:anywhere}.address-suggestions li[aria-selected=true],.address-suggestions li:hover{background:#e2ede7;color:#126c63}.address-suggestions[hidden]{display:none}
html.smartlife-dark-mode .rental-type-switch,html.smartlife-dark-mode .address-suggestions{background:#172231;color:#e6edf5;border-color:#2b3a4f}html.smartlife-dark-mode .rental-type-switch span{color:#c4d0dd}html.smartlife-dark-mode .rental-type-switch input:checked+span{color:white}html.smartlife-dark-mode .address-suggestions li[aria-selected=true],html.smartlife-dark-mode .address-suggestions li:hover{background:#254f47;color:white}
@media(max-width:680px){.rental-type-switch span{padding:10px 13px;font-size:.82rem}.catalog-search .search button{margin-top:8px}.address-suggestions{max-height:250px}}

/* Palette Properties commune aux tarifs, résultats et fiches du catalogue. */
.rental-public{--blue:#126c63;--p-blue:#126c63;--bs-primary:#126c63;--bs-primary-rgb:18,108,99;--bs-link-color:#126c63;--bs-link-hover-color:#0c514a;accent-color:#126c63}
.rental-public .btn-primary{--bs-btn-bg:#126c63;--bs-btn-border-color:#126c63;--bs-btn-hover-bg:#0c514a;--bs-btn-hover-border-color:#0c514a;--bs-btn-active-bg:#0c514a;--bs-btn-active-border-color:#0c514a;--bs-btn-disabled-bg:#126c63;--bs-btn-disabled-border-color:#126c63;--bs-btn-focus-shadow-rgb:18,108,99}
.rental-public .btn-primary:hover,.rental-public .btn-primary:active{background:#0c514a;border-color:#0c514a}
.rental-public .btn-outline-primary{color:#126c63;border-color:#126c63;--bs-btn-hover-bg:#126c63;--bs-btn-hover-border-color:#126c63;--bs-btn-active-bg:#0c514a;--bs-btn-active-border-color:#0c514a}
.rental-public .btn-outline-primary:hover{color:white;background:#126c63}
.rental-public .text-primary{color:#126c63!important}.rental-public .bg-primary{background-color:#126c63!important}.rental-public .border-primary{border-color:#126c63!important}
.rental-public .offer-icon,.rental-public .autocomplete-item:hover,.rental-public .filter-item.active{background:#e2ede7;color:#126c63}
.rental-public .offer-btn,.rental-public .offer-badge,.rental-public .billing-btn.active{background:#126c63;color:white}
.rental-public .offer-btn:hover{background:#0c514a;color:white}
.rental-public .form-control:focus,.rental-public .form-select:focus{border-color:#126c63;box-shadow:0 0 0 .2rem #126c6326}
.rental-public .form-check-input:checked{background-color:#126c63;border-color:#126c63}
.rental-public .price-marker.active,.rental-public .google-price-marker.marker-active{background:#126c63;color:white}
html.smartlife-dark-mode .rental-public{--blue:#83d4b5;--deep:#83d4b5;--accent-blue:#83d4b5;--p-blue:#83d4b5;--bs-link-color:#83d4b5;--bs-link-hover-color:#b9e8d4;--bs-primary-rgb:131,212,181}
html.smartlife-dark-mode .rental-public .text-primary{color:#83d4b5!important}
html.smartlife-dark-mode .rental-public .btn-outline-primary{color:#83d4b5;border-color:#83d4b5}
html.smartlife-dark-mode .rental-public .btn-outline-primary:hover{color:white;background:#126c63}
html.smartlife-dark-mode .rental-public .offer-icon,html.smartlife-dark-mode .rental-public .filter-item.active,html.smartlife-dark-mode .rental-public .autocomplete-item:hover{background:#203e35;color:#a8d9c9}
html.smartlife-dark-mode .rental-public .results-list,html.smartlife-dark-mode .rental-public .top-fixed{background:#111f1b;color:#e6edf5;border-color:#33574a}
html.smartlife-dark-mode .rental-public .property-card,html.smartlife-dark-mode .rental-public .search-engine,html.smartlife-dark-mode .rental-public .autocomplete-results{background:#172a24;color:#e6edf5;border-color:#33574a}
html.smartlife-dark-mode .rental-public .search-item input,html.smartlife-dark-mode .rental-public .search-item select{color:#e6edf5}

/* Thème vert : liens Bootstrap, avatar du bailleur et éléments encore bleus sur les pages publiques. */
.rental-public { --bs-link-color: #126c63; --bs-link-color-rgb: 18, 108, 99; --bs-link-hover-color: #0c514a; --bs-link-hover-color-rgb: 12, 81, 74; --p-blue: #126c63; --blue: #126c63; }
.rental-public .owner-avatar { background: #e2ede7 !important; color: #126c63 !important; }
.rental-public .nav-pills .nav-link.active, .rental-public .pagination .active > .page-link { background-color: #126c63; border-color: #126c63; color: #fff; }
html.smartlife-dark-mode .rental-public { --bs-link-color-rgb: 131, 212, 181; --bs-link-hover-color-rgb: 185, 232, 212; }
html.smartlife-dark-mode .rental-public .owner-avatar { background: #203e35 !important; color: #a8d9c9 !important; }

/* Cartes logement et étiquettes de prix des pages de résultats (result_long_terme, page_results). */
/* ---- Cartes logement ---- */
.rental-public .results-list { gap: 22px; padding: 22px 25px 30px; align-content: flex-start; }
.rental-public .property-card { padding: 0; margin: 0; width: calc(50% - 11px); border: 1px solid #e3ebe7; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 2px 6px #173f390a, 0 10px 26px #173f390d; transition: transform .2s ease, box-shadow .2s ease; cursor: default; gap: 0; min-width: 0; }
.rental-public .property-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px #173f3924; border: 1px solid #cfe0d8; background: #fff; }
.rental-public .property-card.is-boosted { border-color: #e9b949; box-shadow: 0 0 0 2px #f4d37a66, 0 10px 26px #173f390d; }
.pc-media { position: relative; height: 230px; background: #e8efec; }
.pc-media .carousel, .pc-media .carousel-inner, .pc-media .carousel-item { height: 100%; }
.pc-media .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0,18,14,.62), transparent); pointer-events: none; z-index: 1; }
.pc-media .carousel-control-prev, .pc-media .carousel-control-next { width: 34px; height: 34px; top: 50%; bottom: auto; margin: 0 10px; border-radius: 50%; background: rgba(255,255,255,.92); opacity: 0; transform: translateY(-50%); transition: opacity .2s; z-index: 3; }
.pc-media:hover .carousel-control-prev, .pc-media:hover .carousel-control-next { opacity: 1; }
.pc-media .carousel-control-prev-icon, .pc-media .carousel-control-next-icon { filter: invert(1); width: 14px; height: 14px; }
.pc-media .carousel-indicators { z-index: 3; margin-bottom: 8px; }
.pc-media .carousel-indicators [data-bs-target] { width: 6px; height: 6px; border-radius: 50%; border: 0; margin: 0 3px; }
.pc-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 4; pointer-events: none; }
.pc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.95); color: #163f36; box-shadow: 0 2px 8px #0003; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-badge.is-boost { background: #ffc83d; color: #3d2a00; }
.pc-price { position: absolute; left: 14px; bottom: 12px; z-index: 4; color: #fff; text-shadow: 0 1px 6px #0008; line-height: 1.1; pointer-events: none; }
.pc-price strong { font-size: 1.35rem; font-weight: 800; }
.pc-price span { font-size: .85rem; opacity: .92; }
.pc-body { display: block; padding: 16px 18px 18px; color: inherit; text-decoration: none; min-width: 0; }
.pc-body:hover { color: inherit; }
.pc-title { margin: 0; font-size: 1.08rem; font-weight: 700; color: #0f2f29; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pc-place { margin-top: 3px; font-size: .86rem; color: #5b6f69; display: flex; gap: 6px; align-items: flex-start; }
.pc-place i { margin-top: 3px; color: #126c63; }
.pc-place span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #eef5f1; color: #214a41; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pc-total { margin-top: 12px; padding-top: 11px; border-top: 1px dashed #d5e2dc; font-size: .88rem; color: #3e5851; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pc-total strong { font-size: 1.02rem; color: #0f2f29; }
.pc-cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 700; color: #126c63; }

/* ---- Étiquettes de prix sur la carte ---- */
.leaflet-div-icon.price-pin, .price-pin { background: none; border: 0; }
.price-pin .price-marker { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); max-width: 190px; overflow: hidden; text-overflow: ellipsis; padding: 5px 12px; border: 1px solid #c7d9d1; border-radius: 999px; background: #fff; color: #0f2f29; font-weight: 800; font-size: 13px; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 10px #0003; transition: transform .15s, background .15s; }
.price-pin .price-marker::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; border-right: 1px solid #c7d9d1; border-bottom: 1px solid #c7d9d1; transform: translateX(-50%) rotate(45deg); }
.price-pin .price-marker.marker-active, .price-pin .price-marker:hover { background: #126c63; color: #fff; border-color: #126c63; transform: translate(-50%, -100%) scale(1.1); z-index: 1000; }
.leaflet-popup-content-wrapper { border-radius: 16px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 230px !important; }
.leaflet-popup-content .pc-media { height: 130px; }
.leaflet-popup-content .pc-media::after { display: none; }
.leaflet-popup-content .pc-popup-body { padding: 10px 14px 12px; font-size: .85rem; }
.leaflet-popup-content .pc-popup-body + .pc-popup-body { border-top: 1px solid #e6eeea; }
@media (max-width: 767px) { .rental-public .property-card { width: 100%; } .pc-media { height: 210px; } }
.pc-residence { margin-top: 2px; font-size: .84rem; font-weight: 600; color: #126c63; }

/* Défilement des photos des cartes de résultats : rien ne déborde du cadre de l'image ni de la carte. */
.pc-media { overflow: hidden; isolation: isolate; contain: paint; }
.pc-media .carousel, .pc-media .carousel-inner, .pc-media .carousel-item { max-width: 100%; overflow: hidden; }
.pc-media .carousel-item img { max-width: 100%; }
.rental-public .property-card { overflow: hidden; min-width: 0; }
.rental-public .property-card.is-linked { box-shadow: 0 0 0 3px #126c63, 0 14px 34px #173f3924; }
