:root {
    --ink: #14221e;
    --ink-soft: #58655f;
    --forest: #0d3027;
    --forest-light: #18483b;
    --green: #21a179;
    --green-bright: #36d399;
    --blue: #2889e8;
    --sky: #e9f4ff;
    --cream: #f7f8f3;
    --white: #ffffff;
    --line: #dfe6e0;
    --shadow-sm: 0 10px 30px rgba(18, 47, 38, .08);
    --shadow-md: 0 24px 70px rgba(13, 48, 39, .14);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shell: 1240px;
    --header-height: 78px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid rgba(40, 137, 232, .42);
    outline-offset: 3px;
}

.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;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    left: 16px;
    top: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--white);
    background: var(--forest);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

.section-shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: absolute;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--white);
}

.site-header.is-scrolled {
    position: fixed;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(20, 34, 30, .08);
    box-shadow: 0 8px 30px rgba(20, 34, 30, .06);
    backdrop-filter: blur(18px);
    animation: header-in .3s ease both;
}

@keyframes header-in { from { transform: translateY(-100%); } }

.nav-shell {
    width: min(calc(100% - 48px), 1360px);
    height: var(--header-height);
    margin: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    width: 196px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .96);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(4, 23, 18, .12);
}

.brand img { width: 100%; height: auto; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-left: auto;
}

.main-nav a, .nav-login {
    position: relative;
    font-size: .91rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--green-bright);
    transition: right .2s ease;
}

.main-nav a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login { opacity: .9; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .9rem; }
.button-light { color: var(--forest); background: var(--white); box-shadow: 0 9px 28px rgba(0, 0, 0, .12); }
.is-scrolled .button-light { color: var(--white); background: var(--forest); }
.button-primary { color: var(--white); background: var(--forest); box-shadow: 0 12px 25px rgba(13, 48, 39, .2); }
.button-white { color: var(--forest); background: var(--white); box-shadow: 0 14px 35px rgba(0, 0, 0, .16); }
.button-block { width: 100%; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    color: inherit;
    background: rgba(255, 255, 255, .12);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    height: max(760px, 96svh);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--forest);
}

.hero-media {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("../img/muelle%20del%20tinto.webp");
    background-size: cover;
    background-position: center 61%;
    animation: hero-scale 1.5s ease-out both;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 24, 20, .79) 0%, rgba(6, 24, 20, .55) 46%, rgba(6, 24, 20, .20) 100%),
        linear-gradient(0deg, rgba(6, 24, 20, .67) 0%, transparent 48%, rgba(6, 24, 20, .36) 100%);
}

@keyframes hero-scale { from { transform: scale(1.035); opacity: .55; } }

.hero-content { padding-top: var(--header-height); }
/* El carrusel forma parte del Hero: su altura debe seguir al contenido, no al alto de la ventana. */
.hero:has(.hero-business-results) { display: block; height: auto; min-height: 0; padding: calc(var(--header-height) + 42px) 0 52px; }
.hero:has(.hero-business-results) .hero-content { padding-top: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #177d61;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero-eyebrow {
    color: #d6ffef;
    animation: hero-up .6s .15s ease both;
}

.hero h1 {
    max-width: 830px;
    margin: 20px 0 18px;
    font-size: clamp(3.5rem, 7vw, 6.7rem);
    line-height: .93;
    letter-spacing: -.07em;
    animation: hero-up .7s .22s ease both;
}

.hero h1 em { color: #9ff4d3; font-style: normal; }

.hero-content > p {
    max-width: 640px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(1.07rem, 2vw, 1.3rem);
    animation: hero-up .7s .28s ease both;
}

@keyframes hero-up { from { opacity: 0; transform: translateY(18px); } }

.hero-search {
    width: min(100%, 790px);
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 20px;
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .3);
    animation: hero-up .7s .36s ease both;
}

.hero-search > i { margin: 0 7px 0 17px; color: var(--green); font-size: 1.1rem; }

.hero-search input {
    min-width: 0;
    height: 56px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 1.06rem;
}

.hero-search input::placeholder { color: #79827f; }

.hero-search button {
    height: 56px;
    padding: 0 25px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--forest);
    font-weight: 850;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.hero-search button:hover { background: var(--green); transform: translateX(2px); }

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
    animation: hero-up .7s .43s ease both;
}

.quick-categories button {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: var(--white);
    background: rgba(7, 28, 23, .36);
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background .2s ease, transform .2s ease;
}

.quick-categories button:hover { background: rgba(255, 255, 255, .19); transform: translateY(-2px); }
.quick-categories button.active {
    color: var(--forest);
    border-color: rgba(255,255,255,.9);
    background: #9ff4d3;
}
.quick-categories button i { margin-right: 6px; font-size: .7rem; }
.taxonomy-loading, .taxonomy-error {
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 700;
}
.quick-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(100%, 900px);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
    animation: hero-up .3s ease both;
}
.quick-subcategories button {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: rgba(255,255,255,.84);
    background: rgba(255,255,255,.09);
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.quick-subcategories button:hover, .quick-subcategories button.active {
    color: var(--forest);
    border-color: #9ff4d3;
    background: #9ff4d3;
    transform: translateY(-1px);
}
.hero.has-subcategories { height: auto; min-height: max(760px, 96svh); padding-block: 45px; }

.hero-business-results {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 25px;
    padding: 20px max(24px, calc((100vw - var(--shell)) / 2)) 0;
    border-top: 1px solid rgba(255,255,255,.2);
}
.mini-business-grid { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; touch-action: pan-y; user-select: none; }
.mini-business-grid::-webkit-scrollbar { display: none; }
.mini-business-grid.is-dragging { cursor: grabbing; }
.mini-business-track { display: flex; width: max-content; }
.mini-business-set { display: flex; flex: 0 0 auto; gap: 12px; padding-right: 12px; }
.mini-business-card {
    width: 132px;
    min-height: 172px;
    display: flex;
    flex: 0 0 132px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255,255,255,.95);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mini-business-card:hover, .mini-business-card:focus-visible { transform: translateY(-4px); border-color: #9ff4d3; box-shadow: var(--shadow-sm); outline: none; }
.mini-business-card > img { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 15px; object-fit: cover; background: #edf2ef; }
.mini-business-copy { width: 100px; min-width: 0; text-align: center; }
.mini-business-copy > span { display: block; overflow: hidden; color: var(--green); font-size: .58rem; font-weight: 850; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.mini-business-copy h3 { margin: 3px 0 4px; overflow: hidden; font-size: .82rem; line-height: 1.12; text-overflow: ellipsis; white-space: nowrap; }
.mini-business-copy p { margin: 0; overflow: hidden; color: var(--ink-soft); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-business-copy p i { margin-right: 4px; color: var(--green); }
.hero-results-state { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; border: 1px dashed var(--line); border-radius: 18px; color: var(--ink-soft); background: #fbfcfb; text-align: center; }
.hero-results-state[hidden] { display: none !important; }
.hero-results-state p { margin: 0; }
.hero-results-state i { color: var(--green); font-size: 1.2rem; }
.hero-results-state .state-spinner { border-color: rgba(13,48,39,.12); border-top-color: var(--green); }
.hero-results-state.is-error { color: #8f4438; border-color: #f0d6d1; background: #fff9f8; }

.hero-scroll {
    width: fit-content;
    margin: 25px auto 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--forest);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-scroll i { animation: bounce 1.8s ease infinite; }
@keyframes bounce { 50% { transform: translateY(5px); } }

.section-intro { max-width: 700px; margin-inline: auto; }
.centered { text-align: center; }
.section-intro h2, .section-heading h2 {
    margin: 8px 0 14px;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.05em;
}
.section-intro p, .section-heading > p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.benefits { padding-block: 116px 128px; }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 58px;
}

.benefit-card {
    min-height: 245px;
    padding: 25px 22px;
    border: 1px solid #e7ebe7;
    border-radius: var(--radius-md);
    background: var(--white);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.benefit-card:hover { transform: translateY(-7px); border-color: #c8ddd4; box-shadow: var(--shadow-sm); }

.benefit-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--forest);
    background: #e8f7f1;
    font-size: 1.16rem;
}

.benefit-card:nth-child(2) .benefit-icon, .benefit-card:nth-child(5) .benefit-icon { color: #1766a8; background: var(--sky); }
.benefit-card:nth-child(3) .benefit-icon { color: #a86617; background: #fff4dd; }
.benefit-card h3 { margin: 25px 0 8px; font-size: 1.06rem; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.explore-section {
    position: relative;
    overflow: hidden;
    padding-block: 114px 124px;
    background: var(--cream);
}

.explore-section::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -230px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 137, 232, .1), transparent 70%);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
    align-items: end;
    gap: 50px;
    margin-bottom: 48px;
}

.section-heading h2 { margin-bottom: 0; }

.map-experience {
    display: grid;
    grid-template-columns: 255px minmax(430px, 1fr) 245px;
    min-height: 615px;
    border: 1px solid rgba(27, 71, 57, .12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.neighborhood-panel, .selection-panel { padding: 25px 20px; background: rgba(255, 255, 255, .98); }
.neighborhood-panel { border-right: 1px solid var(--line); }
.selection-panel { border-left: 1px solid var(--line); }

.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading span:first-child { color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.panel-heading h3 { margin: 2px 0 0; font-size: 1.1rem; }
.panel-count {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #1766a8;
    background: var(--sky);
    font-size: .83rem;
    font-weight: 900;
}

.neighborhood-search-wrap { position: relative; margin: 20px 0 13px; }
.neighborhood-search { position: relative; display: block; margin: 0; }
.neighborhood-search i { position: absolute; left: 13px; top: 50%; color: #7b8882; transform: translateY(-50%); font-size: .8rem; }
.neighborhood-search input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #f9fbf9;
    font-size: .85rem;
}
.neighborhood-search input:focus { border-color: #68b99b; outline: 3px solid rgba(33, 161, 121, .13); }
.street-suggestions {
    position: absolute;
    z-index: 750;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #cddbd5;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 16px 35px rgba(13, 48, 39, .18);
}
.street-suggestion {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.street-suggestion:hover, .street-suggestion:focus-visible, .street-suggestion.is-active { background: #eaf7f2; outline: none; }
.street-suggestion.is-unassigned span { color: #9a6617; }
.street-suggestion strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.street-suggestion span { color: var(--ink-soft); font-size: .66rem; }
.street-search-status { min-height: 0; margin: 6px 2px 0; color: var(--ink-soft); font-size: .67rem; line-height: 1.35; }
.street-search-status:empty { display: none; }

.mobile-neighborhood-select { display: none; }

.neighborhood-list {
    height: 485px;
    padding-right: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c7d2cc transparent;
}

.neighborhood-item {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.neighborhood-item:hover { background: #f2f7f4; }
.neighborhood-item.is-selected { border-color: #b4d9cb; background: #e9f7f2; }
.neighborhood-item.is-selected .neighborhood-check { color: var(--white); background: var(--green); border-color: var(--green); }
.neighborhood-item.is-dimmed:not(.is-selected) { opacity: .56; }
.neighborhood-color { width: 8px; height: 30px; border-radius: 8px; background: var(--neighborhood-color, #6ea8ff); }
.neighborhood-name { overflow: hidden; font-size: .78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.neighborhood-meta { display: block; color: #84908b; font-size: .68rem; font-weight: 600; }
.neighborhood-check { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #d4ddd8; border-radius: 7px; color: transparent; font-size: .65rem; }

.leaflet-overlay-pane path.neighborhood-polygon.is-locating {
    transform-box: fill-box;
    transform-origin: center;
    animation: neighborhood-locate .38s ease-in-out 4;
}
@keyframes neighborhood-locate {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 196, 61, 0)); opacity: 1; transform: scale(1); }
    50% { filter: drop-shadow(0 0 9px rgba(255, 196, 61, .95)); opacity: .38; transform: scale(1.018); }
}

.map-column { position: relative; min-width: 0; display: flex; flex-direction: column; background: #d9e8ee; }
.map-toolbar {
    position: absolute;
    z-index: 500;
    top: 17px;
    left: 17px;
    right: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.map-toolbar > div, .map-toolbar button {
    min-height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(20, 54, 43, .12);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.map-toolbar strong { font-size: .77rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(33, 161, 121, .13); }
.map-toolbar button { color: var(--ink); cursor: pointer; font-size: .76rem; font-weight: 800; }

#huelva-map { flex: 1; min-height: 615px; z-index: 1; background: #d9e8ee; }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom { margin: 75px 0 0 17px !important; border: 0 !important; box-shadow: 0 9px 25px rgba(15, 47, 38, .16) !important; }
.leaflet-control-zoom a { color: var(--forest) !important; border: 0 !important; }
.leaflet-tooltip.neighborhood-tooltip {
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(20, 43, 36, .2);
}
.neighborhood-tooltip strong, .neighborhood-tooltip span { display: block; }
.neighborhood-tooltip span { color: var(--ink-soft); font-size: .75rem; }

.map-attribution-note {
    position: absolute;
    z-index: 500;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    font-size: .72rem;
    font-weight: 750;
    transform: translateX(-50%);
    pointer-events: none;
}

.selection-panel { display: flex; flex-direction: column; justify-content: center; }
.selection-empty { text-align: center; }
.selection-pin {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 22px;
    color: var(--green);
    background: #e9f7f2;
    font-size: 1.55rem;
    transform: rotate(-4deg);
}
.selection-empty h3, .selection-active h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; }
.selection-empty p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.selection-active { width: 100%; }
.selected-chips { max-height: 145px; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; overflow-y: auto; }
.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 0;
    border-radius: 999px;
    color: var(--forest);
    background: #e8f7f1;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}

.selection-stats { margin: 21px 0; }
.selection-stats div { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #edf0ed; }
.selection-stats dt { color: var(--ink-soft); font-size: .76rem; font-weight: 650; }
.selection-stats dd { margin: 0; font-size: 1.15rem; font-weight: 900; }
.selection-panel .button { min-height: 46px; padding-inline: 12px; font-size: .78rem; }
.text-button { display: flex; align-items: center; gap: 7px; margin: 14px auto 0; padding: 4px; border: 0; color: var(--ink-soft); background: transparent; font-size: .75rem; font-weight: 750; cursor: pointer; }
.map-error { margin-top: 16px; padding: 14px 18px; border-radius: 14px; color: #864b13; background: #fff3df; }

.business-section { padding-block: 120px; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.business-card {
    overflow: hidden;
    border: 1px solid #e5eae6;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 10px 35px rgba(19, 44, 36, .06);
    transition: transform .24s ease, box-shadow .24s ease;
}
.business-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.business-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eaf0ec; }
.business-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.business-card:hover .business-card-media > img { transform: scale(1.035); }
.business-badge { position: absolute; top: 13px; left: 13px; padding: 6px 9px; border-radius: 999px; color: var(--forest); background: rgba(255,255,255,.92); font-size: .7rem; font-weight: 850; box-shadow: var(--shadow-sm); }
.business-card-body { padding: 20px; }
.business-card-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.business-card h3 { margin: 0; font-size: 1.22rem; }
.business-card-category { margin: 4px 0 0; color: var(--ink-soft); font-size: .84rem; }
.rating { flex: 0 0 auto; color: #91621d; font-size: .8rem; font-weight: 850; }
.rating i { color: #f0ad36; }
.business-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; color: var(--ink-soft); font-size: .78rem; }
.business-meta i { margin-right: 5px; color: var(--green); }
.business-card-link { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid #edf0ed; color: var(--forest); text-decoration: none; font-size: .84rem; font-weight: 850; }
.business-card-link i { transition: transform .2s ease; }
.business-card-link:hover i { transform: translateX(4px); }

.content-state { display: grid; place-items: center; min-height: 290px; padding: 42px; border: 1px dashed #cbd6d0; border-radius: var(--radius-md); color: var(--ink-soft); text-align: center; background: #fbfcfb; }
.content-state > span:not(.state-spinner) { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; color: var(--green); background: #e9f7f2; font-size: 1.35rem; }
.content-state h3 { margin: 14px 0 3px; color: var(--ink); }
.content-state p { margin: 0; }
.text-link { margin-top: 14px; color: var(--forest); font-weight: 850; text-decoration: none; }
.content-state.is-error { border-color: #f0d6d1; color: #8f4438; background: #fff9f8; }

.products-section { padding-block: 115px; overflow: hidden; background: var(--forest); color: var(--white); }
.products-section .section-heading { margin-bottom: 40px; }
.products-section .eyebrow { color: #8de8c5; }
.products-section .section-heading p { color: rgba(255,255,255,.66); }
.carousel-actions { display: flex; justify-content: flex-end; gap: 9px; }
.carousel-actions button { width: 47px; height: 47px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: var(--white); background: rgba(255,255,255,.08); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.carousel-actions button:hover { background: rgba(255,255,255,.17); transform: scale(1.04); }
.compact-state { min-height: 210px; border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); }
.state-spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.16); border-top-color: #8de8c5; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 292px); gap: 18px; overflow-x: auto; padding: 5px 2px 20px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-color: rgba(255,255,255,.3) transparent; }
.product-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-md); background: #184337; scroll-snap-align: start; }
.product-image { aspect-ratio: 1.15 / 1; overflow: hidden; background: #244d42; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-body { padding: 18px; }
.product-business { color: #8de8c5; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.product-body h3 { min-height: 2.7em; margin: 7px 0 13px; font-size: 1.08rem; line-height: 1.35; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price { font-size: 1.08rem; font-weight: 900; }
.product-link { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #8de8c5; text-decoration: none; }

.how-section { padding-block: 125px 135px; }
.how-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; margin: 65px 0 0; padding: 0; list-style: none; }
.how-grid::before { content: ""; position: absolute; top: 41px; left: 18%; right: 18%; border-top: 1px dashed #b8ccc3; }
.how-grid li { position: relative; padding: 0 28px; text-align: center; }
.step-number { position: absolute; top: -7px; right: calc(50% - 55px); color: #bdcac4; font-size: .68rem; font-weight: 900; letter-spacing: .05em; }
.step-icon { position: relative; z-index: 1; width: 82px; height: 82px; display: grid; place-items: center; margin: auto; border: 8px solid var(--white); border-radius: 27px; color: var(--forest); background: #e9f7f2; box-shadow: 0 0 0 1px #dce8e2; font-size: 1.35rem; }
.how-grid li:nth-child(2) .step-icon { color: #1766a8; background: var(--sky); }
.how-grid li:nth-child(3) .step-icon { color: #a55a61; background: #fff0f1; }
.how-grid h3 { margin: 25px 0 8px; font-size: 1.18rem; }
.how-grid p { max-width: 310px; margin: auto; color: var(--ink-soft); font-size: .92rem; }

.merchant-section { padding-bottom: 125px; }
.merchant-card { position: relative; min-height: 470px; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 40px; color: var(--white); background: linear-gradient(135deg, #0d3027, #175947); box-shadow: var(--shadow-md); }
.merchant-card::after { content: ""; position: absolute; right: -130px; bottom: -190px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.merchant-visual { position: relative; min-height: 470px; overflow: hidden; background: radial-gradient(circle at 46% 44%, rgba(91, 225, 177, .2), transparent 50%); }
.street-card { position: absolute; min-width: 145px; display: flex; align-items: center; gap: 11px; padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 17px; background: rgba(255,255,255,.1); box-shadow: 0 20px 60px rgba(0,0,0,.15); backdrop-filter: blur(12px); font-size: .8rem; font-weight: 800; }
.street-card i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: #9ff4d3; }
.street-card-one { top: 92px; left: 18%; transform: rotate(-4deg); }
.street-card-two { top: 210px; left: 42%; transform: rotate(4deg); }
.street-card-three { top: 326px; left: 14%; transform: rotate(-2deg); }
.merchant-map-pin { position: absolute; left: 49%; top: 47%; width: 76px; height: 76px; display: grid; place-items: center; border: 8px solid rgba(255,255,255,.22); border-radius: 50% 50% 50% 12px; color: var(--white); background: var(--blue); box-shadow: 0 18px 50px rgba(0,0,0,.25); font-size: 1.6rem; transform: rotate(-45deg); }
.merchant-map-pin i { transform: rotate(45deg); }
.merchant-copy { position: relative; z-index: 1; align-self: center; max-width: 580px; padding: 65px 72px 65px 28px; }
.eyebrow-light { color: #9ff4d3; }
.merchant-copy h2 { margin: 12px 0 20px; font-size: clamp(2.4rem, 4vw, 4.1rem); line-height: 1.02; letter-spacing: -.055em; }
.merchant-copy > p { max-width: 530px; margin: 0 0 30px; color: rgba(255,255,255,.75); font-size: 1.02rem; }
.merchant-note { display: block; margin-top: 18px; color: rgba(255,255,255,.6); font-size: .78rem; }
.merchant-note i { margin-right: 6px; color: #8de8c5; }

.site-footer { padding-top: 75px; color: #b7c6c0; background: #081d17; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 65px; padding-bottom: 62px; }
.footer-brand img { width: 195px; height: auto; aspect-ratio: 482 / 151; object-fit: contain; padding: 9px; border-radius: 12px; background: var(--white); }
.footer-brand p { max-width: 350px; }
.footer-grid h2 { margin: 0 0 18px; color: var(--white); font-size: .87rem; }
.footer-grid a, .footer-grid > div:not(:first-child) p { display: block; margin: 9px 0; color: #9eafa8; font-size: .84rem; text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-place i { margin-right: 7px; color: #8de8c5; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #71827c; font-size: .76rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
    .main-nav { gap: 16px; }
    .main-nav a { font-size: .83rem; }
    .nav-actions { gap: 10px; }
    .map-experience { grid-template-columns: 230px minmax(420px, 1fr); }
    .selection-panel { grid-column: 1 / -1; min-height: 0; border-top: 1px solid var(--line); border-left: 0; }
    .selection-empty { max-width: 500px; margin: auto; }
    .selection-active { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; align-items: end; }
    .selection-active .eyebrow, .selection-active h3 { grid-column: 1 / -1; }
    .selected-chips { align-self: start; max-height: none; margin: 4px 0; }
    .selection-stats { margin: 0; }
    .selection-active .button, .selection-active .text-button { grid-column: 2; }
    .benefit-grid { grid-template-columns: repeat(3, 1fr); }
    .benefit-card:nth-child(4), .benefit-card:nth-child(5) { min-height: 210px; }
}

@media (max-width: 960px) {
    :root { --header-height: 70px; }
    .brand { width: 172px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        z-index: 999;
        inset: var(--header-height) 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px 28px;
        color: var(--ink);
        background: rgba(255,255,255,.98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        transform: translateY(-125%);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
    }
    .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 13px 0; border-bottom: 1px solid #edf0ed; font-size: .96rem; }
    .nav-actions { display: none; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-header:not(.is-scrolled) .nav-toggle { color: var(--white); }
    .site-header.is-scrolled .nav-toggle { background: #edf3ef; }
    .hero { min-height: 700px; height: 92svh; }
    .hero:has(.hero-business-results) { min-height: 0; height: auto; padding: calc(var(--header-height) + 30px) 0 44px; }
    .hero h1 { max-width: 700px; }
    .section-heading { grid-template-columns: 1fr; gap: 16px; }
    .map-experience { grid-template-columns: 1fr; }
    .neighborhood-panel { border-right: 0; border-bottom: 1px solid var(--line); }
    .neighborhood-list { display: none; }
    .neighborhood-search-wrap { margin-bottom: 12px; }
    .mobile-neighborhood-select { display: grid; gap: 7px; margin-top: 17px; color: var(--ink-soft); font-size: .72rem; font-weight: 800; }
    .mobile-neighborhood-select select { width: 100%; height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); }
    #huelva-map { min-height: 540px; }
    .selection-panel { grid-column: auto; }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .merchant-card { grid-template-columns: .75fr 1.25fr; }
    .merchant-copy { padding-right: 45px; }
    .footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
    .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 720px) {
    .section-shell, .nav-shell { width: min(calc(100% - 30px), var(--shell)); }
    .site-header.is-scrolled .brand { box-shadow: none; }
    .hero { min-height: 720px; height: auto; padding: 115px 0 90px; }
    .hero-media { background-position: 58% center; }
    .hero::after { background: linear-gradient(90deg, rgba(6,24,20,.82), rgba(6,24,20,.45)), linear-gradient(0deg, rgba(6,24,20,.7), transparent 58%); }
    .hero-content { padding-top: 0; }
    .hero h1 { margin-top: 17px; font-size: clamp(3.25rem, 15vw, 5rem); }
    .hero-search { grid-template-columns: auto 1fr; min-height: 66px; padding: 6px; }
    .hero-search button { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
    .hero-search input { height: 52px; font-size: .98rem; }
    .quick-categories { flex-wrap: nowrap; width: calc(100vw - 15px); padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
    .quick-categories button { flex: 0 0 auto; }
    .quick-subcategories { flex-wrap: nowrap; width: calc(100vw - 15px); padding-right: 20px; overflow-x: auto; scrollbar-width: none; }
    .quick-subcategories button { flex: 0 0 auto; }
    .hero.has-subcategories, .hero:has(.hero-business-results) { min-height: 0; height: auto; padding: calc(var(--header-height) + 26px) 0 42px; }
    .hero-business-results { margin-top: 18px; }
    .mini-business-card { width: 124px; flex-basis: 124px; min-height: 166px; }
    .benefits, .business-section, .how-section { padding-block: 90px; }
    .benefit-grid { grid-template-columns: 1fr; margin-top: 42px; }
    .benefit-card, .benefit-card:nth-child(4), .benefit-card:nth-child(5) { min-height: auto; }
    .explore-section, .products-section { padding-block: 88px; }
    .map-experience { border-radius: 24px; }
    .map-toolbar > div { display: none; }
    .map-toolbar { justify-content: flex-end; }
    #huelva-map { min-height: 500px; }
    .leaflet-control-zoom { margin-top: 20px !important; }
    .map-attribution-note { bottom: 28px; white-space: nowrap; }
    .selection-active { display: block; }
    .selection-active .button, .selection-active .text-button { width: 100%; }
    .business-grid { grid-template-columns: 1fr; }
    .products-section .section-heading { grid-template-columns: 1fr auto; }
    .carousel-actions { grid-column: 2; grid-row: 1; align-self: end; }
    .product-track { width: calc(100vw - 15px); grid-auto-columns: 78vw; padding-right: 30px; }
    .how-grid { grid-template-columns: 1fr; gap: 46px; }
    .how-grid::before { top: 45px; bottom: 45px; left: 41px; right: auto; border-top: 0; border-left: 1px dashed #b8ccc3; }
    .how-grid li { min-height: 100px; padding: 0 0 0 110px; text-align: left; }
    .step-icon { position: absolute; top: 0; left: 0; margin: 0; }
    .step-number { top: -9px; left: 69px; right: auto; }
    .how-grid h3 { margin-top: 0; }
    .how-grid p { margin: 0; }
    .merchant-section { padding-bottom: 90px; }
    .merchant-card { min-height: 0; grid-template-columns: 1fr; border-radius: 28px; }
    .merchant-visual { min-height: 310px; }
    .merchant-copy { padding: 15px 28px 50px; }
    .street-card-one { top: 42px; left: 8%; }
    .street-card-two { top: 145px; left: 42%; }
    .street-card-three { top: 235px; left: 9%; }
    .merchant-map-pin { left: 51%; top: 40%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 7px; }
}

@media (max-width: 430px) {
    .brand { width: 155px; }
    .section-intro h2, .section-heading h2 { font-size: 2.45rem; }
    .hero h1 { font-size: 3.45rem; }
    .hero-content > p { font-size: 1rem; }
    .panel-heading { align-items: end; }
    #huelva-map { min-height: 450px; }
    .map-attribution-note { font-size: .64rem; }
    .products-section .section-heading { display: flex; align-items: end; }
    .carousel-actions button { width: 43px; height: 43px; }
    .merchant-visual { transform: scale(.9); margin: -20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
