/* Global resets for luxury pages */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Ultra Luxury Component Styles */
.luxury-container {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
}
.building-breadcrumb {
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.building-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}
.building-breadcrumb a {
    color: var(--heading);
    text-decoration: none;
    transition: color 0.3s ease;
}
.building-breadcrumb a:hover {
    color: var(--color-gold);
}
.building-breadcrumb li + li::before {
    content: "›";
    margin: 0 10px;
    color: var(--muted);
}

/* 2. Hero Section */
.b-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}
.b-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-charcoal, #2C3539);
    margin-bottom: 15px;
    line-height: 1.3;
}
.b-hero-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.b-badge {
    padding: 6px 12px;
    border: var(--border-luxury, 1px solid #E5E0D8);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gold-dark, #AA8C2C);
    background: var(--color-ivory, #F9F8F6);
}
.b-hero-summary {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-muted, #8E9296);
    margin-bottom: 30px;
}
.b-hero-actions {
    display: flex;
    gap: 15px;
}
.btn-luxury-primary {
    background: var(--color-charcoal, #2C3539);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--color-charcoal);
}
.btn-luxury-primary:hover {
    background: #fff;
    color: var(--color-charcoal);
}
.btn-luxury-outline {
    background: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-charcoal);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-luxury-outline:hover {
    background: var(--color-ivory);
}

.b-hero-image {
    position: relative;
    border-radius: var(--radius-card, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-soft, 0 8px 30px rgba(0,0,0,0.04));
    aspect-ratio: 16/10;
}
.b-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ai-placeholder-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

/* 3. Quick Stats */
.b-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
.stat-card {
    background: var(--color-warm-white, #FFFFFF);
    border: var(--border-luxury, 1px solid #E5E0D8);
    padding: 25px;
    border-radius: var(--radius-card, 12px);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-value {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-gold, #D4AF37);
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 4. Sticky Anchor Nav */
.b-sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: var(--border-luxury);
    margin-bottom: 50px;
}
.b-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}
.b-nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--heading);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.b-nav-list li a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

/* Section Common */
.b-section {
    margin-bottom: 80px;
}
.b-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-charcoal);
    margin-bottom: 30px;
    text-align: center;
}

/* 5. Floor Plan */
.b-floorplan {
    background: var(--color-ivory);
    padding: 40px;
    border-radius: var(--radius-card);
}
.b-floorplan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.b-floorplan-img-wrapper, .floor-plan-viewport {
    position: relative;
    cursor: zoom-in;
    border: var(--border-luxury);
    background: #fff;
    border-radius: 8px;
    width: 100%;
    overflow: auto;
    display: grid;
    place-items: center;
    max-height: 780px;
}
.b-floorplan-img-wrapper img, .floor-plan-image {
    display: block;
    width: 100%;
    max-width: 1180px;
    height: auto;
    object-fit: contain;
}
.zoom-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* 6. ShopUnit List */
.shop-inventory-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(201, 167, 88, 0.32);
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(249,245,235,0.9)),
        var(--color-ivory);
    box-shadow: var(--shadow-soft);
}
.inventory-copy h3 {
    margin: 8px 0 10px;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: var(--heading);
}
.inventory-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}
.inventory-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(201, 167, 88, 0.36);
    border-radius: 6px;
    background: rgba(201, 167, 88, 0.1);
    color: var(--color-gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.shop-inventory-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.inventory-stat {
    min-height: 92px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(201, 167, 88, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.inventory-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.9rem;
    line-height: 1;
    color: var(--color-charcoal);
}
.inventory-stat span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}
.shopunit-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 16px;
    border: var(--border-luxury);
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-muted);
}
.filter-btn.active {
    background: var(--color-gold);
    color: #fff;
    border-color: var(--color-gold);
}
.shopunit-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    background: #fff;
}
.shopunit-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}
.shopunit-table th, .shopunit-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.shopunit-table th {
    background: var(--color-ivory);
    font-weight: 600;
    color: var(--color-charcoal);
}
.unit-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.status-vacant { background: #e6f4ea; color: #1e8e3e; }
.status-occupied { background: #fce8e6; color: #d93025; }
.status-reserved { background: #fff4d6; color: #9a6700; }
.status-unknown { background: #f1f3f4; color: #5f6368; }
.muted-cell {
    color: var(--muted);
    font-size: 0.9rem;
}
.unit-transaction-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.transaction-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.transaction-chip.sale {
    background: rgba(30, 142, 62, 0.11);
    color: #1e6f36;
}
.transaction-chip.rent {
    background: rgba(25, 103, 210, 0.11);
    color: #185abc;
}
.transaction-chip.muted {
    background: #f1f3f4;
    color: #5f6368;
}
.unit-linked-property {
    color: var(--color-gold-dark);
    font-weight: 700;
    text-decoration: none;
}
.unit-linked-property:hover {
    text-decoration: underline;
}
.inventory-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}
.inventory-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* 7. Overview Two Columns */
.b-overview {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}
.overview-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--heading);
}
.overview-table {
    background: var(--color-ivory);
    padding: 30px;
    border-radius: var(--radius-card);
}
.overview-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-luxury);
}
.overview-row:last-child {
    border-bottom: none;
}
.row-label { color: var(--color-muted); }
.row-val { font-weight: 500; color: var(--color-charcoal); text-align: right;}

/* 8. Location & 9. Amenities */
.icon-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.icon-card {
    background: #fff;
    border: var(--border-luxury);
    padding: 25px;
    border-radius: var(--radius-card);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.icon-card-icon {
    font-size: 1.5rem;
}
.icon-card-content h4 {
    margin: 0 0 10px 0;
    color: var(--color-gold-dark);
}
.icon-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* 10. Commercial Analysis */
.commercial-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.analysis-panel {
    min-height: 260px;
    padding: 28px;
    border: var(--border-luxury);
    border-radius: var(--radius-card);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.96), rgba(249,248,246,0.92));
    box-shadow: var(--shadow-soft);
}
.analysis-panel h3 {
    margin: 10px 0 14px;
    color: var(--color-charcoal);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.35;
}
.analysis-panel p {
    margin: 0;
    color: var(--heading);
    line-height: 1.75;
}
.analysis-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border: 1px solid rgba(170, 140, 44, 0.28);
    border-radius: 4px;
    color: var(--color-gold-dark);
    background: rgba(212, 175, 55, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.muted-panel {
    background:
        linear-gradient(145deg, rgba(44, 53, 57, 0.96), rgba(67, 77, 82, 0.94));
    border-color: rgba(255,255,255,0.14);
}
.muted-panel h3,
.muted-panel p {
    color: #fff;
}
.muted-panel .analysis-kicker {
    border-color: rgba(255,255,255,0.24);
    color: #f4df9b;
    background: rgba(255,255,255,0.08);
}

/* 11. Transaction Info */
.transaction-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}
.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active {
    color: var(--color-gold-dark);
    border-bottom-color: var(--color-gold-dark);
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--color-ivory);
    border-radius: var(--radius-card);
    color: var(--muted);
    border: 1px dashed var(--border-luxury);
}

/* 12. Building Comparison */
.comparison-table-wrap {
    overflow-x: auto;
    border: var(--border-luxury);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    background: #fff;
}
.comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #f0ece4;
}
.comparison-table th {
    background: var(--color-ivory);
    color: var(--color-charcoal);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.comparison-table td {
    color: var(--heading);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table a {
    color: var(--color-gold-dark);
    font-weight: 700;
    text-decoration: none;
}
.comparison-table a:hover {
    text-decoration: underline;
}
.current-building-row {
    background: rgba(212, 175, 55, 0.08);
}

/* 13. Related Buildings */
.related-building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.related-building-card {
    min-height: 150px;
    padding: 22px;
    border: var(--border-luxury);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.related-building-card:hover {
    transform: translateY(-4px);
    border-color: rgba(170, 140, 44, 0.38);
}
.related-building-card h4 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}
.related-building-card h4 a {
    color: var(--heading);
    text-decoration: none;
}
.related-building-card h4 a:hover {
    color: var(--color-gold-dark);
}
.related-building-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.related-building-card span {
    color: var(--color-gold-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

/* 14. FAQ */
.faq-list {
    display: grid;
    gap: 14px;
}
.faq-item {
    border: var(--border-luxury);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--color-charcoal);
    font-weight: 700;
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--color-gold-dark);
    font-size: 1.2rem;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: "-";
}
.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--heading);
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .b-hero { grid-template-columns: 1fr; }
    .b-quick-stats { grid-template-columns: 1fr 1fr; }
    .b-overview { grid-template-columns: 1fr; }
    .shop-inventory-summary { grid-template-columns: 1fr; }
    .shopunit-table-wrap { overflow-x: auto; }
    .commercial-analysis-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .b-quick-stats { grid-template-columns: 1fr; }
    .b-hero-actions { flex-direction: column; }
    .b-section-title { font-size: 1.65rem; }
    .analysis-panel { min-height: auto; padding: 22px; }
    .shop-inventory-summary { padding: 22px; }
    .shop-inventory-stats { grid-template-columns: 1fr; }
    .inventory-cta { flex-direction: column; }
}

@media (max-width: 768px) {
    .luxury-container {
        width: min(100% - 24px);
    }
}
