/* ═══════════════════════════════════════════════════════════════════════
   All Home Plans page — hero gallery, filter chips, plan card grid, SEO band
   Speaks the community-page design language: cream ground, pine greens,
   Playfair display + Nunito Sans, 128px green rules.
   ═══════════════════════════════════════════════════════════════════════ */

.hh-plans-page {
    background: #F5F2EB;
}

/* ── Hero (community-style collage gallery) ── */

.hh-plans-hero {
    position: relative;
    background: #ffffff;
}
.hh-plans-hero--collage {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 8px;
    padding-right: 8px;
}

.hh-plans-hero__main {
    position: relative;
    min-height: 54vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #22263e; /* crossfade ground — white here would flash between slides */
}
.hh-plans-hero__slider,
.hh-plans-hero__slide {
    position: absolute;
    inset: 0;
}
.hh-plans-hero__slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}
.hh-plans-hero__slide.is-active {
    opacity: 1;
}
.hh-plans-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 38, 62, 0.18) 0%, rgba(34, 38, 62, 0.72) 100%);
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.hh-plans-hero--quiet .hh-plans-hero__overlay {
    opacity: 0; /* the gradient serves the title; past image 1 the photos run clean */
}
.hh-plans-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 120px 56px 56px max(24px, calc((100vw - 1420px) / 2 + 24px));
    transition: opacity 0.6s ease;
}
.hh-plans-hero--collage .hh-plans-hero__content {
    padding-left: 48px;
}
.hh-plans-hero--quiet .hh-plans-hero__content {
    opacity: 0; /* the title belongs to image 1; the gallery gets the room */
}
.hh-plans-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 600;
    color: #F5F2EB;
    margin: 0 0 10px;
    line-height: 1.08;
}
.hh-plans-hero__title::after {
    content: "";
    display: block;
    width: 128px;
    height: 3px;
    background: #277253;
    margin-top: 18px;
}
.hh-plans-hero__sub {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16.5px;
    color: rgba(245, 242, 235, 0.88);
    margin: 14px 0 0;
    max-width: 560px;
}

/* Arrows + counter */
.hh-plans-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(34, 38, 62, 0.35);
    color: #F5F2EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.hh-plans-hero__arrow:hover {
    background: rgba(34, 38, 62, 0.65);
    border-color: rgba(255, 255, 255, 0.8);
}
.hh-plans-hero__arrow--prev { left: 16px; }
.hh-plans-hero__arrow--next { right: 16px; }

.hh-plans-hero__counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(245, 242, 235, 0.85);
}

/* Queue: 2×2 upcoming tiles beside the stage */
.hh-plans-hero__queue {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 0;
}
.hh-plans-hero__tile {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}
.hh-plans-hero__tile,
.hh-plans-hero__tile-img {
    border-radius: 0 !important; /* guard against theme rounding */
}
.hh-plans-hero__tile-img {
    position: absolute;
    inset: 4px;
    background-size: cover;
    background-position: center;
    transition: opacity 0.25s ease, transform 0.35s ease;
}
.hh-plans-hero__tile:hover .hh-plans-hero__tile-img {
    transform: scale(1.05);
}
.hh-plans-hero__tile-img.is-swapping {
    opacity: 0;
}

@media (max-width: 1024px) {
    .hh-plans-hero--collage {
        display: block;
        padding-right: 0;
    }
    .hh-plans-hero__queue {
        display: none; /* swipe owns mobile */
    }
    .hh-plans-hero__arrow {
        display: none;
    }
}

/* ── Body / filter ── */

.hh-plans-body__inner {
    max-width: 1420px;
    margin: 0 auto;
    padding: 44px 24px 72px;
}

.hh-plans-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 36px;
    padding: 22px 24px;
    background: #FBFAF6;
    border: 1px solid #e4e7db;
    border-radius: 14px;
    margin-bottom: 34px;
}
.hh-plans-filter__group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.hh-plans-filter__label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a9184;
    margin-right: 4px;
    width: 100%;
}
.hh-plans-chip {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #4a5046;
    background: #fff;
    border: 1px solid #d8dbcf;
    border-radius: 999px;
    padding: 7px 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hh-plans-chip:hover {
    border-color: #277253;
    color: #1e5c41;
}
.hh-plans-chip.is-active {
    background: #277253;
    border-color: #277253;
    color: #fff;
}
.hh-plans-select {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #4a5046;
    background: #fff;
    border: 1px solid #d8dbcf;
    border-radius: 999px;
    padding: 7px 34px 7px 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23277253' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}
.hh-plans-select:hover,
.hh-plans-select:focus {
    border-color: #277253;
    outline: none;
}

.hh-plans-filter__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.hh-plans-filter__count {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6b7264;
}
.hh-plans-filter__clear {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e5c41;
    background: none;
    border: 0;
    border-bottom: 1.5px solid #1e5c41;
    padding: 0 0 1px;
    cursor: pointer;
}

/* ── Grid + cards (community plan-card language) ── */

.hh-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.hh-plans-item {
    display: flex; /* the card anchor stretches to the full cell height */
}
.hh-plans-item[hidden] {
    display: none;
}

.hh-plan-card {
    display: flex;
    flex-direction: column;
    width: 100%; /* with .hh-plans-item{display:flex}, cards fill the cell exactly */
    background: #fff;
    border: 1px solid #e4e7db;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hh-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(30, 92, 65, 0.14);
}
.hh-plan-card__media {
    display: block;
    height: 265px;
    background: #eceade;
}
.hh-plan-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hh-plan-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 21px 21px;
}
.hh-plan-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 23px;
    font-weight: 600;
    color: #1C1C1C;
}
.hh-plan-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.hh-plan-card__spec {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #277253;
}
.hh-plan-card__elevs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    min-height: 25px; /* one chip row — empty cards hold the same footprint */
}
.hh-plan-card__body {
    flex: 1; /* bodies stretch, so grid rows read as one clean line */
}
.hh-plan-card__elev {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7264;
    background: #f3f4ee;
    border: 1px solid #e4e7db;
    border-radius: 5px;
    padding: 2px 7px;
}

.hh-plans-empty {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    color: #6b7264;
    text-align: center;
    padding: 48px 0 12px;
    margin: 0;
}

/* ── SEO band ── */

.hh-plans-seo {
    background: #fff;
    border-top: 1px solid #e4e7db;
}
.hh-plans-seo__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 32px 72px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    color: #4a5046;
}
.hh-plans-seo__inner h2,
.hh-plans-seo__inner h3 {
    font-family: 'Playfair Display', serif;
    color: #1C1C1C;
    line-height: 1.2;
}
.hh-plans-seo__inner h2 {
    font-size: 28px;
    margin: 1.6em 0 0.6em;
}
.hh-plans-seo__inner h2:first-child {
    margin-top: 0;
}
.hh-plans-seo__inner h3 {
    font-size: 21px;
    margin: 1.4em 0 0.5em;
}
.hh-plans-seo__inner a {
    color: #1e5c41;
}

/* ── Responsive ── */

@media (max-width: 1200px) {
    .hh-plans-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .hh-plans-grid { grid-template-columns: repeat(2, 1fr); }
    .hh-plans-filter__meta { margin-left: 0; width: 100%; }
}
@media (max-width: 580px) {
    .hh-plans-grid { grid-template-columns: 1fr; }
    .hh-plans-hero__main { min-height: 42vh; }
    .hh-plans-hero__content { padding: 96px 20px 40px; }
    .hh-plans-body__inner { padding: 32px 20px 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .hh-plans-hero__slide { transition: none; }
    .hh-plan-card { transition: none; }
}