@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-dark: #0d5b88;
    --primary: #1B98D9;
    --primary-light: #3db0f0;
    --accent: #2497D6;
    --accent-light: #5fc2f5;
    --secondary: #00b894;
    --secondary-light: #e3f2fd;
    --dark-bg: #0b1d30;
    --light-bg: #f5f8fb;
    --white: #ffffff;
    --text-dark: #1e2c3b;
    --text-muted: #627b8f;
    --text-light: #ffffff;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(27, 152, 217, 0.35);
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

[data-theme="dark"] {
    --light-bg: #071424;
    --white: #0b223c;
    --text-dark: #f0f4f8;
    --text-muted: #8fa0b5;
    --secondary-light: #0f3358;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Common Layout Elements */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .section-header h2 {
    color: var(--white);
}

.section-header h2 span {
    color: var(--accent);
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(11, 29, 48, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding 0.3s ease, background 0.3s ease;
}

header.shrink {
    padding: 12px 0;
    background: rgba(11, 29, 48, 0.95);
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
}

.logo-img {
    height: 42px;
    background: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

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

.logo-icon {
    font-size: 28px;
    color: var(--accent);
}

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

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

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-light);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
    background: none;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay to make text readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 29, 48, 0.45), rgba(11, 29, 48, 0.65));
    z-index: 2;
    pointer-events: none;
}

/* Bottom gradient transition to next section (var(--secondary-light)) */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(11, 29, 48, 0) 0%, var(--secondary-light) 100%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease;
}

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

.hero-tagline {
    display: inline-block;
    background: rgba(223, 162, 59, 0.15);
    border: 1px solid rgba(223, 162, 59, 0.3);
    color: var(--accent-light);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* Search Bar (Glassmorphism) */
.search-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 16px;
    align-items: center;
}

.search-field input[type="date"] {
    color-scheme: dark;
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.search-field input, .search-field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 40px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
}

.search-field select {
    padding-left: 14px;
    cursor: pointer;
}

.search-field select option {
    background-color: var(--primary-dark);
    color: var(--white);
}

.search-field input:focus, .search-field select:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

/* Destinations Section */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.destination-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(4, 31, 28, 0.9) 0%, rgba(4, 31, 28, 0.3) 50%, rgba(4, 31, 28, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    z-index: 2;
    transition: var(--transition);
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-card:hover .destination-overlay {
    background: linear-gradient(to top, rgba(4, 31, 28, 0.95) 0%, rgba(4, 31, 28, 0.4) 50%, rgba(4, 31, 28, 0.2) 100%);
}

.destination-card h3 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.destination-card p {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

/* Tours Section */
.tours-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    background-color: var(--white);
    border: 1px solid rgba(11, 60, 55, 0.1);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tour-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 60, 55, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 60, 55, 0.1);
}

.tour-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover .tour-image-container img {
    transform: scale(1.08);
}

.tour-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(27, 152, 217, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-badge.hot {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.tour-location-tag {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(4, 31, 28, 0.75);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

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

.tour-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #eab308;
    font-weight: 700;
}

.tour-rating span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

.tour-content h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 52px;
}

[data-theme="dark"] .tour-content h3 {
    color: var(--white);
}

.tour-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 66px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(11, 60, 55, 0.05);
}

.tour-price h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tour-price .price {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

.tour-price .price span {
    font-size: 12px;
    font-weight: 600;
}

/* Why Choose Us Section */
.why-section {
    background-color: var(--white);
    transition: background-color 0.4s ease;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    padding: 40px;
    border-radius: var(--radius-md);
    background-color: var(--light-bg);
    transition: var(--transition);
    border: 1px solid rgba(11, 60, 55, 0.03);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 60, 55, 0.08);
}

.why-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

[data-theme="dark"] .why-card h3 {
    color: var(--white);
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 60, 55, 0.03);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 32px;
    color: rgba(223, 162, 59, 0.15);
}

.testimonial-stars {
    color: #eab308;
    margin-bottom: 16px;
    font-size: 14px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .author-info h4 {
    color: var(--white);
}

.author-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Booking Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 20, 18, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.booking-modal {
    background-color: var(--white);
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

.modal-body {
    padding: 30px;
}

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-column-right {
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(11, 60, 55, 0.05);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group textarea, .form-group select {
    padding: 12px 14px;
    border: 1px solid rgba(11, 60, 55, 0.15);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background-color: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 60, 55, 0.1);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.extras-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.extra-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.price-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(11, 60, 55, 0.1);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

[data-theme="dark"] .price-summary-title {
    color: var(--white);
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
}

.price-item.total {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    border-top: 1px dashed rgba(11, 60, 55, 0.15);
    padding-top: 12px;
    margin-top: 5px;
}

.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

.contact-btn.phone {
    background-color: #ef4444;
}

.contact-btn.zalo {
    background-color: #3b82f6;
    font-weight: 800;
    font-size: 13px;
}

.contact-btn.facebook {
    background-color: #1877f2;
}

.contact-btn.messenger {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
}

.contact-btn.sms {
    background-color: #00b894;
}

/* Success Modal & Banner */
.status-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: #10b981;
    color: var(--white);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-banner.active {
    transform: translateX(-50%) translateY(0);
}

.status-banner.error {
    background-color: #ef4444;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

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

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.footer-links-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}

.footer-links-col ul a {
    transition: var(--transition-fast);
}

.footer-links-col ul a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    line-height: 1.5;
}

.contact-info-item i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

/* Responsive CSS */
@media (max-width: 1024px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    .hero h1 {
        font-size: 42px;
    }
    .search-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .tours-grid {
        grid-template-columns: 1fr;
    }
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    .why-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Tour Card Link & Title hover */
.tour-card-link {
    display: block;
    overflow: hidden;
}
.tour-content h3 a {
    color: var(--text-dark);
    transition: var(--transition-fast);
}
.tour-content h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Tour Detail Page Styling */
.tour-detail-hero {
    position: relative;
    height: 480px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px;
}

.tour-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 29, 48, 0.4) 0%, rgba(11, 29, 48, 0.85) 100%);
    z-index: 1;
}

.tour-detail-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 0;
    color: var(--white);
    z-index: 2;
}

.tour-detail-hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.tour-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 16px;
    font-weight: 500;
}

.tour-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
}

.tour-detail-meta-item i {
    color: var(--accent);
}

.tour-detail-body {
    padding: 60px 0;
}

.tour-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-card {
    background: var(--white);
    border: 1px solid rgba(13, 91, 136, 0.08);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.detail-card h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(13, 91, 136, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-card h2 i {
    color: var(--primary);
}

/* Highlights List */
.highlight-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.highlight-list li i {
    color: var(--secondary);
    font-size: 18px;
    margin-top: 2px;
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 30px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8px;
    width: 2px;
    height: calc(100% - 20px);
    background: rgba(27, 152, 217, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 152, 217, 0.15);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(248, 154, 28, 0.2);
}

.timeline-content {
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.timeline-item.active .timeline-content {
    border-left-color: var(--accent);
}

.timeline-day {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-item.active .timeline-day {
    color: var(--accent);
}

.timeline-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Included / Excluded Columns */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-col h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-col.included h3 { color: var(--secondary); }
.service-col.excluded h3 { color: #e63946; }

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

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.service-list li i {
    font-size: 16px;
    margin-top: 2px;
}

.included .service-list li i { color: var(--secondary); }
.excluded .service-list li i { color: #e63946; }

/* Sticky Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.booking-sidebar-card {
    background: var(--white);
    border: 1px solid rgba(13, 91, 136, 0.08);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.booking-sidebar-price {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(13, 91, 136, 0.08);
}

.booking-sidebar-price h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.booking-sidebar-price .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
}

.booking-sidebar-price .price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.booking-sidebar-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Related Tours Section */
.related-tours-section {
    padding: 80px 0;
    background: var(--light-bg);
    border-top: 1px solid rgba(13, 91, 136, 0.08);
}

.related-tours-section h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

/* Detail page dark theme tweaks */
[data-theme="dark"] .detail-card,
[data-theme="dark"] .booking-sidebar-card {
    background: var(--white);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .timeline-content {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .timeline-dot {
    background: var(--white);
}

/* Responsive detail page queries */
@media (max-width: 992px) {
    .tour-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .booking-sidebar {
        position: static;
    }
    .tour-detail-hero {
        height: 380px;
    }
    .tour-detail-hero-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tour-detail-hero {
        height: 320px;
        margin-top: 70px;
    }
    .tour-detail-hero-content {
        padding: 30px 0;
    }
    .tour-detail-hero-content h1 {
        font-size: 26px;
    }
    .tour-detail-meta {
        gap: 12px;
        font-size: 14px;
    }
    .tour-detail-meta-item {
        padding: 6px 12px;
    }
}

/* --- Tour pro detail HTML integration --- */
.detail-tab-container {
    border-bottom: 2px solid rgba(13, 91, 136, 0.08);
    margin-bottom: 24px;
    display: flex;
}

.detail-tab-header {
    padding: 14px 28px;
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    margin-bottom: -2px;
    letter-spacing: 0.5px;
}

/* Overview Content Styling */
.tour-overview-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.tour-overview-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.tour-overview-content h2,
.tour-overview-content h3,
.tour-overview-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 28px 0 16px;
    line-height: 1.4;
}

.tour-overview-content strong {
    font-weight: 700;
    color: var(--primary-dark);
}

.tour-overview-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.tour-overview-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.tour-overview-content a:hover {
    color: var(--primary-light);
}

/* Lists and Lists items styling */
.tour-overview-content ul,
.tour-overview-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.tour-overview-content li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
}

/* Tables styling */
.tour-overview-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    text-align: left;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(13, 91, 136, 0.08);
    border-radius: var(--radius-sm);
}

.tour-overview-content th,
.tour-overview-content td {
    padding: 12px 16px;
    border: 1px solid rgba(13, 91, 136, 0.08);
    min-width: 120px;
}

.tour-overview-content th {
    background-color: var(--light-bg);
    color: var(--primary-dark);
    font-weight: 700;
}

.tour-overview-content tr:nth-child(even) {
    background-color: rgba(27, 152, 217, 0.02);
}

/* Dark Mode Overrides for Scraped HTML */
[data-theme="dark"] .tour-overview-content,
[data-theme="dark"] .tour-overview-content p,
[data-theme="dark"] .tour-overview-content span,
[data-theme="dark"] .tour-overview-content li,
[data-theme="dark"] .tour-overview-content td {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .tour-overview-content strong,
[data-theme="dark"] .tour-overview-content h2,
[data-theme="dark"] .tour-overview-content h3,
[data-theme="dark"] .tour-overview-content h4 {
    color: var(--white) !important;
}

[data-theme="dark"] .tour-overview-content a {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .tour-overview-content table {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tour-overview-content th,
[data-theme="dark"] .tour-overview-content td {
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tour-overview-content th {
    background-color: var(--secondary-light); /* Evaluates to #0f3358 in dark mode */
    color: var(--white) !important;
}

[data-theme="dark"] .tour-overview-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Pagination Styling */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(11, 60, 55, 0.1);
    background-color: var(--white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--secondary-light);
    color: var(--text-muted);
    border-color: rgba(11, 60, 55, 0.05);
}

/* Dark Mode support */
[data-theme="dark"] .page-btn {
    background-color: var(--secondary-dark);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .page-btn:hover:not(:disabled),
[data-theme="dark"] .page-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

[data-theme="dark"] .page-btn:disabled {
    background-color: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.04);
}

/* Client Chat Widget Styling */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: inherit;
}

.chat-widget-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary); /* Premium green teal */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(46, 196, 182, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-widget-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 28px rgba(46, 196, 182, 0.6);
}

.chat-widget-bubble .unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #e63946;
    border: 2px solid var(--white);
    display: none; /* hidden by default */
}

.chat-widget-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 60, 55, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
}

.chat-widget-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-widget-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-widget-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-widget-header .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2ec4b6;
    display: inline-block;
    box-shadow: 0 0 8px #2ec4b6;
}

.chat-widget-header .close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-widget-header .close-btn:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--secondary-light);
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    position: relative;
}

.chat-msg.user {
    align-self: flex-end;
    background-color: var(--secondary);
    color: var(--white);
    border-bottom-right-radius: 2px;
}

.chat-msg.admin {
    align-self: flex-start;
    background-color: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(11, 60, 55, 0.05);
}

.chat-msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
    text-align: right;
}

.chat-msg.user .chat-msg-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-area {
    padding: 12px 16px;
    background-color: var(--white);
    border-top: 1px solid rgba(11, 60, 55, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid rgba(11, 60, 55, 0.2);
    padding: 10px 14px;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.2s;
}

.chat-input-area button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

/* Dark Mode Overrides */
[data-theme="dark"] .chat-widget-window {
    background-color: var(--secondary-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-messages {
    background-color: rgba(15, 51, 88, 0.1);
}

[data-theme="dark"] .chat-msg.admin {
    background-color: var(--secondary-dark);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-input-area {
    background-color: var(--secondary-dark);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .chat-input-area input {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-theme="dark"] .chat-widget-bubble .unread-badge {
    border-color: var(--secondary-dark);
}

/* User Authentication Styles */
.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

[data-theme="dark"] .user-greeting {
    color: var(--white);
}

.btn-logout {
    color: #e63946;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
    margin-left: 5px;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-logout:hover {
    transform: scale(1.1);
}

.auth-modal {
    max-width: 440px;
    width: 90%;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 60, 55, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .auth-modal {
    transform: scale(1);
}

.auth-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.auth-header .modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.auth-body {
    padding: 25px;
}

.auth-form-group {
    margin-bottom: 15px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.auth-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(11, 60, 55, 0.15);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color 0.2s;
}

.auth-form-group input:focus {
    border-color: var(--primary);
}

.auth-switch-text {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: var(--text-muted);
}

.auth-switch-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

/* Dark Mode Overrides for Auth Modal */
[data-theme="dark"] .auth-modal {
    background-color: var(--secondary-dark);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-form-group label {
    color: var(--white);
}

[data-theme="dark"] .auth-form-group input {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Cart Button and Cart Modal Styles */
.cart-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    margin-right: 5px;
}

.cart-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e63946;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-dark);
}

.cart-modal {
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
    overflow-y: auto;
    max-height: 60vh;
}

.cart-item {
    background: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: var(--transition);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.cart-item-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.cart-item-code {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(27, 152, 217, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.cart-item-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 8px;
    margin-top: 4px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary);
}

.status-badge {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-badge.paid {
    background-color: #ecfdf5;
    color: #059669;
}

.status-badge.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .cart-badge {
    border-color: var(--secondary-dark);
}

[data-theme="dark"] .cart-modal {
    background-color: var(--secondary-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cart-item {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cart-item:hover {
    border-color: var(--primary-light);
}

[data-theme="dark"] .cart-item-code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* Clickable approved tickets */
.cart-item.paid {
    cursor: pointer;
    position: relative;
}

.cart-item.paid:hover {
    border-color: var(--secondary) !important;
    box-shadow: var(--shadow-md);
}

.cart-item.paid::after {
    content: 'Xem vé & HDV';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.cart-item.paid:hover::after {
    opacity: 1;
}

/* Ticket Modal Styles */
.ticket-modal {
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 650px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-container {
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-card {
    background: var(--light-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    position: relative;
    padding: 20px;
}

/* Side cutouts for ticket look */
.ticket-card::before, .ticket-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    z-index: 2;
    transform: translateY(-50%);
}
.ticket-card::before {
    left: -10px;
    box-shadow: inset -3px 0 3px rgba(0,0,0,0.02);
}
.ticket-card::after {
    right: -10px;
    box-shadow: inset 3px 0 3px rgba(0,0,0,0.02);
}

.ticket-divider {
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    position: relative;
}

.ticket-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
}

.ticket-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ticket-value {
    font-weight: 600;
    color: var(--text-dark);
}

.ticket-guide-box {
    background: rgba(27, 152, 217, 0.05);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ticket-guide-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-guide-avatar {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.ticket-itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.ticket-itinerary-step {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 10px;
}

.ticket-itinerary-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: rgba(27, 152, 217, 0.2);
}

.ticket-step-dot {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 1;
}

.ticket-step-content {
    font-size: 13px;
}

.ticket-step-day {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.ticket-step-text {
    color: var(--text-muted);
}

[data-theme="dark"] .ticket-modal {
    background-color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .ticket-card {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .ticket-card::before, 
[data-theme="dark"] .ticket-card::after {
    background-color: var(--white);
}
[data-theme="dark"] .ticket-divider {
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .ticket-step-dot {
    border-color: var(--white);
}
[data-theme="dark"] .ticket-value {
    color: var(--text-dark);
}
[data-theme="dark"] .ticket-guide-box {
    background: rgba(27, 152, 217, 0.08);
}

.cart-item-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cart-item-delete-btn:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

[data-theme="dark"] .cart-item-delete-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

/* Tours Grid/List and Sorting Toolbar Styling */
.tours-toolbar {
    background: var(--white);
    border: 1px solid rgba(11, 60, 55, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .tours-toolbar {
    background: var(--dark-bg);
    border-color: rgba(255, 255, 255, 0.08);
}

.view-toggle {
    display: flex;
    gap: 5px;
    align-items: center;
}

.view-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.view-btn i {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.view-btn:hover {
    background-color: rgba(11, 60, 55, 0.05);
    color: var(--primary);
}

.view-btn:hover i {
    color: var(--primary);
}

.view-btn.active {
    background-color: rgba(27, 152, 217, 0.1);
    color: var(--accent);
}

.view-btn.active i {
    color: var(--accent);
}

[data-theme="dark"] .view-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

#tours-sort {
    padding: 8px 16px;
    border: 1px solid rgba(11, 60, 55, 0.15);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

[data-theme="dark"] #tours-sort {
    background: var(--dark-bg);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

#tours-sort:focus {
    border-color: var(--accent);
}

/* List View Layout Styles */
.tours-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px;
}

.tours-grid.list-view .tour-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 250px;
}

.tours-grid.list-view .tour-card .tour-card-link {
    width: 350px;
    flex-shrink: 0;
    display: block;
}

.tours-grid.list-view .tour-card .tour-image-container {
    height: 100%;
}

.tours-grid.list-view .tour-card .tour-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.tours-grid.list-view .tour-card .tour-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(11, 60, 55, 0.05);
}

[data-theme="dark"] .tours-grid.list-view .tour-card .tour-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 991px) {
    .tours-grid.list-view .tour-card .tour-card-link {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .tours-grid.list-view .tour-card {
        flex-direction: column;
    }
    .tours-grid.list-view .tour-card .tour-card-link {
        width: 100%;
    }
    .tours-grid.list-view .tour-card .tour-image-container {
        height: 220px;
    }
}

/* --- Hover overlay for Quick View & Booking on Tour Cards --- */
.tour-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65); /* Frosted dark slate glass backdrop */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tour-image-container:hover .tour-image-overlay {
    opacity: 1;
}

.btn-overlay {
    color: #ffffff !important;
    padding: 12px 28px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 160px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.4s ease, 
                background-color 0.3s ease, 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;
}

/* Entry animation on hover */
.tour-image-container:hover .btn-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Quick View button styling: elegant white outline glass button */
.btn-overlay-quickview {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-overlay-quickview:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* --- Quick View Modal Styles --- */
.quickview-modal {
    background-color: var(--white);
    width: 95%;
    max-width: 850px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    animation: qvModalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 30px;
    color: var(--text-dark);
    border: 1px solid rgba(143, 160, 181, 0.1);
}

@keyframes qvModalScaleUp {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.quickview-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quickview-close-btn i {
    color: #ff8e42;
    font-size: 30px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.quickview-close-btn:hover {
    transform: scale(1.15) rotate(90deg);
}

.quickview-content-wrapper {
    display: flex;
    gap: 30px;
}

.quickview-gallery {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quickview-main-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(143, 160, 181, 0.15);
    transition: all 0.3s ease;
}

.quickview-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.quickview-main-image:hover img {
    transform: scale(1.05);
}

.quickview-thumbnails {
    display: flex;
    gap: 10px;
}

.qv-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ff8e42;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.qv-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.quickview-info {
    flex: 1.3;
    display: flex;
    flex-direction: column;
}

.quickview-info h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.35;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.qv-price {
    font-size: 26px;
    font-weight: 800;
    color: #ff8e42;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.qv-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(143, 160, 181, 0.2) 0%, rgba(143, 160, 181, 0.05) 100%);
    margin: 15px 0;
}

.qv-description {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
    overflow-y: auto;
    max-height: 160px;
    padding-right: 8px;
}

/* Custom Scrollbar for Description */
.qv-description::-webkit-scrollbar {
    width: 4px;
}
.qv-description::-webkit-scrollbar-track {
    background: rgba(143, 160, 181, 0.05);
}
.qv-description::-webkit-scrollbar-thumb {
    background: rgba(143, 160, 181, 0.2);
    border-radius: 4px;
}

.qv-description span {
    display: block;
    margin-bottom: 8px;
}

.qv-purchase-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 15px;
}

.qv-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qv-qty-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.qv-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid rgba(143, 160, 181, 0.3);
    border-radius: 30px;
    overflow: hidden;
    background-color: var(--white);
}

.qv-qty-btn {
    background: none;
    border: none;
    width: 36px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.qv-qty-btn:hover {
    background-color: rgba(143, 160, 181, 0.1);
}

#qv-qty-input {
    width: 45px;
    height: 38px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    background-color: transparent;
    color: var(--text-dark);
    padding: 0;
    -moz-appearance: textfield;
}

#qv-qty-input::-webkit-outer-spin-button,
#qv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-qv-buy {
    background: linear-gradient(135deg, #ff8e42 0%, #ff761b 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 118, 27, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-qv-buy:hover {
    background: linear-gradient(135deg, #ff761b 0%, #e55e09 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 118, 27, 0.4);
}

[data-theme="dark"] .quickview-modal {
    background-color: var(--white);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .tour-image-overlay {
    background: rgba(7, 20, 36, 0.7) !important;
}

[data-theme="dark"] .qv-qty-selector {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .quickview-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .quickview-modal {
        padding: 20px;
        max-height: 95vh;
        overflow-y: auto;
    }
    .quickview-main-image {
        height: 220px;
    }
    .qv-purchase-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .qv-qty-wrapper {
        justify-content: space-between;
    }
    .btn-qv-buy {
        justify-content: center;
    }
}


