/* ==============================================================
   BUY PAGE - WHITE THEME (SCREENSHOT ACCURATE)
============================================================== */

:root {
    --buy-bg: #FFFFFF;
    --buy-text: #1a1a1a;
    --buy-border: #e0e0e0; /* Thin separators */
    --buy-font-head: 'Felidae', 'Cormorant Garamond', serif;
    --buy-font-text: 'Inter', sans-serif;
}

body.page-buy--white-theme {
    background-color: var(--buy-bg);
    color: var(--buy-text);
    font-family: var(--buy-font-text);
}

/* Global Grid Utilities */
.buy-sec {
    border-bottom: 1px solid var(--buy-border);
}
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.text-center { text-align: center; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--buy-font-head);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 0;
}

.buy-section-heading {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}
.buy-section-sub {
    font-size: 18px;
    font-family: var(--buy-font-text);
    color: #666;
    margin-bottom: 40px;
    text-transform: none;
}

/* Buttons */
.buy-filter__btn {
    background-color: #3b4244;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--buy-font-text);
    text-transform: uppercase;
    transition: background 0.3s ease;
}
.buy-filter__btn:hover { background-color: #222; }

.buy-btn-dark-full {
    display: inline-block;
    background-color: var(--buy-text);
    color: #fff;
    padding: 16px 40px;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--buy-text);
    transition: all 0.3s ease;
}
.buy-btn-dark-full:hover {
    background-color: transparent;
    color: var(--buy-text);
}

.buy-btn-outline-wide {
    display: inline-block;
    background-color: transparent;
    color: var(--buy-text);
    border: 1px solid var(--buy-text);
    padding: 16px 60px;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}
.buy-btn-outline-wide:hover {
    background-color: var(--buy-text);
    color: #fff;
}


/* =========================================
   1. HERO
========================================= */
.buy-hero__inner {
    display: flex;
    min-height: 80vh;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-hero__text-col {
    flex: 1;
    padding: 80px 20px 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--buy-border);
}
.buy-breadcrumbs {
    font-size: 12px;
    color: #888;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.buy-hero__title {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 30px;
}
.buy-hero__subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 50px;
}
.buy-hero__link {
    font-size: 13px;
    color: var(--buy-text);
    text-decoration: underline;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.buy-hero__img-col {
    flex: 1;
    position: relative;
    padding: 40px;
}
.buy-hero__img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media(max-width: 991px) {
    .buy-hero__inner { flex-direction: column; }
    .buy-hero__text-col { border-right: none; border-bottom: 1px solid var(--buy-border); padding: 40px 20px; }
    .buy-hero__img-col { height: 400px; padding: 20px; }
    .buy-hero__title { font-size: 40px; }
}

/* =========================================
   2. STATS
========================================= */
.buy-stats__inner {
    display: flex;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-stats__item {
    flex: 1;
    padding: 40px 20px;
    text-align: left;
    padding-left: 40px;
    border-right: 1px solid var(--buy-border);
}
.buy-stats__item:last-child {
    border-right: none;
}
.buy-stats__val {
    font-family: var(--buy-font-head);
    font-size: 48px;
    line-height: 1;
    margin-bottom: 10px;
}
.buy-stats__lbl {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media(max-width: 768px) {
    .buy-stats__inner { flex-direction: column; }
    .buy-stats__item { border-right: none; border-bottom: 1px solid var(--buy-border); }
    .buy-stats__item:last-child { border-bottom: none; }
}

/* =========================================
   3. CATALOG & FILTERS
========================================= */
.buy-catalog-sec {
    padding: 80px 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-cat__header { margin-bottom: -30px; position: relative; z-index: 10;}
.buy-cat__title {
    font-size: 42px;
    margin-bottom: 15px;
}
.buy-cat__subtitle { color: #666; }

.buy-cat__filters {
    margin: 60px auto 80px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
}
.buy-filter__wrap {
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Matches floating overlap */
    border: 1px solid var(--buy-border);
}
.buy-filter__item {
    padding: 20px 25px;
    border-right: 1px solid var(--buy-border);
    font-size: 14px;
    color: #555;
    cursor: pointer;
}
.buy-filter__item:hover { background: #f9f9f9; }
.buy-filter__action {
    padding: 20px 25px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
}
.buy-filter__btn { align-self: stretch; }

@media(max-width: 1200px) {
    .buy-filter__wrap { flex-wrap: wrap; justify-content: center; }
    .buy-filter__item { border-bottom: 1px solid var(--buy-border); }
}

/* Catalog List */
.buy-cat__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--buy-border);
}
.buy-prop {
    display: flex;
    border-bottom: 1px solid var(--buy-border);
}
.buy-prop:last-child { border-bottom: none; }

.buy-prop__info {
    flex: 0 0 40%;
    padding: 60px 40px;
    border-right: 1px solid var(--buy-border);
    display: flex;
    flex-direction: column;
}
.buy-prop__title { font-size: 32px; margin-bottom: 10px; }
.buy-prop__ref { font-size: 13px; color: #888; margin-bottom: 20px; }
.buy-prop__desc { font-size: 15px; color: #444; margin-bottom: 30px; }

.buy-prop__specs {
    list-style: none;
    padding: 0; margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 14px; color: #555;
}
.buy-prop__price {
    font-family: var(--buy-font-head);
    font-size: 36px;
    margin-top: auto;
    margin-bottom: 30px;
}

.buy-prop__img {
    flex: 1;
    position: relative;
}
.buy-prop__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.buy-prop__nav {
    position: absolute;
    bottom: 30px; right: 30px;
    background: rgba(255,255,255,0.8);
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 0.1em;
}

@media(max-width: 991px) {
    .buy-prop { flex-direction: column; }
    .buy-prop__info { border-right: none; padding: 40px 20px; }
    .buy-prop__img { height: 350px; }
}

/* =========================================
   4. 5 STEPS
========================================= */
.buy-steps-sec {
    padding: 80px 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-steps__header { margin-bottom: 60px; }

.buy-steps__grid {
    display: flex;
    border-top: 1px solid var(--buy-border);
    border-bottom: 1px solid var(--buy-border);
    margin-bottom: 60px;
}
.buy-steps__card {
    flex: 0 0 50%;
    padding: 60px;
    border-right: 1px solid var(--buy-border);
    text-align: center;
}
.buy-steps__card img {
    max-width: 200px;
    margin: 0 auto 40px;
    display: block;
    border: 1px solid #eee;
}
.buy-steps__card-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
    font-family: var(--buy-font-text);
}
.buy-steps__card-desc {
    font-size: 15px;
    color: #666;
}

.buy-steps__accordion {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.buy-steps__acc-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--buy-border);
    cursor: pointer;
    transition: background 0.3s;
}
.buy-steps__acc-item:last-child { border-bottom: none; }
.buy-steps__acc-item:hover, .buy-steps__acc-item.active { background: #fcfcfc; }
.buy-steps__acc-num {
    font-size: 16px;
    font-family: var(--buy-font-head);
}
.buy-steps__acc-icon {
    font-size: 24px;
    color: #aaa;
}

@media(max-width: 991px) {
    .buy-steps__grid { flex-direction: column; }
    .buy-steps__card { border-right: none; border-bottom: 1px solid var(--buy-border); padding: 40px 20px; }
    .buy-steps__acc-item { padding: 30px 20px; }
}

/* =========================================
   5. LIFESTYLE
========================================= */
.buy-lifestyle-sec {
    padding: 100px 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-lifestyle__photos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 60px 0;
}
.buy-lifestyle__photo img {
    height: 350px;
    width: auto;
    object-fit: cover;
}
.buy-lifestyle__photo--center img {
    height: 450px;
}
.buy-lifestyle__desc h4 {
    font-family: var(--buy-font-text);
    font-size: 18px; line-height: 1.5;
    margin-bottom: 15px;
}
.buy-lifestyle__desc p { font-size: 15px; color: #666; }

@media(max-width: 991px) {
    .buy-lifestyle__photos { flex-direction: column; gap: 20px; }
    .buy-lifestyle__photo img, .buy-lifestyle__photo--center img { height: auto; width: 100%; max-width: 400px; }
}


/* =========================================
   6. DISTRICTS
========================================= */
.buy-districts-sec {
    padding: 80px 0 0 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-dist__tabs {
    text-align: center;
    margin: 40px 0 60px;
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
}
.buy-dist__tabs span { margin: 0 10px; cursor: pointer; }
.buy-dist__tabs span.active { color: var(--buy-text); }
.buy-dist__tabs span.sep { cursor: default; color: var(--buy-border); }

.buy-dist__info-row {
    border-top: 1px solid var(--buy-border);
    border-bottom: 1px solid var(--buy-border);
    padding: 40px;
}
.buy-dist__title-left {
    font-size: 20px; margin-bottom: 20px;
}
.buy-dist__features {
    font-size: 14px; color: #555;
    padding-left: 20px; margin: 0;
}

.buy-dist__gallery {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.buy-dist__gall-main { width: 100%; height: 500px; object-fit: cover; }
.buy-dist__gall-bottom { display: flex; gap: 20px; }
.buy-dist__gall-bottom img { flex: 1; height: 300px; object-fit: cover;}

/* =========================================
   7. TESTIMONIALS
========================================= */
.buy-testimonials-sec {
    padding: 80px 0;
    background: #fdfdfd;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-testim__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 40px;
    margin-top: 60px;
}
.buy-testim__card {
    background: #fff;
    border: 1px solid var(--buy-border);
    padding: 40px;
}
.buy-testim__head {
    display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
}
.buy-testim__head img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.buy-testim__name { font-family: var(--buy-font-head); font-size: 22px; line-height: 1.2; }
.buy-testim__name span { font-family: var(--buy-font-text); font-size: 13px; color: #888; }
.buy-testim__card-title {
    font-family: var(--buy-font-text); font-size: 15px; margin-bottom: 15px;
}
.buy-testim__card-text { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 30px; }
.buy-testim__date { font-size: 12px; color: #aaa; border-top: 1px solid var(--buy-border); padding-top: 15px; }

@media(max-width: 991px) {
    .buy-testim__grid { grid-template-columns: 1fr; padding: 0 20px; }
}


/* =========================================
   8. AFTERSALE GRID
========================================= */
.buy-aftersale-grid-sec {
    padding: 80px 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-aftersale-p { color: #666; font-size: 16px; margin-bottom: 60px; }

.buy-as__masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--buy-border);
    border-bottom: 1px solid var(--buy-border);
}
.buy-as__masonry > img { width: 100%; height: 100%; object-fit: cover; }
.buy-as__img1 { grid-column: 1/2; grid-row: 1/3; }
.buy-as__img2 { grid-column: 2/3; grid-row: 2/4; }

.buy-as__box {
    padding: 40px;
    border-right: 1px solid var(--buy-border);
    border-bottom: 1px solid var(--buy-border);
    display: flex; flex-direction: column; justify-content: center;
}
/* Ensure rightmost items don't have border-right, etc. just for aesthetics */
.buy-as__masonry > div, .buy-as__masonry > img {
    border-right: 1px solid var(--buy-border);
    border-bottom: 1px solid var(--buy-border);
}

.buy-as__box h4 { font-family: var(--buy-font-text); font-size: 16px; margin-bottom: 15px; }
.buy-as__box p { font-size: 14px; color: #555; margin: 0; }

@media(max-width: 991px) {
    .buy-as__masonry { grid-template-columns: 1fr; }
    .buy-as__img1, .buy-as__img2 { grid-column: 1; grid-row: auto; height: 300px; }
}

/* =========================================
   9. FAQ
========================================= */
.buy-faq-sec {
    padding: 80px 0;
    border-left: 1px solid var(--buy-border);
    border-right: 1px solid var(--buy-border);
}
.buy-faq__acc {
    border-top: 1px solid var(--buy-border);
}
.buy-faq__item {
    border-bottom: 1px solid var(--buy-border);
}
.buy-faq__head {
    padding: 30px 40px;
    font-size: 16px;
    font-family: var(--buy-font-text);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}
.buy-faq__head:hover { background: #fcfcfc; }
.buy-faq__toggle { font-size: 24px; color: #aaa; }

.buy-faq__body {
    padding: 0 40px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    font-size: 15px; color: #555;
}
.buy-faq__item.active .buy-faq__body {
    padding: 0 40px 30px;
    max-height: 300px;
}


/* =========================================
   10. FINAL CTA
========================================= */
.buy-cta-sec {
    padding: 80px 0;
}
.buy-cta__bg {
    background-size: cover;
    background-position: center;
    padding: 150px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.buy-cta__box {
    background: #fff;
    padding: 60px;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.buy-cta__sub { font-size: 18px; color: #555; margin-top: 15px; }
.buy-cta__btm { font-size: 12px; color: #888; margin-top: 20px; text-transform: uppercase;}
