/* ===== Variables (Tour‑Inspired Palette) ===== */
:root {
    /* Primary colors */
    --primary: #0b3b3b;           /* deep teal */
    --primary-light: #1a5f5f;
    --primary-dark: #052525;
    --accent: #ff7e5f;            /* warm coral */
    --accent-light: #ff9b82;
    --accent-dark: #e55a3a;

    /* Neutrals */
    --dark: #2d3e4f;
    --gray: #6c7a89;
    --light-gray: #ecf0f3;
    --bg-main: #ecf0f3;           /* soft blue‑gray background */
    --white: #ffffff;

    /* Sidebar (dark teal gradient) */
    --sidebar-bg: linear-gradient(135deg, #0b3b3b 0%, #1a5f5f 100%);
    --sidebar-text: rgba(255, 255, 255, 0.9);
    --sidebar-text-muted: rgba(255, 255, 255, 0.6);

    /* Sizes & effects */
    --sidebar-width: 280px;
    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(0, 20, 20, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 40, 40, 0.15);
    --transition: all 0.25s ease;

    /* Fixed bottom nav sizing (used for safe spacing) */
    --bottom-nav-height: 84px;
}

/* ===== Base Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-gray);
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

a, button, [role="button"], input, select, textarea {
    touch-action: manipulation;
}

::selection {
    background: rgba(255, 126, 95, 0.22);
}

:focus-visible {
    outline: 3px solid rgba(255, 126, 95, 0.35);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Dashboard Layout ===== */
.student-dashboard {
    min-height: 100vh;
    width: 100%;
    display: flex;
    background: var(--bg-main);
    padding-top: env(safe-area-inset-top, 0px);
}

/* ===== Sidebar – Dark Teal Gradient ===== */
.student-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 100%;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.header-logo {
    height: 42px;
    width: auto;
    margin-right: 12px;
    border-radius: 10px;
    /*filter: brightness(0) invert(1);*/ /* makes any dark logo white */
}

.logo-name {
    font-weight: 700;
    font-size: 1.3rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0 16px;
    flex: 1;
}

.menu-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sidebar-text-muted);
    margin: 25px 0 12px 8px;
    letter-spacing: 1px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.sidebar-menu li a.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 126, 95, 0.3);
}

.sidebar-menu li a i {
    font-size: 1.3rem;
    margin-right: 14px;
    width: 24px;
    text-align: center;
}

.sidebar-menu li a .badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar-sidebar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /*background: var(--accent);*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.user-role {
    font-size: 0.7rem;
    color: var(--sidebar-text-muted);
}

/* ===== Main Content – with subtle world map pattern ===== */
.student-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    width: calc(100% - var(--sidebar-width));
    background-color: var(--bg-main);
   
    background-repeat: repeat;
    background-size: 60px 60px;
    min-height: 100vh;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Bottom Navigation – Mobile Only (fully styled) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;                /* hidden on desktop */
    justify-content: space-around;
    padding: 2px 0 1px;
    min-height: var(--bottom-nav-height);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 90;
    border-radius: 30px 30px 0 0;
    backdrop-filter: blur(10px);
    /*background: rgba(255, 255, 255, 0.95);*/
    background:var(--light-gray);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    flex: 1;
    padding: 1px 0;
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 30px;
}

.nav-item.active {
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(255, 126, 95, 0.1);
}

.nav-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

/* Optional badge for messages/notifications on mobile */
.nav-item .badge {
    position: absolute;
    top: 2px;
    right: 20px;
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    min-width: 18px;
    border-radius: 18px;
}

/* ===== Page Header ===== */
.dashboard-header {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-title p {
    color: var(--gray);
    font-size: 1rem;
}

/* ===== Cards – Modern & Crisp ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.02);
}

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

.tour-card {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.tour-img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    background: linear-gradient(145deg, #a5b4cb, #cbd5e1);
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tour-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-weight: 600;
}

.tour-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 6px;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-block;
}

/* ===== Buttons – Rounded, Gradient ===== */
.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 8px 16px rgba(11, 59, 59, 0.2);
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(11, 59, 59, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(255, 126, 95, 0.35);
    outline-offset: 2px;
}

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

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

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
}
.btn-success {
    background: #10b981;
}
.btn-danger {
    background: #ef4444;
}
.btn-warning {
    background: #f59e0b;
    color: var(--dark);
}

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

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border: 1px solid #dde7f0;
    border-radius: 50px;
    transition: var(--transition);
    background: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-control::placeholder {
    color: #a0b8cc;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.15);
}

textarea.form-control {
    border-radius: var(--radius);
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--accent);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    border-left: 6px solid transparent;
    font-weight: 500;
    background: white;
    box-shadow: var(--shadow);
}

.invalid-feedback {
    color: #dc3545 !important; /* Bootstrap danger red */
    font-size: 0.875em;
    display: block !important; /* ensures it's visible even if display:none is applied */
}

.alert-success {
    border-left-color: #10b981;
    color: #065f46;
}
.alert-danger {
    border-left-color: #ef4444;
    color: #991b1b;
}
.alert-warning {
    border-left-color: #f59e0b;
    color: #92400e;
}
.alert-info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

/* ===== Badges – Colorful ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: var(--primary); }
.badge-success { background: #10b981; }
.badge-warning { background: #f59e0b; color: #1e293b; }
.badge-danger { background: #ef4444; }
.badge-secondary { background: var(--gray); }

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ===== Chat Bubbles ===== */
.chat-bubble {
    background: white;
    padding: 12px 18px;
    border-radius: 24px 24px 24px 4px;
    margin-bottom: 10px;
    max-width: 70%;
    box-shadow: var(--shadow);
    word-wrap: break-word;
    position: relative;
}

.chat-bubble.operator {
    background: var(--primary);
    color: white;
    align-self: flex-start;
    border-radius: 4px 24px 24px 24px;
}

.chat-bubble.customer {
    background: var(--light-gray);
    align-self: flex-end;
    border-radius: 24px 4px 24px 24px;
}

.chat-bubble .message-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

/* ===== Conversation List ===== */
.conversation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.conversation-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.conversation-item.active {
    background: var(--accent);
    color: white;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 700;
    margin-bottom: 3px;
}

.conversation-last-message {
    font-size: 0.8rem;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    font-size: 0.65rem;
    color: var(--gray);
}

/* ===== Operator Dashboard Stats ===== */
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--accent);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Tour Grid ===== */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ===== Search Bar ===== */
.search-bar {
    background: white;
    border-radius: 60px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0ecf5;
    box-shadow: var(--shadow);
}

.search-bar span {
    color: var(--gray);
    font-size: 1.2rem;
}

.search-bar input {
    border: none;
    flex: 1;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding: 10px 0;
}

.search-bar input::placeholder {
    color: #a0b8cc;
}

/* ===== Chips / Categories ===== */
.chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 24px;
    -webkit-overflow-scrolling: touch;
    text-decoration: none;

}

.chip {
    background: white;
    padding: 10px 22px;
    border-radius: 60px;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--primary-dark);
    border: 1px solid #d9e6f2;
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    text-decoration: none;
    cursor: pointer;
}

.chip:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== Step Indicator (Booking) ===== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.step {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray);
    position: relative;
}

.step.active {
    color: var(--accent);
    font-weight: 700;
}

.step::before {
    content: '';
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    background: white;
    border: 2px solid #d0e0ec;
    border-radius: 50%;
    margin: 0 auto 8px;
    transition: var(--transition);
}

.step.active::before {
    background: var(--accent);
    border-color: var(--accent);
}

/* ===== Guest Counter ===== */
.guest-counter {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.guest-counter button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.guest-counter button:hover {
    background: var(--primary);
    color: white;
}

/* ===== Divider ===== */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #d0e0ec, transparent);
    margin: 30px 0;
}

/* ===== Utilities ===== */
.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.flex-col {
    flex-direction: column;
}
.justify-between {
    justify-content: space-between;
}
.items-start {
    align-items: flex-start;
}
.w-full {
    width: 100%;
}
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

.notification-item {
    cursor: pointer;
    transition: background 0.2s;
}
.notification-item:hover {
    background: #f5f5f5;
}
#notification-list {
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===== Mobile-first quality (no layout changes) ===== */
.bottom-nav {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

@media (pointer: coarse) {
    /* Larger tap targets on touch devices */
    .btn,
    .btn-action,
    .chip,
    .nav-item,
    .sidebar-menu li a,
    .conversation-item {
        min-height: 44px;
    }

    .form-control {
        min-height: 44px;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .student-sidebar {
        display: none !important;
    }

    .student-main-content {
        margin-left: 0;
        width: 100%;
        /* Reserve space for fixed bottom nav (plus safe area) */
        padding: 20px 5px calc(var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom, 0px));
    }

    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: flex;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

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

    .chat-bubble {
        max-width: 85%;
    }

    .card {
        padding: 18px;
    }

    .search-bar {
        padding: 6px 6px 6px 18px;
    }

    /* Make bottom nav items easier to tap */
    .nav-item {
        padding: 12px 0;
    }
    .nav-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 1024px) {
    .student-sidebar {
        display: none !important;
    }

    .student-main-content {
        margin-left: 0;
        width: 100%;
        /* Reserve space for fixed bottom nav (plus safe area) */
        padding: 20px 5px calc(var(--bottom-nav-height) + 24px + env(safe-area-inset-bottom, 0px));
    }

    /* Show bottom navigation on mobile */
    .bottom-nav {
        display: flex;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

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

    .chat-bubble {
        max-width: 85%;
    }

    .card {
        padding: 18px;
    }

    .search-bar {
        padding: 6px 6px 6px 18px;
    }

    /* Make bottom nav items easier to tap */
    .nav-item {
        padding: 12px 0;
    }
    .nav-icon {
        font-size: 1.8rem;
    }
}
    /* ===== Base (mobile first) ===== */
    .slots-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-family: 'Inter', sans-serif;
    }

    .slot-card {
        display: flex;
        flex-direction: column;  /* stacked on mobile */
        background: #fff;
        border-radius: 24px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid #f0f0f0;
        transition: all 0.25s ease;
        cursor: default;
    }

    /* Tablet and up: horizontal layout */
    @media (min-width: 640px) {
        .slot-card {
            flex-direction: row;
            align-items: center;
            padding: 20px;
        }
    }

    /* ----- Date Block ----- */
    .date-block {
        min-width: 80px;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    @media (min-width: 640px) {
        .date-block {
            border-bottom: none;
            border-right: 1px solid #f0f0f0;
            padding-bottom: 0;
            margin-bottom: 0;
            padding-right: 20px;
        }
    }

    .date-day {
        font-size: 28px;
        font-weight: 700;
        color: #1a3b3b;
        line-height: 1.2;
    }

    .date-month {
        font-size: 15px;
        font-weight: 600;
        color: #5f7a8c;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .date-year {
        font-size: 13px;
        font-weight: 500;
        color: #8a9aa8;
        margin-top: 4px;
    }

    /* ----- Details Block ----- */
    .details-block {
        flex: 1;
    }

    @media (min-width: 640px) {
        .details-block {
            padding-left: 20px;
        }
    }

    .datetime {
        font-size: 15px;
        font-weight: 500;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .datetime-sep {
        color: #8a9aa8;
        margin: 0 4px;
    }

    /* Status Badge */
    .status-badge {
        display: inline-block;
        padding: 6px 14px;
        border-radius: 30px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .status-badge.available {
        background: #dff0d8;
        color: #2c6b2c;
    }

    .status-badge.full {
        background: #f8d7da;
        color: #a94442;
    }

    .status-badge.cancelled {
        background: #f2f2f2;
        color: #6c757d;
    }

    /* Info Row */
    .info-row {
        font-size: 15px;
        color: #4a5f73;
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
        margin-bottom: 10px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .info-icon {
        font-size: 18px;
    }

    .info-text {
        font-weight: 600;
    }

    .spots-left {
        font-weight: 600;
    }

    .spots-left.available {
        color: #2d7a4b;
    }

    .spots-left.full {
        color: #b02a37;
    }

    /* Progress Bar */
    .progress-bar {
        height: 6px;
        background: #eef2f6;
        border-radius: 8px;
        margin-top: 10px;
    }

    .progress-fill {
        height: 100%;
        background: #7c9bc0;
        border-radius: 8px;
        transition: width 0.3s ease;
    }

    /* ----- Actions Block ----- */
    .actions-block {
        display: flex;
        flex-direction: row;
        gap: 8px;
        margin-top: 16px;
        justify-content: flex-end;
    }

    @media (min-width: 640px) {
        .actions-block {
            flex-direction: column;
            margin-top: 0;
            margin-left: 16px;
        }
    }

    .btn-action {
        padding: 8px 16px;
        border-radius: 40px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        text-align: center;
        background: #fff;
        transition: all 0.2s;
        border: 1px solid transparent;
        cursor: pointer;
        display: inline-block;
        min-width: 70px;
    }

    .btn-action.edit {
        border-color: #cbd5e0;
        color: #2c3e50;
    }

    .btn-action.edit:hover {
        background: #f0f7ff;
        border-color: #7c9bc0;
    }

    .btn-action.delete {
        border-color: #f5c6cb;
        color: #a94442;
    }

    .btn-action.delete:hover {
        background: #fff5f5;
        border-color: #a94442;
    }

    /* Delete form wrapper */
    .delete-form {
        display: inline;
    }

.settings-container {
    margin: 0 auto;
    padding: 0 1rem;
}

/* Profile Header */
.profile-header {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 0;
    background: white;
}

.profile-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.profile-info {
    text-align: center;
    margin-top: -50px;
    padding-bottom: 1.5rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 4px solid white;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.profile-role {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Settings Menu */
.settings-menu {
    padding: 0;
    overflow: hidden;
}

.menu-group {
    padding: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--light-gray);
}

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

.menu-item:hover {
    background: var(--light-gray);
}

.menu-icon {
    width: 48px;
    font-size: 1.6rem;
    color: var(--primary);
    text-align: center;
}

.menu-content {
    flex: 1;
}

.menu-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.menu-desc {
    font-size: 0.8rem;
    color: var(--gray);
}

.menu-arrow {
    color: var(--gray);
    font-size: 1.2rem;
}

.logout .menu-icon,
.logout .menu-title {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 0;
    }
    
    .profile-header {
        border-radius: 0;
    }
    
    .settings-menu {
        border-radius: 0;
    }
}

@media (max-width: 1024px) {
    .settings-container {
        padding: 0;
    }
    
    .profile-header {
        border-radius: 0;
    }
    
    .settings-menu {
        border-radius: 0;
    }
}
/* Empty state container */
.empty-state {
    text-align: center;
    padding: 20px 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f9fafc, #f1f4ff);
}

/* Message text */
.empty-state p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Link as button */
.empty-state a {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #4a6cf7, #6a8dff);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover effect */
.empty-state a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(74, 108, 247, 0.25);
}

/* Active click */
.empty-state a:active {
    transform: scale(0.97);
}

.tour-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--light-gray);
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: white;
    border: 1px solid var(--light-gray);
    color: var(--gray);
}

.btn-action i {
    font-size: 1rem;
}

.btn-action.view:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-action.edit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.btn-action.availability:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

@media (max-width: 480px) {
    .tour-actions {
        flex-direction: row;
        gap: 8px;
    }

    .tour-actions > * {
        flex: 1;
    }

    .btn-action {
        justify-content: center;
    }
}


.booking-details-card {
    padding: 0;
    overflow: hidden;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--light-gray);
    border-bottom: 1px solid #e0e7ed;
    flex-wrap: wrap;
}

.back-button {
    flex-shrink: 0;
}

.back-icon {
    font-size: 26px;
    color: #555;
    text-decoration: none;
}

.back-icon:hover {
    color: #000;
}

.booking-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.booking-number i {
    font-size: 1.2rem;
    color: var(--primary);
}

.booking-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.info-section {
    padding: 1.5rem;
}

.info-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.info-label {
    width: 130px;
    font-weight: 600;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    width: 20px;
    font-size: 1.1rem;
    color: var(--primary);
}

.info-value {
    flex: 1;
    color: var(--dark);
}

.info-value.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.cancel-action {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e0e7ed;
    text-align: center;
}

.cancel-action .btn {
    min-width: 200px;
}

/* Responsive */
@media (max-width: 640px) {
    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .booking-number {
        order: 2;
    }
    .booking-badges {
        order: 3;
    }
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    .info-label {
        width: auto;
    }
}

.profile-container {
    margin: 0 auto;
    padding: 1 1rem;
}

.profile-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.profile-info {
    text-align: center;
    margin-top: -60px;
    padding: 0 1.5rem 1.5rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid white;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    background: var(--accent);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.profile-email {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 8px;
}

.profile-role {
    display: inline-block;
    background: var(--light-gray);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray);
}

.profile-actions {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.profile-actions .btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 640px) {
    .profile-container {
        padding: 0;
    }
    .profile-card {
        border-radius: 0;
    }
    .profile-name {
        font-size: 1.5rem;
    }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    .avatar-initials {
        font-size: 2.5rem;
    }
}

.empty-state-wrapper {
    background: linear-gradient(135deg, var(--bg-main) 0%, #eef2f9 100%);
    border-radius: var(--radius);
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 1rem;
}
.empty-state-content {
    max-width: 380px;
    margin: 0 auto;
}
.empty-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}
.empty-state-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.empty-state-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.empty-state-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hr-gradient {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1rem 0;
}


.booking-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0 0;
    flex-wrap: wrap;
}

.btn-pay, .btn-cancel {
    flex: 1;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.btn-pay:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 59, 59, 0.2);
}

.btn-cancel {
    background: #ef4444;
}

.btn-cancel:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.payment-success {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: #e6f4ea;
    border-radius: 50px;
    color: #1e7e34;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 640px) {
    .booking-actions {
        flex-direction: column;
    }
}

.transactions-container {
    margin: 0 auto;
    padding: 0 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray);
}
.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.empty-state p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}
.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.transaction-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}
.transaction-date i {
    font-size: 1rem;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.success {
    background: #e6f4ea;
    color: #1e7e34;
}
.status-badge.pending {
    background: #fff3e0;
    color: #b45309;
}
.status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

.transaction-body {
    padding: 1rem;
}
.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}
.info-label {
    width: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-label i {
    font-size: 0.9rem;
}
.info-value {
    flex: 1;
    color: var(--dark);
    font-size: 0.9rem;
    word-break: break-word;
}
.info-value code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.amount .info-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.transaction-footer {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: var(--light-gray);
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-link:hover {
    background: #e2e8f0;
    color: var(--primary-dark);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .info-label {
        width: 90px;
    }
    .info-value small {
        display: block;
        margin-top: 0.2rem;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.stat-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-info {
    flex: 1;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Actions */
.dashboard-actions {
    margin-bottom: 2rem;
}

/* Tour Cards (Dashboard version) */
.tour-card-dashboard {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.tour-card-dashboard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tour-card-dashboard h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.tour-card-dashboard p {
    color: var(--gray);
    margin-bottom: 1rem;
}

/* Recent Bookings */
.recent-bookings {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.booking-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.booking-row:last-child {
    border-bottom: none;
}
.booking-customer {
    flex: 2;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.booking-tour {
    flex: 2;
    color: var(--gray);
}
.booking-amount {
    flex: 1;
    font-weight: 600;
}
.booking-status {
    flex: 1;
}
.booking-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.2rem;
}
.section-title {
    margin: 0.5rem 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Badges */
.badge-success {
    background: #10b981;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
}
.badge-warning {
    background: #f59e0b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
}
.badge-danger {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .booking-row {
        flex-wrap: wrap;
    }
    .booking-customer, .booking-tour, .booking-amount, .booking-status {
        flex: auto;
        width: 100%;
        padding: 0.2rem 0;
    }
    .booking-link {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    .booking-row {
        position: relative;
        padding-right: 2.5rem;
    }
}

.reviewed-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f4ea;
    color: #1e7e34;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}


.tour-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: space-between;
}
.info-card {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--light-gray);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
}
.info-card div {
    flex: 1;
}
.info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}
@media (max-width: 640px) {
    .tour-info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}


.guest-cta {
    border-radius: var(--radius);
    padding: 0.5rem;
    text-align: center;
    transition: var(--transition);
}
.guest-cta:hover {
    transform: translateY(-2px);
}
.guest-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}
.guest-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.guest-message {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.guest-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.guest-buttons .btn {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.guest-footer {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}
.guest-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.guest-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .guest-buttons {
        flex-direction: column;
    }
    .guest-buttons .btn {
        width: 100%;
    }
}

.empty-reviews-state {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    margin-top: 1rem;
}
.empty-reviews-state i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}
.empty-reviews-state h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.empty-reviews-state p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.no-dates-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    justify-content: center;
}
.no-dates-inline i {
    font-size: 1.1rem;
}

.booking-actions-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.btn-block {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    box-shadow: 0 4px 12px rgba(11, 59, 59, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 59, 59, 0.3);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.no-dates-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--light-gray);
    color: var(--gray);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}
@media (max-width: 640px) {
    .booking-actions-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    .btn-block {
        width: 100%;
    }
}

.empty-state-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem auto;
}
.empty-state-card .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray);
}
.empty-state-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}
.empty-state-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.empty-state-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Container for relative positioning */
.tour-detail-container {
    position: relative;
}

/* Sticky header – starts transparent, becomes solid on scroll */
/* Sticky header – always solid, covers entire top */
.sticky-header {
    position: sticky;
    top: 0;                                     /* stick to the very top */
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Push content below the status bar, but keep the background filling above */
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: var(--light-gray);              /* default (not scrolled) */
    transition: background 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: none;                      /* never any blur */
}

/* When scrolled – solid white, no transparency, no blur */
.sticky-header.scrolled {
    background: #ffffff;                        /* fully opaque white */
    backdrop-filter: none;                      /* no glass effect */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Back button (always visible) */
.sticky-header .back-button {
    width: 35px;
    height: 35px;
    font-size: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

/* Title that appears only when scrolled */
.sticky-title {
    font-size: 1.1rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-header.scrolled .sticky-title {
    opacity: 1;
    color: var(--primary-dark);
}

/* Ensure the image is not covered by the sticky header */
.tour-img {
    margin-top: 0;
}
