@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Palette Terre / Luxe */
    --color-primary: #CCA43B;
    /* Or Muted */
    --color-secondary: #8C5E3C;
    /* Terre de Sienne */
    --color-accent: #2C3E50;
    /* Bleu Nuit Profond (Contraste) */
    --color-background: #F9F5F0;
    /* Sable Clair */
    --color-surface: #FFFFFF;
    --color-text-main: #2D2D2D;
    --color-text-muted: #666666;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- Header --- */
header {
    background-color: transparent;
    /* Transparent par défaut */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    /* Transition douce */
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    /* Légèrement plus compact */
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animation Logo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Styles par défaut (Sur fond sombre/image) */
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    /* Blanc sur l'image */
    letter-spacing: 1px;
    animation: fadeInUp 1.5s ease-out;
}

/* Logo Styles au scroll (Sur fond blanc) */
header.scrolled .logo {
    color: var(--color-secondary);
}

/* Animation Icône */
@keyframes pulseHouse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
        color: var(--color-primary);
    }

    100% {
        transform: scale(1);
    }
}

.logo i {
    display: inline-block;
    animation: pulseHouse 2s infinite ease-in-out;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.nav-links {
    display: flex;
    gap: 40px;
    /* Plus d'espace */
}

.nav-links a {
    font-weight: 700;
    color: white;
    /* Blanc par défaut pour transparence */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

header.scrolled .nav-links a {
    color: var(--color-text-main);
    /* Sombre au scroll */
}

/* Animation Soulignement (Center Out) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    /* Soulignement blanc par défaut */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

header.scrolled .nav-links a::after {
    background-color: var(--color-primary);
    /* Soulignement doré au scroll */
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    /* Background removed for slider */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 0px;
    /* Booking bar overlaps */
    overflow: hidden;
    /* Important pour le slider */
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    /* Overlay sombre intégré */
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slide.active {
    opacity: 1;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* --- Booking Bar --- */
.booking-bar-wrapper {
    position: relative;
    top: -60px;
    /* Overlap Hero */
    z-index: 50;
}

.booking-bar {
    background: white;
    padding: 30px 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.booking-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.booking-field input,
.booking-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
}

.booking-field input:focus,
.booking-field select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* --- Section Generics --- */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.section-title p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Features Section --- */
.features {
    background-color: white;
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: var(--radius-md);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Featured Apartments --- */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.apartment-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    cursor: pointer;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.apartment-card:hover .card-image img {
    transform: scale(1.05);
    /* Zoom effect */
}

.card-details {
    padding: 25px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.card-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    align-items: center;
}

.card-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* --- Mobile Menu --- */
.mobile-toggle {
    display: none !important;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {

    /* --- Mobile Header & Nav --- */
    header {
        padding: 10px 0;
        background-color: white !important;
        /* Force visibility always */
        box-shadow: var(--shadow-soft);
        z-index: 1001;
        /* Explicitly above menu (998) */
        position: fixed;
        /* Ensure it stays fixed */
    }

    header .logo {
        color: var(--color-secondary) !important;
        font-size: 1.4rem;
        position: relative;
        z-index: 1002;
    }

    .mobile-toggle {
        display: block !important;
        color: var(--color-secondary) !important;
        font-size: 1.5rem;
        position: relative;
        z-index: 1002;
        /* Ensure clickable */
    }

    .nav-links {
        display: none;
        position: fixed;
        /* Fixed to viewport */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding-top: 100px;
        /* Space for header */
        padding-bottom: 20px;
        border-top: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 998;
        /* Behind header (1000) */
    }

    .nav-links.active {
        display: flex;
        /* Flex layout */
    }



    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
        text-align: left;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        /* Touch target 44px+ */
        color: var(--color-text-main) !important;
        /* Force Dark Color */
        font-size: 1rem;
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background-color: #fcfcfc;
        color: var(--color-primary) !important;
    }

    .nav-links a::after {
        display: none;
        /* No underline */
    }

    /* --- Mobile Dropdown --- */
    .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        padding: 0;
        display: none;
        /* Hidden until toggled */
        background-color: #f4f4f4;
    }

    .dropdown.active {
        display: block;
        /* JS Toggle */
    }

    .dropdown li a {
        padding: 12px 40px;
        /* Indented */
        color: #666 !important;
        font-size: 0.95rem;
    }

    /* Chevron rotation helper */
    .fa-chevron-down {
        transition: transform 0.3s;
    }

    .rotate-chevron {
        transform: rotate(180deg);
    }

    /* --- Mobile Layout Adjustments --- */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .booking-bar-wrapper {
        top: -30px;
        padding: 0 15px;
    }

    .booking-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }

    .booking-field input,
    .booking-field select {
        height: 48px;
        /* Touch friendly */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Grids */
    .feature-grid,
    .apartments-grid,
    .testimonials-grid,
    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr;
        /* Single column stack */
        gap: 30px;
    }

    .container {
        padding: 0 20px;
    }

    /* Ensure Header Scrolled Padding matches */
    header.scrolled {
        padding: 10px 0;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile optimization */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .booking-bar {
        padding: 15px;
    }
}

/* --- Contact Section Styles --- */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    /* Plus arrondi */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Ombre plus diffuse */
    border: none;
    /* Plus de bordure grise */
}

.contact-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    /* Espacement premium */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 10px;
    border: none;
    border-bottom: 2px solid #eee;
    /* Ligne uniquement */
    background-color: #f9f9f9;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    outline: none;
}

.location-item p {
    color: var(--color-text-muted);
}

/* --- Dropdown Menu --- */
.nav-links li {
    position: relative;
    /* Pour positionner le dropdown */
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Arrow for dropdown */
.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    display: block;
    margin: 0;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    /* Force dark text in white dropdown */
    font-size: 0.8rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.dropdown li a::after {
    display: none;
    /* No underline anim for dropdown items */
}

.dropdown li a:hover {
    background-color: #f9f9f9;
    color: var(--color-primary) !important;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366 !important;
    /* Force green override */
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E !important;
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-quote {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text-main);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.stars {
    color: #FFD700;
    margin-bottom: 10px;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: white;
    padding: 60px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background-color: #fcfcfc;
}

.faq-question i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
    /* Approximate max height */
}


/* --- Map Section --- */
.map-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.map-btn {
    padding: 10px 20px;
    border: 2px solid #eee;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-btn:hover,
.map-btn.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(204, 164, 59, 0.3);
}

.map-container {
    width: 100%;
    height: 450px;
    background-color: #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Review Form Styling --- */
#reviewFormContainer {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 40px auto;
    border: 1px solid #eee;
}

#reviewFormContainer h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.star-rating-input {
    display: flex;
    gap: 10px;
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    justify-content: center;
    margin-bottom: 10px;
}

.star-rating-input i {
    transition: color 0.2s;
}

.star-rating-input i:hover,
.star-rating-input i.fas {
    color: #FFD700;
}

/* --- Premium Review Form Styling --- */
#reviewFormContainer {
    background: white;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 60px auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#reviewFormContainer h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

#reviewForm .form-group {
    margin-bottom: 25px;
}

#reviewForm label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#reviewForm .form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

#reviewForm .form-control:focus {
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 4px 12px rgba(204, 164, 59, 0.1);
    outline: none;
}

#reviewForm button {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    margin-top: 10px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#reviewForm button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Premium Footer Styling --- */
footer {
    background-color: #111;
    color: #eee;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--color-primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-col i {
    width: 25px;
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #666;
}



/* --- Special Offer Banner --- */
.special-offer-banner {
    background: linear-gradient(90deg, #2c3e50, #4ca1af);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    font-size: 0.95rem;
    animation: slideDown 0.5s ease-out;
    margin-top: 80px;
    /* Space for fixed header */
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.offer-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.offer-tag {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.offer-title {
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #f1c40f;
}

.offer-price {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.offer-btn {
    background: white;
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.offer-btn:hover {
    background: #f1c40f;
    color: #2c3e50;
    transform: scale(1.05);
}

.close-offer {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
    line-height: 1;
}

.close-offer:hover {
    color: white;
}

@media (max-width: 768px) {
    .special-offer-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-top: 70px;
    }

    .offer-content {
        justify-content: center;
        gap: 10px;
    }

    .close-offer {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }
}

/* --- Gallery Page --- */
.page-header {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.gallery-section {
    padding: 60px 0;
}

.gallery-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- Intelligent WhatsApp Widget --- */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

.wa-button {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.wa-button:hover {
    transform: scale(1.1);
}

.wa-button i {
    color: white;
    font-size: 35px;
}

.wa-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0000;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wa-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #075e54;
    font-size: 20px;
}

.wa-info h4 {
    margin: 0;
    font-size: 16px;
}

.wa-info span {
    font-size: 12px;
    opacity: 0.8;
}

.wa-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
}

.wa-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: 200px;
    overflow-y: auto;
}

.wa-message {
    background-color: white;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 10px;
}

.wa-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    border: 5px solid transparent;
    border-top-color: white;
    border-right-color: white;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.wa-footer {
    padding: 10px;
    background-color: #f0f0f0;
    text-align: center;
}

.wa-start-btn {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.wa-start-btn:hover {
    background-color: #128c7e;
}