/* ===================================================================
   370 Queens Quay Private Residences - Base Styles (Desktop + Core)
   Clean, organized CSS following best practices
   =================================================================== */

/* =============
   CSS VARIABLES
   ============= */
:root {
    /* Color Palette */
    --primary-gold: #C9A961;
    --heading-dark: #282425;
    --charcoal: #2C2C2C;
    --warm-white: #FEFEFE;
    --pearl: #F8F6F3;
    --silver: #E8E5E1;
    --accent-blue: #4A6FA5;
    --bg-cream: #F4ECDA;
    --deep-navy: #2C3E50;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-logo: 'Libre Baskerville', Baskerville, serif;
    
    /* Layout & Spacing */
    --container-max-width: 1400px;
    --container-padding: 40px;
    --section-padding: 120px 0;
    --content-gap: 100px;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* ================
   RESET & BASE
   ================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Lazy Loading Styles */
img[loading="lazy"] {
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"]:not(.lazy-loaded) {
    opacity: 0.8;
}

img[loading="lazy"].lazy-loaded {
    opacity: 1;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 125px;
}

/* =================
   UTILITY CLASSES
   ================= */
.serif { 
    font-family: var(--font-logo); 
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.spacer {
    padding-top: 175px;
}

/* =================
   ANIMATIONS
   ================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================
   HEADER & NAVIGATION
   ================== */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #F4ECDA;
    backdrop-filter: blur(20px);
}

.page-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 88vw;
    height: 1px;
    background: rgba(200, 169, 97, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 8px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.03) 30%, transparent 30%, transparent 35%, rgba(0, 0, 0, 0.03) 35%, rgba(0, 0, 0, 0.03) 65%, transparent 30%, transparent 35%, rgba(0, 0, 0, 0.03) 70%, rgba(0, 0, 0, 0.03) 100%
    );
    filter: blur(4px);
    z-index: -1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    flex-wrap: wrap;
}

/* Logo */
.logo-container {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInContainer 0.8s ease-out 0.3s forwards;
}

@keyframes fadeInContainer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-text-the, 
.logo-text-quay {
    font-family: var(--font-logo);
    fill: #2c2a29;
    opacity: 0;
    transform: scale(0.9);
}

.logo-text-the { 
    animation: fadeInText 0.6s ease-out 0.8s forwards; 
}

.logo-text-quay { 
    animation: fadeInText 0.8s ease-out 1.2s forwards; 
}

@keyframes fadeInText {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-container:hover .logo-text-the,
.logo-container:hover .logo-text-quay {
    transition: fill 0.3s ease;
    fill: var(--primary-gold);
}

/* Navigation */
.primary-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    visibility: visible;
    opacity: 1;
}

.primary-menu a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    position: relative;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.primary-menu a:hover {
    color: var(--primary-gold);
}

.primary-menu a:hover::after {
    width: 100%;
}

/* Header Button */
.header-btn {
    background: linear-gradient(135deg, var(--primary-gold), #B8965A);
    color: var(--warm-white);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-base);
    border: 1px solid var(--primary-gold);
    visibility: visible;
    opacity: 1;
    cursor: pointer;
}

.header-btn:hover {
    background: var(--deep-navy);
    color: var(--pearl);
    transition: all 0.4s ease !important;
    transform: translateY(-3px);
}

.body-cta-btn {
            color: var(--warm-white);
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            background: linear-gradient(135deg, var(--primary-gold), #B8965A);
            padding: 14px 28px;
            text-decoration: none;
            transition: var(--transition-base);
            border: 1px solid var(--primary-gold);
            display: inline-block;
            border-radius: 0px;
        }

.body-cta-btn:hover {
            color: var(--pearl);
            transform: translateY(-3px);
            background: var(--deep-navy);
            transition: 0.4s !important;
        }

/* Mobile Toggle - Enhanced Hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    order: 3;
    visibility: visible;
    opacity: 1;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    transition: var(--transition-base);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    transition: var(--transition-base);
    transform-origin: center;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   MOBILE NAVIGATION OVERLAY
   ========================= */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--warm-white);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active {
    right: 0;
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--silver);
    background: var(--pearl);
}

.mobile-nav-logo svg {
    width: 140px;
    height: auto;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-base);
}

.close-line {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--charcoal);
    transition: var(--transition-base);
}

.close-line:nth-child(1) {
    transform: rotate(45deg);
}

.close-line:nth-child(2) {
    transform: rotate(-45deg);
}

.mobile-nav-close:hover .close-line {
    background-color: var(--primary-gold);
}

.mobile-nav-menu {
    flex: 1;
    padding: 10px 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(200, 169, 97, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-menu-item {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-overlay.active .mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-menu-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-menu-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-menu-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-menu-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-menu-item:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    text-decoration: none;
    color: var(--charcoal);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(201, 169, 97, 0.05);
    color: var(--primary-gold);
}

.mobile-menu-link:hover .menu-icon,
.mobile-menu-link.active .menu-icon {
    transform: translateX(5px);
    color: var(--primary-gold);
}

.menu-text {
    font-family: var(--font-primary);
}

.menu-icon {
    font-size: 20px;
    transition: var(--transition-base);
    color: var(--charcoal);
    opacity: 0.6;
}

.mobile-nav-footer {
    padding: 30px 40px;
    background: var(--pearl);
    border-top: 1px solid var(--silver);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-overlay.active .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.mobile-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold), #B8965A);
    color: var(--warm-white);
    padding: 18px 28px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 4px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-cta-btn:hover {
    background: var(--deep-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-text {
    flex: 1;
}

.cta-icon {
    font-size: 18px;
    transition: var(--transition-base);
}

.mobile-cta-btn:hover .cta-icon {
    transform: rotate(90deg);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end; /* Right-align the contact items */
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end; /* Right-align the content within each item */
    text-align: right; /* Right-align the text */
}

.contact-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: var(--transition-base);
}

.contact-link:hover {
    color: var(--primary-gold);
}

/* =========================
   TOUR BOOKING MODAL
   ========================= */
.tour-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
    padding: 20px;
}

.tour-modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.tour-modal-content {
    background: var(--warm-white);
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    
    /* Custom scrollbar to preserve border-radius */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 97, 0.5) transparent;
}

/* Tour modal scrollbar styling */
.tour-modal-content::-webkit-scrollbar {
    width: 8px;
}

.tour-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 8px 8px 0;
}

.tour-modal-content::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 97, 0.5);
    border-radius: 4px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.tour-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 97, 0.7);
    background-clip: content-box;
}

.tour-modal-content::-webkit-scrollbar-corner {
    background: transparent;
}

.tour-modal-overlay.visible .tour-modal-content {
    transform: scale(1) translateY(0);
}

.tour-modal-close {
    position: absolute;
    top: 30px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%
}

.tour-modal-close:hover {
    color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.7);
}

.tour-modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--silver);
}

.tour-modal-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--heading-dark);
    margin-bottom: 10px;
}

.tour-modal-header p {
    color: var(--charcoal);
    font-size: 16px;
    opacity: 0.8;
}

.tour-modal-body {
    padding: 20px 40px 10px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Form Styles */
.tour-form-section h3,
.tour-calendar-section h3 {
    font-family: var(--font-serif);
    font-size: 23px;
    color: var(--heading-dark);
    margin-bottom: 25px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--heading-dark);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--silver);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
    background: var(--warm-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Calendar Styles */
.calendar-container {
    background: var(--pearl);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-title {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--heading-dark);
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-gold);
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition-base);
    border-radius: 50%;
}

.calendar-nav:hover {
    background: var(--primary-gold);
    color: var(--warm-white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--charcoal);
    padding: 10px 5px;
    font-size: 13px;
    letter-spacing: 1px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.calendar-day:not(.disabled):not(.other-month):hover {
    background: var(--silver);
}

.calendar-day.available {
    background: var(--warm-white);
    border: 2px solid var(--silver);
}

.calendar-day.available:hover {
    border-color: var(--primary-gold);
    background: var(--primary-gold);
    color: var(--primary-gold);
}

.calendar-day.selected {
    background: var(--primary-gold);
    color: var(--warm-white);
    border: 2px solid var(--primary-gold);
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-day.other-month {
    color: #bbb;
    cursor: not-allowed;
}

.calendar-day.today {
    border: 2px solid var(--accent-blue);
    font-weight: 600;
}

/* Time Slots */
.time-slots {
    margin-top: 25px;
}

.time-slots h4 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--heading-dark);
    margin-bottom: 15px;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.time-slot {
    padding: 11px 11px;
    border: 2px solid var(--silver);
    background: var(--warm-white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.time-slot:hover {
    border-color: var(--primary-gold);
    background: var(--pearl);
}

.time-slot.selected {
    background: var(--primary-gold);
    color: var(--warm-white);
    border-color: var(--primary-gold);
}

.time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Modal Footer */
.tour-modal-footer {
    padding: 20px 40px 40px;
    border-top: 1px solid var(--silver);
}

.selected-datetime {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--pearl);
    border-radius: 6px;
    color: var(--heading-dark);
}

.tour-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tour-btn-primary,
.tour-btn-secondary {
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    cursor: pointer;
    min-width: 140px;
}

.tour-btn-primary {
    background: var(--primary-gold);
    color: var(--warm-white);
    border: 2px solid var(--primary-gold);
}

.tour-btn-primary:hover {
    background: #B8965A;
    border-color: #B8965A;
}

.tour-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tour-btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--silver);
}

.tour-btn-secondary:hover {
    border-color: var(--charcoal);
}

/* =========================
   CONTACT MODAL STYLES
   ========================= */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.contact-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background: var(--warm-white);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    font-family: var(--font-primary);
    
    /* Custom scrollbar to preserve border-radius */
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 97, 0.5) transparent;
}

/* Contact modal scrollbar styling */
.contact-modal-content::-webkit-scrollbar {
    width: 8px;
}

.contact-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 12px 12px 0;
}

.contact-modal-content::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 97, 0.5);
    border-radius: 4px;
    border: 1px solid transparent;
    background-clip: content-box;
}

.contact-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 97, 0.7);
    background-clip: content-box;
}

.contact-modal-content::-webkit-scrollbar-corner {
    background: transparent;
}

.contact-modal-overlay.visible .contact-modal-content {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 30px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    z-index: 10001;
}

.contact-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-gold);
}

.contact-modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--silver);
}

.contact-modal-header h2 {
    margin: 0 0 10px;
    color: var(--heading-dark);
    font-size: 28px;
    font-family: var(--font-logo);
}

.contact-modal-header p {
    margin: 0;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.5;
}

.contact-modal-body {
    padding: 30px 40px;
}

/* Contact Form Styles */
.contact-inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-inquiry-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-inquiry-form .form-label-header {
    font-weight: 600;
    color: var(--heading-dark);
    font-size: 15px;
    margin-bottom: 12px;
}

.contact-inquiry-form label {
    font-weight: 500;
    color: var(--heading-dark);
    font-size: 14px;
}

.contact-inquiry-form input,
.contact-inquiry-form select,
.contact-inquiry-form textarea {
    padding: 14px 16px;
    border: 2px solid var(--silver);
    border-radius: 6px;
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--charcoal);
    transition: var(--transition-base);
    background: var(--warm-white);
}

.contact-inquiry-form input:focus,
.contact-inquiry-form select:focus,
.contact-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.contact-inquiry-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-primary);
    line-height: 1.5;
}

/* Contact Preferences */
.contact-preferences {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: center;
}

.contact-preference-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.contact-preference-option:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    background: rgba(201, 169, 97, 0.05);
}

.contact-preference-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--silver);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    position: relative;
}

.contact-preference-option input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.contact-preference-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\2713';
    color: var(--warm-white);
    font-size: 12px;
    font-weight: bold;
}

/* Contact Modal Footer */
.contact-modal-footer {
    padding: 20px 30px 40px;
    border-top: 1px solid var(--silver);
}

.contact-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn-primary,
.contact-btn-secondary {
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    cursor: pointer;
    min-width: 140px;
}

.contact-btn-primary {
    background: var(--primary-gold);
    color: var(--warm-white);
    border: 2px solid var(--primary-gold);
}

.contact-btn-primary:hover {
    background: #B8965A;
    border-color: #B8965A;
}

.contact-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-btn-primary.submitting {
    opacity: 0.8;
    pointer-events: none;
}

.contact-btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--silver);
}

.contact-btn-secondary:hover {
    border-color: var(--charcoal);
}

/* ==============
   HERO SECTION
   ============== */
.hero-banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

.hero-placeholder.fade-in-active {
    opacity: 1;
}

.placeholder-image {
    width: 95vw;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 95vw;
    height: 100%;
    z-index: -2;
    transform: translateX(-50%);
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.loaded {
    opacity: 1;
}

/* Hero Content Overlay */
.hero-video-overlay {
    display: none !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(27, 41, 81, 0.4), rgba(27, 41, 81, 0.2));
    z-index: -1;
}

/* Base wrapper approach for reliability */
.hero-content-wrapper {
    position: absolute;
    top: 0;
    left: 2.5%; /* Matches your 95vw image positioning */
    right: 2.5%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Base positioning (fallback for all screens) */
.hero-content {
    position: absolute;
    top: 15%;
    right: 10%; /* Default position */
    text-align: center; 
    max-width: 550px;
    z-index: 10;
    color: var(--silver);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    pointer-events: auto;
}

/* Visible state */
.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    text-align: center;
    color: var(--primary-gold);
}

.hero-title {
    text-align: center;
    font-size: 3.5em;
    font-weight: lighter;
}

.hero-description {
    text-align: center;
}

/* Hide hero description on tablet and mobile */
@media (max-width: 1024px) {
    .hero-description {
        display: none !important;
    }
}

.hero-cta {
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center;
    gap: 1.5rem;
    margin-top: 30px;
}

.cta-primary, 
.cta-secondary {
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-gold), #B8965A);
    color: var(--warm-white);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary-gold);
    cursor: pointer;
    display: inline-block;
    border-radius: 0;
}

.cta-primary:hover {
    background: var(--deep-navy);
    color: var(--pearl);
    transition: all 0.4s ease !important;
    transform: translateY(-3px);
}

.cta-secondary {
    border: 1px solid var(--warm-white);
    color: var(--warm-white);
}

.premium-homes-logo {
    position: absolute;
    /* Use percentages that relate to the banner container, not viewport */
    bottom: -9%;     /* -9% of the banner height */
    right: 11%;      /* 11% of the banner width */
    
    /* Scale with banner size, not viewport */
    width: calc(300px * (var(--banner-scale, 1)));
    height: auto;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.premium-homes-logo:hover {
    opacity: 1;
    color: var(--warm-white);
}

/* ==================
   MOBILE HERO CONTENT
   ================== */
/* Mobile/tablet hero content - hidden by default, shown only on mobile/tablet */
.hero-content-mobile {
    display: none; /* Hidden by default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    pointer-events: auto; /* Enable clicking on mobile hero content */
}

.hero-subtitle-mobile,
.hero-title-mobile,
.hero-cta-mobile {
    display: block;
    margin: 0 auto;
}

.hero-subtitle-mobile {
    font-size: 14px;
    color: var(--primary-gold);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.hero-title-mobile {
    font-size: 2.5rem;
    color: var(--warm-white);
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.hero-description-mobile {
    font-size: 14px;
    color: var(--warm-white);
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    opacity: 0.9;
}

.hero-cta-mobile {
    margin-top: 20px;
}

.cta-primary-mobile {
    background: linear-gradient(135deg, var(--primary-gold), #B8965A);
    color: var(--warm-white);
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--primary-gold);
    cursor: pointer;
    display: inline-block;
    border-radius: 0;
    transition: all 0.4s ease;
}

.cta-primary-mobile:hover {
    background: var(--deep-navy);
    color: var(--pearl);
    transform: translateY(-3px);
}

/* ======================
   MOVE-IN INCENTIVES BANNER
   ====================== */
.incentives-banner {
    background: linear-gradient(135deg, #f9f7f4 0%, #ebe7e0 100%);
    border-top: 1px solid var(--silver);
    border-bottom: 1px solid var(--silver);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    z-index: 100;
}

/* Ensure desktop banner behavior is preserved */
@media (min-width: 769px) {
    .incentives-banner {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid var(--silver) !important;
        border-bottom: 1px solid var(--silver) !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .incentives-banner::after {
        display: none !important;
    }
}

.incentives-banner .container {
    position: relative;
}

.incentives-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-gold) 50%, transparent 100%);
}

.incentives-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.incentives-header {
    margin-bottom: 50px;
}

.incentives-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    color: var(--heading-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.incentives-subtitle {
    font-size: 16px;
    color: var(--primary-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.incentives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.incentive-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--warm-white);
    border-radius: 8px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.incentive-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-gold);
}

.incentive-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-gold), #B8965A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-white);
    flex-shrink: 0;
}

.incentive-icon svg {
    width: 30px;
    height: 30px;
}

.incentive-text {
    text-align: left;
}

.incentive-text h4 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--heading-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.incentive-text p {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.4;
    margin: 0;
}

.incentives-deadline {
    background: rgba(201, 169, 97, 0.1);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    padding: 20px 30px;
    margin-top: 30px;
}

.incentives-deadline p {
    font-size: 14px;
    color: var(--charcoal);
    margin: 0;
    line-height: 1.5;
}

.incentives-deadline strong {
    color: var(--primary-gold);
    font-weight: 600;
}

.incentives-close {
    position: absolute;
    top: -40px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-gold) !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    z-index: 100001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease;
}

.incentives-close:hover {
    background: #b8944a !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

.incentives-close svg {
    width: 20px;
    height: 20px;
    fill: white !important;
}

/* ==================
   CONTENT SECTIONS
   ================== */
.content-section {
    padding: var(--section-padding);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-subtitle {
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 20px;
    font-weight: 200;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 90px;
    font-weight: 400;
    color: var(--heading-dark);
    line-height: 1.2;
    margin-bottom: 30px;
}

.section-title2 {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 400;
    color: var(--heading-dark);
    line-height: 1.2;
    margin-bottom: 30px;
}

.section-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--charcoal);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--content-gap);
    align-items: center;
    margin-bottom: 120px;
}

.content-grid:last-child {
    margin-bottom: 0;
}

/* Images */
.content-image {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.content-image img,
.full-size-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.content-image:hover img,
.full-size-image:hover img {
    transform: scale(1.05);
}

.full-size-image {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    overflow: hidden;
}

.full-size-image img {
    height: auto;
    display: block;
}

/* Content Text */
.content-text h3 {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 400;
    color: var(--heading-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

.content-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.content-text-centered {
    text-align: center;
}

.content-text .section-subtitle {
    display: block;
}

.feature-text {
    font-size: 18px;
    color: var(--primary-gold) !important;
    line-height: 1.8;
    margin: 0;
}

/* ================
   AMENITIES
   ================ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.amenity-card {
    text-align: center;
    padding: 40px 20px;
    background: var(bg-cream);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.amenity-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.amenity-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.amenity-icon {
    width: 60px;
    height: 60px;
    background: var(--pearl);
    border: 2px solid #000;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.amenity-icon svg {
    width: 32px;
    height: 32px;
}

.amenity-card h4 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--heading-dark);
    margin-bottom: 15px;
}

.amenity-card p {
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.6;
}

/* Clickable amenity gallery cards */
.amenity-gallery-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.amenity-gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* ================
   GALLERY
   ================ */
.gallery-section {
    padding: var(--section-padding);
    color: var(--charcoal);
}

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    grid-gap: 30px; /* Fallback for older browsers */
    margin-top: 60px;
}

.gallery-section .gallery-item {
    position: relative;
    aspect-ratio: 4/3; /* Consistent aspect ratio for all items */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-section .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
    display: block; /* Removes any inline spacing */
    border-radius: 0px !important;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Call to Action */
.gallery-cta-section {
    margin-top: 60px;
    text-align: center;
}

.gallery-cta-btn {
    display: inline-block;
    border-radius: 0;
    transition: all 0.4s ease;
    /* Override header-btn hidden properties for gallery context */
    visibility: visible !important;
    opacity: 1 !important;
}

/* =============
   LIGHTBOX
   ============= */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-base);
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.lightbox-overlay img.fading {
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    z-index: 999;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { 
    left: 30px; 
}

.lightbox-nav.next { 
    right: 30px; 
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* ==========
   FOOTER
   ========== */
.page-footer {
    background: var(--charcoal);
    color: var(--warm-white);
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 400px; 
    gap: 120px;
    align-items: start;
    margin-bottom: 60px;
    justify-items: start;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: left;
}

.footer-main-title {
    font-family: var(--font-serif);
    font-size: 90px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--warm-white);
}

.footer-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin: 13px 0px 0px 13px;
    font-weight: 200;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
    color: var(--warm-white);
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-contact {
    line-height: 1.6;
    color: var(--warm-white);
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--warm-white);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 0;
}

.social-links a {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

/* ==================
   SCROLL PROGRESS
   ================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gold);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ===========================
   DESKTOP-SPECIFIC RESPONSIVE STYLES
   =========================== */

/* Specific positioning for 1920x1080 (16:9 aspect ratio) */
@media screen and (aspect-ratio: 16/9) {
    .hero-content {
        top: 12%;
        right: 8%; /* Your preferred position for 1920x1080 */
    }
}

/* Specific positioning for 1920x1200 (16:10 aspect ratio) */
@media screen and (aspect-ratio: 8/5) { /* 16:10 = 8:5 */
    .hero-content {
        top: 15%;
        right: 12%; /* Further right as requested */
    }
}

/* Fine-tuning for common widescreen ratios */
@media screen and (min-aspect-ratio: 16/9) {
    .hero-content {
        top: 10%;
        right: 12%;
    }
}

/* Backup approach using viewport dimensions if aspect-ratio isn't supported */
@media screen and (width: 1920px) and (height: 1080px) {
    .hero-content {
        top: 12%;
        right: 8%;
    }
}

@media screen and (width: 1920px) and (height: 1200px) {
    .hero-content {
        top: 15%;
        right: 12%;
    }
}

/* Additional responsive breakpoints for other common sizes */
@media screen and (max-width: 1600px) {
    .hero-content {
        max-width: 520px;
        right: 6%;
    }
}

/* Specific targeting for 1920x1080 at 125% scaling (approximately 1540x700 viewport) */
@media screen and (max-width: 1540px) and (max-height: 700px) {
    .hero-content {
        right: 13%;
    }
}

@media screen and (max-width: 1400px) {
    .hero-content {
        max-width: 520px;
        right: 12%;
        font-size: 0.8rem;
    }
}

/* Large Screens (1440px and below) */
@media (max-width: 1440px) {
    .hero-banner {
        min-height: 600px;
    }
    
    .hero-placeholder,
    .hero-video {
        width: 95vw;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .premium-homes-logo {
        width: 260px;
        bottom: -8%;
        right: 10%;
    }
}

/* Laptops (1200px and below) */
@media (max-width: 1200px) {
    .hero-banner {
        min-height: 500px;
    }
}

/* =============================================================================
   FULLSCREEN OVERLAY STYLES
   ============================================================================= */

/* Fullscreen overlay for image viewing */
.fullscreen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10010 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}

.fullscreen-overlay.active {
    opacity: 1 !important;
}

/* Fullscreen image styling */
.fullscreen-image {
    max-width: 95vw !important;
    max-height: 95vh !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    user-select: none;
    cursor: grab;
}

.fullscreen-image:active {
    cursor: grabbing;
}

/* Fullscreen controls */
.fullscreen-controls {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    display: flex !important;
    gap: 10px;
    z-index: 10020 !important;
}

.fullscreen-controls .zoom-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(201, 169, 97, 0.3) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 6px;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    color: #2C2C2C !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fullscreen-controls .zoom-btn:hover {
    background: #C9A961 !important;
    color: white !important;
    transform: scale(1.1);
    border-color: #C9A961 !important;
}

.fullscreen-controls .zoom-btn:active {
    transform: scale(0.95);
}

/* Zoom info panel */
.zoom-info {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: white !important;
    font-size: 14px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    padding: 10px 18px !important;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10020 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

/* Mobile-specific fullscreen adjustments */
@media (max-width: 768px) {
    .fullscreen-controls {
        top: 10px !important;
        right: 10px !important;
        gap: 8px;
    }
    
    .fullscreen-controls .zoom-btn {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px;
    }
    
    .zoom-info {
        bottom: 10px !important;
        font-size: 12px !important;
        padding: 8px 14px !important;
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        text-align: center;
    }
}

/* Mobile-specific select element styling */
@media (max-width: 768px) {
    .form-group select,
    .contact-inquiry-form select {
        color: var(--charcoal) !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%232C2C2C" d="M2 0L0 2h4zM0 3l2 2 2-2z"/></svg>');
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 40px;
    }
    
    .form-group select option,
    .contact-inquiry-form select option {
        color: var(--charcoal) !important;
        background: var(--warm-white) !important;
    }
}

/* Ensure fullscreen overlay appears above all other elements */
.fullscreen-overlay * {
    pointer-events: auto;
}

/* =============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================= */

/* Scroll to top button styling */
.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background: var(--primary-gold) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9990 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    user-select: none !important;
}

.scroll-to-top:hover {
    background: #b8965a !important;
    transform: translateY(0) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95) !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Arrow icon styling */
.scroll-to-top::before {
    content: '\2191' !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 10px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
    
    .scroll-to-top::before {
        font-size: 18px !important;
    }

    .page-header::before {
        width: 94vw;
    }
}

/* Ensure proper z-index hierarchy */
.scroll-to-top {
    z-index: 9990 !important;
}
