@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #C17F59;
    --primary-light: #D49D7E;
    --secondary: #4A5D4E;
    --accent: #D4AF37;
    --bg: #FDFBF9;
    --text: #1A1C1E;
    --text-muted: #626262;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(26, 28, 30, 0.8);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

ul {
    list-style: none;
}

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

/* --- Layout --- */

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

section {
    padding: 8rem 0;
}

/* --- Header --- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1000;
    background: rgba(26, 28, 30, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background: rgba(26, 28, 30, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
}

header.scrolled .logo {
    color: var(--white);
    text-shadow: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

header.scrolled .nav-links a {
    color: var(--white);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

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

/* --- Booking Buttons --- */

.booking-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-booking {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                color 0.4s ease, 
                border-color 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: inherit;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

header .btn-booking {
    color: var(--white);
    background: transparent;
    border: none;
    padding: 0.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

header.scrolled .btn-booking {
    color: var(--white);
    background: transparent;
    border: none;
}

header .btn-booking:hover {
    color: var(--primary);
    transform: translateY(-2px);
    background: transparent;
}

.btn-booking svg {
    width: 20px;
    height: 20px;
}

.btn-booking.airbnb:hover {
    border-color: #FF5A5F;
    color: #FF5A5F;
    transform: translateY(-3px);
}

.btn-booking.booking:hover {
    border-color: #003580;
    color: #003580;
    transform: translateY(-3px);
}

.hero .booking-group {
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero .booking-label {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 1;
}

@media (max-width: 576px) {
    .booking-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 0;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1.1);
    animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

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

/* --- Features Section --- */

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

.feature-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* --- Gallery --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-item.large {
    grid-row: span 2;
}

/* --- Location --- */

.location-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-placeholder {
    width: 100%;
    height: 500px;
    background: #eef2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* --- About Section --- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .container { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .location-wrapper { grid-template-columns: 1fr; }
    .nav-links { display: none !important; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .gallery-item.large { grid-row: span 1; height: 400px; }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image {
        order: 2;
    }
    .about-text {
        order: 1;
        text-align: center;
    }
    .about-text .stats {
        justify-content: center;
    }
}

@media (max-width: 730px) {
    .nav-container {
        justify-content: center;
        width: 100%;
    }
    header .booking-group {
        display: none !important;
    }
    nav {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .logo {
        margin: 0;
        text-align: center;
        width: auto;
    }
    .hero-content p span.hero-dot {
        display: none;
    }
    .hero-privacy {
        display: block;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 { font-size: 2.5rem; }
}

/* --- Carousel --- */

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

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 400px; /* Consitent with about image height */
}

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

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text);
    opacity: 0;
    transition: var(--transition);
}

.carousel:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* --- 404 Page --- */

.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDFBF9;
}

.error-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.error-img {
    height: 600px;
}

.error-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-content {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.error-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .error-container { grid-template-columns: 1fr; margin: 2rem; }
    .error-img { height: 300px; }
    .error-content { padding: 3rem; text-align: center; }
    .error-content h1 { font-size: 2.5rem; }
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.8s ease;
}

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

/* --- Navigation Links Spacing --- */

.nav-container {
    padding: 0 2rem;
}

nav {
    width: 100%;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

/* --- Hero Subtle Overlay --- */

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

/* --- Utility Typography --- */

.text-uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.1em; }
