/* PrimeNest - homepage components (hero through testimonials). Header, footer,
   navbar and search-bar have their own stylesheets and are not part of this file. */

/* ---- Hero (image + overlapping search card) ---- */

.home-hero {
    background:
        linear-gradient(180deg, rgba(15, 42, 71, 0.78) 0%, rgba(15, 42, 71, 0.4) 22%, rgba(15, 42, 71, 0.25) 55%, rgba(15, 42, 71, 0.65) 100%),
        url("../images/header-hero.jpg") center / cover no-repeat;
    padding: 10rem 1.5rem 8rem;
}

.home-hero__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.home-hero__title {
    margin: 0 0 0.75rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.home-hero__subtitle {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.home-hero__search-wrap {
    max-width: 1100px;
    margin: -5.5rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 5;
}

@media (max-width: 900px) {
    .home-hero {
        padding: 7rem 1.25rem 10rem;
    }

    .home-hero__title {
        font-size: 2rem;
    }

    .home-hero__search-wrap {
        margin-top: -7.5rem;
    }
}

@media (max-width: 420px) {
    .home-hero {
        padding-bottom: 13rem;
    }

    .home-hero__search-wrap {
        margin-top: -10rem;
    }
}

/* ---- "Get started" quick links (demo content) ---- */

.home-quicklinks {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.home-quicklinks__heading {
    margin: 0 0 1.75rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-quicklinks__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home-quicklinks__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 240px;
    padding: 1rem 1rem 1.5rem;
    background: #f7f9fb;
    border-radius: 12px;
    text-decoration: none;
    color: #1a1a1a;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-quicklinks__photo {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
}

.home-quicklinks__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-quicklinks__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 42, 71, 0.12);
}

.home-quicklinks__label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 640px) {
    .home-quicklinks__card {
        width: calc(50% - 0.75rem);
        padding: 1.5rem 0.75rem;
    }

    .home-quicklinks__photo {
        height: 130px;
    }
}

/* ---- "Why PrimeNest" about strip + insights scroller (reused for the Buy,
   Rent, and Post-Property panels - demo copy) ---- */

.home-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4.5rem;
}

.home-about__hero {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.home-about__media {
    flex: 1 1 45%;
    min-width: 0;
}

.home-about__media img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

.home-about__content {
    flex: 1 1 55%;
    min-width: 0;
    padding-top: 1rem;
}

.home-about__eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-about__heading {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.home-about__text {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5a68;
    max-width: 46ch;
}

.home-about__cta {
    display: inline-block;
    background: var(--color-blue-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
}

/* Insights card - overlaps the bottom of the hero image on desktop, like the 99acres
   reference. The image (480px) is deliberately taller than the text column so the
   overlap only ever lands on empty space under the image, never on the CTA button. */

.home-about__insights {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: -100px auto 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 42, 71, 0.14);
    padding: 1.4rem 1.75rem;
}

.home-about__insights-intro {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.home-about__insights-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.home-about__insights-subheading {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--color-text-muted);
}

.home-about__insights-all {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-blue-primary);
    text-decoration: none;
}

.home-about__insights-empty {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.home-about__insights-scroller-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* 2-row grid, flowing into extra columns off to the right; the arrow scrolls
   sideways to reveal them - mirrors the reference's 2x2 tile block + next arrow. */
.home-about__insights-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 168px;
    gap: 0.8rem 1.1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.home-about__insights-grid::-webkit-scrollbar {
    display: none;
}

.home-about__insight-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.home-about__insight-card img {
    display: block;
    width: 100%;
    height: 74px;
    object-fit: cover;
    border-radius: 7px;
}

.home-about__insight-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.28;
    color: #1a1a1a;
}

.home-about__insight-date {
    font-size: 0.68rem;
    color: var(--color-text-muted);
}

.home-about__insights-next {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e3e8ee;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
}

.home-about__insights-next:hover {
    background: #f0f4f8;
}

@media (max-width: 900px) {
    .home-about {
        padding: 2.5rem 1.5rem 3rem;
    }

    .home-about__hero {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
    }

    .home-about__media img {
        height: 220px;
    }

    .home-about__content {
        padding-top: 0;
    }

    .home-about__heading {
        font-size: 1.5rem;
    }

    .home-about__text {
        max-width: none;
    }

    .home-about__insights {
        margin-top: 1.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        box-shadow: none;
        border: 1px solid #eef1f4;
    }

    .home-about__insights-intro {
        flex: none;
    }
}

@media (max-width: 480px) {
    .home-about__insights-grid {
        grid-auto-columns: 130px;
    }
}

/* ---- "Latest listings" carousel (demo data) ---- */

.home-listings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.home-listings__panel {
    background: #eef4fb;
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
}

.home-listings__intro {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.home-listings__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
    box-shadow: 0 4px 10px rgba(15, 42, 71, 0.08);
}

.home-listings__heading {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-listings__subheading {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.home-listings__scroller-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-listings__scroller {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.home-listings__scroller::-webkit-scrollbar {
    display: none;
}

.home-listings__card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7edf3;
    padding: 1rem 1.1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(15, 42, 71, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-listings__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 42, 71, 0.12);
}

.home-listings__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffe9b3;
    color: #8a5b00;
    line-height: 1;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.5rem 1.15rem 0.5rem 0.85rem;
    border-top-left-radius: 12px;
    clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.home-listings__card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.1rem;
}

.home-listings__thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.home-listings__card-head-text {
    min-width: 0;
}

.home-listings__project {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-listings__locality {
    margin: 0.15rem 0 0;
    font-size: 0.76rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-listings__price {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-listings__tag {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.home-listings__tag--buy {
    background: #e3f3ea;
    color: #1f7a4d;
}

.home-listings__tag--rent {
    background: #e8f0fb;
    color: var(--color-blue-primary);
}

.home-listings__specs {
    margin: 0;
    font-size: 0.8rem;
    color: #4a5a68;
}

/* Ticket-stub perforation: a dashed line spanning the card's full bleed width,
   with two half-circle "punches" (colored to match the panel behind the card)
   sitting on the card's left/right edges - the classic ticket-stub cutout look. */
.home-listings__ticket-divider {
    position: relative;
    display: block;
    height: 0;
    margin: 0.2rem -1.1rem 0.55rem;
    border-top: 1.5px dashed #d7dfe8;
}

.home-listings__ticket-divider::before,
.home-listings__ticket-divider::after {
    content: "";
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef4fb;
}

.home-listings__ticket-divider::before {
    left: -9px;
}

.home-listings__ticket-divider::after {
    right: -9px;
}

.home-listings__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.home-listings__verified {
    font-size: 0.7rem;
    font-weight: 600;
    color: #1f7a4d;
}

.home-listings__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

.home-listings__next {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbe4ee;
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
}

.home-listings__next:hover {
    background: #f0f4f8;
}

@media (max-width: 900px) {
    .home-listings__panel {
        padding: 1.5rem 1.25rem;
    }

    .home-listings__card {
        flex-basis: 220px;
    }
}

@media (max-width: 480px) {
    .home-listings__icon {
        width: 40px;
        height: 40px;
    }

    .home-listings__heading {
        font-size: 1.15rem;
    }
}

/* One card fills the view at a time; the arrow overlays on top of the card
   instead of taking up its own column - fine on this narrow a screen. */
@media (max-width: 640px) {
    .home-listings__scroller-wrap {
        position: relative;
    }

    .home-listings__card {
        flex: 0 0 100%;
    }

    .home-listings__next {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        z-index: 3;
        box-shadow: 0 4px 12px rgba(15, 42, 71, 0.2);
    }
}

/* ---- "Handpicked projects" carousel (demo data) ---- */

.home-projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.home-projects__intro {
    margin-bottom: 1.5rem;
}

.home-projects__heading {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-projects__subheading {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.home-projects__scroller-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-projects__scroller {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
}

.home-projects__scroller::-webkit-scrollbar {
    display: none;
}

.home-projects__card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: block;
    background: #fff;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(15, 42, 71, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-projects__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 42, 71, 0.12);
}

.home-projects__media {
    position: relative;
}

.home-projects__media img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.home-projects__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: var(--color-red-accent);
    color: #fff;
    line-height: 1;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.45rem 1.05rem 0.45rem 0.8rem;
    border-top-left-radius: 14px;
    clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.home-projects__badge {
    position: absolute;
    left: 16px;
    bottom: -24px;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-blue-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 42, 71, 0.18);
}

.home-projects__body {
    padding: 2.1rem 1.1rem 1.1rem;
}

.home-projects__name {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-projects__meta {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #4a5a68;
}

.home-projects__price {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-projects__next {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbe4ee;
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
}

.home-projects__next:hover {
    background: #f0f4f8;
}

@media (max-width: 900px) {
    .home-projects__card {
        flex-basis: 250px;
    }
}

/* One card fills the view at a time; the arrow overlays on top of the card
   instead of taking up its own column - matches the listings carousel. */
@media (max-width: 640px) {
    .home-projects__scroller-wrap {
        position: relative;
    }

    .home-projects__card {
        flex: 0 0 100%;
    }

    .home-projects__next {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        z-index: 3;
        box-shadow: 0 4px 12px rgba(15, 42, 71, 0.2);
    }
}

/* ---- "Top cities" carousel (demo data) ---- */

.home-cities {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.home-cities__intro {
    margin-bottom: 1.75rem;
}

.home-cities__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-cities__heading {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-cities__scroller-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 2-row grid, flowing into extra columns off to the right; the arrow scrolls
   sideways to reveal them - same pattern as the insights/projects carousels. */
.home-cities__grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 1.75rem 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
}

.home-cities__grid::-webkit-scrollbar {
    display: none;
}

.home-cities__tile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

.home-cities__tile img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.home-cities__tile-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.home-cities__name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-cities__count {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.home-cities__next {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbe4ee;
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
}

.home-cities__next:hover {
    background: #f0f4f8;
}

@media (max-width: 900px) {
    .home-cities__heading {
        font-size: 1.35rem;
    }

    .home-cities__grid {
        grid-auto-columns: 220px;
        gap: 1.5rem;
    }

    .home-cities__tile img {
        width: 84px;
        height: 84px;
    }
}

/* One column of tiles (2 stacked) fills the view at a time; the arrow overlays
   on top instead of taking up its own column - matches the other carousels. */
@media (max-width: 640px) {
    .home-cities__scroller-wrap {
        position: relative;
    }

    .home-cities__grid {
        grid-auto-columns: calc(100% - 3rem);
    }

    .home-cities__next {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        z-index: 3;
        box-shadow: 0 4px 12px rgba(15, 42, 71, 0.2);
    }
}

/* ---- Buy/Rent dual panel (demo data) ---- */

.home-buyrent {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.home-buyrent__intro {
    text-align: center;
    margin-bottom: 2rem;
}

.home-buyrent__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-buyrent__heading {
    margin: 0 auto;
    max-width: 32ch;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.home-buyrent__grid {
    display: flex;
    gap: 2rem;
}

.home-buyrent__panel {
    position: relative;
    flex: 1 1 50%;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.home-buyrent__panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.home-buyrent__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 32%, rgba(255, 255, 255, 0) 62%);
}

.home-buyrent__panel-content {
    position: relative;
    z-index: 2;
    padding: 2.25rem 2rem;
    max-width: 80%;
}

.home-buyrent__panel-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.home-buyrent__panel-heading {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1a1a;
}

.home-buyrent__panel-text {
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4a5a68;
}

.home-buyrent__panel-cta {
    display: inline-block;
    background: var(--color-blue-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .home-buyrent__heading {
        font-size: 1.55rem;
    }

    .home-buyrent__grid {
        flex-direction: column;
    }

    .home-buyrent__panel {
        min-height: 380px;
    }

    .home-buyrent__panel-content {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .home-buyrent__panel {
        min-height: 340px;
    }

    .home-buyrent__panel-heading {
        font-size: 1.35rem;
    }
}

/* ---- "Why choose PrimeNest" benefits row (demo copy) ---- */

.home-benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3.5rem;
}

.home-benefits__intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.home-benefits__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-benefits__heading {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-benefits__grid {
    display: flex;
    gap: 2.5rem;
}

.home-benefits__item {
    flex: 1 1 0;
    min-width: 0;
}

.home-benefits__icon {
    display: inline-flex;
    color: var(--color-blue-primary);
    margin-bottom: 1rem;
}

.home-benefits__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-benefits__number {
    color: var(--color-blue-primary);
}

.home-benefits__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .home-benefits__grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ---- Testimonials carousel (demo/placeholder content) ---- */

.home-testimonials {
    padding: 3rem 0 3.5rem;
    background: #f4f6f8;
}

.home-testimonials__panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-testimonials__intro {
    margin-bottom: 1.75rem;
}

.home-testimonials__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.home-testimonials__heading {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 26ch;
    color: #1a1a1a;
}

.home-testimonials__subheading {
    margin: 0;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.home-testimonials__scroller-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.home-testimonials__scroller {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
}

.home-testimonials__scroller::-webkit-scrollbar {
    display: none;
}

.home-testimonials__card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7edf3;
    padding: 1.4rem 1.5rem;
}

.home-testimonials__card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-testimonials__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.home-testimonials__avatar--badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-blue-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.home-testimonials__name {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
}

.home-testimonials__role {
    margin: 0.1rem 0 0;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.home-testimonials__quote {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #4a5a68;
}

.home-testimonials__next {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #dbe4ee;
    background: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-primary);
}

.home-testimonials__next:hover {
    background: #f0f4f8;
}

.home-testimonials__all {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

@media (max-width: 900px) {
    .home-testimonials__heading {
        font-size: 1.4rem;
        max-width: none;
    }

    .home-testimonials__card {
        flex-basis: 260px;
    }
}

/* One card fills the view at a time; the arrow overlays on top of the card
   instead of taking up its own column - matches the other carousels. */
@media (max-width: 640px) {
    .home-testimonials__scroller-wrap {
        position: relative;
    }

    .home-testimonials__card {
        flex: 0 0 100%;
    }

    .home-testimonials__next {
        position: absolute;
        top: 50%;
        right: 0.6rem;
        transform: translateY(-50%);
        z-index: 3;
        box-shadow: 0 4px 12px rgba(15, 42, 71, 0.2);
    }
}
