: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;
    justify-content: center;
    align-items: center;
    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;
}

.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 {
    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;
}

.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 h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 600px;
    font-weight: 800;
}

.hero p {
    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;
}

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

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* Horizontal Cards (My Bookings) */
.adventure-card-horizontal {
    min-width: 100%;
    margin-bottom: 30px;
}

.booking-summary-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .adventure-card-horizontal {
        flex-direction: column;
        max-height: none !important;
    }

    .adventure-card-horizontal .adventure-image {
        width: 100% !important;
        height: 200px !important;
    }

    .adventure-card-horizontal .adventure-content {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 30px !important;
    }

    .booking-summary-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 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;
}

/* Listing Details Page */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.main-detail-image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.details-price-tag {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: right;
    min-width: 250px;
}

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

.gallery-item {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-card {
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.cta-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cta-features {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature span {
    font-size: 1.2rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

@media (max-width: 1100px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .cta-card {
        position: static;
        margin-top: 40px;
    }
    .details-price-tag {
        text-align: left;
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 250px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header {
        padding: 0 20px;
    }

    .hero {
        padding: 40px;
        height: 600px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .adventure-card {
        min-width: 85vw;
        flex-direction: column;
    }

    .adventure-image {
        width: 100%;
        height: 200px;
    }

    .adventure-content {
        padding: 20px;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .dest-large {
        grid-column: span 1;
        grid-row: span 1;
        height: 400px;
    }

    .dest-item {
        height: 250px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .partners-strip {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
        padding: 40px 0;
    }

    .auth-card {
        padding: 40px 24px;
    }

    .menu-link {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .nav-actions .btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        width: auto !important;
        margin-right: 10px !important;
    }
    
    #nav-join-btn {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--text-main);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--accent);
    box-shadow: 0 15px 40px rgba(214, 48, 49, 0.3);
    color: var(--white);
}

@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}