/* ==========================================================================
   SQUAREA Mumbai – Localities & Micro-Markets Stylesheet (Light Premium Redesign)
   ========================================================================== */

/* Locations Listing Page Hero */
.locations-hero {
    height: 70vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #0A0D14;
    /* Deep black-navy background */
}

.locations-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.locations-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.35;
    /* Reduced opacity to make it dark and dramatic */
}

.locations-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 13, 20, 0.7) 0%, rgba(10, 13, 20, 0.25) 45%, rgba(10, 13, 20, 0.) 100%);
    z-index: 2;
}

.locations-hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    padding-top: 80px;
}

.locations-hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
}

.locations-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: var(--white);
    /* White text for premium contrast */
    letter-spacing: -1px;
}

.locations-hero-title em {
    font-style: italic;
    color: var(--accent);
}

.locations-hero-tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    /* Translucent white for readability */
    font-weight: 300;
    line-height: 1.7;
    max-width: 580px;
    margin: 0;
}

/* Staggered Floating Glassmorphic Stats Panel inside Hero */
.locations-hero-stats {
    background: transparent;
    /* Transparent container */
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
    align-items: flex-start;
    /* Align cards to the left of the column to prevent overflow */
}

.locations-hero-stats .hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 350px;
    /* Fixed width on desktop to prevent stretching and overflow clipping */
    background: rgba(10, 13, 20, 0.7);
    /* Dark satin glass */
    backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* White hairline border */
    border-radius: 20px;
    padding: 22px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s var(--ease-premium), border-color 0.4s ease, box-shadow 0.5s ease, background 0.4s ease;
}

/* Staggered Staircase Layout offsets */
.locations-hero-stats .hero-stat-pill:nth-child(1) {
    transform: translateX(0);
}

.locations-hero-stats .hero-stat-pill:nth-child(2) {
    transform: translateX(30px);
}

.locations-hero-stats .hero-stat-pill:nth-child(3) {
    transform: translateX(60px);
}

/* Interactive Hover States with lift and gold glow */
.locations-hero-stats .hero-stat-pill:nth-child(1):hover {
    transform: translateX(-15px) translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(194, 164, 104, 0.25);
    background: rgba(10, 13, 20, 0.85);
}

.locations-hero-stats .hero-stat-pill:nth-child(2):hover {
    transform: translateX(15px) translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(194, 164, 104, 0.25);
    background: rgba(10, 13, 20, 0.85);
}

.locations-hero-stats .hero-stat-pill:nth-child(3):hover {
    transform: translateX(45px) translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 45px rgba(194, 164, 104, 0.25);
    background: rgba(10, 13, 20, 0.85);
}

.locations-hero-stats .pill-num {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1;
    min-width: 65px;
    transition: color 0.4s ease;
}

.locations-hero-stats .highlight-gold .pill-num {
    color: var(--accent);
    font-weight: 500;
}

.locations-hero-stats .pill-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    /* Sleek vertical divider line */
    padding-left: 20px;
    line-height: 1.4;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.locations-hero-stats .hero-stat-pill:hover .pill-label {
    color: var(--white);
    border-color: var(--accent);
    /* Divider line turns gold on hover */
}


/* Premium Redesigned Micro-Markets Grid */
.premium-markets-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
    /* Align all cards to the top of the grid row for uniform alignment */
}

/* Card Shell (Poster Format) */
.market-poster-card {
    grid-column: span 2;
    /* 3 columns on first row */
    position: relative;
    height: 460px !important;
    /* Increased & uniform height so all content fits perfectly inside without overflow */
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #0B0E14;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.6s var(--ease-premium), border-color 0.4s ease, box-shadow 0.6s ease;
}

/* Row 2 Custom Spans for 2 Centered Cards */
.market-poster-card.card-item-4 {
    grid-column: 2 / span 2;
    /* Centers the 4th card */
}

.market-poster-card.card-item-5 {
    grid-column: 4 / span 2;
    /* Centers the 5th card */
}

/* Elegant Inner Gold Frame on Hover */
.market-poster-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
    z-index: 4;
    pointer-events: none;
}

.market-poster-card:hover::after {
    opacity: 0.5;
    transform: scale(1);
}

.market-poster-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Image Wrapper */
.poster-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.poster-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s var(--ease-premium);
}

.market-poster-card:hover .poster-img-wrapper img {
    transform: scale(1.08);
}

/* Dark Gradient Overlay (Directly on image) */
.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.5) 50%, rgba(11, 14, 20, 0.1) 100%);
    z-index: 2;
    transition: background 0.6s var(--ease-premium);
}

.market-poster-card:hover .poster-overlay {
    background: linear-gradient(to top, rgba(11, 14, 20, 0.98) 0%, rgba(11, 14, 20, 0.75) 60%, rgba(11, 14, 20, 0.2) 100%);
}

/* Content Area - Transparent to show image behind it */
.poster-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 3;
    padding: 24px 22px 22px 22px;
    background: transparent;
    box-sizing: border-box;
    border-top: none;
    transform: translateY(calc(100% - 115px));
    /* Displays title header neatly in collapsed view */
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

.market-poster-card:hover .poster-content {
    transform: translateY(0);
}

/* Header (Visible collapsed) */
.poster-header {
    transition: transform 0.6s var(--ease-premium);
    margin-bottom: 12px;
}

.poster-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.poster-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
}

.poster-category {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}

.poster-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--white) !important;
    margin: 0;
    line-height: 1.1;
}

/* Details Section (Slides up on Hover) */
.poster-details {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s var(--ease-premium), transform 0.6s var(--ease-premium);
    display: flex;
    flex-direction: column;
}

.market-poster-card:hover .poster-details {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations for details on hover */
.market-poster-card .poster-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin: 0 0 15px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.05s;

    /* Clamp text to max 3 lines so description never overflows card height! */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.market-poster-card:hover .poster-desc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Stats Row */
.poster-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
    width: 100%;
}

.market-poster-card:hover .poster-stats {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.poster-stat-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 0;
    overflow: hidden;
}

.poster-stat-label {
    font-family: var(--font-body);
    font-size: 0.54rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.poster-stat-val {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.poster-stat-val.highlight {
    color: var(--accent);
}

/* Explore projects button wrapper and button styling */
.poster-btn-wrapper {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.15s;
    width: 100%;
}

.market-poster-card:hover .poster-btn-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.market-card-btn,
.poster-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.68rem !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 16px !important;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: rgba(194, 164, 104, 0.1);
    color: var(--white) !important;
    transition: var(--transition-fast);
}

.market-card-btn:hover,
.poster-btn:hover {
    background: var(--accent) !important;
    color: var(--text-primary, #0B0E14) !important;
    box-shadow: 0 8px 24px rgba(194, 164, 104, 0.35);
}


/* Strategic Allocations Matrix */
.allocations-matrix-section {
    background-color: var(--secondary-bg);
    padding: 90px 0;
    border-top: 1px solid var(--border-color);
}

.matrix-table-card {
    background: var(--card-surface, #FFFFFF);
    border: 1px solid var(--border-color, rgba(194, 164, 104, 0.2));
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(26, 29, 38, 0.05);
}

.allocations-matrix-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.matrix-row-item {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(245, 247, 250, 0.7);
    border: 1px solid rgba(194, 164, 104, 0.12);
    border-radius: 14px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.matrix-row-item:hover {
    background: #FFFFFF;
    border-color: var(--accent, #C2A468);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(194, 164, 104, 0.12);
}

.matrix-locality {
    display: flex;
    align-items: center;
    gap: 12px;
}

.locality-icon {
    color: var(--accent, #C2A468);
    font-size: 1rem;
}

.locality-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary, #0B0E14);
}

.strategy-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary, #2D3748);
}

.matrix-yield {
    text-align: right;
}

.yield-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(194, 164, 104, 0.1);
    border: 1px solid rgba(194, 164, 104, 0.25);
    padding: 8px 16px;
    border-radius: 50px;
}

.yield-badge.highlight-gold {
    color: var(--accent, #C2A468);
    background: rgba(194, 164, 104, 0.15);
    border-color: var(--accent);
}

.matrix-header {
    max-width: 760px;
    margin: 0 auto 60px auto;
}

.allocations-matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.matrix-card {
    background: var(--card-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.matrix-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.matrix-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.matrix-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
}

.matrix-badge {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(194, 164, 104, 0.08);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(194, 164, 104, 0.15);
}

.matrix-card-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.matrix-card-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    margin: 0 0 25px 0;
}

.matrix-meta {
    background: var(--secondary-bg);
    border: 1px solid rgba(194, 164, 104, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.meta-val {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.meta-val.highlight-gold {
    color: var(--accent);
}

.matrix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.matrix-list li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 300;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.gold-check {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 3px;
}


/* Micro-Market Detail Page Layout Elements */
.inner-hero {
    height: 70vh;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #0A0D14;
    padding: 0 !important;
}

.inner-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.inner-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.78) 0%, rgba(10, 13, 20, 0.45) 50%, rgba(10, 13, 20, 0.88) 100%);
    z-index: 2;
}

.inner-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 70px 20px 0 20px;
}

.inner-hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent) !important;
    display: inline-block;
    margin-bottom: 12px;
}

.inner-hero-title {
    font-family: var(--font-heading);
    font-size: 4.2rem;
    font-weight: 300;
    line-height: 1.12;
    margin: 0 0 18px 0;
    letter-spacing: -1px;
    color: var(--white) !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.inner-hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Statistics Bar Section (Overlapping Glassmorphic Ribbon)
   ========================================================================== */
.stats-bar-section {
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 12;
    margin-top: -75px;
    /* Pulls it up to float on top of the hero banner edge */
}

.stats-bar-container-glass {
    background: rgba(10, 13, 20, 0.85);
    /* Dark satin glass */
    backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid rgba(194, 164, 104, 0.3);
    /* Satin Gold hairline border */
    border-radius: 24px;
    padding: 35px 50px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.stats-bar-container-glass:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 80px rgba(194, 164, 104, 0.15);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 20px;
    transition: transform 0.4s var(--ease-premium);
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--accent);
    /* Champagne Gold */
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-item-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Split content overview */
.split-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}

.split-left-panel {
    position: relative;
    padding: 20px 0;
    height: 100%;
}

/* Clean Strict Image Frame */
.split-image-frame-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
}

.split-image-frame-wrapper::before {
    display: none !important;
}

.split-content-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 15px 35px rgba(11, 14, 20, 0.08);
    transition: var(--transition-smooth);
    height: 100%;
}

.split-content-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 1.2s var(--ease-premium);
}

.split-left-panel:hover .split-content-image {
    border-color: var(--accent-deep);
    box-shadow: 0 20px 45px rgba(194, 164, 104, 0.2);
}

.split-left-panel:hover .split-content-image img {
    transform: scale(1.05);
}

.country-tagline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0 0 25px;
    line-height: 1.35;
    color: var(--text-primary);
}

.why-invest-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.why-invest-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.why-invest-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.why-invest-icon {
    color: var(--accent);
    margin-top: 3px;
    font-size: 1rem;
    background: rgba(194, 164, 104, 0.08);
    border: 1px solid rgba(194, 164, 104, 0.25);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.why-invest-item:hover .why-invest-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.why-invest-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.65;
}

/* Key Facts */
.market-key-facts-section {
    margin-top: 80px;
}

.key-facts-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.key-facts-card:hover {
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(194, 164, 104, 0.08);
    border-color: var(--accent);
}

.key-facts-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 350;
    color: var(--text-primary);
    margin: 0 0 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.key-facts-title i {
    color: var(--accent);
    font-size: 1.8rem;
}

.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.key-fact-item {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0;
    transition: transform 0.3s ease;
}

.key-fact-item:hover {
    transform: translateX(5px);
}

.key-fact-icon {
    font-size: 1.35rem;
    color: var(--accent);
    width: 54px;
    height: 54px;
    background-color: rgba(194, 164, 104, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent);
    box-shadow: 0 4px 12px rgba(194, 164, 104, 0.1);
    flex-shrink: 0;
}

.key-fact-details {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.fact-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Featured Developments Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-detail-card {
    background-color: var(--white);
    border: 1px solid rgba(194, 164, 104, 0.18);
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-detail-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(194, 164, 104, 0.15);
    background-color: var(--white);
}

.project-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-detail-card:hover .project-card-image {
    transform: scale(1.08);
}

.project-card-badges {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.project-badge-pill {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.price-pill {
    background-color: var(--white);
    color: var(--text-primary);
    border: 1px solid rgba(194, 164, 104, 0.25);
}

.yield-pill {
    background-color: var(--accent);
    color: var(--white);
}

.project-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card-header {
    margin-bottom: 18px;
}

.project-card-dev-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 10px;
}

.project-card-developer {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-card-type {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--secondary-bg);
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 6px 0 10px 0;
    line-height: 1.25;
}

.project-location {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-location i {
    color: var(--accent);
}

.project-detail-desc {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.project-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.project-card-features li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.8rem;
}

.project-card-footer {
    border-top: 1px solid rgba(194, 164, 104, 0.15);
    padding-top: 20px;
    margin-top: auto;
}

.card-explore-btn {
    width: 100%;
    font-size: 0.7rem !important;
    padding: 10px 18px !important;
}

/* Call to action */
.final-cta-section {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.final-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.45);
    z-index: 2;
}

.final-cta-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 650px;
    color: var(--white);
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
    color: var(--white) !important;
}

.final-cta-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ==========================================================================
   Project Poster Cards (Inner Pages)
   ========================================================================== */

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-poster-card {
    position: relative;
    height: 460px !important;
    /* Uniform poster card height */
    border-radius: 14px;
    border: 1px solid rgba(194, 164, 104, 0.18);
    background: #0B0E14;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.6s var(--ease-premium), border-color 0.4s ease, box-shadow 0.6s ease;
}

/* Elegant Inner Gold Frame on Hover */
.project-poster-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1.5px solid var(--accent);
    border-radius: 12px;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium);
    z-index: 4;
    pointer-events: none;
}

.project-poster-card:hover::after {
    opacity: 0.45;
    transform: scale(1);
}

.project-poster-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 12px 30px rgba(194, 164, 104, 0.18);
}

/* Image Wrapper */
.project-poster-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.project-poster-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s var(--ease-premium);
}

.project-poster-card:hover .project-poster-img-wrapper img {
    transform: scale(1.08);
}

/* Dark Gradient Overlay */
.project-poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 14, 20, 0.95) 0%, rgba(11, 14, 20, 0.45) 45%, rgba(11, 14, 20, 0.05) 100%);
    z-index: 2;
    transition: background 0.6s var(--ease-premium);
}

.project-poster-card:hover .project-poster-overlay {
    background: linear-gradient(to top, rgba(11, 14, 20, 0.98) 0%, rgba(11, 14, 20, 0.75) 60%, rgba(11, 14, 20, 0.15) 100%);
}

/* Content tray - Sits at the bottom, wraps header and details */
.project-poster-content {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 3;
    padding: 25px 30px;
    background: transparent;
    pointer-events: auto;
}

/* Header styling */
.project-poster-header {
    transition: transform 0.6s var(--ease-premium);
    margin-bottom: 0;
}

.project-poster-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.project-poster-developer {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.project-poster-type {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.project-poster-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: var(--white) !important;
    margin: 8px 0 10px 0;
    line-height: 1.2;
}

.project-poster-location {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-poster-location i {
    color: var(--accent);
}

/* CSS Grid wrapper for slide-up height animation without clipping */
.project-poster-details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-poster-card:hover .project-poster-details-wrapper {
    grid-template-rows: 1fr;
}

/* Details area inside wrapper */
.project-poster-details {
    overflow: hidden;
    min-height: 0;
    /* Crucial for grid-rows fraction transitions */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    padding-top: 15px;
}

.project-poster-card:hover .project-poster-details {
    opacity: 1;
    transform: translateY(0);
}

/* Stats (Price & Yield) */
.project-poster-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.1s;
}

.project-poster-card:hover .project-poster-stats {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.project-poster-stat-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 8px;
    flex: 1;
    text-align: center;
    backdrop-filter: blur(8px);
}

.project-poster-stat-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.project-poster-stat-val {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.project-poster-stat-val.highlight {
    color: var(--accent);
}

/* Features List */
.project-poster-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.12s;
}

.project-poster-card:hover .project-poster-features {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.project-poster-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.project-poster-features li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.8rem;
}

/* Explore Button */
.project-poster-btn-wrapper {
    display: block;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 0.15s;
}

.project-poster-card:hover .project-poster-btn-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.project-poster-btn {
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px !important;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--white) !important;
    transition: var(--transition-fast);
    display: inline-block;
    width: 100%;
}

.project-poster-btn:hover {
    background: var(--accent) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 8px 24px rgba(194, 164, 104, 0.35);
}

/* Pagination / Load More Controls */
.project-card-hidden {
    display: none !important;
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-container #view-more-projects-btn {
    border-radius: 30px;
    padding: 14px 38px;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-container #view-more-projects-btn:hover {
    background: var(--accent);
    color: #0B0E14;
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.3);
    transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 991px) {
    .locations-hero {
        height: auto;
        min-height: auto;
        padding: 140px 0 60px 0;
    }

    .locations-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 0;
        text-align: center;
    }

    .locations-hero-tagline {
        margin: 0 auto;
    }

    .locations-hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 25px;
        gap: 20px;
        align-items: center !important;
        width: 100%;
    }

    .locations-hero-stats .hero-stat-pill {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0;
        padding-right: 20px;
        flex: 1;
        min-width: 150px;
        width: auto !important;
        transform: none !important;
        justify-content: center;
    }

    .locations-hero-stats .hero-stat-pill:hover {
        transform: translateY(-5px) !important;
    }

    .locations-hero-stats .hero-stat-pill:last-child {
        border-right: none;
        padding-right: 0;
    }

    /* Responsive Markets Grid */
    .premium-markets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .market-poster-card {
        grid-column: span 1 !important;
        height: 460px !important;
    }

    .market-poster-card.card-item-4 {
        grid-column: span 1 !important;
    }

    .market-poster-card.card-item-5 {
        grid-column: span 2 !important;
    }

    .allocations-matrix-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-left-panel {
        height: 420px;
    }

    .key-facts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Responsive Stats Bar */
    .stats-bar-section {
        margin-top: -50px;
    }

    .stats-bar-container-glass {
        padding: 25px 35px;
    }

    .stats-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 20px;
        padding-right: 0;
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .split-image-frame-wrapper::before {
        inset: -10px;
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .locations-hero-stats {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        width: 100%;
        gap: 15px;
    }

    .locations-hero-stats .hero-stat-pill {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 15px;
        width: 100% !important;
        transform: none !important;
        justify-content: center;
    }

    .locations-hero-stats .hero-stat-pill:hover {
        transform: translateY(-3px) !important;
    }

    .locations-hero-stats .hero-stat-pill:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Mobile Markets Grid */
    .premium-markets-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .market-poster-card {
        grid-column: span 1 !important;
        height: 420px !important;
    }

    .market-poster-card.card-item-4,
    .market-poster-card.card-item-5 {
        grid-column: span 1 !important;
    }

    .matrix-card {
        padding: 30px;
    }

    .key-facts-grid {
        grid-template-columns: 1fr;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .key-facts-card {
        padding: 30px 20px;
    }

    /* Mobile Stats Bar */
    .stats-bar-section {
        margin-top: -40px;
    }

    .stats-bar-container-glass {
        padding: 20px;
        border-radius: 16px;
    }

    .stats-bar-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 15px;
        padding-right: 0;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .split-left-panel {
        padding: 10px 0;
        height: 320px;
    }

    .split-image-frame-wrapper::before {
        inset: -8px;
        border-radius: 22px;
    }
}