*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.property-details-main {
    background: radial-gradient(circle at 50% 0%, var(--dark-2) 0%, var(--dark) 100%);
    color: var(--soft);
    font-family: 'Inter', system-ui, sans-serif;
    padding-bottom: 120px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================
   1. FULL-WIDTH BANNER SLIDER
   ========================================================== */
.hero-banner-slider {
    position: relative;
    width: 100vw;
    height: 90vh;
    min-height: 400px;
    max-height: 750px;
    overflow: hidden;
    background: var(--dark-2);
}

.hero-slides-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

/* Navigation Arrows — Left & Right Middle */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hero-nav-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* Dots Bar — Bottom Center */
.hero-dots-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hero-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* --- 2. HEADER & TYPOGRAPHY HIERARCHY --- */
.details-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.property-header {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.builder-logo {
    height: 72px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.header-info h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 300;
    margin: 0 0 10px 0;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.header-info p {
    margin: 0;
    color: var(--primary);
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    letter-spacing: 1.5px;
    font-weight: 300;
    text-transform: uppercase;
}

/* --- 3. LAYOUT & SPACING --- */
.content-split {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: start;
    margin-top: 60px;
}

/* --- 4. EDITORIAL TAB NAVIGATION --- */
.tab-navigation {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 50px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0 0 16px 0;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.4s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: left;
}

.tab-btn:hover  { color: var(--soft); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-content { display: none; animation: subtleRise 0.6s ease-out; }
.active-tab  { display: block; }

@media (max-width: 768px) {
    .tab-content {
        display: block !important;
        animation: none;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 40px;
    }

    .tab-content:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    .tab-content[data-tab]::before {
        content: attr(data-tab);
        display: block;
        font-size: 0.7rem;
        letter-spacing: 2.5px;
        text-transform: uppercase;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(217, 164, 65, 0.2);
    }

    .tab-navigation {
        display: none;
    }
}

@keyframes subtleRise {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 5. MINIMALIST GRIDS --- */
.overview-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 55px; 
}

.overview-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.3));
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid var(--primary); 
    padding: 24px 20px; 
    border-radius: 16px; 
    text-align: left; 
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: flex-start;
    gap: 12px;
}

.overview-item:hover { 
    transform: translateY(-5px); 
    background: rgba(217, 164, 65, 0.05); 
}

.overview-icon {
    width: 32px; 
    height: 32px; 
    object-fit: contain;
    margin-bottom: 4px;
}

.overview-item span { 
    display: block; 
    font-size: 0.7rem;
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--muted); 
    font-weight: 700;
    margin: 0;
}

.overview-item strong { 
    display: block; 
    font-family: 'Cormorant Garamond', serif; 
    font-size: clamp(1.25rem, 4vw, 1.2rem); 
    color: var(--white); 
    font-weight: 400;
    line-height: 1.1;
    width: 100%;
    word-wrap: break-word; 
    overflow-wrap: break-word;
    margin: 0;
}

.amenity-card{
	background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
	border: 1px solid rgba(255,255,255,0.05);
	border-top: 2px solid var(--primary);
	padding: 30px 24px;
	border-radius: 16px;
	text-align: left;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.overview-item:hover,
.amenity-card:hover {
    transform: translateY(-5px);
    background: rgba(217, 164, 65, 0.05);
    border-color: rgba(217, 164, 65, 0.3);
}

#descText {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--soft);
}

/* --- WALKTHROUGH VIDEO RESPONSIVENESS --- */
.video-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding-bottom: 56.25%; 
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(215, 168, 79, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 6. THE "BESPOKE" SIDEBAR FORM --- */
.right-sidebar { position: sticky; top: 120px; }

.sticky-form {
    padding: 48px 40px;
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

.sticky-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    margin: 0 0 35px 0;
    color: var(--white);
    line-height: 1.1;
}

.input-group { margin-bottom: 28px; }

.input-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 10px 0;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
    font-weight: 300;
}

.input-group textarea { min-height: 80px; resize: none; }

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--primary);
    background: linear-gradient(0deg, rgba(217, 164, 65, 0.05), transparent);
}

/* --- 7. REFINED BUTTONS --- */
.gold-btn {
    width: 100%;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 20px;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 15px;
    min-height: 56px;
    touch-action: manipulation;
}

.gold-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(217, 164, 65, 0.25);
}

@media (hover: none) {
    .gold-btn:hover        { transform: none; box-shadow: none; }
    .overview-item:hover,
    .amenity-card:hover    { transform: none; }
}

.form-status {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary);
}

/* --- OVERVIEW & AMENITY CUSTOM ICONS --- */
.overview-icon,
.amenity-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(215, 168, 79, 0.4));
    transition: 0.3s;
}

.overview-item:hover .overview-icon,
.amenity-card:hover .amenity-icon {
    transform: scale(1.1);
}

/* --- LUXURY DESCRIPTION TYPOGRAPHY --- */
.luxury-description p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 300;
    line-height: 1.9;
    color: var(--soft);
    margin-bottom: 1.5em;
}

.luxury-description p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin-right: 12px;
    color: var(--gold);
    font-weight: 400;
}

/* --- FLOOR PLAN SLIDER --- */
.floor-plan-slider {
    position: relative;
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active { opacity: 1; z-index: 2; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 20, 15, 0.8);
    color: var(--gold);
    border: 1px solid var(--gold);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    touch-action: manipulation;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-btn:hover { background: var(--gold); color: #000; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: 0.3s;
    padding: 4px;
    box-sizing: content-box;
}

.dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

/* ==========================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================== */

/* --- TABLET (≤ 1100px) --- */
@media (max-width: 1100px) {
    .content-split {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .right-sidebar {
        position: relative;
        top: 0;
    }
}

/* --- MOBILE (≤ 768px) --- */
@media (max-width: 768px) {
    .property-details-main {
        padding-bottom: 80px;
    }

    /* Banner: shorter on mobile */
    .hero-banner-slider {
        height: 50vh;
        min-height: 280px;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-prev { left: 12px; }
    .hero-next { right: 12px; }

    .hero-dots-bar {
        bottom: 12px;
        padding: 6px 14px;
        gap: 8px;
    }

    .hero-dot {
        width: 8px;
        height: 8px;
    }

    .hero-dot.active {
        width: 20px;
    }

    /* Header stacks vertically */
    .property-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 0;
    }

    .builder-logo { height: 56px; }

    .header-info h1 { font-size: clamp(1.8rem, 8vw, 2.8rem); }

    .tab-navigation { gap: 24px; }

    .sticky-form {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .overview-grid,
    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .overview-item,
    .amenity-card {
        padding: 22px 18px;
    }

    .floor-plan-slider {
        aspect-ratio: unset;
        height: 240px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }

    .luxury-description p:first-of-type::first-letter {
        font-size: 2.8rem;
    }
}

/* --- SMALL PHONES (≤ 480px) --- */
@media (max-width: 480px) {
    .details-container { padding: 0 5%; }

    .overview-grid,
    .amenities-grid {
        gap: 12px;
    }

    .overview-item,
    .amenity-card {
        padding: 18px 14px;
    }

    .overview-icon,
    .amenity-icon {
        width: 30px;
        height: 30px;
    }

    .tab-navigation { gap: 18px; }

    .tab-btn {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }

    .sticky-form { padding: 28px 16px; }

    .gold-btn {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 18px;
    }

    .floor-plan-slider { height: 200px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .hero-slides-track,
    .overview-item,
    .amenity-card,
    .tab-btn::after,
    .tab-content,
    .slide {
        transition: none;
        animation: none;
    }

    .hero-banner-slider { animation: none; }
}
