:root {
    --beach-ink: #102536;
    --beach-navy: #12344d;
    --beach-sea: #0e9fb0;
    --beach-lagoon: #67d7d3;
    --beach-coral: #ef6f61;
    --beach-sun: #f6b85f;
    --beach-sand: #f4eadb;
    --beach-shell: #fffaf2;
}

body.is-home {
    background: #fffaf2;
    color: var(--beach-ink);
}

.beach-home {
    overflow: hidden;
}

.beach-hero {
    min-height: calc(100vh - 74px);
    padding: 38px 0 28px;
    background:
        linear-gradient(90deg, rgba(16,37,54,.88) 0%, rgba(16,37,54,.70) 36%, rgba(16,37,54,.18) 68%, rgba(16,37,54,.05) 100%),
        url('/static/img/home/beach-guide-hero.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}

.beach-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 640px) minmax(260px, 1fr);
    gap: 28px;
    align-items: end;
}

.beach-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.38);
    background: rgba(255,255,255,.12);
    color: #ffdfad;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.beach-hero h1 {
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(2.45rem, 6vw, 5.8rem);
    line-height: .94;
    font-weight: 800;
    max-width: 760px;
}

.beach-hero h1 span {
    display: block;
    color: #9cf0ee;
}

.beach-lead {
    max-width: 620px;
    margin: 0 0 24px;
    color: rgba(255,255,255,.88);
    font-size: 1.08rem;
    line-height: 1.72;
}

.beach-search-card {
    max-width: 620px;
    padding: 12px;
    background: rgba(255,255,255,.96);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.search-hero {
    position: relative;
    z-index: 50;
}

.search-hero input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px 0 52px;
    border: 1px solid #d9e7e8;
    border-radius: 7px;
    color: var(--beach-ink);
    background: #fff;
    font: 600 1rem/1.2 Inter, sans-serif;
    outline: none;
}

.search-hero input:focus {
    border-color: var(--beach-sea);
    box-shadow: 0 0 0 4px rgba(14,159,176,.14);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--beach-sea);
    font-size: 1.1rem;
}

.hero-search-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1000;
    display: none;
    max-height: 370px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d9e7e8;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(16,37,54,.22);
}

.sd-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    color: var(--beach-ink);
    text-decoration: none;
    border-bottom: 1px solid #eef4f4;
}

.sd-item:hover,
.sd-item.sd-active { background: #ebfbfb; }
.sd-icon { width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center; background: #dff6f5; }
.sd-title { font-size: .92rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-slug { margin-top: 2px; font-size: .72rem; color: #66808a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-info { min-width: 0; }
.sd-empty { padding: 18px; color: #66808a; text-align: center; }

.beach-hero-routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 520px;
    margin-top: 18px;
}

.beach-route-pill {
    min-height: 76px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.beach-route-pill strong {
    display: block;
    margin-bottom: 4px;
    font-size: .94rem;
}

.beach-route-pill span {
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    line-height: 1.35;
}

.beach-hero-side {
    align-self: stretch;
    display: grid;
    align-content: end;
    gap: 12px;
}

.beach-side-note {
    padding: 18px;
    background: rgba(255,250,242,.88);
    color: var(--beach-ink);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.beach-side-note b {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.beach-side-note p {
    margin: 0;
    color: #49626c;
    line-height: 1.55;
    font-size: .9rem;
}

.beach-page-band {
    padding: 54px 0;
}

.beach-band-dark {
    background: var(--beach-navy);
    color: #fff;
}

.beach-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.beach-section-head h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.6rem, 3vw, 2.65rem);
    line-height: 1.05;
}

.beach-section-head p {
    max-width: 470px;
    margin: 0;
    color: #5f747d;
    line-height: 1.6;
}

.beach-band-dark .beach-section-head p { color: rgba(255,255,255,.72); }

.beach-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 18px;
    margin-bottom: 28px;
}

.featured-card {
    display: block;
    min-height: 300px;
    padding: 28px;
    color: #fff;
    text-decoration: none;
    background:
        linear-gradient(120deg, rgba(16,37,54,.92), rgba(16,37,54,.52)),
        url('/static/img/home/beach-locations-bay.jpg') center/cover no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

.featured-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #102536;
    background: #9cf0ee;
    font-weight: 800;
    font-size: .76rem;
}

.featured-title {
    max-width: 560px;
    margin-bottom: 10px;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    line-height: 1.08;
    font-weight: 800;
}

.featured-desc {
    max-width: 520px;
    color: rgba(255,255,255,.80);
    line-height: 1.65;
}

.featured-visual { display: none; }
.featured-cta { display: inline-flex; margin-top: 18px; color: #ffdfad; font-weight: 800; }

.beach-map-panel {
    padding: 24px;
    background: #fff;
    border: 1px solid #e4ddd1;
    border-radius: 8px;
}

.beach-map-panel h3 {
    margin: 0 0 14px;
    color: var(--beach-ink);
    font-size: 1.25rem;
}

.beach-map-panel a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    color: var(--beach-ink);
    text-decoration: none;
    border-top: 1px solid #ece5d8;
}

.beach-map-panel a b { display: block; margin-bottom: 2px; }
.beach-map-panel a span:last-child { color: #6a7b82; font-size: .86rem; line-height: 1.4; }

.beach-scenarios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.beach-scene {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    background: #12344d;
}

.beach-scene:nth-child(1),
.beach-scene:nth-child(6) { grid-column: span 2; }

.beach-scene img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .45s ease;
}

.beach-scene::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16,37,54,.08) 20%, rgba(16,37,54,.88) 100%);
}

.beach-scene:hover img { transform: scale(1.05); }

.beach-scene div {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
}

.beach-scene b {
    display: block;
    font-size: 1.02rem;
    line-height: 1.18;
}

.beach-scene span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    line-height: 1.35;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 144px;
    padding: 18px;
    border: 1px solid #dfd7c9;
    border-radius: 8px;
    background: #fffaf2;
    color: var(--beach-ink);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--beach-coral);
    box-shadow: 0 14px 36px rgba(16,37,54,.10);
}

.category-icon { display: block; font-size: 1.65rem; margin-bottom: 10px; }
.category-name { font-size: .98rem; font-weight: 800; line-height: 1.2; }
.category-count { margin-top: 8px; color: #677980; font-size: .82rem; line-height: 1.38; }

.articles-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.article-home-card,
.recent-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.article-home-card {
    min-height: 154px;
    padding: 18px;
}

.article-home-card:hover,
.recent-card:hover { border-color: rgba(156,240,238,.55); }
.article-home-title { font-weight: 800; line-height: 1.28; }
.article-home-desc { margin-top: 8px; color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.5; }
.article-home-tag { display: inline-flex; margin-top: 12px; color: #ffdfad; font-size: .78rem; font-weight: 800; }

.recent-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.recent-card { padding: 16px; }
.recent-badge { display: inline-flex; margin-bottom: 8px; color: #9cf0ee; font-size: .72rem; font-weight: 800; }
.recent-title { font-weight: 800; line-height: 1.28; }
.recent-cat { display: block; margin-top: 9px; color: rgba(255,255,255,.65); font-size: .78rem; }

.btn-outline {
    border: 1px solid rgba(255,255,255,.28);
    background: transparent;
    color: #fff;
    border-radius: 7px;
    min-height: 42px;
    padding: 0 16px;
    font-weight: 800;
    cursor: pointer;
}

.beach-disclaimer {
    margin-top: 26px;
    padding: 16px 18px;
    border-left: 4px solid var(--beach-coral);
    background: #fff;
    color: #587078;
    line-height: 1.55;
    border-radius: 0 8px 8px 0;
}

.home-section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.home-section.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
    .beach-hero { min-height: auto; padding: 42px 0; }
    .beach-hero-grid,
    .beach-featured { grid-template-columns: 1fr; }
    .beach-hero-side { display: none; }
    .beach-scenarios,
    .categories-grid,
    .articles-home-grid,
    .recent-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .beach-hero { padding: 28px 0 30px; }
    .beach-hero h1 { font-size: 2.35rem; }
    .beach-hero-routes,
    .beach-scenarios,
    .categories-grid,
    .articles-home-grid,
    .recent-scroll { grid-template-columns: 1fr; }
    .beach-scene:nth-child(1),
    .beach-scene:nth-child(6) { grid-column: auto; }
    .beach-section-head { display: block; }
    .beach-section-head p { margin-top: 10px; }
    .featured-card { min-height: 250px; padding: 20px; }
}