/* =========================================
   1. CORE DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    --rent-gold: #D4AF37;
    --rent-dark: #000000;
    --rent-card-bg: #111111;
    --rent-white: #ffffff;
    --rent-grey: #bdbdbd;
    --rent-glass: rgba(255, 255, 255, 0.03);
    --rent-glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
    --ease-premium: cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.rent-pg-wrapper {
    background-color: var(--rent-dark);
    color: var(--rent-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}
/* =======================================================
   RENT PAGE HERO SECTION
   ======================================================= */
.rent-pg-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh; /* Perfect sizing for mobile browsers */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--black, #000);
}

/* --- The Background Video --- */
.rent-pg-hero-vid-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Optional: If the video is too bright overall, uncomment the line below */
    /* filter: brightness(0.85); */
}

/* --- THE FIX: Bottom-Only Fade to Black --- */
.rent-pg-hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none; /* Allows clicking through the gradient */
    
    /* Transparent at the top (0% to 60%), smoothly fading to solid black at the bottom (100%) */
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        transparent 60%, 
        rgba(0, 0, 0, 0.8) 85%, 
        var(--black, #000000) 100%
    );
}

/* --- Hero Content Container --- */
.rent-pg-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    width: 100%;
}

/* --- THE FIX: Premium Text Shadows --- */
.rent-pg-main-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 70px; /* Adjust based on your desktop preference */
    color: var(--white, #ffffff);
    margin: 0 0 15px 0;
    line-height: 1.1;
    font-weight: 400;
    
    /* Double-layered shadow: tight crisp edge + soft dark glow */
    text-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.9), 
        0px 10px 30px rgba(0, 0, 0, 0.7);
}

.rent-pg-accent {
    color: var(--luxury-gold, #D4AF37);
    font-style: italic;
}

.rent-pg-subtitle {
    font-family: var(--font-body, 'Work Sans', sans-serif);
    font-size: 20px;
    color: var(--text-grey, #cfcfcf);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    
    /* Slightly softer shadow for the subtitle */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
/* =========================================
   STRICT DESKTOP TYPOGRAPHY (LAPTOP/DESKTOP)
   ========================================= */
.rent-pg-main-title, .rent-pg-section-title {
    font-family: var(--font-heading) !important;
    font-size: 50px !important; /* STRICT DESKTOP HEADING */
    font-weight: 500;
    line-height: 1.2;
    
    /* THE FIX: Layered Text Shadow for perfect readability */
    text-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.9),  /* Crisp dark edge */
        0px 10px 30px rgba(0, 0, 0, 0.7); /* Wide soft dark glow */
}

.rent-pg-description, .rent-pg-faq-content p, .rent-pg-faq-q {
    font-family: var(--font-body) !important;
    font-size: 18px !important; /* STRICT DESKTOP PARAGRAPH */
    line-height: 1.8;
}


/* =========================================
   4. INTRO SECTION
   ========================================= */
.rent-pg-intro { padding: 150px 5% 20px; text-align: center; }
.rent-pg-section-title { margin-bottom: 30px; }
.rent-pg-description { color: var(--rent-grey); max-width: 900px; margin: 0 auto; }

/* =========================================
   5. PROPERTY GRID CARDS
   ========================================= */
.projects-section { padding: 80px 5%; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns Desktop */
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--rent-card-bg); border-radius: 10px; overflow: hidden;
    position: relative; transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); cursor: pointer;
}

.project-card:hover { transform: translateY(-10px); }

.card-img-wrap { position: relative; height: 350px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .card-img-wrap img { transform: scale(1.1); }

.exclusive-tag {
    position: absolute; top: 20px; left: 20px;
    background: var(--rent-gold); color: #000;
    padding: 6px 15px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; z-index: 2;
}

.card-content { padding: 25px; }
.card-content h3 { font-family: var(--font-heading); font-size: 22px; margin: 0 0 5px 0; color: var(--rent-white); }
.location { font-size: 12px; color: var(--rent-grey); display: block; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }

.price-row { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.price-label { font-size: 10px; color: #888; text-transform: uppercase; display: block; margin-bottom: 2px; }
.price-value { color: var(--rent-gold); font-weight: 600; font-size: 16px; }

.arrow-icon { color: var(--rent-gold); font-size: 18px; transition: transform 0.3s; }
.project-card:hover .arrow-icon { transform: rotate(-45deg); }

.rent-pg-faq { 
    padding: 120px 5%; 
    position: relative; /* Essential for background positioning */
    overflow: hidden;
    background: #000; /* Fallback */
}


/* FAQ SECTION */
/* Background Media Fixed */
.faq-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5; /* Balanced visibility */
    filter: grayscale(40%) brightness(0.9); 
    pointer-events: none;
}

/* Deep Gradient Overlay - Keeps center video visible */
.faq-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(20, 20, 20, 0.253) 0%, rgba(5, 8, 15, 0.85) 100%);
}

.rent-pg-faq-container {
    position: relative;
    z-index: 2; /* Ensures content is above video/overlay */
    max-width: 1000px;
    margin: 0 auto;
  
}

.rent-pg-faq-header { 
    text-align: center; 
    margin-bottom: 60px; 
}

/* Cinematic Gold Divider */
.rent-pg-gold-divider {
    height: 2px; width: 80px;
    background: rgba(255, 196, 3, 0.897);
    margin: 25px auto;
    position: relative;
    overflow: hidden;
}

.rent-pg-gold-divider::after {
    content: ''; 
    position: absolute; 
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--rent-gold), transparent);
    animation: line-sweep 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* The FAQ Card - Curved & High Shadow */
.rent-pg-faq-item {
    max-width: 1000px;
    margin: 0 auto 20px;
    background: rgba(5, 5, 5, 0.918); /* Darker glass for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; /* Smooth curved corners */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    /* Premium Box Shadow */
     box-shadow: 
        0 40px 100px rgba(46, 46, 46, 0.6), 
        0 10px 40px rgba(22, 22, 22, 0.4),
        0 0 100px rgba(14, 13, 13, 0.03); 
        
    border: 1px solid rgba(43, 43, 43, 0.03); /* Ghost border */
}

.rent-pg-faq-item:hover {
    background: var(--rent-dark);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.1);
}

.rent-pg-faq-item.active {
    background: rgba(0, 0, 0, 0.89);
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

/* Question Trigger */
.rent-pg-faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.rent-pg-faq-q {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    letter-spacing: 0.3px;
    transition: all 0.4s ease;
}

.rent-pg-faq-item.active .rent-pg-faq-q {
    color: #D4AF37;
    font-weight: 500;
}

/* Smooth Icon Animation */
.rent-pg-faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rent-pg-faq-icon .line {
    position: absolute;
    background: #D4AF37;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rent-pg-faq-icon .vertical {
    width: 2px; height: 16px;
    left: 9px; top: 2px;
}

.rent-pg-faq-icon .horizontal {
    width: 16px; height: 2px;
    top: 9px; left: 2px;
}

.rent-pg-faq-item.active .vertical {
    transform: rotate(90deg);
    opacity: 0;
}

/* The Smooth Panel Reveal */
.rent-pg-faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rent-pg-faq-item.active .rent-pg-faq-panel {
    max-height: 600px;
}

.rent-pg-faq-content {
    padding: 0 40px 40px 40px;
    opacity: 0;
    filter: blur(15px);
    transform: translateY(20px);
    transition: 
        opacity 0.8s ease, 
        filter 0.8s ease, 
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rent-pg-faq-item.active .rent-pg-faq-content {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition-delay: 0.2s;
}

.rent-pg-faq-content p {
    font-family: 'Work Sans', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

/* Mobile Smoothing */
@media (max-width: 768px) {
    .rent-pg-faq { padding: 80px 20px; }
    .rent-pg-faq-btn { padding: 25px; }
    .rent-pg-faq-content { padding: 0 25px 30px 25px; }
    
    .rent-pg-faq-q, 
    .rent-pg-faq-content p { 
        font-size: 16px !important; 
    }
}

/* =======================================================
   RESPONSIVE LAYOUTS (TABLET & MOBILE)
   ======================================================= */

/* --- TABLET VIEW (Max 1024px) --- */
@media (max-width: 1024px) {
    /* Grid becomes 2 columns */
    .grid-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .card-img-wrap { height: 300px; }
    
    .rent-pg-intro, .projects-section, .rent-pg-faq { padding: 80px 5%; }
}

/* --- MOBILE VIEW (Max 768px) --- */
@media (max-width: 768px) {
    /* Grid becomes 1 column */
    .grid-container { grid-template-columns: 1fr; max-width: 500px; }
    
    .rent-pg-hero { height: 70vh; }
    .card-img-wrap { height: 280px; }
    
    /* FAQ Mobile Adjustments */
    .rent-pg-faq-btn { padding: 25px 20px; }
    .rent-pg-faq-content { padding: 0 20px 25px 20px; }
}

/* --- STRICT MOBILE VIEW (Max 425px) --- */
@media (max-width: 425px) {
    
    /* Strict Padding for Mobile */
    .rent-pg-intro, .projects-section, .rent-pg-faq { padding: 60px 20px 0px !important; }
    
    /* STRICT MOBILE HEADINGS (36px) */
    .rent-pg-main-title, .rent-pg-section-title {
        font-size: 36px !important;
        margin-bottom: 20px !important;
    }
    
    /* STRICT MOBILE PARAGRAPHS & FAQ TEXT (16px) */
    .rent-pg-description, .rent-pg-faq-content p, .rent-pg-faq-q {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Fix Alignment for Mobile */
    .rent-pg-section-title, .rent-pg-description, .rent-pg-faq-header {
        text-align: left !important;
    }
    
    .rent-pg-gold-divider { margin: 15px 0 !important; }

    /* Card Mobile Adjustments */
    .card-img-wrap { height: 240px; }
    .card-content { padding: 20px; text-align: left !important; }
    .card-content h3 { font-size: 20px; }
    
    /* FAQ Mobile Fixes */
    .rent-pg-faq-item { border-radius: 8px; }
    .rent-pg-faq-btn { padding: 20px; }
    .rent-pg-faq-content { padding: 0 20px 20px 20px; text-align: left !important; }
}