/* Base & Reset */
:root {
    --primary-color: #C64839;
    --primary-hover: #A5392D;
    --primary-dark: #8c2f23;
    --secondary-color: #108EC0;
    --secondary-hover: #0c719a;
    --bg-white: #FFFFFF;
    --bg-light-blue: #F0F8FF;
    --bg-sand: #FDFBF7;
    --text-dark: #222222;
    --text-grey: #555555;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

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

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

/* Sections */
section {
    padding: 5rem 2rem;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.25rem;
    }
}

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

.bg-light {
    background-color: var(--bg-light-blue);
}

.bg-sand {
    background-color: var(--bg-sand);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(198, 72, 57, 0.3);
}

.btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 6px 15px rgba(198, 72, 57, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(16, 142, 192, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo {
    flex: 1;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar.scrolled .logo {
    text-shadow: none;
}

.active-nav {
    color: var(--primary-color) !important;
}

.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-cta-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    border-width: 1px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    position: relative;
}

.navbar.scrolled .nav-links a {
    text-shadow: none;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span {
    background-color: var(--text-dark);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure visibility on older mobile browsers or if JS fails slightly */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
@media (max-width: 768px) {
    .fade-in {
        /* Faster transition on mobile */
        transition-duration: 0.5s;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(198, 72, 57, 0.2));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    color: #fff;
}

.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin: 0 auto 1.5rem auto;
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    margin: 0 auto 2rem auto;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    max-width: 800px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons .btn-outline {
    border-color: #fff;
    color: #fff;
}

.hero-buttons .btn-outline:hover {
    background: #fff;
    color: var(--text-dark);
}

/* Features Grid */
.features-grid, .amenities-grid, .accommodations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Internal Page Headers */
.page-header {
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.page-header .hero-overlay {
    background: rgba(0,0,0,0.5);
}

/* Accommodation Cards */
.room-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.room-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.room-card:hover .room-img {
    transform: scale(1.05);
}

.room-img-wrapper {
    overflow: hidden;
}

.room-details {
    padding: 2rem;
}

.room-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.room-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.room-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-features li i {
    color: var(--secondary-color);
}

/* Booking Bar Form */
.booking-bar-wrapper {
    background-color: var(--primary-color);
    margin: 3rem auto 0 auto; /* Add space under buttons */
    padding: 0;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 95%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    text-align: left;
}

.booking-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.booking-field {
    padding: 0.8rem 1.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-field.hotel-select { flex: 2; }
.booking-field.date-select { flex: 1.5; }
.booking-field.guest-select { flex: 1; }
.booking-field.resident-book { flex: 1.5; padding-right: 1.5rem; justify-content: center; }

.booking-field label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #fff;
    text-transform: uppercase;
}

.booking-field.border-left {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.booking-input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    width: 100%;
}

.booking-input:focus {
    outline: none;
}

.booking-input option {
    color: #333;
    background: #fff;
}

input[type="date"].booking-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    font-size: 0.8rem;
}

select.booking-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.5rem;
}

.btn-white {
    background-color: #fff;
    color: #C41230;
    border: none;
    padding: 0.6rem 2rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 4px; /* Optional subtle corner rounding */
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-white:hover {
    background-color: #f1f1f1;
    color: #920f20;
    transform: translateY(-2px);
}

/* Mobile responsive for booking bar */
@media (max-width: 992px) {
    .booking-bar {
        flex-direction: column;
    }
    .booking-field.border-left {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Best Rooms Section */
.rooms-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.rooms-header-left h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.rooms-header-left p {
    color: var(--text-grey);
    margin-bottom: 0;
}

.rooms-header-right a {
    color: var(--text-grey);
    font-weight: 500;
    transition: var(--transition);
}

.rooms-header-right a:hover {
    color: var(--primary-color);
}

.best-rooms-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: auto;
    margin-top: 2rem;
}

.best-room-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    text-decoration: none;
    color: inherit;
}

/* Expansion Effect - ONLY ON DESKTOP */
@media (min-width: 1025px) {
    .best-rooms-grid {
        flex-direction: row;
        height: 500px;
    }

    .best-room-card {
        flex: 1;
        height: 100%;
        transition: flex 0.7s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s ease;
    }

    .best-room-card.large {
        flex: 2.2;
    }

    .best-room-card:hover {
        flex: 2.5 !important;
        transform: translateY(-5px);
    }

    .best-rooms-grid:hover .best-room-card:not(:hover) {
        flex: 0.8;
    }
}

.best-room-card .room-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.best-room-card:hover .room-bg {
    transform: scale(1.05);
}

.best-room-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none;
}

.best-room-content {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    padding: 1rem;
    z-index: 2;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.best-room-card:not(.large):not(:hover) .best-room-content {
    transform: translateY(0);
    opacity: 0.95;
}

/* Ensure content is always visible and compact */
.best-room-content h3 {
    color: #fff;
    margin-bottom: 0.1rem;
    font-size: 1rem;
}

.best-room-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #ffffff;
    margin-top: 0.4rem;
}

.best-room-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.best-room-meta i {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.best-room-price {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.best-room-price span {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 1024px) {
    .best-room-card .best-room-content {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .rooms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Sunset Section */
.sunset-section {
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 8rem 2rem;
}

.sunset-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(198, 72, 57, 0.8), rgba(0,0,0,0.6));
}

.sunset-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.sunset-content h2 {
    color: #fff;
}

/* CTA Banner */
.cta-banner {
    background-color: var(--bg-light-blue);
    padding: 4rem 2rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 4rem 2rem 2rem;
}

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

.footer-col h3 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col p {
    color: rgba(255,255,255,0.8);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 142, 192, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 3rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Map */
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-cta-wrapper {
        display: none;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-dark);
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--text-dark); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--text-dark); }
    
    .navbar {
        padding: 1rem 1.5rem;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .hero-content {
        padding-top: 6rem;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding: 5rem 1rem 3rem;
    }

    .hero-content h1 { 
        font-size: 2.2rem; 
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .hero-buttons { 
        flex-direction: column; 
        gap: 1.25rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .page-header h1 { font-size: 2.2rem; }
    .contact-form { padding: 1.5rem; }
    
    .accommodations-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1.5rem;
    }
    
    .room-details {
        padding: 1.5rem;
    }

    .best-room-price {
        display: block !important;
        opacity: 1 !important;
        margin-top: 0.5rem;
    }
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn-group .btn {
    text-align: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
}

/* Room Price */
.room-price {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.room-price span {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}
