@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@600;700;800;900&family=Playfair+Display:ital,wght@1,400;1,600&family=Permanent+Marker&display=swap');

:root {
    /* Brand Colors */
    --primary:        #2D6A4F;
    --primary-dark:   #1e4d38;
    --accent:         #F4A261;
    --accent-dark:    #e08040;
    --navy:           #1D3557;

    /* Neutral Palette */
    --bg-color:       #F8F9FA;
    --bg-card:        #FFFFFF;
    --text-primary:   #111827;
    --text-secondary: #6B7280;
    --border-color:   #E5E7EB;

    /* Status */
    --success:        #52B788;
    --danger:         #E63946;

    /* Typography */
    --font-body:      'Poppins', sans-serif;
    --font-heading:   'Montserrat', sans-serif;
    --font-brand:     'Permanent Marker', cursive;

    /* Misc */
    --radius:         16px;
    --shadow:         0 4px 24px rgba(0,0,0,0.06);
    --shadow-hover:   0 12px 32px rgba(0,0,0,0.12);
    --transition:     0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.3;
}

/* Typography Helpers */
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(244,162,97,0.35);
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244,162,97,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(45,106,79,0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    padding: 0 2rem;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 1001;
    white-space: nowrap;
}

.navbar-brand span {
    color: var(--accent);
}

.navbar-logo {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    flex-shrink: 0;
}

/* Desktop Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-auth-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-auth-link:hover {
    color: #fff;
}

.btn-nav-book {
    padding: 0.55rem 1.35rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

/* Glass/Card Container Replacement (Keeping class name for compatibility) */
.glass-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition);
}

.glass-container:hover {
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--navy);
    color: #fff;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-col a {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

/* Tour Cards (Global overrides) */
.best-seller-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

/* ========================================================
   RESPONSIVE & MOBILE NAVIGATION (HAMBURGER MENU)
   ======================================================== */

/* Hamburger Toggle Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
}

.hamburger-btn .hamburger-bar {
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    margin: 2.5px 0;
}

/* Animate Hamburger into X when active */
.hamburger-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--accent);
}

.hamburger-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--accent);
}

/* Mobile Navigation Overlay / Drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    overflow-y: auto;
    padding: 1.5rem 1.5rem 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1rem 1.25rem;
    color: #e2e8f0;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-menu-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fff;
    transform: translateX(4px);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.mobile-auth-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-auth-btn.btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-btn.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-auth-btn.btn-dashboard {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.mobile-auth-btn.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mobile-cta-box {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mobile-cta-btn-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1.05rem;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-cta-btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

.mobile-cta-btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-cta-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .navbar {
        padding: 0 1.25rem;
    }
    .navbar-brand {
        font-size: 1.05rem;
        gap: 8px;
    }
    .navbar-brand span {
        font-size: 1.05rem;
    }
    .navbar-logo {
        height: 38px;
        width: 38px;
    }
    /* Hide desktop menu elements */
    .nav-links {
        display: none !important;
    }
    .nav-actions {
        display: none !important;
    }
    /* Show hamburger toggle */
    .hamburger-btn {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.92rem;
        gap: 6px;
    }
    .navbar-logo {
        height: 34px;
        width: 34px;
    }
    .mobile-nav-drawer {
        padding: 1.25rem 1rem 2.5rem;
    }
}
