/* Base & Reset */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    font-size: var(--fs-body, 1rem) !important;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #111827;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: var(--fs-h1, 2.5rem);
}

h2 {
    font-size: var(--fs-h2, 2rem);
}

h3 {
    font-size: var(--fs-h3, 1.75rem);
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Restore list styles for user-generated content in various containers */
.block-text ul,
.text-col ul,
.block-columns ul,
.block-cta ul,
.tour-section ul:not([class]),
.about-desc ul,
.incoming-col ul,
.transfer-col ul,
.tour-section p+ul {
    list-style: disc !important;
    margin-left: 25px !important;
    margin-bottom: 1rem !important;
    padding-left: 0 !important;
}

.block-text ol,
.text-col ol,
.block-columns ol,
.block-cta ol,
.tour-section ol:not([class]),
.about-desc ol,
.incoming-col ol,
.transfer-col ol {
    list-style: decimal !important;
    margin-left: 25px !important;
    margin-bottom: 1rem !important;
    padding-left: 0 !important;
}

.block-text li,
.text-col li,
.block-columns li,
.block-cta li,
.about-desc li,
.incoming-col li,
.transfer-col li {
    margin-bottom: 0.5rem;
    display: list-item;
    list-style: inherit;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Utilities */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-heading);
    border: none;
    transition: all 0.3s ease;
}

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

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

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

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

.btn.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1005;
    padding: 12px 0;
    transition: all 0.3s ease;
}

.main-header.header-scrolled {
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-left: auto;
    margin-right: 40px;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    padding: 10px 4px;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 10px;
}

/* Invisible bridge to prevent closing when moving mouse to menu */
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color) !important;
    transition: all 0.2s;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: #f8fafc;
    color: var(--primary-color) !important;
    padding-left: 28px;
}

.login-link {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.login-link:hover {
    color: var(--primary-color);
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary-color);
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 100px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User & Lang Dropdowns */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 220px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: #94a3b8;
}

.dropdown-menu a:hover i {
    color: var(--primary-color);
}

.lang-switcher {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Bridge gap for hover */
.lang-switcher::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 15px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    margin-top: 10px;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s;
}

.lang-dropdown a:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    /* Ensure padding inside */
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff !important;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Search Box */
.search-container-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.search-box {
    background: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
    border-right: 1px solid var(--border-color);
    min-height: 50px;
}

.search-item:last-of-type {
    border-right: none;
}

.search-item i {
    font-size: 1.1rem;
    color: var(--light-text);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.search-item div {
    display: flex;
    flex-direction: column;
}

.search-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    line-height: 1.2;
}

.search-item input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-color);
    font-family: var(--font-body);
    background: transparent;
    padding: 0;
    height: 24px;
    line-height: 24px;
    width: 100%;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}

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

.filter-btn i {
    font-size: 0.9rem;
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.tour-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

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

.badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.tour-badge {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-badge.new {
    background: #10b981;
}

.tour-badge.category {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ef4444;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.tour-content {
    padding: 20px;
}

.tour-content h3 {
    font-size: var(--fs-h3, 1.25rem) !important;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* --- Tour Detail Page --- */

.tour-header-wrapper {
    position: relative;
    min-height: 70vh;
    height: auto;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 140px 0 80px 0; /* Increased top padding to ensure content is below the menu */
}

.tour-header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.tour-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-header-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

.tour-header-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 60px; /* Increased from 40px */
    padding-top: 60px; /* Increased from 40px */
}

.tour-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.category {
    background: var(--secondary-color);
    color: var(--white);
}

.badge.popular {
    background: #ef4444;
    color: var(--white);
}

.tour-header-content h1 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: #ffffff !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
    font-weight: 800;
    max-width: 900px;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.tour-rating i {
    color: #fbbf24;
}

.separator {
    margin: 0 10px;
    opacity: 0.7;
}

/* Detail Content Layout */
.tour-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.tour-main-content {
    background: var(--white);
    border-radius: 8px;
    padding: 30px 40px; /* Reduced vertical slightly, keeping horizontal for desktop */
    box-shadow: var(--shadow-lg);
}

.tour-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

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

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.8rem;
    color: var(--light-text);
}

.info-item span {
    font-weight: 600;
    color: var(--text-color);
}

.tour-section {
    margin-bottom: 40px;
}

.tour-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}

.tour-section p {
    margin-bottom: 15px;
    color: #4b5563;
}

.highlights-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlights-list i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Included / Excluded */
.tour-includes-excludes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

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

.check-list,
.cross-list {
    list-style: none;
}

.check-list li,
.cross-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.check-list i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

.cross-list i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    /* Increased gap */
}

.gallery-grid img {
    border-radius: 8px;
    height: 150px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

/* Sidebar */
.tour-sidebar {
    position: relative;
    padding-top: 40px;
    /* Offset for overlap if needed, but here grid handles it */
}

.booking-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.booking-card.sticky {
    position: sticky;
    top: 100px;
}

.price-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.price-header .label {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
}

.price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price .unit {
    color: var(--light-text);
}

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

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
}

.guest-selector {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}

.guest-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.guest-type:last-child {
    margin-bottom: 0;
}

.btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.counter input {
    width: 30px;
    text-align: center;
    border: none;
    font-weight: 600;
}

.booking-summary {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 1px solid #d1d5db;
    padding-top: 10px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.card-footer-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #10b981;
    text-align: center;
}

/* Responsive Detail */
@media (max-width: 1024px) {
    .tour-detail-container {
        grid-template-columns: 1fr;
    }

    .tour-main-content {
        padding: 25px 20px; /* Significantly reduced horizontal padding for mobile */
    }

    .tour-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); /* Slightly smaller min-width */
        gap: 15px;
    }

    .tour-header-wrapper {
        min-height: 60vh;
        height: auto;
        padding: 120px 0 60px 0;
    }

    .tour-header-content h1 {
        font-size: 2rem;
    }
}

.tour-content {
    padding: 20px;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.tour-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.tour-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tour-location {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

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

.tour-price span {
    font-size: 0.8rem;
    color: var(--light-text);
}

.tour-price strong {
    font-size: 1.2rem;
    color: #059669;
}

/* Features */
.features-section {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    outline: none;
}

.newsletter-form button {
    background-color: #111827;
}

/* Footer */
.main-footer {
    background-color: #111827;
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #374151;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #9ca3af;
    margin-bottom: 12px;
}

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

.footer-contact p {
    color: #9ca3af;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 30px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {

    .navbar {
        position: relative;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    /* Mobile menu dropdown wrapper */
    .mobile-menu-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Navigation section in mobile menu */
    .mobile-menu-dropdown .main-nav.mobile-active {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        border-bottom: 1px solid var(--border-color);
        margin: 0 !important;
        width: 100%;
        align-items: stretch;
    }

    .mobile-menu-dropdown .nav-item.dropdown {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-menu-dropdown .main-nav.mobile-active a {
        padding: 15px 10px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        text-align: center;
        display: block;
        width: 100%;
    }

    .mobile-menu-dropdown .main-nav.mobile-active .nav-item.dropdown>a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .mobile-menu-dropdown .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        padding: 5px 0;
        border-bottom: 1px solid var(--border-color);
        animation: none;
    }

    .mobile-menu-dropdown .nav-item.dropdown.dropdown-active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-dropdown .dropdown-active i {
        transform: rotate(180deg);
    }

    .mobile-menu-dropdown .main-nav.mobile-active a:last-child {
        border-bottom: none;
    }

    /* Header actions section in mobile menu */
    .mobile-menu-dropdown .header-actions.mobile-active {
        display: flex;
        flex-direction: column;
        padding: 15px 20px 20px;
        gap: 15px;
        align-items: stretch;
        margin: 0 !important;
        width: 100%;
    }

    .mobile-menu-dropdown .header-actions.mobile-active .btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .mobile-menu-dropdown .header-actions.mobile-active .login-link {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 12px 10px;
        border-bottom: 1px solid var(--border-color);
    }

    /* Replacing content requires line numbers. I'll read the file first. */
    /* Language switcher in mobile menu - redesigned */
    .mobile-menu-dropdown .lang-switcher {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0;
        padding: 0;
        border-bottom: none;
        margin-bottom: 0;
        cursor: pointer;
        /* Clickable */
    }

    /* Current language display in mobile */
    .mobile-menu-dropdown .lang-switcher .current-lang {
        padding: 12px 10px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .mobile-menu-dropdown .lang-switcher i {
        order: -1;
        /* Icon comes first */
    }

    /* Language dropdown hidden by default in mobile */
    .mobile-menu-dropdown .lang-dropdown {
        position: static;
        display: none;
        /* Hidden by default */
        flex-direction: column;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
    }

    /* Show dropdown when lang-switcher has active class */
    .mobile-menu-dropdown .lang-switcher.lang-active .lang-dropdown {
        display: flex !important;
    }

    .mobile-menu-dropdown .lang-dropdown a {
        padding: 12px 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-dropdown .lang-dropdown a:last-child {
        border-bottom: none;
    }

    /* Tours Dropdown in mobile */
    .mobile-menu-dropdown .nav-item.dropdown .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        background: #f8fafc;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-dropdown .nav-item.dropdown.dropdown-active .dropdown-menu {
        display: block !important;
    }

    .mobile-menu-dropdown .nav-item.dropdown .dropdown-menu a {
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }

    /* Add more space before reservation button */
    .mobile-menu-dropdown .header-actions.mobile-active .btn {
        margin-top: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
}

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

    .hero-content h1 {
        font-size: 2rem !important;
        /* Force smaller size on mobile */
    }

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

    .tour-header-content h1 {
        font-size: 1.75rem !important;
    }

    .tour-header-wrapper {
        min-height: 50vh;
        padding: 100px 0 50px 0;
    }

    .tour-main-content {
        padding: 20px 15px;
    }

    .booking-card {
        padding: 20px 15px;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    margin-top: 50px;
    animation: zoomIn 0.3s;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    user-select: none;
    z-index: 2002;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

@media only screen and (max-width: 700px) {
    .lightbox-content {
        width: 95%;
        margin-top: 50%;
        transform: translateY(-50%);
    }
}

/* RTL Support */
[dir='rtl'] {
    text-align: right;
}

[dir='rtl'] .main-nav {
    margin-right: auto;
    margin-left: 0;
}

[dir='rtl'] .header-actions {
    margin-right: 20px;
    margin-left: 0;
}

[dir='rtl'] .lang-switcher {
    margin-left: 20px;
    margin-right: 0;
}

[dir='rtl'] .fa-chevron-down {
    margin-right: 2px !important;
    margin-left: 0 !important;
}

[dir='rtl'] .flag-icon {
    margin-left: 5px !important;
    margin-right: 0 !important;
}

[dir='rtl'] .tour-meta span i,
[dir='rtl'] .tour-location i,
[dir='rtl'] .footer-contact i {
    margin-left: 8px !important;
    margin-right: 0 !important;
}

[dir='rtl'] .btn i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}

[dir='rtl'] .btn-primary i[class*='arrow-right'] {
    transform: rotate(180deg);
}

[dir='rtl'] .dropdown-menu {
    left: auto;
    right: 0;
    text-align: right;
}

[dir='rtl'] .footer-grid {
    text-align: right;
}

[dir='rtl'] .footer-brand img {
    margin-left: 0;
}

[dir='rtl'] .footer-logo-tursab {
    padding-right: 15px;
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
}


[dir='rtl'] .dropdown-menu a {
    text-align: right;
}

[dir='rtl'] .dropdown-menu a:hover {
    padding-right: 28px;
    padding-left: 24px;
}


[dir='rtl'] .lightbox-prev {
    left: auto;
    right: 20px;
}

[dir='rtl'] .lightbox-next {
    right: auto;
    left: 20px;
}

[dir='rtl'] .close-lightbox {
    right: auto;
    left: 35px;
}

[dir='rtl'] .fa-chevron-right {
    transform: rotate(180deg);
}


[dir='rtl'] .lang-dropdown {
    right: auto;
    left: 0;
}

/* Login Modal */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #9ca3af;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 40px;
    color: #111827;
    font-family: var(--font-heading);
}

.modal-form-group {
    margin-bottom: 20px;
    position: relative;
}

.modal-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.modal-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modal-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.modal-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
}

.forgot-pw {
    color: var(--primary-color);
    font-weight: 500;
}

.modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 25px;
}

.modal-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.modal-divider {
    position: relative;
    margin-bottom: 25px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e5e7eb;
}

.modal-divider::before {
    left: 0;
}

.modal-divider::after {
    right: 0;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.google {
    background: #ea4335;
}

.modal-footer-text {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.modal-register-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-register-btn:hover {
    background: #f0f7ff;
}

[dir='rtl'] .modal-input {
    padding: 12px 20px 12px 45px;
}

[dir='rtl'] .modal-input-icon {
    right: auto;
    left: 15px;
}

/* Reviews Section */
.reviews-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.review-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-card:hover {
    background: #f1f5f9;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.reviewer-name {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

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

.review-rating {
    display: flex;
    gap: 2px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.review-comment {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 35px;
    /* Centered relative to the 60px Whatsapp button (approx: 25px + 30px = 55px center. 55px - 20px = 35px right) */
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #9ca3af;
    /* Light gray icon */
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 1rem;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Explicitly keep it on right for RTL */
[dir="rtl"] #scrollTopBtn {
    right: 35px;
    left: auto;
}

/* Mobile adjustments for Newsletter */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form button {
        width: 100%;
    }

    .newsletter-content {
        padding: 0 10px;
    }
}

/* Tour Detail Fixes */
.tour-rating {
    flex-wrap: wrap;
}

.rating-stars-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    white-space: nowrap;
}

.location-wrapper {
    display: inline-flex;
    align-items: flex-start;
    gap: 5px;
    white-space: normal;
    line-height: 1.3;
}
.location-wrapper i {
    margin-top: 4px;
}

/* Footer Brand Header */
.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-tursab-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s;
}

.footer-tursab-link:hover {
    opacity: 0.8;
}

/* Footer Bottom */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright {
    margin: 0;
}

.developer-credit {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-brand-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .footer-tursab-link {
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
        width: 100%;
    }

    .footer-contact p {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom-content {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 15px;
    }
}

/* Phone Inputs */
.phone-inputs-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-code-select {
    width: 30%;
    /* Start smaller */
    max-width: 120px;
    /* Don't grow too much */
    min-width: 90px;
    /* Don't shrink too much */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
    /* Vital for flex children */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .phone-code-select {
        width: 35% !important;
        /* Force resize on mobile */
        max-width: 100px !important;
        /* Keep it constrained */
        padding-left: 5px !important;
        padding-right: 5px !important;
        font-size: 13px;
        /* Slightly smaller text for better fit */
    }

    .why-seo-text-container {
        padding: 15px 20px !important;
        box-shadow: none !important;
    }
}