:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --secondary-text: #888888;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 3px;
    font-weight: 700;
    white-space: nowrap;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    white-space: nowrap;
}

nav ul li a.active,
nav ul li a:hover {
    opacity: 1;
    border-bottom: 1px solid var(--accent-color);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    font-weight: 300;
    max-width: 600px;
}

/* Gallery - Masonry Feel with CSS Column */
.gallery {
    column-count: 4;
    column-gap: 1.5rem;
    padding: 0 5% 5rem;
}

.gallery-item {
    margin-bottom: 2rem;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    opacity: 1;
    /* JS will handle fade-in */
    transform: translateY(20px);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.5s ease;
    margin-bottom: 0.5rem;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.overlay {
    position: static;
    width: 100%;
    padding: 0.5rem 0;
    background: transparent;
    opacity: 1;
    transform: none;
    text-align: center;
}

.gallery-item:hover .overlay {
    opacity: 1;
    transform: none;
}

.overlay h3 {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--secondary-text);
    font-weight: 400;
}

.overlay p {
    display: none;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #222;
    color: var(--secondary-text);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    margin: 0 10px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* About Section */
.about {
    padding: 10rem 5%;
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery {
        column-count: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .site-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
        letter-spacing: 1px;
        /* Extra safety for Chrome */
        white-space: nowrap;
    }

    nav ul {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrapping if screen is VERY small, though column layout helps */
    }

    .hero {
        height: 60vh;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    /* Fix for Safari flex column issue */
    .about-text,
    .about-image {
        width: 100%;
        flex: auto;
    }

    .about-text h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        /* Extra safety for Chrome */
        white-space: nowrap;
    }

    .about-image img {
        display: block !important;
        max-width: 80% !important;
        width: 300px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .gallery {
        column-count: 1;
    }

    /* Fine-tune for very small screens */
    .about-text h2 {
        font-size: 1.5rem;
        /* Even smaller for very narrow screens */
    }
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    text-align: center;
    background-color: var(--bg-color);
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.contact p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    font-weight: 300;
}

.contact-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--transition-speed) ease;
}

.contact-button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Carousel Styles */
.carousel {
    padding: 2rem 0;
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 80vh;
    /* Adjust height as needed */
    background-color: #000;
}

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

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

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures image fits without cropping */
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    left: 5%;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 2rem;
    border-radius: 5px;
}

.carousel-caption h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: var(--font-display);
}

.carousel-caption p {
    margin: 5px 0 0;
    font-size: 1rem;
    font-weight: 300;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

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

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

.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--accent-color);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-main);
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    padding: 0 5px;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    font-weight: bold;
}

/* Simple Calendar Styles */
.calendar-wrapper {
    max-width: 400px;
    margin: 0 auto 20px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 10px;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    padding-bottom: 5px;
}

.calendar-day {
    padding: 8px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    color: #ccc;
    font-size: 0.9rem;
}

.calendar-day:hover:not(.empty):not(.disabled) {
    background: #333;
}

.calendar-day.selected {
    background: var(--accent-color);
    color: black;
}

.calendar-day.disabled {
    color: #555;
    cursor: not-allowed;
    background: rgba(255, 0, 0, 0.1);
}

.calendar-day.empty {
    cursor: default;
}

/* Availability Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #888;
}

.dot-indic {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    display: inline-block;
    margin-right: 5px;
}

.dot-indic.free {
    background: #333;
    border: 1px solid #555;
}

.dot-indic.busy {
    background: rgba(255, 0, 0, 0.3);
}