/* Variables & Reset */
:root {
    --color-primary: #0F4C5C;
    /* Dark Teal */
    --color-primary-dark: #093440;
    --color-accent: #E3B23C;
    /* Gold/Sand */
    --color-text: #2D3142;
    --color-text-light: #6c757d;
    --color-bg: #F9FAFB;
    --color-white: #FFFFFF;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Cormorant Garamond', serif;
    --transition: all 0.3s ease;
    --color-rose: #e83e8c;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 1.2rem;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.text-rose {
    color: var(--color-rose);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 76, 92, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Components */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links .btn {
    padding: 10px 24px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    /* Full screen */
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-position: center;
    transform: scale(1.0);
    /* No initial zoom, just subtle movement */
    animation: zoomOut 20s infinite alternate linear;
}

@keyframes zoomOut {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.0);
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-top: 80px;
    /* Offset fixed nav */
}

.eyebrow {
    display: block;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--color-white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--color-text);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

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

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* height: 500px; Removed to allow dynamic height */
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

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

/* Make one item bigger for variety */
.item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-category-title.full-width,
.full-width {
    grid-column: 1 / -1;
}

.gallery-category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.gallery-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* Calendar Section */
.calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.calendar-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

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

.calendar-day-header {
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 10px 0;
}

.calendar-day {
    padding: 15px 5px;
    border-radius: 8px;
    font-size: 0.95rem;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day:not(.empty) {
    background-color: #f0f2f5;
}

.calendar-day.booked {
    background-color: #ffeaea;
    color: #d63031;
    text-decoration: line-through;
    opacity: 0.7;
}

.calendar-day.available {
    background-color: #eafbf0;
    color: #27ae60;
    cursor: pointer;
    font-weight: 600;
}

.calendar-day.available:hover {
    background-color: #d1f2dc;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    font-size: 0.9rem;
}

.status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status.available {
    background-color: #27ae60;
}

.status.booked {
    background-color: #d63031;
}

/* Contact Section */
.contact-info {
    padding-right: 40px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.host-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-coords {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.coord-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.coord-item i {
    color: var(--color-accent);
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
}

.hidden-field {
    display: none !important;
}

.form-status {
    display: none;
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    /* Vertically center icon and text */
    gap: 12px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.form-status.is-visible {
    display: flex;
    /* Use flexbox for icon + text */
    animation: fadeUpAnim 0.4s ease-out;
}

.form-status i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* Success State */
.form-status.success {
    background-color: #ecfdf5;
    /* Soft Green bg */
    color: #047857;
    /* Dark Green text */
    border: 1px solid #d1fae5;
}

/* Error State */
.form-status.error {
    background-color: #fef2f2;
    /* Soft Red bg */
    color: #b91c1c;
    /* Dark Red text */
    border: 1px solid #fee2e2;
}

/* Loading State (default) */
.form-status:not(.success):not(.error) {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.technical-links {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.technical-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, toggle this */
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .grid-2,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .item-1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid {
        height: auto;
    }

    .contact-info {
        padding-right: 0;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--color-accent);
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 0.7;
    z-index: 1001;
}

.lightbox-nav:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}