/* eHabitat's look, shared by the website and the app. Colours and type as on the design
   canvas: habitat green framing every page, a warm sand ground, ink, sand and terracotta for
   highlights, DM Sans. */

:root {
    --green: #0B6B57;
    --green-dark: #08513F;
    --green-deep: #073F33;
    --green-soft: #E3F1ED;
    --ink: #14201C;
    --ink-soft: #2C3833;
    --muted: #5E5A50;
    --line: #E7DFD0;
    --line-strong: #CFC4AF;
    --ground: #F6F1E8;
    --ground-soft: #FBF8F2;
    --sand: #E9C46A;
    --terracotta: #B54A25;
    --whatsapp: #128C4A;
    --white: #FFFFFF;
    --header-h: 64px;
    --radius: 14px;
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--ground);
    -webkit-text-size-adjust: 100%;
}

a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2 { letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* Header: the green frame every page shares, with the white case */
.site-header {
    height: var(--header-h);
    display: flex; align-items: center; gap: 20px;
    padding: 0 20px;
    background: var(--green);
    color: var(--white);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-tile {
    width: 38px; height: 38px; border-radius: 10px; background: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.brand-name .e { color: var(--sand); }
.kind-switch { display: flex; padding: 4px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; }
.kind-switch a {
    min-height: 36px; padding: 0 18px; border-radius: 999px;
    display: flex; align-items: center;
    color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700;
}
.kind-switch a:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.kind-switch a.active { background: var(--white); color: var(--green); }
.tagline { margin-left: auto; color: #CFE7DF; font-size: 14px; font-weight: 500; }

/* Footer (website): ink, with the company named */
.site-footer {
    background: var(--ink); color: #C9D3CF;
    padding: 36px 20px; font-size: 14px;
}
.site-footer .inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between;
}
.site-footer .brand { gap: 8px; }
.site-footer .brand-name { font-size: 20px; }
.site-footer p { margin: 8px 0 0; max-width: 360px; line-height: 1.5; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--sand); }
.site-footer .legal { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; color: #93A39C; font-size: 13px; }

/* Buttons and badges */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 18px; border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
    border: 0; background: var(--green); color: var(--white);
}
.button:hover { color: var(--white); background: var(--green-dark); }
.button.secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.button.secondary:hover { background: #F0F2EF; color: var(--ink); }
.button.secondary:disabled { opacity: 0.4; cursor: default; }
.button.whatsapp { background: var(--whatsapp); }
.button.whatsapp:hover { background: #0E7A40; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    padding: 4px 9px; border-radius: 6px;
    background: #F0F2EF; color: var(--ink);
    font-size: 12px; font-weight: 700;
}
.badge.verified { background: var(--white); color: var(--green); }
.listing-page .badge.verified { background: var(--green-soft); }
.badge.dark { background: var(--ink); color: var(--white); }
.badge.new { background: var(--terracotta); color: var(--white); }
.badge.featured { background: var(--sand); color: var(--ink); }

.notice { padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }

/* Filters */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 10px 20px; background: var(--ground-soft); border-bottom: 1px solid var(--line);
}
/* Our own chevron instead of the browser's, which sits against the rounded edge and cannot be
   moved: 16 px in from the right, with room kept for it so long names never run under it. */
.filter select, .sort select {
    min-height: 40px; padding: 0 40px 0 14px; border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2314201C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
    -webkit-appearance: none; appearance: none;
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
/* Holds its hidden label: without it the label was placed against the page and widened it on a phone. */
.filter, .sort { position: relative; }
.chip {
    min-height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--white);
    font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.chip.on { border: 1.5px solid var(--green); background: var(--green-soft); color: var(--green); }

/* Search: results beside the map on a wide screen, one or the other on a phone */
.search { display: flex; flex-direction: column; height: calc(100dvh - var(--header-h)); }
.search-body {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
}
.results { overflow-y: auto; padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }
.results-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.results-head p { margin: 4px 0 0; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; }
.map-pane { position: relative; background: #CFE3EA; }
.map { position: absolute; inset: 0; }
.view-toggle { display: none; }

@media (max-width: 900px) {
    .tagline { display: none; }
    .site-header { gap: 12px; padding: 0 12px; }
    .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter, .chip { flex: none; }
    .search-body { grid-template-columns: minmax(0, 1fr); }
    .search.show-list .map-pane { display: none; }
    .search.show-map .results { display: none; }
    .results { padding: 14px 12px 88px; }
    .view-toggle {
        display: block; position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
        z-index: 1000; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
        background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 700;
        box-shadow: 0 4px 14px rgba(20, 32, 28, 0.3);
    }
}

/* Listing card */
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 1px 2px rgba(60, 45, 20, 0.06); transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 8px 22px rgba(60, 45, 20, 0.14); transform: translateY(-2px); }
.card > a { display: block; color: var(--ink); text-decoration: none; }
.card .photo { position: relative; height: 170px; }
.card .badges { position: absolute; top: 10px; left: 10px; }
.photo-count {
    position: absolute; right: 10px; bottom: 8px; padding: 2px 8px; border-radius: 6px;
    background: rgba(20, 32, 28, 0.72); color: var(--white); font-size: 12px; font-weight: 600;
}

/* Covers until a listing has photos: original patterns in the brand's colours, after the
   geometry of West African wax and bogolan cloth (not copies of any one print), each with the
   case in the middle. A listing always gets the same one. */
.tone-0 { background: #0B6B57 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='56' height='56' fill='%230B6B57'/%3E%3Cpath d='M28 4 L52 28 L28 52 L4 28Z' fill='none' stroke='%23E9C46A' stroke-width='2.5'/%3E%3Cpath d='M28 18 L38 28 L28 38 L18 28Z' fill='%23F6F1E8' opacity='.35'/%3E%3C/svg%3E"); }
.tone-1 { background: #F1E4CC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='32'%3E%3Crect width='48' height='32' fill='%23F1E4CC'/%3E%3Cpath d='M0 22 L12 10 L24 22 L36 10 L48 22' fill='none' stroke='%23B54A25' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tone-2 { background: #E9C46A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='%23E9C46A'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%2314201C' stroke-width='2'/%3E%3Ccircle cx='36' cy='36' r='7' fill='none' stroke='%2314201C' stroke-width='2'/%3E%3Ccircle cx='36' cy='12' r='2.5' fill='%2314201C'/%3E%3Ccircle cx='12' cy='36' r='2.5' fill='%2314201C'/%3E%3C/svg%3E"); }
.tone-3 { background: #B54A25 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23B54A25'/%3E%3Cpath d='M0 40 L10 24 L20 40Z M20 40 L30 24 L40 40Z' fill='%23E9C46A'/%3E%3Cpath d='M0 0 L10 16 L20 0Z M20 0 L30 16 L40 0Z' fill='%23F6F1E8' opacity='.3'/%3E%3C/svg%3E"); }
.tone-4 { background: #EFE6D6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%23EFE6D6'/%3E%3Cpath d='M10 4 V16 M4 10 H16' stroke='%234A3626' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M24 28 H36 M24 34 H36' stroke='%234A3626' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='30' cy='10' r='2.5' fill='%234A3626'/%3E%3Ccircle cx='10' cy='31' r='2.5' fill='%234A3626'/%3E%3C/svg%3E"); }
/* Waves (the river and the ocean), a dark checker with sand dots, and sun arcs. */
.tone-5 { background: #1F6F8B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Crect width='60' height='30' fill='%231F6F8B'/%3E%3Cpath d='M0 10 Q15 0 30 10 T60 10' fill='none' stroke='%23F6F1E8' stroke-width='2.5'/%3E%3Cpath d='M0 24 Q15 14 30 24 T60 24' fill='none' stroke='%23E9C46A' stroke-width='2.5'/%3E%3C/svg%3E"); }
.tone-6 { background: #14201C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Crect width='36' height='36' fill='%2314201C'/%3E%3Crect width='18' height='18' fill='%23243A32'/%3E%3Crect x='18' y='18' width='18' height='18' fill='%23243A32'/%3E%3Ccircle cx='9' cy='9' r='2.5' fill='%23E9C46A'/%3E%3Ccircle cx='27' cy='27' r='2.5' fill='%23E9C46A'/%3E%3C/svg%3E"); }
.tone-7 { background: #D98C5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect width='48' height='48' fill='%23D98C5F'/%3E%3Cpath d='M4 44 A20 20 0 0 1 44 44' fill='none' stroke='%23F6F1E8' stroke-width='2.5'/%3E%3Cpath d='M14 44 A10 10 0 0 1 34 44' fill='none' stroke='%2314201C' stroke-width='2.5'/%3E%3Ccircle cx='24' cy='44' r='3' fill='%23F6F1E8'/%3E%3C/svg%3E"); }
.cover-mark {
    position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.94); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(20, 32, 28, 0.25);
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.price strong { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.price .muted { font-size: 13px; margin-left: 6px; }
.facts { font-size: 14px; font-weight: 600; }
.place { font-size: 13px; }

/* Map pins: Leaflet places the marker's top-left on the point, the chip lifts itself above it */
.pin { background: none; border: 0; }
.pin-chip {
    display: inline-block; transform: translate(-50%, -120%);
    padding: 5px 9px; border-radius: 999px; white-space: nowrap;
    background: var(--green); color: var(--white); font: 800 13px/1 var(--font);
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(20, 32, 28, 0.35); cursor: pointer;
}
.pin-chip:hover { background: var(--sand); color: var(--ink); }
.pin-home {
    display: block; width: 30px; height: 30px; transform: translate(-50%, -100%) rotate(-45deg); transform-origin: center;
    margin-top: -6px; border-radius: 50% 50% 50% 0; background: var(--green); border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(20, 32, 28, 0.35);
}

/* Listing page */
.listing-page { max-width: 1160px; margin: 0 auto; padding: 16px 20px 48px; }
.back { display: inline-block; margin-bottom: 14px; font-weight: 700; text-decoration: none; }
.gallery { position: relative; height: 320px; border-radius: 16px; }
.gallery .cover-mark { width: 88px; height: 88px; }
.gallery .cover-note {
    position: absolute; left: 16px; bottom: 14px; padding: 4px 10px; border-radius: 999px;
    background: rgba(20, 32, 28, 0.72); color: var(--white); font-size: 13px; font-weight: 600;
}
.listing-columns { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 24px; align-items: flex-start; }
.listing-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.listing-main h1 { margin: 8px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.listing-main h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.listing-main .place { margin: 0; font-size: 15px; }
.big-price { margin: 0; font-size: 34px; font-weight: 800; color: var(--green-deep); letter-spacing: -0.02em; }
.big-price .muted { font-size: 16px; font-weight: 500; }
.key-facts, .move-in {
    margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
}
.key-facts div, .move-in div { padding: 12px 16px; border-right: 1px solid var(--line); }
.key-facts dt, .move-in dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.key-facts dd, .move-in dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.total { font-weight: 800; }
.description { white-space: pre-line; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.amenities { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; }
.amenities li::before { content: "✓ "; color: var(--green); font-weight: 800; }
.mini-map { height: 280px; border-radius: var(--radius); overflow: hidden; background: #CFE3EA; z-index: 0; }
.contact {
    flex: 1 1 300px; max-width: 400px; position: sticky; top: 16px;
    padding: 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 24px rgba(20, 32, 28, 0.08);
}
.publisher { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 48px; height: 48px; border-radius: 999px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green); font-weight: 800;
}
@media (max-width: 900px) {
    .gallery { height: 220px; }
    .listing-main h1 { font-size: 24px; }
    .big-price { font-size: 26px; }
    .contact { position: static; max-width: none; }
}

/* Home page (website): a deep green hero over the coast, then places, new listings, reasons */
.home-hero { position: relative; background: var(--green-deep); color: var(--white); }
/* The scene is clipped by its own svg; the hero itself must not clip, or the place suggestions are cut off. */
.home-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero-inner {
    position: relative; max-width: 1160px; margin: 0 auto; padding: 88px 20px 120px;
    display: flex; flex-direction: column; gap: 22px;
}
.eyebrow { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sand); }
.home-hero h1 { margin: 0; max-width: 720px; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.home-hero .lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: #D6EBE4; }
.home-search {
    max-width: 760px; padding: 10px; border-radius: 20px; background: var(--white);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.kind-pick { margin: 0; padding: 4px; border: 0; display: flex; background: #F0EBE0; border-radius: 999px; }
.kind-pick label { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span {
    min-height: 44px; padding: 0 20px; border-radius: 999px; display: flex; align-items: center;
    font-size: 15px; font-weight: 700; color: var(--ink);
}
.kind-pick input:checked + span { background: var(--green); color: var(--white); }
.kind-pick input:focus-visible + span { outline: 3px solid var(--sand); outline-offset: 2px; }
.place-input { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; }
.place-input input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; color: var(--ink); background: transparent; }
.home-search button {
    min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer;
    background: var(--sand); color: var(--ink); font: inherit; font-size: 16px; font-weight: 800;
}
.home-search button:hover { background: #DDB24F; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick a {
    min-height: 36px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600;
}
.quick a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.home-section { max-width: 1160px; margin: 0 auto; padding: 64px 20px 8px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.section-head a { font-weight: 700; text-decoration: none; }
/* Eight places: four per row on a computer, two on a phone, so every row is full. */
.place-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .place-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.place-tile {
    position: relative; display: block; height: 190px; border-radius: 18px; overflow: hidden;
    color: var(--white); text-decoration: none; box-shadow: 0 2px 6px rgba(60, 45, 20, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.place-tile:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 45, 20, 0.2); }
.place-tile > span {
    position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
    background: linear-gradient(to top, rgba(10, 20, 16, 0.88), rgba(10, 20, 16, 0));
    display: flex; flex-direction: column;
}
.place-tile strong { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
@media (max-width: 900px) { .place-tile { height: 150px; } .place-tile strong { font-size: 19px; } .place-tile > span { padding: 32px 12px 12px; } }
.place-tile small { font-size: 14px; color: #E3E8E5; }

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.reasons > div { padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.reasons h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 800; }
.reasons p { margin: 0; font-size: 15px; line-height: 1.55; color: #3D3A33; }
.reason-icon {
    width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green); font-size: 22px; font-weight: 800;
}
.reason-icon.whatsapp { color: var(--whatsapp); }
.reason-icon.euro { background: #FBEFD5; color: #7A4B00; }
.safety { margin: 20px 0 0; padding: 16px 20px; border-radius: 14px; background: #FBEFD5; color: #5A3A0A; font-size: 15px; font-weight: 600; }

.publish-band { margin-top: 64px; background: var(--sand); }
.publish-band > div { max-width: 1160px; margin: 0 auto; padding: 56px 20px; }
.publish-band .eyebrow { color: #5A3A0A; margin-bottom: 8px; }
.publish-band h2 { margin: 0; max-width: 680px; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.publish-band p { margin: 10px 0 0; max-width: 640px; font-size: 17px; line-height: 1.5; color: #3D2A08; }

@media (max-width: 900px) {
    .home-hero-inner { padding: 48px 16px 96px; }
    .home-section { padding: 44px 16px 8px; }
    .section-head h2 { font-size: 26px; }
    .home-search button { flex: 1 1 100%; }
}

/* Empty results: a clear message and the way out, not a bare box */
.empty-state {
    padding: 40px 28px; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.empty-icon {
    width: 76px; height: 76px; border-radius: 999px; background: var(--green-soft);
    display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.empty-state h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.empty-state p { margin: 0; max-width: 440px; color: var(--muted); line-height: 1.55; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Alerts: a tinted band with an icon, the message and its action */
.alert {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 16px; border: 1px solid;
}
.alert > div { flex: 1 1 220px; }
.alert strong { display: block; font-size: 16px; }
.alert p { margin: 2px 0 0; line-height: 1.5; }
.alert-icon {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.alert.warning { background: #FBEFD5; border-color: #EBCF95; color: #5A3A0A; }
.alert.warning .alert-icon { background: #F4DDA8; color: #7A4B00; }
.alert.warning .button.secondary { border-color: #7A4B00; color: #5A3A0A; background: transparent; }

/* The place picker's suggestions (placepicker.js), under the home page's search box */
.place-input { position: relative; }
.place-list {
    position: absolute; top: calc(100% + 10px); left: -10px; right: -10px; z-index: 20;
    margin: 0; padding: 6px; list-style: none; max-height: 360px; overflow-y: auto;
    background: var(--white); color: var(--ink); border-radius: 16px; border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 32, 28, 0.22);
}
.place-list-title { padding: 10px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.place-list-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
.place-option {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px;
    border-radius: 10px; cursor: pointer;
}
.place-option.active, .place-option:hover { background: var(--green-soft); }
.place-option strong { display: block; font-size: 15px; font-weight: 700; }
.place-option strong mark { background: none; color: var(--green); font-weight: 800; }
.place-option small { display: block; font-size: 12.5px; color: var(--muted); }
.place-pin {
    width: 32px; height: 32px; flex: none; border-radius: 999px; background: #F0EBE0; color: var(--green);
    display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.place-option.active .place-pin { background: var(--white); }

/* Filters drawn by the server, a moment before they can react */
.filter select:disabled, .sort select:disabled, .chip:disabled { opacity: 0.55; cursor: progress; }
