:root {
    --primary: #ff6b35;
    /* Warm sunny orange/red */
    --primary-dark: #e85a2b;
    --secondary: #f4a261;
    --dark: #264653;
    --light: #fffcf9;
    --gray-bg: var(--primary);
    /* Changed to brand red */
    --text-color: #333;
    --text-muted: #666;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Badge status colors */
.status-confirmed {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-cancelled {
    background: #ffcdd2;
    color: #c62828;
}

.status-pending {
    background: #fff9c4;
    color: #f9a825;
}

/* Booking Card Styles - Simple & Clean */
.booking-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.input-group-modern {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.input-group-row {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid #ccc;
}

.input-cell {
    padding: 10px 12px;
}

.input-cell label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}

.input-cell input,
.input-cell select {
    width: 100%;
    border: none;
    font-size: 0.95rem;
    outline: none;
    padding-top: 2px;
    background: transparent;
    font-family: inherit;
}

/* Contrast fixes for red sections */
section[style*="var(--gray-bg)"] {
    color: white !important;
}

section[style*="var(--gray-bg)"] .section-title,
section[style*="var(--gray-bg)"] h2,
section[style*="var(--gray-bg)"] p {
    color: white !important;
}

section[style*="var(--gray-bg)"] .review-card {
    color: var(--text-color);
    /* keep review cards readable */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(rgba(255, 252, 249, 0.45), rgba(255, 252, 249, 0.45)), url('../images/bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 115px;
    /* Offset for fixed top bar + nav */
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: 0.3s ease;
}

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

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 38px;
}

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

.top-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.top-rank img {
    filter: brightness(0) invert(1);
}

.top-socials {
    display: flex;
    gap: 12px;
}

.top-socials a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.top-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 38px;
    /* Offset for top bar exactly */
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    transition: 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.logo span.logo-text {
    display: block;
}

.logo .logo-text span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 600;
}

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

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 115px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
    background: url('https://images.unsplash.com/photo-1542199641-17796d195a60?w=1600&auto=format&fit=crop') center/cover;
    /* Fallback */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(38, 70, 83, 0.22) 0%, rgba(38, 70, 83, 0.35) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Sections */
.section {
    padding: 80px 0;
    /* Sections are naturally transparent or have background-color */
}

/* Base Light background for sections */
.bg-light {
    background-color: rgba(255, 252, 249, 0.35) !important;
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid rgba(255, 252, 249, 0.2);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body .btn {
    margin-top: auto;
}

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

.card-title {
    font-size: 1.45rem;
    margin-bottom: 10px;
    height: 2.8em;
    /* Always reserve space for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Forms & Dashboard */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

/* Review / Insta / Tripadvisor grids */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.stars {
    color: #ffc107;
    margin-bottom: 10px;
}

/* Admin Dashboard Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--dark);
    color: white;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

/* Tour Detail Page specific */
.tour-hero {
    margin-top: 0;
    /* body padding handles it */
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding-top: 40px;
}

.booking-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.main-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul a,
.social-links a {
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

.footer-col ul a:hover,
.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
        background: #fffcf9 !important;
        /* Clean solid background for mobile */
        background-image: none !important;
        background-attachment: scroll !important;
    }

    .top-bar {
        display: none !important;
        /* Clean up: remove top ranking bar on small phones */
    }

    .navbar {
        top: 0;
        /* Move navbar to very top since top-bar is gone */
        padding: 5px 0;
    }

    .nav-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }

    .logo small {
        display: none !important;
        /* Erase 'Since 2009' numbers to clean up logo on mobile */
    }

    .nav-links {
        justify-content: center;
        padding: 0;
        gap: 12px;
        font-size: 0.85rem;
    }

    .hero {
        height: auto;
        min-height: 350px;
        padding: 40px 0;
    }

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

    .hero-content>div {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .hero-content h1 {
        font-size: 2rem;
        text-shadow: none;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .section {
        padding: 30px 0;
        background: transparent !important;
    }

    .section-title {
        font-size: 1.6rem;
        text-align: center !important;
        margin-bottom: 25px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid #eee;
        display: flex !important;
        flex-direction: column !important;
    }

    .card-body {
        text-align: center !important;
        align-items: center !important;
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .card-meta {
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 1.25rem;
        height: auto;
        line-clamp: unset;
        -webkit-line-clamp: unset;
        margin-bottom: 10px;
    }

    .card-body .btn {
        margin-top: 15px !important;
        width: 100%;
        text-align: center;
    }

    .tour-details-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 130px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
    }

    .logo img {
        height: 50px !important;
        width: 50px !important;
    }

    .platform-badges {
        flex-direction: column;
        align-items: center;
        gap: 25px !important;
    }

    .platform-badges>div {
        border: none !important;
        padding: 0 !important;
    }
}