/**
 * UPSCALE INFRA - MASTER SITE & SINGLE PROPERTY STYLESHEET (main.css)
 * Version: 1.0.0
 * Architecture: Clean, modular, fully-commented, high-performance CSS.
 * Responsive Paddings: Desktop 50px | Tablet 30px | Mobile 20px 15px
 */

/* ==============================================================
   1. THEME VARIABLES (COLORS, FONTS, SHADOWS)
   ============================================================== */
:root {
    /* Luxury Brand Navy & Blue Palette */
    --upscale-navy-dark: #061626;
    --upscale-navy-primary: #0a2540;
    --upscale-navy-mid: #14355a;
    --upscale-blue-accent: #0284c7;
    --upscale-blue-sky: #38bdf8;
    --upscale-blue-light: #e0f2fe;

    /* Neutrals & Backgrounds */
    --upscale-white: #ffffff;
    --upscale-bg-subtle: #f8fafc;
    --upscale-bg-warm: #fdfbf7;
    --upscale-border: #e2e8f0;
    --upscale-border-focus: #0284c7;

    /* Text Colors */
    --upscale-text-dark: #1e293b;
    --upscale-text-muted: #64748b;
    --upscale-text-light: #94a3b8;

    /* Accents */
    --upscale-green-wa: #25d366;
    --upscale-gold: #c5a880;
    --upscale-red: #ef4444;

    /* Radius & Elevation */
    --upscale-radius-sm: 6px;
    --upscale-radius-md: 10px;
    --upscale-radius-lg: 14px;
    --upscale-radius-pill: 30px;
    --upscale-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --upscale-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --upscale-shadow-lg: 0 16px 30px rgba(0,0,0,0.08);

    /* Typography */
    --upscale-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --upscale-font-serif: "Georgia", "Times New Roman", serif;
}

/* ==============================================================
   2. BASE RESET & TYPOGRAPHY SCALE
   ============================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--upscale-font-sans);
    color: var(--upscale-text-dark);
    background-color: var(--upscale-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Heading Scale: Desktop ~50px main heading -> responsive mobile */
h1, .h1-title {
    font-family: var(--upscale-font-serif);
    font-size: 48px;
    line-height: 1.2;
    color: var(--upscale-navy-primary);
    margin: 0 0 18px 0;
    font-weight: 700;
}

h2, .h2-title {
    font-family: var(--upscale-font-serif);
    font-size: 36px;
    line-height: 1.25;
    color: var(--upscale-navy-primary);
    margin: 0 0 14px 0;
    font-weight: 700;
}

h3, .h3-title {
    font-family: var(--upscale-font-sans);
    font-size: 22px;
    line-height: 1.35;
    color: var(--upscale-navy-primary);
    margin: 0 0 12px 0;
    font-weight: 700;
}

h4, .h4-title {
    font-family: var(--upscale-font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 8px 0;
}

p {
    margin: 0 0 14px 0;
}

a {
    color: var(--upscale-blue-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--upscale-navy-mid);
}

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

/* Alternating Section Backgrounds & Paddings (Desktop: 50px) */
.upscale-section {
    padding: 50px 0;
}

.upscale-section.bg-white {
    background-color: var(--upscale-white);
}

.upscale-section.bg-subtle {
    background-color: var(--upscale-bg-subtle);
}

.upscale-section.bg-warm {
    background-color: var(--upscale-bg-warm);
}

/* ==============================================================
   3. UNIVERSAL FORM CONTROLS & BUTTONS
   ============================================================== */
.btn-primary, button[type="submit"] {
    background: var(--upscale-navy-primary);
    color: var(--upscale-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--upscale-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover, button[type="submit"]:hover {
    background: var(--upscale-navy-mid);
    color: var(--upscale-white);
    transform: translateY(-1px);
}

.upscale-btn-outline {
    background: transparent;
    border: 1px solid var(--upscale-blue-accent);
    color: var(--upscale-blue-accent);
    padding: 10px 22px;
    border-radius: var(--upscale-radius-pill);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upscale-btn-outline:hover {
    background: var(--upscale-blue-accent);
    color: var(--upscale-white);
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    font-size: 14px;
    color: var(--upscale-text-dark);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--upscale-blue-accent);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* ==============================================================
   4. STICKY PROPERTY NAVIGATION BAR
   ============================================================== */
.upscale-sticky-nav-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--upscale-white);
    border-bottom: 1px solid var(--upscale-border);
    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: var(--upscale-radius-pill);
    font-size: 14px;
    font-weight: 600;
    color: var(--upscale-text-muted);
    background: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    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: var(--upscale-white);
    border-color: var(--upscale-navy-primary);
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.2);
}

/* ==============================================================
   5. PROPERTY SECTION HEADINGS (REUSABLE ACCENT COMPONENT)
   ============================================================== */
.upscale-section-card {
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--upscale-shadow-sm);
    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: var(--upscale-blue-accent);
    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: var(--upscale-blue-accent);
    background: var(--upscale-blue-light);
    padding: 4px 10px;
    border-radius: var(--upscale-radius-pill);
}

/* ==============================================================
   6. SINGLE PROPERTY HERO HEADER & PRICE FIX
   ============================================================== */
.upscale-property-single-container {
    padding: 20px 0 60px 0;
}

.upscale-breadcrumbs {
    font-size: 13px;
    color: var(--upscale-text-muted);
    padding: 12px 0 20px 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: 20px;
}

.property-badges-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.badge-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-tag.for-sale { background: #dcfce7; color: #15803d; }
.badge-tag.for-rent { background: var(--upscale-blue-light); color: #0369a1; }
.badge-tag.status { background: #fef3c7; color: #b45309; }
.badge-tag.pincode { background: #f1f5f9; color: #475569; }

.upscale-single-header .property-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.property-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--upscale-text-muted);
}

.see-on-map {
    color: var(--upscale-blue-accent);
    margin-left: 8px;
    font-weight: 600;
}

/* Clean Price Display (Prevents Clash Bug) */
.upscale-single-header .header-right {
    text-align: right;
}

.upscale-single-header .property-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
    font-size: 34px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
    line-height: 1.1;
}

.upscale-single-header .property-price .price-prefix,
.upscale-single-header .property-price .price-suffix {
    font-size: 15px;
    font-weight: 600;
    color: var(--upscale-text-muted);
}

.property-rate-sqft {
    font-size: 13px;
    color: var(--upscale-text-muted);
    margin-top: 4px;
}

.property-id-badge {
    font-size: 12px;
    color: var(--upscale-text-light);
    margin-top: 4px;
}

/* ==============================================================
   7. HERO GALLERY GRID & 1-PHOTO FULL WIDTH FIX
   ============================================================== */
.upscale-hero-gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 480px;
    border-radius: var(--upscale-radius-md);
    overflow: hidden;
    margin-bottom: 24px;
}

/* When exactly 1 photo exists: stretch full width with zero blank white area */
.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;
    overflow: hidden;
}

.upscale-hero-gallery-grid .main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.upscale-hero-gallery-grid .main-photo:hover img {
    transform: scale(1.02);
}

.hero-video-play-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 37, 64, 0.85);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
}

.hero-video-play-btn:hover {
    background: var(--upscale-blue-accent);
    color: #fff;
    transform: scale(1.1);
}

.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;
    transition: transform 0.3s ease;
}

.upscale-hero-gallery-grid .sub-photo-item:hover img {
    transform: scale(1.05);
}

.view-all-photos-btn {
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0.82);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    padding: 8px;
}

.view-all-photos-floating-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--upscale-white);
    color: var(--upscale-navy-primary);
    border: none;
    padding: 10px 18px;
    border-radius: var(--upscale-radius-pill);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.view-all-photos-floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

/* Lightbox Modal */
.upscale-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(6, 22, 38, 0.96);
    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: 38px;
    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.15);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.upscale-lightbox-modal .lightbox-prev:hover,
.upscale-lightbox-modal .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.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;
    padding: 4px;
}

.upscale-lightbox-modal .lightbox-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s, border 0.2s;
}

.upscale-lightbox-modal .lightbox-thumb.active {
    opacity: 1;
    border: 2px solid var(--upscale-blue-sky);
}

/* ==============================================================
   8. 2-COLUMN MAIN PROPERTY LAYOUT
   ============================================================== */
.upscale-property-main-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 36px;
    margin-bottom: 50px;
}

/* Quick Specs Bar */
.upscale-quick-specs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    background: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    padding: 18px 20px;
    margin-bottom: 28px;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon-wrap {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--upscale-blue-accent);
}

.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: var(--upscale-text-light);
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Details & Specifications Grid */
.upscale-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
}

.upscale-details-grid .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--upscale-border);
    font-size: 14px;
}

.upscale-details-grid .detail-row .label { color: var(--upscale-text-muted); }
.upscale-details-grid .detail-row .val { color: var(--upscale-navy-primary); font-weight: 600; }
.upscale-details-grid .detail-row .val.highlight { color: var(--upscale-blue-accent); }

/* Amenities Checklist */
.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: var(--upscale-text-dark);
}

.check-icon-wrap {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: var(--upscale-blue-light);
    color: var(--upscale-blue-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Additional Photo Gallery Grid (12 Images + Expander) */
.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: var(--upscale-radius-sm);
    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: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    overflow: hidden;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    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;
}

/* Documents & Floor Plans */
.upscale-docs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.doc-download-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    color: var(--upscale-navy-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.doc-download-pill:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Location Advantages List & Map */
.upscale-map-wrapper {
    margin-bottom: 24px;
    border-radius: var(--upscale-radius-sm);
    overflow: hidden;
    border: 1px solid var(--upscale-border);
}

.upscale-single-map {
    width: 100%;
    height: 380px;
}

.map-fallback-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--upscale-bg-subtle);
    color: var(--upscale-text-muted);
}

.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: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    transition: all 0.2s ease;
}

.location-advantage-card:hover {
    background: var(--upscale-white);
    border-color: var(--upscale-blue-accent);
    box-shadow: var(--upscale-shadow-sm);
}

.advantage-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: var(--upscale-blue-light);
    color: var(--upscale-blue-accent);
    border-radius: var(--upscale-radius-sm);
    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: var(--upscale-blue-accent);
    font-weight: 700;
    background: var(--upscale-blue-light);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.adv-desc {
    display: block;
    font-size: 12px;
    color: var(--upscale-text-muted);
    margin-top: 3px;
}

/* About Developer Section */
.upscale-developer-wrapper {
    background: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    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: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    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: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    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: var(--upscale-text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.developer-desc-content {
    color: var(--upscale-text-dark);
    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: var(--upscale-blue-accent);
    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: var(--upscale-bg-subtle);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.upscale-faq-item.active {
    background: var(--upscale-white);
    border-color: var(--upscale-blue-accent);
    box-shadow: var(--upscale-shadow-sm);
}

.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: var(--upscale-blue-accent);
    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;
}

/* ==============================================================
   9. STICKY CONTACT SIDEBAR & CONTACT FORM 7
   ============================================================== */
.upscale-sticky-agent-card {
    position: sticky;
    top: 85px;
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    padding: 24px;
    box-shadow: var(--upscale-shadow-md);
}

.agent-profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--upscale-blue-light);
    color: var(--upscale-blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-info .agent-name {
    margin: 0;
    font-size: 17px;
    color: var(--upscale-navy-primary);
    font-weight: 700;
}

.agent-badge {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.upscale-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--upscale-green-wa);
    color: var(--upscale-white);
    text-decoration: none;
    padding: 12px;
    border-radius: var(--upscale-radius-sm);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: background 0.2s, transform 0.2s;
}

.upscale-btn-whatsapp:hover {
    background: #1eb956;
    color: #fff;
    transform: translateY(-1px);
}

.upscale-btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--upscale-bg-subtle);
    color: var(--upscale-navy-primary);
    text-decoration: none;
    padding: 10px;
    border-radius: var(--upscale-radius-sm);
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
    border: 1px solid var(--upscale-border);
    transition: background 0.2s;
}

.upscale-btn-call:hover {
    background: #e2e8f0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--upscale-border);
    margin: 20px 0;
}

.quick-inquiry-box .inquiry-box-title {
    font-size: 16px;
    margin: 0 0 14px 0;
    color: var(--upscale-navy-primary);
    font-weight: 700;
}

.upscale-inquiry-native-form .form-field {
    margin-bottom: 10px;
}

.upscale-btn-inquiry {
    width: 100%;
    background: var(--upscale-navy-primary);
    color: var(--upscale-white);
    border: none;
    padding: 12px;
    border-radius: var(--upscale-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.upscale-btn-inquiry:hover {
    background: var(--upscale-navy-mid);
}

/* Contact Form 7 Seamless Integration */
.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 var(--upscale-border);
    border-radius: var(--upscale-radius-sm);
    font-size: 13px;
    box-sizing: border-box;
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    background: var(--upscale-navy-primary);
    color: var(--upscale-white);
    border: none;
    padding: 12px;
    border-radius: var(--upscale-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--upscale-navy-mid);
}

.wpcf7-response-output {
    border-radius: 6px;
    font-size: 13px;
    margin: 12px 0 0 0 !important;
    padding: 10px !important;
}

/* ==============================================================
   10. 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: var(--upscale-blue-accent);
    text-decoration: none;
}

.upscale-view-all-link:hover {
    text-decoration: underline;
}

/* Property Card Design (Used across grid & related section) */
.upscale-property-card {
    background: var(--upscale-white);
    border: 1px solid var(--upscale-border);
    border-radius: var(--upscale-radius-md);
    overflow: hidden;
    box-shadow: var(--upscale-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upscale-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--upscale-shadow-md);
}

.upscale-property-card .card-media {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.upscale-property-card .property-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.upscale-property-card:hover .property-thumb {
    transform: scale(1.04);
}

.card-badges-wrapper {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.card-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-badge.for-sale { background: #dcfce7; color: #15803d; }
.card-badge.for-rent { background: var(--upscale-blue-light); color: #0369a1; }
.card-badge-area { background: rgba(10,37,64,0.8); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.card-fav-btn:hover {
    color: #ef4444;
    background: #fff;
}

.upscale-property-card .card-body {
    padding: 16px 18px;
    flex: 1;
}

.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--upscale-navy-primary);
    margin-bottom: 8px;
}

.card-specs {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--upscale-text-muted);
    margin-bottom: 10px;
}

.card-specs .spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.card-title a {
    color: var(--upscale-navy-primary);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--upscale-blue-accent);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--upscale-text-muted);
    margin: 0;
}

.upscale-property-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.agent-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-compact .agent-thumb {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-compact .agent-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--upscale-blue-light);
    color: var(--upscale-blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-compact .agent-name {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--upscale-navy-primary);
}

.agent-compact .agent-role {
    display: block;
    font-size: 11px;
    color: var(--upscale-text-light);
}

.card-view-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--upscale-blue-light);
    color: var(--upscale-blue-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.card-view-btn:hover {
    background: var(--upscale-blue-accent);
    color: #fff;
}

/* ==============================================================
   11. TABLET RESPONSIVE STYLES (768px - 1024px: padding 30px)
   ============================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .upscale-section {
        padding: 30px;
    }

    .upscale-property-main-layout {
        grid-template-columns: 1fr;
    }

    .upscale-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .upscale-hero-gallery-grid {
        height: 380px;
    }

    .upscale-additional-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .upscale-single-header .property-title {
        font-size: 28px;
    }

    .upscale-single-header .property-price {
        font-size: 28px;
    }
}

/* ==============================================================
   12. MOBILE RESPONSIVE STYLES (<= 767px: 20px 15px 20px 15px)
       Elements stay exactly 15px away from mobile screen edge!
   ============================================================== */
@media (max-width: 767px) {
    .upscale-section {
        padding: 20px 15px;
    }

    .upscale-container {
        padding: 0 15px;
    }

    .upscale-property-main-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .upscale-single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .upscale-single-header .header-right {
        text-align: left;
        width: 100%;
    }

    .upscale-single-header .property-price {
        justify-content: flex-start;
        font-size: 26px;
    }

    .upscale-single-header .property-title {
        font-size: 24px;
    }

    /* Hero gallery on mobile: clean single main photo */
    .upscale-hero-gallery-grid {
        grid-template-columns: 1fr;
        height: 260px;
        margin-bottom: 18px;
    }

    .upscale-hero-gallery-grid .sub-photos-grid {
        display: none !important;
    }

    /* Additional Gallery on Mobile */
    .upscale-additional-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Location Advantages on Mobile */
    .upscale-location-advantages-grid {
        grid-template-columns: 1fr;
    }

    /* Developer Stats on Mobile */
    .developer-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Specs & Features on Mobile */
    .upscale-details-grid {
        grid-template-columns: 1fr;
    }

    .upscale-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .upscale-quick-specs-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 14px;
    }

    /* Related Properties on Mobile */
    .upscale-related-grid {
        grid-template-columns: 1fr;
    }

    /* Lightbox modal on mobile */
    .upscale-lightbox-modal .lightbox-prev { left: 10px; }
    .upscale-lightbox-modal .lightbox-next { right: 10px; }
}
