/* Custom Properties */
:root {
    --primary-color: #2b4c3e; /* Deep Forest Green */
    --primary-light: #3a6653;
    --secondary-color: #e6b981; /* Warm Gold / Wood */
    --secondary-hover: #d1a367;
    --accent-color: #f26a4f; /* Warm Fire Orange */
    
    --bg-color: #faf9f6; /* Off-white / Cream */
    --surface-color: #ffffff;
    --surface-alt: #f0eee5;
    
    --text-main: #1f2937;
    --text-muted: #4b5563;
    
    --border-color: #e5e7eb;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo, 
.navbar.scrolled .nav-links a {
    color: var(--primary-color);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px; /* Adjust height as needed */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

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

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--surface-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: var(--transition);
}

.mobile-nav.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.mobile-cta {
    margin-top: 32px;
    text-align: center;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
    background-image: url('img/sanaya-domo-glamping-13.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20, 30, 25, 0.6) 0%, rgba(20, 30, 25, 0.3) 50%, rgba(20, 30, 25, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: -10px; /* Slight adjustment to pull it closer to the badge */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* Details Section */
.details-section {
    padding: 100px 0;
}

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

.details-text h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.details-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price-card {
    background-color: var(--surface-alt);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    border-left: 4px solid var(--secondary-color);
}

.price-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
}

.price-amount span {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-note {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 5.5s ease-out; /* Smooth fade and zoom */
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05); /* Slight zoom effect while active */
    z-index: 1;
}

/* Amenities Section */
.amenities-section {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

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

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.amenity-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: var(--surface-alt);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.amenity-card:hover .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
}

.amenity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.amenity-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Terms Section */
.terms-section {
    padding: 100px 0;
}

.terms-card {
    background-color: var(--surface-color);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.terms-card h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.terms-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.terms-list i {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 300px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 300px;
}

.footer h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-contact, .footer-links, .footer-reservation {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact a, .footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
}

.footer-contact a:hover, .footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 24px 0;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Footer Reservation Form */
.wa-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-form .form-group {
    display: flex;
    flex-direction: column;
}

.wa-form .form-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.wa-form .form-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.wa-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.wa-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.wa-form .form-control[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.wa-form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px;
    font-size: 1rem;
}

/* Animations */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Gallery Page */
.gallery-page {
    padding: 150px 0 100px; /* space for navbar */
    min-height: 80vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.3;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(43, 76, 62, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-title { font-size: 2rem; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Navbar override for internal pages */
body:not(.home) .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}
body:not(.home) .navbar .logo,
body:not(.home) .navbar .nav-links a,
body:not(.home) .navbar .mobile-menu-btn {
    color: var(--primary-color);
}

/* Floating WhatsApp Button */
.whatsapp-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
}

.whatsapp-widget > * {
    pointer-events: auto;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 34px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-tooltip {
    position: relative;
    background-color: white;
    color: var(--text-main);
    padding: 12px 16px;
    padding-right: 40px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.wa-close {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.wa-close:hover {
    color: var(--accent-color);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    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 (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    .whatsapp-tooltip {
        font-size: 13px;
        padding: 10px 14px;
        padding-right: 36px;
    }
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-left: 10px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.lang-current:hover {
    background-color: rgba(43, 76, 62, 0.05);
}

body.home .navbar:not(.scrolled) .lang-current {
    color: white;
}
body.home .navbar:not(.scrolled) .lang-current:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 140px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.lang-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background-color: rgba(43, 76, 62, 0.05);
    color: var(--primary-color);
}

@font-face {
    font-family: 'Twemoji Country Flags';
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
    src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
}

.flag {
    font-size: 1.2rem;
    font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', emoji;
}

/* Mobile Lang Selector */
.mobile-lang {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.mobile-lang a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-lang a.active {
    background-color: var(--primary-color);
    color: white;
}
