/* assets/css/style.css */

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

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

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-beige-grey);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    /* Contrast text for primary button */
}

.btn-primary:hover {
    background-color: #d9a432;
    /* Slightly darker shade */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

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

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

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

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

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

/* --- Header & Nav --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(247, 249, 239, 0.95);
    /* var(--color-white) with opacity */
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
    /* Keep original z-index */
}

.logo-img {
    height: 50px;
    width: auto;
}


.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-beige-grey);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-stone);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('../images/general/hero-bg.webp');
    /* Will be a placeholder initially */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback color if image fails */
    background-color: var(--color-stone);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(239, 183, 62, 0.3));
    /* Deep blue to Gold hint */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* --- About Section --- */
.about .row {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
}

.lead {
    font-size: 1.25rem;
    color: var(--color-stone);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.image-wrapper {
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    z-index: -1;
    border-radius: var(--radius-md);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

/* --- Amenities Section --- */
.amenities {
    background-color: #f0f2e6;
    /* Slight tint of white/greenish based on pallette? or just white */
    background-color: rgba(239, 183, 62, 0.05);
    /* Tint of primary */
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* Reduced min-width */
    gap: var(--spacing-sm);
    /* Reduced gap */
    margin-top: var(--spacing-md);
}

.amenity-card {
    background: var(--color-white);
    padding: var(--spacing-sm);
    /* Reduced padding */
    border-radius: var(--radius-sm);
    /* Smaller radius */
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}

.amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.amenity-card .icon {
    font-size: 1.8rem;
    /* Reduced icon size */
    margin-bottom: 0.5rem;
    /* Reduced margin */
}

.amenity-card h3 {
    font-size: 1rem;
    /* Reduced heading size */
    color: var(--color-stone);
    margin-bottom: 0.25rem;
}

.amenity-card p {
    font-size: 0.8rem;
    /* Reduced text size */
    color: var(--color-beige-grey);
    line-height: 1.4;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    height: 300px;
    border-radius: var(--radius-sm);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    opacity: 0.9;
}

/* --- Location Section --- */
.location .row {
    display: flex;
    gap: var(--spacing-lg);
    flex-direction: row-reverse;
    /* Map on right/top visually depending on pref, but let's stick to simple */
}

.location-list {
    margin-top: var(--spacing-md);
}

.location-list li {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-main);
}

/* --- Contact Section --- */
.contact {
    background-color: var(--color-stone);
    color: var(--color-white);
}

.contact h2,
.contact p {
    color: var(--color-white);
}

.contact .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-details {
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-stone);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(239, 183, 62, 0.2);
}

/* --- Footer --- */
.main-footer {
    background-color: #2c2c2c;
    color: #888;
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Room Showcase Section --- */
.rooms {
    background-color: var(--color-white);
}

.rooms-carousel-container {
    position: relative;
    padding: 0 var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.rooms-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: var(--spacing-sm) 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    /* Firefox */
}

.rooms-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.room-card {
    flex: 0 0 340px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    scroll-snap-align: center;
}

.room-card-img {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.room-card-img {
    height: 220px;
    /* Increased height by ~20% */
    background-color: var(--color-stone);
    position: relative;
}

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

.room-card-body {
    padding: var(--spacing-sm);
    text-align: center;
}

.room-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: #d9a432;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* --- Room Modal --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--color-white);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--color-text-main);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-primary);
}

.modal-header {
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.modal-body {
    padding: 0;
}

/* Modal Gallery */
.modal-gallery {
    position: relative;
    height: 400px;
    background-color: #f7f7f7;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Ensure track is contained */
}

.modal-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.modal-gallery-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.modal-gallery-track img {
    flex: 0 0 100%;
    /* Full width force */
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Show full image, no crop */
    background-color: #000;
    /* Black background for letterboxing */
    scroll-snap-align: center;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    transition: background 0.3s;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-nav.prev {
    left: 0;
}

.modal-nav.next {
    right: 0;
}

/* Overlay Info */
.image-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    font-weight: 500;
    align-items: center;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.availability-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-primary);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.availability-badge.booked {
    background-color: var(--color-accent-red);
}

/* Amenities Icons */
.modal-amenities {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: #f9f9f9;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

.amenity-icon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: help;
}

.amenity-icon-wrapper i {
    font-size: 2rem;
    color: var(--color-text-main);
    /* Black/Dark Grey */
    transition: color 0.3s;
}

.amenity-icon-wrapper:hover i {
    color: var(--color-primary);
}

/* Tooltip */
.amenity-tooltip {
    visibility: hidden;
    width: 120px;
    background-color: var(--color-text-main);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    /* Position above */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.amenity-icon-wrapper:hover .amenity-tooltip {
    visibility: visible;
    opacity: 1;
}

.modal-description {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-beige-grey);
    font-size: 1.1rem;
    padding-bottom: var(--spacing-lg);
}

/* --- Responsive --- */
@media (max-width: 900px) {

    .about .row,
    .location .row,
    .contact-container {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .nav-links {
        display: none;
        /* Hide for now, JS will toggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-sm);
    }

    .nav-links.active {
        display: flex;
    }

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

    .modal-gallery {
        height: 250px;
    }

    .modal-amenities {
        gap: var(--spacing-sm);
    }

    .amenity-icon-wrapper i {
        font-size: 1.5rem;
    }

    /* Mobile Carousel Fix */
    .rooms-carousel-container {
        padding: 0;
    }

    .container {
        padding: 0px;
    }

    .room-card {
        flex: 0 0 90vw;
        max-width: 400px;
        /* Allow it to be slightly wider if needed */
    }
}

/* =========================================
   Cookie Consent Banner
   ========================================= */
/* Body Lock when consent is needed */
body.consent-locked {
    overflow: hidden !important;
    height: 100vh !important;
}

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Semi-transparent backdrop */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.cookie-banner.active .cookie-content {
    transform: translateY(0);
}

.cookie-content p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--color-text-main);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.cookie-link {
    background: none;
    border: none;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

.cookie-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 var(--spacing-md);
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
}

/* --- Sticky Floating Call Button --- */
.floating-call-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: all 0.3s ease;
    animation: pulse-button 2s infinite;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background-color: #d9a432;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 183, 62, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(239, 183, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 183, 62, 0);
    }
}

@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}