/**
 * Upscale Real Estate Frontend Styles
 * Ultra-fast, clean, modern CSS with zero bloated dependencies
 * Aesthetic: Royal Midnight Navy Luxury Real Estate (Boss Reference Design)
 */

:root {
    --upscale-navy-dark: #081c30;
    --upscale-navy-primary: #0a2540;
    --upscale-navy-light: #16426f;
    --upscale-blue-accent: #0070ba;
    --upscale-gold-accent: #c5a880;
    --upscale-green-wa: #25d366;
    --upscale-bg-light: #f8fafc;
    --upscale-border-color: #e2e8f0;
    --upscale-text-dark: #1e293b;
    --upscale-text-muted: #64748b;
    --upscale-radius: 8px;
    --upscale-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Container */
.upscale-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================================
   HEADER & TOP BAR (Images 3 & 5)
   ============================================================== */
.upscale-top-bar {
    background: #061524;
    color: #94a3b8;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
}
.top-bar-locations {
    display: flex;
    gap: 16px;
    overflow-x: auto;
}
.top-bar-locations .loc-item {
    cursor: pointer;
    transition: color 0.2s;
}
.top-bar-locations .loc-item:hover,
.top-bar-locations .loc-item.active {
    color: #ffffff;
    font-weight: 600;
}
.top-bar-contact {
    display: flex;
    gap: 16px;
}
.top-bar-contact a {
    color: #cbd5e1;
    text-decoration: none;
}
.top-bar-contact a:hover {
    color: #fff;
}
.wa-top-link {
    color: #25d366 !important;
    font-weight: 600;
}

.upscale-main-header {
    background: var(--upscale-navy-primary);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.upscale-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.upscale-brand-logo .logo-accent {
    color: #38bdf8;
    font-weight: 400;
    margin-left: 2px;
}
.upscale-nav-menu .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}
.upscale-nav-menu .nav-list a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.upscale-nav-menu .nav-list a:hover {
    color: #38bdf8;
}
.upscale-header-cta-btn {
    background: #ffffff;
    color: var(--upscale-navy-primary);
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}
.upscale-header-cta-btn:hover {
    background: #38bdf8;
    color: #ffffff;
}

/* ==============================================================
   HERO SEARCH SECTION (Images 2 & 3)
   ============================================================== */
.upscale-hero-search-section {
    background: radial-gradient(circle at 80% 20%, #1e4976 0%, #0a2540 60%, #061626 100%);
    padding: 70px 0 80px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.hero-content-box {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.hero-main-title {
    font-size: 46px;
    font-weight: 700;
    font-family: "Georgia", "Times New Roman", serif;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0 0 32px 0;
}
.upscale-hero-search-widget {
    background: transparent;
    max-width: 820px;
    margin: 0 auto;
}

/* Offer Tabs: Buy | Rent | Sold (Image 2) */
.hero-offer-tabs {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    border-radius: 8px 8px 0 0;
    padding: 4px;
    margin-bottom: 0;
}
.hero-tab-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.hero-tab-btn.active {
    background: #ffffff;
    color: var(--upscale-navy-primary);
}

/* Main Input Bar (Image 2 & 3) */
.hero-search-input-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 0 10px 10px 10px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.search-pin-icon {
    font-size: 18px;
    color: #64748b;
    margin-right: 12px;
}
.hero-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1e293b;
    background: transparent;
    padding: 10px 0;
}
.hero-search-submit-btn {
    background: var(--upscale-navy-primary);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.2s;
}
.hero-search-submit-btn:hover {
    background: #17426b;
}

/* Quick Filter Pills Row */
.hero-quick-filters-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-filter-pill select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(4px);
}
.hero-filter-pill select option {
    background: var(--upscale-navy-primary);
    color: #fff;
}
.hero-bottom-indicators {
    margin-top: 24px;
    font-size: 13px;
    color: #94a3b8;
}

/* ==============================================================
   SECTION HEADERS & STATS COUNTER (Image 4)
   ============================================================== */
.upscale-section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-title-serif {
    font-size: 34px;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--upscale-navy-primary);
    margin: 0;
}
.section-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 6px 0 0 0;
}

.upscale-about-stats-banner {
    background: #fdfbf7;
    padding: 60px 0;
    margin: 60px 0;
    border-top: 1px solid #f1ece4;
    border-bottom: 1px solid #f1ece4;
    text-align: center;
}
.about-quote-box {
    max-width: 820px;
    margin: 0 auto 40px auto;
}
.about-quote-text {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    font-style: italic;
    font-family: "Georgia", serif;
}
.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-box .stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
    font-family: "Georgia", serif;
}
.stat-box .stat-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================================
   PROPERTY CARDS (Images 3, 4, 8)
   ============================================================== */
.upscale-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.upscale-properties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}
.upscale-property-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.upscale-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}
.upscale-property-card .card-media {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0a1f33;
}
.upscale-property-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.upscale-property-card:hover .card-media img {
    transform: scale(1.05);
}
.card-badges-wrapper {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
}
.card-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.95);
    color: var(--upscale-navy-primary);
}
.card-badge.for-rent {
    background: var(--upscale-navy-primary);
    color: #ffffff;
}
.card-badge-area {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.card-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.card-fav-btn:hover,
.card-fav-btn.active {
    color: #ef4444;
    background: #ffffff;
}
.upscale-property-card .card-body {
    padding: 20px;
    flex: 1;
}
.upscale-property-card .card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.upscale-property-card .card-specs {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}
.upscale-property-card .card-title {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.upscale-property-card .card-title a {
    color: #1e293b;
    text-decoration: none;
}
.upscale-property-card .card-title a:hover {
    color: var(--upscale-blue-accent);
}
.upscale-property-card .card-location {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.upscale-property-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #fafafa;
    border-top: 1px solid #f1f5f9;
}
.agent-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}
.agent-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.agent-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.agent-text .agent-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
}
.agent-text .agent-role {
    display: block;
    font-size: 10px;
    color: #94a3b8;
}
.card-view-btn {
    color: var(--upscale-navy-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

/* CATEGORY TABS BAR (Images 4 & 8) */
.upscale-category-tabs-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-tab-btn {
    padding: 7px 18px;
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    color: #475569;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.cat-tab-btn:hover {
    border-color: var(--upscale-navy-primary);
    color: var(--upscale-navy-primary);
}
.cat-tab-btn.active {
    background: var(--upscale-navy-primary);
    border-color: var(--upscale-navy-primary);
    color: #ffffff;
}

/* ==============================================================
   BEFORE FOOTER POPULAR SEARCHES (Images 4 & 5)
   ============================================================== */
.upscale-before-footer-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 40px 0;
    margin-top: 60px;
}
.before-footer-title {
    font-size: 26px;
    font-family: "Georgia", serif;
    color: var(--upscale-navy-primary);
    margin: 0 0 30px 0;
}
.before-footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.links-column .col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--upscale-navy-primary);
    margin: 0 0 16px 0;
}
.links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.links-column ul li {
    margin-bottom: 10px;
}
.links-column ul a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.links-column ul a:hover {
    color: var(--upscale-blue-accent);
    text-decoration: underline;
}

/* ==============================================================
   MAIN FOOTER (Image 5)
   ============================================================== */
.upscale-main-footer {
    background: var(--upscale-navy-dark);
    color: #94a3b8;
    padding: 70px 0 30px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-logo .logo-accent {
    color: #38bdf8;
    font-weight: 400;
}
.footer-bio {
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-social-icons {
    display: flex;
    gap: 12px;
}
.footer-social-icons a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    transition: background 0.2s;
}
.footer-social-icons a:hover {
    background: #38bdf8;
    color: #fff;
}
.footer-col-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 18px 0;
}
.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links-list a:hover {
    color: #fff;
}
.contact-col p {
    margin: 0 0 10px 0;
}
.contact-col a {
    color: #cbd5e1;
    text-decoration: none;
}
.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-bar p {
    margin: 0;
}

/* ==============================================================
   SINGLE PROPERTY STYLES (Images 1, 6, 7)
   ============================================================== */
.upscale-breadcrumbs {
    font-size: 13px;
    color: #64748b;
    padding: 16px 0;
}
.upscale-breadcrumbs a {
    color: var(--upscale-navy-primary);
    text-decoration: none;
}
.upscale-breadcrumbs a:hover {
    text-decoration: underline;
}
.upscale-single-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.property-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.badge-tag {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.badge-tag.for-sale { background: #dcfce7; color: #15803d; }
.badge-tag.for-rent { background: #e0f2fe; color: #0369a1; }
.badge-tag.status { background: #fef3c7; color: #b45309; }
.badge-tag.pincode { background: #f1f5f9; color: #475569; }

.upscale-single-header .property-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 8px 0;
    line-height: 1.25;
}
.upscale-single-header .property-address {
    font-size: 15px;
    color: #64748b;
}
.upscale-single-header .see-on-map {
    color: #0284c7;
    margin-left: 12px;
    text-decoration: none;
    font-weight: 600;
}
.upscale-single-header .property-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
    text-align: right;
}
.property-rate-sqft {
    font-size: 13px;
    color: #64748b;
    text-align: right;
    margin-top: 4px;
}
.upscale-single-header .property-id-badge {
    font-size: 12px;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

/* HERO PHOTO GRID */
.upscale-hero-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.upscale-hero-gallery-grid.single-photo-layout {
    grid-template-columns: 1fr !important;
    height: 460px;
}
.upscale-hero-gallery-grid.single-photo-layout .main-photo {
    width: 100% !important;
    height: 100% !important;
}
.upscale-hero-gallery-grid .main-photo {
    position: relative;
    height: 100%;
    cursor: pointer;
}
.upscale-hero-gallery-grid .main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.hero-video-play-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
}
.upscale-hero-gallery-grid .sub-photos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}
.upscale-hero-gallery-grid .sub-photo-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}
.upscale-hero-gallery-grid .sub-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.view-all-photos-btn {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.view-all-photos-floating-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    color: var(--upscale-navy-primary);
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 14px;
}

/* Lightbox Modal */
.upscale-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.upscale-lightbox-modal.active { display: flex; }
.upscale-lightbox-modal .lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}
.upscale-lightbox-modal .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upscale-lightbox-modal .lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
}
.upscale-lightbox-modal .lightbox-prev,
.upscale-lightbox-modal .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 28px;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
}
.upscale-lightbox-modal .lightbox-prev { left: -60px; }
.upscale-lightbox-modal .lightbox-next { right: -60px; }
.upscale-lightbox-modal .lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 90vw;
}
.upscale-lightbox-modal .lightbox-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
}
.upscale-lightbox-modal .lightbox-thumb.active {
    opacity: 1;
    border: 2px solid #38bdf8;
}

/* 2-COLUMN MAIN LAYOUT */
.upscale-property-main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    margin-bottom: 60px;
}
.upscale-quick-specs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
}
.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quick-spec-item .spec-icon { font-size: 24px; }
.quick-spec-item .spec-text strong {
    display: block;
    font-size: 15px;
    color: var(--upscale-navy-primary);
}
.quick-spec-item .spec-text small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

/* STICKY NAVIGATION */
.upscale-sticky-nav-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(10, 37, 64, 0.05);
    margin-bottom: 32px;
}
.upscale-sticky-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.upscale-nav-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.upscale-nav-pills::-webkit-scrollbar { display: none; }
.upscale-nav-pills li a {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.upscale-nav-pills li a:hover {
    color: var(--upscale-navy-primary);
    background: #e2e8f0;
}
.upscale-nav-pills li.active a {
    background: var(--upscale-navy-primary);
    color: #ffffff;
    border-color: var(--upscale-navy-primary);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
}

.upscale-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    scroll-margin-top: 75px;
}
.upscale-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.upscale-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.upscale-section-accent-bar {
    width: 4px;
    height: 22px;
    background: #0284c7;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}
.upscale-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0;
}
.section-count-badge {
    font-size: 12px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 30px;
}
.property-description-body {
    line-height: 1.8;
    color: #475569;
    font-size: 15px;
}

/* DETAILS TABLE */
.upscale-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
}
.upscale-details-grid .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.upscale-details-grid .detail-row .label { color: #64748b; }
.upscale-details-grid .detail-row .val { color: var(--upscale-navy-primary); font-weight: 600; }
.upscale-details-grid .detail-row .val.highlight { color: #0284c7; }

/* AMENITIES */
.upscale-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #334155;
}
.feature-item .check-icon {
    width: 20px;
    height: 20px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

/* DOCUMENTS */
.upscale-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.doc-download-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--upscale-navy-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.doc-download-pill:hover {
    background: #e2e8f0;
}

/* MAP */
.upscale-single-map {
    width: 100%;
    height: 380px;
    border-radius: 8px;
}

/* REVIEWS */
.upscale-reviews-list { margin-bottom: 30px; }
.upscale-review-card {
    padding: 18px 0;
    border-bottom: 1px solid #e2e8f0;
}
.upscale-review-card .rev-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.upscale-review-card .rev-avatar img { border-radius: 50%; }
.upscale-review-card .rev-author { margin: 0; font-size: 15px; color: var(--upscale-navy-primary); }
.upscale-review-card .rev-date { font-size: 12px; color: #94a3b8; }
.upscale-review-card .rev-stars { margin-left: auto; color: #f59e0b; font-size: 16px; }
.upscale-write-review-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}
.upscale-write-review-box h4 { margin: 0 0 6px 0; font-size: 18px; color: var(--upscale-navy-primary); }
.guest-indicator { font-size: 13px; color: #64748b; margin: 0 0 16px 0; }
.star-rating-selector { font-size: 26px; color: #cbd5e1; cursor: pointer; margin-bottom: 16px; }
.star-rating-selector .rate-star:hover,
.star-rating-selector .rate-star.hovered,
.star-rating-selector .rate-star.active { color: #f59e0b; }
.upscale-write-review-box input,
.upscale-write-review-box textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.char-count { font-size: 11px; color: #94a3b8; text-align: right; margin-bottom: 14px; }
.upscale-btn-submit-review {
    background: var(--upscale-navy-primary);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* SIDEBAR */
.upscale-sticky-agent-card {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.agent-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.agent-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.agent-info .agent-name {
    margin: 0;
    font-size: 18px;
    color: var(--upscale-navy-primary);
}
.agent-badge {
    font-size: 12px;
    color: #00a884;
    font-weight: 600;
}
.upscale-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.upscale-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #f1f5f9;
    color: var(--upscale-navy-primary);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
}
.quick-inquiry-box h5 {
    font-size: 15px;
    margin: 16px 0 12px 0;
    color: var(--upscale-navy-primary);
}
.quick-inquiry-box input,
.quick-inquiry-box textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 13px;
}
.upscale-btn-inquiry {
    width: 100%;
    background: var(--upscale-navy-primary);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Additional Gallery Grid */
.upscale-additional-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.add-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #0f172a;
}
.add-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.add-gallery-item:hover img { transform: scale(1.06); }
.add-gallery-item .item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.add-gallery-item:hover .item-overlay { opacity: 1; }
.gallery-hidden-item { display: none !important; }
.gallery-expand-wrapper { text-align: center; margin-top: 20px; }

/* Video Tours Section */
.upscale-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.upscale-video-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}
.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--upscale-navy-primary);
    padding: 12px 16px;
    margin: 0;
}

/* Location Advantages */
.upscale-location-advantages-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
.location-advantages-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 16px 0;
}
.upscale-location-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.location-advantage-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.location-advantage-card:hover {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.advantage-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.advantage-content { flex: 1; }
.advantage-top-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.adv-name {
    font-size: 14px;
    color: var(--upscale-navy-primary);
    font-weight: 600;
}
.adv-distance {
    font-size: 12px;
    color: #0284c7;
    font-weight: 700;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.adv-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 3px;
}

/* About Developer */
.upscale-developer-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
}
.developer-identity-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}
.developer-logo-wrap {
    width: 68px;
    height: 68px;
    min-width: 68px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.developer-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.developer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 6px 0;
}
.developer-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 12px;
}
.developer-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.developer-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    text-align: center;
}
.developer-stat-card .stat-number {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
}
.developer-stat-card .stat-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}
.developer-desc-content {
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}
.developer-desc-content.expanded { max-height: 2000px; }
.upscale-link-expand {
    background: none;
    border: none;
    color: #0284c7;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Property FAQs Accordion */
.upscale-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.upscale-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.upscale-faq-item.active {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.upscale-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    cursor: pointer;
}
.faq-toggle-icon {
    font-size: 20px;
    font-weight: 700;
    color: #0284c7;
    transition: transform 0.2s ease;
    line-height: 1;
}
.upscale-faq-item.active .faq-toggle-icon { transform: rotate(45deg); }
.upscale-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.upscale-faq-item.active .upscale-faq-answer { max-height: 600px; }
.faq-answer-inner {
    padding: 0 20px 18px 20px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}
.faq-hidden-item { display: none !important; }
.faq-expand-wrapper { text-align: center; margin-top: 18px; }

/* Contact Form 7 in Sidebar */
.wpcf7 { margin-top: 10px; }
.wpcf7-form p { margin: 0 0 10px 0; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}
.wpcf7-form input[type="submit"] {
    width: 100%;
    background: var(--upscale-navy-primary);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.wpcf7-form input[type="submit"]:hover { background: #14355a; }
.wpcf7-response-output {
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0 0 0 !important;
    padding: 10px !important;
}

/* Related Properties Section */
.upscale-related-properties-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}
.upscale-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.upscale-view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
}
.upscale-view-all-link:hover { text-decoration: underline; }

.upscale-btn-outline {
    background: transparent;
    border: 1px solid #0284c7;
    color: #0284c7;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.upscale-btn-outline:hover {
    background: #0284c7;
    color: #ffffff;
}

/* ==============================================================
   RESPONSIVE QUERIES
   ============================================================== */
@media (max-width: 992px) {
    .upscale-property-main-layout { grid-template-columns: 1fr; }
    .upscale-hero-gallery-grid { grid-template-columns: 1fr; height: auto; }
    .upscale-hero-gallery-grid .main-photo { height: 340px; }
    .upscale-hero-gallery-grid .sub-photos-grid { display: none; }
    .upscale-properties-grid { grid-template-columns: repeat(2, 1fr); }
    .before-footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top-grid { grid-template-columns: 1fr 1fr; }
    .hero-main-title { font-size: 36px; }
}

@media (max-width: 600px) {
    .upscale-single-header .property-title { font-size: 24px; }
    .upscale-details-grid { grid-template-columns: 1fr; }
    .upscale-features-grid { grid-template-columns: 1fr 1fr; }
    .upscale-properties-grid { grid-template-columns: 1fr; }
    .before-footer-links-grid { grid-template-columns: 1fr; }
    .footer-top-grid { grid-template-columns: 1fr; }
    .hero-main-title { font-size: 28px; }
    .top-bar-inner { flex-direction: column; gap: 8px; }
    .header-inner { flex-wrap: wrap; gap: 14px; }
    .upscale-nav-menu { display: none; } /* hamburger toggle */
}
