/* =========================================
   1. Variables & Theme
   ========================================= */
:root {
    /* Colors */
    --color-primary: #1B4D3E;
    /* Deep Jungle Green */
    --color-secondary: #A0522D;
    /* Earthy Terracotta/Wood */
    --color-accent: #D4AF37;
    /* Gold */
    --color-bg: #FDFBF7;
    /* Off-white/Cream */
    --color-text-dark: #2C3E50;
    --color-text-light: #ECF0F1;
    --color-white: #FFFFFF;
    --color-grey-light: #f4f4f4;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* =========================================
   2. Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. Layout Utilities
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
    gap: var(--spacing-sm);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   4. Components
   ========================================= */
/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: var(--spacing-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* =========================================
   5. Header & Navigation
   ========================================= */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

#logo-img {
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* =========================================
   6. Footer
   ========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* =========================================
   7. New Booking UI (Horizontal Bar)
   ========================================= */
.booking-bar {
    display: flex;
    background: var(--color-white);
    border-radius: 50px;
    /* Pill shape */
    box-shadow: var(--shadow-lg);
    padding: 10px;
    margin-bottom: 2rem;
    align-items: center;
    border: 1px solid #e0e0e0;
}

.booking-field {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid #eee;
    position: relative;
}

.booking-field:last-child {
    border-right: none;
}

.booking-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.booking-input-display {
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.booking-input-display:hover {
    color: var(--color-primary);
}

/* Custom Date Input Styling to look like text */
.booking-date-input {
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #555;
    width: 100%;
    cursor: pointer;
    outline: none;
}

/* Guest Popover */
.guest-popover {
    position: absolute;
    top: 120%;
    left: 0;
    width: 300px;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 20px;
    z-index: 100;
    display: none;
    /* Hidden by default */
}

.guest-popover.active {
    display: block;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.guest-row:last-child {
    margin-bottom: 0;
}

.guest-label h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.guest-label p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: all 0.2s;
}

.counter-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.counter-value {
    font-weight: 600;
    width: 20px;
    text-align: center;
}

.popover-footer {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Nationality Dropdown styled as text */
.nationality-select {
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
    color: #555;
    width: 100%;
    cursor: pointer;
    outline: none;
    background: transparent;
    appearance: none;
    /* Remove default arrow */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231B4D3E%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 12px;
    padding-right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-bar {
        flex-direction: column;
        border-radius: 12px;
        align-items: stretch;
    }

    .booking-field {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }

    .booking-field:last-child {
        border-bottom: none;
    }

    .guest-popover {
        width: 100%;
        left: 0;
    }
}

/* Custom Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 1.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-message {
    color: #666;
    margin-bottom: 1.5rem;
}