/* ==========================================================================
   Wanderlust Premium Stylesheet
   ========================================================================== */

:root {
    --primary-color: hsl(210, 100%, 45%);
    --primary-hover: hsl(210, 100%, 35%);
    --secondary-color: hsl(175, 100%, 35%);
    --secondary-light: hsl(175, 100%, 96%);
    --accent-color: hsl(36, 100%, 50%);
    
    --bg-base: hsl(220, 25%, 98%);
    --bg-surface: hsl(0, 0%, 100%);
    --border-color: hsl(220, 15%, 90%);
    
    --text-primary: hsl(220, 30%, 15%);
    --text-secondary: hsl(220, 15%, 45%);
    --text-muted: hsl(220, 10%, 65%);
    
    --shadow-sm: 0 2px 8px hsla(220, 25%, 10%, 0.05);
    --shadow-md: 0 10px 30px hsla(220, 25%, 10%, 0.08);
    --shadow-lg: 0 20px 40px hsla(220, 25%, 10%, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(210, 100%, 45%, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: var(--bg-base);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-text-danger {
    background: transparent;
    color: hsl(0, 100%, 40%);
    padding: 0.5rem;
}

.btn-text-danger:hover {
    background-color: hsl(0, 100%, 97%);
    border-radius: var(--radius-sm);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--primary-color);
    font-size: 1.7rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
    background-color: hsl(210, 100%, 96%);
}

.nav-auth {
    display: flex;
    gap: 0.75rem;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-welcome {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 480px;
    background: url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&q=80&w=1600') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Search Box Widget */
.search-container {
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Sections Styling */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

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

.section-header p {
    color: var(--text-secondary);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* Category Filters */
.filters-section {
    margin-bottom: 3rem;
}

.category-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.category-badge:hover, .category-badge.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px hsla(210, 100%, 45%, 0.2);
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Package Card */
.package-card {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.package-card-img {
    height: 220px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.package-duration-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.package-slots-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.package-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.package-location {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.package-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.package-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.package-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-value {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.auth-modal-content {
    max-width: 450px;
}

.large-modal-content {
    max-width: 950px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    background-color: var(--bg-base);
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: white;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-6 { flex: 0 0 calc(50% - 0.5rem); }
.col-4 { flex: 0 0 calc(33.33% - 0.66rem); }

/* Auth Modal Specifics */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem 0;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    padding: 0 2rem 2rem;
}

/* Large Detail Modal Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

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

.detail-img-section {
    position: relative;
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

.detail-info-pane {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.detail-pane-header {
    margin-bottom: 1.5rem;
}

.detail-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.detail-meta-item i {
    color: var(--primary-color);
    margin-right: 0.35rem;
}

.detail-section-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.15rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 0.5rem;
}

.list-items {
    list-style: none;
}

.list-items li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.list-items li i {
    margin-top: 0.25rem;
}

.inclusion-check { color: green; }
.exclusion-cross { color: red; }
.highlight-star { color: var(--accent-color); }

/* Booking Card inside details */
.booking-card {
    background-color: var(--secondary-light);
    border: 1px dashed var(--secondary-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.booking-card h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

/* Day-by-Day Itinerary */
.itinerary-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.itinerary-day {
    position: relative;
    margin-bottom: 1.5rem;
}

.itinerary-day::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 6px);
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
}

.itinerary-day-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.itinerary-day-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Table layouts for Bookings/Admin */
.bookings-table-wrapper, .admin-panel-content {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin-top: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.bookings-table, .admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bookings-table th, .admin-table th {
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.bookings-table td, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.bookings-table tr:last-child td, .admin-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background-color: hsl(45, 100%, 93%); color: hsl(45, 100%, 30%); }
.badge-confirmed { background-color: hsl(150, 100%, 93%); color: hsl(150, 100%, 25%); }
.badge-completed { background-color: hsl(210, 100%, 93%); color: hsl(210, 100%, 35%); }
.badge-cancelled { background-color: hsl(0, 100%, 95%); color: hsl(0, 100%, 40%); }
.badge-success { background-color: hsl(150, 100%, 93%); color: hsl(150, 100%, 25%); }

/* Tab controls */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.admin-tab {
    background-color: var(--border-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.admin-tab.active {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-bottom-color: transparent;
    color: var(--primary-color);
}

/* Footer Section */
footer {
    background-color: hsl(220, 30%, 10%);
    color: var(--text-muted);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.footer-copy {
    width: 100%;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* General Layouts */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.no-data {
    text-align: center;
    padding: 4rem 2rem;
}

.no-data i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-data p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Reviews List Section */
.reviews-section-wrapper {
    margin-top: 2rem;
}

.review-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.review-author {
    font-weight: 700;
}

.review-comment {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.review-form-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
}
