/* ===================================
   321 La Quinta Property Website
   Modern, Elegant Design
   =================================== */

/* CSS Variables for Consistent Theming */
:root {
    --primary-color: #2c5f7f;
    --secondary-color: #d4a574;
    --accent-color: #8b6f47;
    --text-dark: #2d2d2d;
    --text-light: #666;
    --bg-light: #f8f6f3;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 15px var(--shadow-hover);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
       white-space: nowrap;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px var(--shadow-hover);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('hero-image-new.jpeg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

   .btn-secondary:hover {
       background: var(--white);
       color: var(--primary-color);
       transform: translateY(-3px);
       box-shadow: 0 10px 20px var(--shadow-hover);
   }

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Property Overview */
.property-overview {
    background: var(--bg-light);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.property-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.property-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Photo Gallery */
.gallery {
    background: var(--white);
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow-hover);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 2rem 1rem;
    color: var(--white);
}

.carousel-caption h4 {
    color: var(--white);
    margin-bottom: 0.3rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Carousel Controls */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 5px;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

/* Thumbnail Gallery Below Carousel */

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    border-left-width: 8px;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.feature-box p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Why La Quinta Section */
.why-la-quinta {
    background: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reason-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.reason-card:hover {
    background: var(--white);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.reason-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Events Section - Card Layout like Attractions */
.events {
    background: var(--bg-light);
    padding: 4rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.event-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-content {
    padding: 1.5rem;
}

.event-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.event-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-content h3 a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.event-full-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-content p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-distance {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.event-distance:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Attractions Section */
.attractions {
    background: var(--white);
    padding: 4rem 0;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.attraction-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.attraction-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.attraction-content {
    padding: 1.5rem;
}

.attraction-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.attraction-content p {
    font-size: 0.9rem;
}

.distance-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.distance-badge:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Senior Highlights */
.senior-highlights {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 4rem 0;
}

.senior-highlights .section-header h2,
.senior-highlights .section-header p {
    color: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.highlight-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact/Booking Section */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--bg-light);
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Date Picker Styling */
input[type="text"]#dates {
    cursor: pointer;
}

/* Flatpickr Calendar Customization */
.flatpickr-calendar {
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow-hover);
    border: none;
}

.flatpickr-day.selected {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.flatpickr-day.selected:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.flatpickr-months .flatpickr-month {
    background: var(--primary-color);
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--primary-color);
}

.flatpickr-weekdays {
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

/* Social links removed per client request */

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .property-grid,
    .features-grid,
    .reasons-grid,
    .attractions-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}
/* Event and Attraction title links */
.event-title-link,
.attraction-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title-link:hover,
.attraction-title-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 35, 46, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        margin: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 20px;
        font-size: 18px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: rgba(212, 175, 55, 0.1);
        padding-left: 30px;
    }
    
    .nav-menu .cta-button {
        margin: 10px 20px !important;
        display: inline-block;
        padding: 12px 20px !important;
        font-size: 16px !important;
        border-radius: 5px;
    }
    
    /* Make Book Now button more prominent in mobile menu */
    .nav-menu #book-now-btn {
        margin-top: 15px !important;
        margin-bottom: 5px !important;
        background: var(--accent-color) !important;
        font-weight: 700 !important;
    }
       
       /* Ensure Inquire button has proper spacing and isn\'t cut off by mobile navbars */
       .nav-menu .inquire-button {
           margin-bottom: 60px !important;
       }
       
/* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   MOBILE GALLERY IMPROVEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Make carousel larger and easier to use on mobile */
    .carousel-container {
        max-width: 100%;
        margin: 0 auto 30px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .carousel-slide {
        height: 400px; /* Increased from default */
    }
    
    .carousel-slide img {
        object-fit: cover;
        height: 100%;
    }
    
    /* Larger, more touch-friendly navigation buttons */
    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
    }
    
    .carousel-btn:hover {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .carousel-btn.prev {
        left: 15px;
    }
    
    .carousel-btn.next {
        right: 15px;
    }
    
    /* Larger indicator dots for easier tapping */
    .carousel-indicators {
        bottom: 15px;
        gap: 12px;
    }
    
    .carousel-indicators .dot {
        width: 12px;
        height: 12px;
        margin: 0;
    }
    
    /* Improve caption readability on mobile */
    .carousel-caption {
        font-size: 16px;
        padding: 12px 20px;
        bottom: 60px;
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }

    /* Add swipe hint for mobile users */
    .carousel-container::after {
        content: '← Swipe →';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        pointer-events: none;
        opacity: 0;
        animation: swipeHint 3s ease-in-out 1s;
    }
    
    @keyframes swipeHint {
        0%, 100% { opacity: 0; }
        10%, 90% { opacity: 1; }
    }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1280px) {
    .carousel-slide {
        height: 500px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    /* Navbar adjustments for tablets - UPDATED TO COMPACT */
       .nav-container {
           padding: 0.4rem 0.5rem !important;
           gap: 0.3rem;
       }
       
       .logo {
           font-size: 0.85rem !important;
           margin-right: 0.3rem !important;
       }
       
       .property-toggle-container {
           margin-right: 0.3rem !important;
       }
       
       .nav-menu {
           gap: 0.2rem !important;
       }
       
       .nav-menu li {
           margin: 0;
       }
       
       .nav-menu a {
           padding: 0.25rem 0.3rem !important;
           font-size: 0.65rem !important;
       }
       
       .cta-button {
           padding: 0.3rem 0.4rem !important;
           font-size: 0.65rem !important;
           white-space: nowrap;
       }
       
       .property-toggle {
           font-size: 0.75rem !important;
           padding: 3px 20px 3px 5px !important;
           max-width: 120px;
       }
       
       .property-tooltip {
           display: none !important;
       }
}

/* ========================================
   TOUCH GESTURES FOR CAROUSEL
   ======================================== */

.carousel-container {
    touch-action: pan-y pinch-zoom;
}

/* Improve overall mobile spacing */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    section {
        padding: 40px 0;
    }
}/* ========================================
   FIX MOBILE MENU VISIBILITY
   ======================================== */

/* Show mobile menu toggle on mobile devices */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Ensure nav-container has proper layout */
    .nav-container {
        position: relative;
    }
}

/* ========================================
   FIX CAROUSEL WHITE SPACE
   ======================================== */

/* Remove extra padding/margin from carousel */
.carousel-container {
    margin-bottom: 20px;
}

.carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Fix carousel indicators positioning */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 0;
    margin: 0;
}

/* Remove any extra spacing */
@media (max-width: 768px) {
    .carousel-slide {
        height: 400px;
        margin: 0;
        padding: 0;
    }
    
    .carousel-container {
        margin-bottom: 20px;
        padding: 0;
    }
    
    /* Fix white space issue */
    #gallery .container {
        padding: 0;
    }
    
    #gallery {
        padding: 40px 0;
    }
}

/* ========================================
   ADD LIGHTBOX FOR FULL-SIZE IMAGES
   ======================================== */

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Make carousel images clickable */
.carousel-slide {
    cursor: pointer;
}

.carousel-slide img {
    cursor: pointer;
}

/* Add zoom hint on hover (desktop only) */
@media (min-width: 769px) {
    .carousel-slide::after {
        content: '🔍 Click to enlarge';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .carousel-slide:hover::after {
        opacity: 1;
    }
}

/* Mobile tap hint */
@media (max-width: 768px) {
    .carousel-slide::after {
        content: '👆 Tap to enlarge';
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        opacity: 0;
        animation: tapHint 3s ease-in-out 2s;
        pointer-events: none;
    }
    
    @keyframes tapHint {
        0%, 100% { opacity: 0; }
        10%, 90% { opacity: 1; }
    }
}/* ========================================
   COMPREHENSIVE MOBILE FIXES
   ======================================== */

/* Force mobile menu to show on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Fix carousel controls class names */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Fix carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.carousel-indicators .indicator.active {
    background: white;
    width: 12px;
    height: 12px;
}

/* Fix carousel container */
.gallery-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
        border-radius: 8px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
        gap: 10px;
    }
    
    .carousel-indicators .indicator {
        width: 12px;
        height: 12px;
    }
    
    .carousel-indicators .indicator.active {
        width: 14px;
        height: 14px;
    }
    
    .carousel-caption {
        font-size: 14px;
        padding: 8px 12px;
        bottom: 60px;
    }
    
    .carousel-caption h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .carousel-caption p {
        font-size: 12px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1280px) {
    .carousel-container {
        height: 500px;
    }
}

@media (max-width: 768px) {

}
/* ========================================
   FINAL MOBILE MENU FIX
   ======================================== */

/* Force mobile menu toggle to show on mobile */
@media (max-width: 768px) {
    /* Show hamburger menu button */
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Hide default nav menu and show it when active */
    .nav-menu {
        display: none !important;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 35, 46, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 20px 0;
        margin: 0;
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        list-style: none;
    }
    
    /* Show menu when active */
    .nav-menu.active {
        display: flex !important;
        left: 0 !important;
    }
    
    /* Style menu items for mobile */
    .nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 20px;
        font-size: 18px;
        color: white !important;
        transition: all 0.3s ease;
        width: 100%;
    }
    
    .nav-menu a:hover {
        background-color: rgba(212, 175, 55, 0.1);
        padding-left: 30px;
    }
    
    .nav-menu .cta-button {
        margin: 20px;
        display: inline-block;
        padding: 15px 30px !important;
        border-radius: 5px;
        background: var(--secondary-color);
        color: white !important;
    }
}
/* Fix hamburger menu color - make it visible on white background */
.mobile-menu-toggle span {
    background-color: var(--primary-color) !important; /* Dark blue instead of white */
}

/* Ensure hamburger is visible on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
}

/* Hide carousel indicator dots on mobile */
@media (max-width: 768px) {
    .carousel-indicators {
        display: none !important;
    }
    
    /* Adjust caption position since dots are gone */
    .carousel-caption {
        bottom: 20px !important;
    }
}

/* ========================================
   IMPROVED CAROUSEL ARROWS & REMOVE DOTS
   ======================================== */

/* Hide indicator dots on ALL devices (desktop and mobile) */
.carousel-indicators {
    display: none !important;
}

/* Modern carousel arrow buttons for all devices */
.carousel-prev,
.carousel-next,
.carousel-btn.prev,
.carousel-btn.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.carousel-prev:hover,
.carousel-next:hover,
.carousel-btn.prev:hover,
.carousel-btn.next:hover {
    background: rgba(212, 175, 55, 0.9);
    border-color: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.carousel-prev,
.carousel-btn.prev {
    left: 20px;
}

.carousel-next,
.carousel-btn.next {
    right: 20px;
}

/* Adjust caption position since dots are removed */
.carousel-caption {
    bottom: 20px !important;
}

/* Desktop specific improvements */
@media (min-width: 769px) {
    .carousel-prev,
    .carousel-next,
    .carousel-btn.prev,
    .carousel-btn.next {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .carousel-prev,
    .carousel-btn.prev {
        left: 30px;
    }
    
    .carousel-next,
    .carousel-btn.next {
        right: 30px;
    }
}

/* Mobile specific */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next,
    .carousel-btn.prev,
    .carousel-btn.next {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .carousel-prev,
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-next,
    .carousel-btn.next {
        right: 10px;
    }
}
/* ========================================
   PROPERTY TOGGLE STYLES
   ======================================== */

/* Property Toggle Container */
.property-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
       margin-right: 1.5rem;
}

/* Property Toggle Dropdown */
.property-toggle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 35px 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a232e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.property-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 35, 46, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.property-toggle:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Property Tooltip */
.property-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.property-tooltip i {
    color: var(--accent-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.property-tooltip:hover i {
    color: var(--primary-color);
    transform: scale(1.2);
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tooltip-text::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--primary-color);
}

.property-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    left: 35px;
}

/* Pulse animation for first-time users */
.property-tooltip.pulse i {
    animation: pulse 1.5s ease-in-out 3;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        color: var(--accent-color);
    }
    50% {
        transform: scale(1.3);
        color: var(--primary-color);
    }
}

/* Property Change Notification */
.property-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: right 0.3s ease;
    font-weight: 500;
}

.property-notification.show {
    right: 30px;
}

.property-notification i {
    font-size: 24px;
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .property-toggle {
        font-size: 1rem;
        padding: 6px 30px 6px 12px;
    }
    
    .property-tooltip {
        display: none; /* Hide tooltip on mobile to save space */
    }
    
    .property-notification {
        top: 80px;
        right: -300px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .property-notification.show {
        right: 15px;
    }
}

/* Tablet */
/* REMOVED - Conflicting with compact navbar settings */

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .property-toggle {
        border-width: 3px;
    }
    
    .tooltip-text {
        border: 2px solid white;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .property-toggle,
    .property-tooltip i,
    .tooltip-text,
    .property-notification {
        transition: none;
    }
    
    .property-tooltip.pulse i {
        animation: none;
    }
}
/* TD4 Properties Logo */
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 2rem;
    flex-shrink: 0;
}


/* Mobile View - Fix Logo and Hamburger Menu */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .logo {
        font-size: 1.1rem;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .property-toggle-container {
        margin-right: auto;
        margin-left: 0.5rem;
    }
    
    .property-toggle {
        font-size: 0.9rem;
        padding: 6px 30px 6px 10px;
        min-width: auto;
        max-width: 180px;
    }
    
    .property-tooltip {
        display: none;
    }
    
    .mobile-menu-toggle {
        margin-left: 0.5rem;
        flex-shrink: 0;
    }
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-3px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}


/* Inquire Button Styling - Match Book Now Button */
.inquire-button {
    background: var(--secondary-color) !important;
    white-space: nowrap;
}

.inquire-button:hover {
    background: var(--accent-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px var(--shadow-hover) !important;
}


/* ========================================
   TABLET NAVBAR FIX - GALAXY TAB S10+
   ======================================== */

/* Aggressive optimization for tablets in desktop view (769px-1024px) */
@media (min-width: 769px) and (max-width: 1280px) {
    /* Reduce overall navbar padding - APPLY COMPACT SETTINGS TO ALL TABLETS */
    .nav-container {
        padding: 0.4rem 0.5rem !important;
        gap: 0.3rem;
    }
    
    /* Compact logo - same as portrait */
    .logo {
        font-size: 0.85rem !important;
        margin-right: 0.3rem !important;
    }
    
    /* Compact property toggle - same as portrait */
    .property-toggle-container {
        margin-right: 0.3rem !important;
    }
    
    .property-toggle {
        font-size: 0.75rem !important;
        padding: 3px 20px 3px 5px !important;
        max-width: 120px;
    }
    
    /* Hide tooltip to save space */
    .property-tooltip {
        display: none !important;
    }
    
    /* Compact navigation menu - same as portrait */
    .nav-menu {
        gap: 0.2rem !important;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        padding: 0.25rem 0.3rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Compact CTA buttons - same as portrait */
    .nav-menu .cta-button {
        padding: 0.3rem 0.4rem !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
        border-radius: 4px;
    }
}
