:root {
    --primary: #2d3436;
    --accent: #d63031;
    --bg-light: #f9f9f7;
    --white: #ffffff;
    --text-main: #1e1e1e;
    --text-muted: #666666;
    --border: #eeeeee;
    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
}

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

/* Header */
header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: #000000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

nav a {
    text-decoration: none;
    color: var(--white);
    margin-left: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 100px 24px 60px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-list {
    list-style: none;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto 0;
}

.menu-item {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s;
}

.menu-overlay.active .menu-item {
    opacity: 1;
    transform: translateY(0);
}

.menu-link {
    color: var(--white);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.menu-link:hover {
    opacity: 1;
}

.dropdown-parent {
    cursor: pointer;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.dropdown-active .dropdown-content {
    max-height: 200px;
    margin-top: 20px;
}

.dropdown-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 10px 0;
    opacity: 0.5;
}

.dropdown-link:hover {
    opacity: 1;
}

/* Animations for Hamburger */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero Section */
.hero-wrapper {
    padding: 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 337px);
    gap: 20px;
    align-items: stretch;
}

.hero {
    height: 600px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: #000;
}

.youtube-shorts-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    justify-self: end;
    width: 100%;
}

.shorts-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 0 12px;
}

.shorts-container {
    min-height: 0;
    height: 600px;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.shorts-embed {
    display: none;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.shorts-embed.active {
    display: block;
}

.shorts-placeholder {
    height: 100%;
    padding: 24px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, #141414, #333333);
}

.shorts-placeholder span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.shorts-placeholder code {
    color: var(--white);
    font-size: 0.85em;
}

.slider-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 600px;
    font-weight: 800;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Upcoming Adventures */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.adventure-carousel-wrapper {
    position: relative;
    margin-bottom: 80px;
}

.adventure-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.adventure-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.adventure-card {
    min-width: 450px;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 1.2rem;
    color: var(--text-main);
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--text-main);
    color: var(--white);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.adventure-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
}

.adventure-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tag {
    background: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

.adventure-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    margin-bottom: 80px;
}

.dest-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    color: white;
}

.dest-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dest-item:hover img {
    transform: scale(1.05);
}

.dest-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.dest-large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.test-card {
    background: #f1f1ee;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: left;
}

.test-content {
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}

.test-user {
    display: flex;
    align-items: center;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Partners */
.partners-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-top: 1px solid var(--border);
    filter: grayscale(1);
    opacity: 0.5;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--text-main);
    color: var(--white);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 80px - 400px); /* Adjust based on header/footer */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

.auth-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

/* Hero Refactoring */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-title {
    max-width: 100%;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-btn {
    background: var(--white);
    color: var(--text-main);
    padding: 14px 40px;
    border-radius: 30px;
}

/* Booking Page Styles */
.book-container {
    margin-top: 80px;
    margin-bottom: 80px;
    max-width: 800px;
}
.success-card {
    max-width: 100%;
    text-align: center;
    background: #fdfdfd;
}
.book-card {
    display: block !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.book-banner-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.book-card-body {
    padding: 60px;
}
.book-card-body.center {
    text-align: center;
}
.book-card-title {
    font-size: 3rem;
    margin-bottom: 24px;
}
.book-card-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.book-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.back-to-trips {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
}
.qr-code-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

/* My Bookings Styles */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.booking-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    flex-shrink: 0;
    max-height: 200px;
}
.booking-card-img {
    width: 250px;
    height: 100%;
    object-fit: cover;
}
.booking-card-body {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.booking-card-title {
    font-size: 1.8rem;
    margin: 5px 0;
}
.booking-card-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.booking-card-status {
    text-align: right;
}
.status-reserved {
    color: #27ae60;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 40px;
}

/* Responsive Media Queries */

/* Tablet & Smaller Devices */
@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        height: 70px;
        padding: 0 4%;
    }
    .logo img {
        height: 35px !important;
    }
    .nav-actions .btn {
        display: none; /* Hide header buttons, actions moved to menu overlay */
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero {
        height: auto;
        min-height: 480px;
        padding: 60px 30px;
    }
    .shorts-container {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }
    .section-header h2 {
        font-size: 2rem;
    }

    /* Upcoming Adventures */
    .carousel-btn {
        display: none !important; /* Hide carousel nav on touch-friendly mobile devices */
    }
    .adventure-carousel-wrapper {
        margin-bottom: 50px;
    }

    /* Destinations Grid */
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
        gap: 15px;
        margin-bottom: 50px;
    }
    .dest-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .test-card {
        padding: 30px;
    }

    /* Partners */
    .partners-strip {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding: 40px 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    /* Booking Page */
    .book-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .book-banner-img {
        height: 280px;
    }
    .book-card-body {
        padding: 40px 30px;
    }
    .book-card-title {
        font-size: 2.2rem;
        margin-bottom: 16px;
    }
    .book-card-desc {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }
    .book-actions {
        flex-direction: column;
        gap: 12px;
    }
    .book-actions .btn {
        width: 100%;
        text-align: center;
        margin-right: 0 !important;
    }

    /* My Bookings List */
    .booking-card {
        flex-direction: column;
        max-height: none;
    }
    .booking-card-img {
        width: 100%;
        height: 200px;
    }
    .booking-card-body {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .booking-card-status {
        width: 100%;
        text-align: left;
    }
}

/* Mobile Phones (Strictly < 576px) */
@media (max-width: 576px) {
    /* Header Overlay Links */
    .menu-link {
        font-size: 1.8rem;
    }
    .dropdown-link {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        min-height: 420px;
        padding: 40px 20px;
    }
    .shorts-container {
        width: 100%;
        height: auto;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .hero-actions .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* Upcoming Adventures Cards */
    .adventure-card {
        min-width: 280px;
        width: 100%;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    }
    .adventure-image {
        width: 100%;
        height: 200px;
    }
    .adventure-content {
        padding: 20px;
    }
    .adventure-title {
        font-size: 1.3rem;
    }

    /* Destinations Grid */
    .destinations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    .dest-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .dest-item {
        height: 200px;
    }

    /* Auth & Book Pages */
    .auth-wrapper {
        padding: 40px 15px;
    }
    .auth-card {
        padding: 30px 20px;
        border-radius: var(--radius-md);
    }
    .auth-card h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    .book-card-body {
        padding: 30px 20px;
    }
    .book-card-title {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-grid div:last-child div {
        justify-content: center;
    }
}
