:root {
    /* Colors */
    --primary-color: #00A6DA;
    /* Nazar Turquoise */
    --secondary-color: #002855;
    /* Deep Navy */
    --accent-color: #E0F7FA;
    /* Very Light Cyan */
    --text-color: #002855;
    /* Navy Text */
    --light-bg: #F0F8FF;
    /* Alice Blue */
    --gold: #D4AF37;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: #fff;
}

.bg-dark h2 {
    color: #fff;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #2B7A78;
}

/* Navbar */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
    /* Tighten line height for better vertical centering */
    padding-bottom: 2px;
    /* Micro adjustment for baseline alignment with sans-serif links */
    display: inline-flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    /* Ensure links align centrally */
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    /* Match visual weight */
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero */
.hero {
    height: 100vh;
    background-image: url('../assets/optimized/villa-01.jpg');
    background-color: #333;
    background-attachment: fixed;
    /* Simple Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Navbar Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* Stack image and caption */
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    /* Leave space for caption */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
    max-width: 90%;
    font-family: var(--font-heading);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-family: var(--font-heading);
}

.dot.available::before {
    content: '✓ ';
}

.dot.booked::before {
    content: '✗ ';
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

/* Rates Table */
.rates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rates-table th,
.rates-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rates-table th {
    background-color: var(--secondary-color);
    color: #fff;
}

/* Calendar */
.calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-controls button {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.day {
    padding: 10px;
    background: #fdfdfd;
    border: 1px solid #eee;
}

.day.header {
    font-weight: bold;
    background: #fff;
    border: none;
}

.day.booked {
    background-color: #ffcccb;
    color: #a00;
}

.day.available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

footer {
    text-align: center;
    padding: 40px 0;
    background: #111;
    color: #888;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: var(--light-bg);
}

.accordion-header .icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
    padding: 0 20px;
}


/* Instagram Section */
.instagram-card {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    max-width: 400px;
    margin: 0 auto;
}

.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.insta-icon {
    font-size: 3rem;
    margin-right: 20px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
}

.insta-text h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 700;
}

.insta-text p {
    margin: 5px 0 0;
    color: #666;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: left;
    border: 1px solid #eee;
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: block;
    text-align: right;
}