*, *::before, *::after {
    box-sizing: border-box;
}

/* Safe mobile overflow fix - targeted not wildcard */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img, iframe, table, video, embed, object {
    max-width: 100%;
    box-sizing: border-box;
}

/* Tour Engine Main Styles */

/* Base Layout */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

.full-width-layout {
    max-width: 100%;
    padding: 0;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    max-height: 60px;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    color: #0073aa;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ff6b35;
}

/* ── Dropdown sub-menu ── */
.main-navigation ul li {
    position: relative;  /* anchor for dropdown */
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    gap: 0;  /* override the parent's gap: 2rem */
    flex-direction: column;
}

.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li:focus-within > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 18px;
    white-space: normal;
    color: #333;
    font-weight: 500;
}

.main-navigation .sub-menu li a:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

/* Menu Toggle - hidden on desktop */
.menu-toggle {
    display: none;
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Clips the scaled video overflow cleanly */
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Keeps native video handling clean */
.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Forces the YouTube iframe to zoom past its internal black bars */
.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    /* Increased to 1.22 to force the wide-edge black bars entirely off the screen margins */
    transform: translate(-50%, -50%) scale(1.22);
    transform-origin: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Tour Categories Grid */
.tour-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

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

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

.category-content {
    padding: 2rem;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0073aa;
}

.category-description {
    color: #666;
    line-height: 1.5;
}

/* Tour List */
.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tour-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.tp-under {
    width: 200px;
    max-width: 100%;
}

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

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

.tour-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b35;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tour-content {
    padding: 1.5rem;
}

.tour-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0073aa;
}

.tour-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

@media (min-width: 769px) {
    .tour-meta {
        justify-content: flex-start;
    }
}

.tour-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tour-languages {
    display: flex;
    gap: 5px;
}

.tour-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 1rem;
}

.tour-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: transparent;
    color: #0073aa;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #0073aa;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-secondary:hover {
    background: #0073aa;
    color: white;
}

/* Tour Filter */
.tour-filter {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.filter-group select,
.filter-group input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #0073aa;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Tour Details Page */
.tour-details {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
}

.tour-main-content {
    padding-right: 2rem;
    min-width: 0;
    max-width: 100%;
}

.tour-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    min-width: 0;
    max-width: 100%;
}

.price-box {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1rem;
    border: 1px solid #e5e5e5;
}

.price-box h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.price-box ul {
    margin: 0;
    padding: 0;
}

.price-box li {
    list-style: none;
    margin: 0;
    white-space: nowrap;
}

.booking-widget {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.booking-widget iframe {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
    border: 0;
}

.provider-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.provider-info h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

.provider-info p {
    margin-bottom: 0.5rem;
}

.languages-list {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.languages-list h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

.languages-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.languages-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.languages-list li:last-child {
    border-bottom: none;
}

.location-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.location-box h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}

/* Registration Form */
.tour-registration-form {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tour-registration-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0073aa;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
}

/* Tour Detail Page Styles */
.tour-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
}

.tour-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tour-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.tour-basic-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    min-width: 0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #0073aa;
}

.info-item .label {
    font-weight: 600;
    color: #333;
}

.info-item .value {
    color: #666;
}

.tour-description {
    margin-bottom: 3rem;
}

.tour-description h2 {
    color: #0073aa;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.description-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.tour-additional-info {
    margin-bottom: 3rem;
}

.tour-additional-info h2 {
    color: #0073aa;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-section h3 {
    color: #0073aa;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-section p {
    margin-bottom: 0;
    color: #666;
}

.tour-cancellation,
.tour-exceptions {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.tour-cancellation h2,
.tour-exceptions h2 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tour-cancellation p,
.tour-exceptions p {
    margin-bottom: 0;
    color: #856404;
}

.price-box .max-people {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.booking-widget h3 {
    margin-bottom: 1rem;
    color: #0073aa;
    font-size: 1.2rem;
}

.booking-widget p {
    margin-bottom: 1rem;
    color: #666;
}

.booking-widget .button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.booking-widget .button:hover {
    background: #005a87;
}

/* Make single booking widget button look like tour-details buttons */

.booking-widget .btn-booking {
    /* inherit the same base button styling */
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* hover state matching typical tour button behavior */
.booking-widget .btn-booking:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* optional: ensure it aligns like inside tour button group */
.booking-widget {
    display: flex;
    gap: 10px;
    align-items: center;
}
.tour-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-button,
.favorite-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.share-button:hover,
.favorite-button:hover {
    border-color: #0073aa;
    color: #0073aa;
}

.favorite-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-section:nth-child(2) {
    padding-top: 1rem;
}

.footer-section:nth-child(3) {
    padding-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Admin Styles - scoped to avoid frontend conflicts */
.tour-meta-field {
    margin-bottom: 1rem;
}

.tour-meta-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tour-meta-field input,
.tour-meta-field select,
.tour-meta-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tour-meta-field input[type="checkbox"],
.tour-meta-field input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

.tour-meta-field .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* ================================================
   Company Landing Page — Stripped Header
   ================================================ */
.company-section .site-branding,
.company-section .site-logo,
.company-section .site-title,
.company-section .custom-logo-link,
.company-section .custom-logo {
    display: none !important;
}

.company-section .main-navigation > *:not(.language-switcher),
.company-section #site-navigation > *:not(.language-switcher),
.company-section .primary-menu-wrapper {
    display: none !important;
}

.company-section .main-navigation,
.company-section #site-navigation {
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.company-section .language-switcher {
    display: block !important;
}

.company-section .menu-toggle,
.company-section .nav-toggle,
.company-section button[aria-controls="primary-menu"] {
    display: none !important;
}

.company-section .header-content {
    justify-content: flex-end;
}

.company-section .site-header .header-content {
    padding: 0.5rem 0;
}

/* Back-to-results breadcrumb */
.tour-breadcrumb {
    margin-bottom: 1.5rem;
}

.back-to-results {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary, #2563eb);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.back-to-results:hover,
.back-to-results:focus-visible {
    color: var(--color-primary-dark, #1d4ed8);
    border-bottom-color: currentColor;
    outline: none;
}

.back-to-results:focus-visible {
    outline: 2px solid var(--color-primary, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 768px) {

    /* HEADER */
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
        padding: 0.75rem 0;
    }

    .site-branding {
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
        background: #0073aa;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        border-radius: 8px;
        padding: 1rem;
        min-width: 200px;
        z-index: 1001;
        order: 3;
        width: auto;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul,
    .main-navigation .primary-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }

    .main-navigation ul li a {
        display: block;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .main-navigation ul li a:hover {
        background: #f8f9fa;
        color: #0073aa;
    }
    /* Mobile sub-menu */
    .main-navigation .sub-menu {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 12px;
        border-left: 2px solid #e9ecef;
        margin-top: 4px;
        box-sizing: border-box;
width: 100%;
margin-left: -3px;
    }
    .main-navigation ul li.submenu-open > .sub-menu {
        display: flex;
        flex-direction: column;
    }
    .hero-title {
        font-size: 2rem;
    }

    .tour-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }

    .tour-sidebar {
        position: static;
    }

    .tour-main-content {
        padding-right: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .tour-featured-image img,
    .responsive-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .tour-title,
    .tour-description,
    .additional-info {
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .tour-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .tour-basic-info {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .info-item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        flex-wrap: wrap;
    }

    .price-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .languages-list {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .share-button,
    .favorite-button {
        width: 100%;
        box-sizing: border-box;
    }

    .booking-widget {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .booking-widget iframe {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        overflow: hidden;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

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

    .tour-actions {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tour-details,
    .tour-main-content,
    .tour-sidebar {
        min-width: 0;
    }

    .tour-description-content a {
        word-break: break-all;
    }

    /* Mobile Tour Card */
    .tour-card {
        display: flex;
        flex-direction: column;
    }

    .tour-card .tour-content {
        padding: 1rem;
    }

    .tour-card .tour-details {
        display: block !important;
        margin-top: 1rem;
    }

    .tour-card .detail-block {
        margin-bottom: 1rem;
    }

    .tour-card .tour-button {
        margin-top: 1rem;
        text-align: center;
    }

    .tour-card .tour-button a {
        display: inline-block;
        width: 100%;
        padding: 12px 20px;
        text-align: center;
        background: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
    }

    .tour-card .tour-button a:hover {
        background: #005a87;
    }

    /* Content overflow fixes */
    .tour-description,
    .tour-main-content,
    .tour-description-content {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }

    .tour-description img,
    .tour-main-content img,
    .tour-description-content img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .tour-description table,
    .tour-main-content table,
    .tour-description-content table {
        width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
        overflow-x: auto;
    }

    .tour-description iframe,
    .tour-main-content iframe,
    .tour-description-content iframe {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        border: 0;
    }

    #ticketinghub-widget-container {
        max-width: 100%;
        overflow: visible;
    }

    /* Company section mobile */
    .company-section .menu-toggle {
        display: none !important;
    }

    .company-section .header-content {
        justify-content: flex-end;
        padding: 0.5rem 0;
    }
}
/* ==========================================================================
   Archive Cards & Related Cards Carousel Layout Match
   ========================================================================== */

/* Main wrapper setup for carousels */
.archive-cards-wrapper.related-cards-wrapper,
.archive-cards-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 5px;
    overflow: hidden; /* Clears bounding issues across wide viewports */
}

/* Horizontal scroll track alignment */
.archive-cards-track.related-cards-track,
.archive-cards-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Clear scrollbar lines for a cleaner appearance */
    padding: 1rem 5px;
}

.archive-cards-track::-webkit-scrollbar {
    display: none; /* Safari/Chrome scrollbar removal */
}

/* Ensure cards inside carousels maintain consistent layout sizing bounds */
.archive-cards-track .archive-card {
    flex: 0 0 calc(33.333% - 1.34rem); /* Box 3 items cleanly per viewport view */
    min-width: 300px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Target adjustments for smaller layouts */
@media (max-width: 992px) {
    .archive-cards-track .archive-card {
        flex: 0 0 calc(50% - 1rem); /* Slotted down to 2 items */
    }
}

@media (max-width: 768px) {
    .archive-cards-track .archive-card {
        flex: 0 0 100%; /* Spans full widths inside mobile wrapper boxes cleanly */
    }
    .archive-cards-wrapper.related-cards-wrapper,
    .archive-cards-wrapper {
        padding: 0 15px; /* Matches your core theme's mobile structural margins */
    }
}

/* Target  Elementor */
/* Desktop default */
.elementor-page .site-content {
    /* your desktop overrides */
}

/* Tablet */
@media (max-width: 992px) {
    .elementor-page .site-content {
        /* tablet overrides */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .elementor-page .site-content {
        /* mobile overrides */
    }
}

/* Itinerary Accordion Styles */
.itinerary-section {
    margin: 3rem 0;
}

.itinerary-section h3 {
    margin-bottom: 1.5rem;
    color: #0073aa;
}

.itinerary-card {
    background: #F8F9FA;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Collapsed State */
.itinerary-card-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.itinerary-card-header:hover {
    background: #f0f0f0;
}

.itinerary-card-left {
    margin-right: 16px;
}

.itinerary-card-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.itinerary-card-middle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.itinerary-badge {
    background: white;
    color: #1a365d;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    white-space: nowrap;
}

.itinerary-title {
    color: #1a365d;
    font-weight: 500;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itinerary-card-right {
    margin-left: 16px;
}

.itinerary-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a365d;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.itinerary-plus {
    display: block;
    font-size: 20px;
    color: #1a365d;
    line-height: 1;
}

.itinerary-minus {
    display: none;
    font-size: 20px;
    color: white;
    line-height: 1;
}

/* Expanded State */
.itinerary-card[aria-expanded="true"] .itinerary-toggle-btn {
    background: #0073aa;
    border-color: #0073aa;
}

.itinerary-card[aria-expanded="true"] .itinerary-plus {
    display: none;
}

.itinerary-card[aria-expanded="true"] .itinerary-minus {
    display: block;
}

.itinerary-card-content {
    display: none;
    padding: 20px 24px;
    animation: slideDown 0.3s ease;
}

.itinerary-card[aria-expanded="true"] .itinerary-card-content {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.itinerary-content-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.itinerary-content-left {
    flex-shrink: 0;
}

.itinerary-large-image {
    width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.itinerary-content-right {
    flex: 1;
}

.itinerary-description {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.itinerary-experiences-panel {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

.itinerary-experiences-panel h4 {
    margin: 0 0 12px 0;
    color: #1a365d;
    font-size: 1rem;
}

.itinerary-experiences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.itinerary-experiences-grid.carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.itinerary-experiences-grid.carousel::-webkit-scrollbar {
    display: none;
}

.itinerary-carousel-nav {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.itinerary-experiences-grid.carousel ~ .itinerary-carousel-nav {
    display: flex;
}

.itinerary-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a365d;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1a365d;
    transition: all 0.3s ease;
}

.itinerary-carousel-btn:hover {
    background: #1a365d;
    color: white;
}

.itinerary-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.itinerary-carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.itinerary-experiences-grid.carousel ~ .itinerary-carousel-dots {
    display: flex;
}

.itinerary-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itinerary-carousel-dot:hover {
    background: #999;
}

.itinerary-carousel-dot.active {
    background: #1a365d;
}

.archive-cards-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.archive-cards-wrapper .archive-cards-dots {
    display: flex;
}

.archive-cards-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-cards-dot:hover {
    background: #999;
}

.archive-cards-dot.active {
    background: #1a365d;
}

.itinerary-experience-tile {
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.experience-tile-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.experience-tile-content {
    padding: 10px;
}

.experience-tile-content h5 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #1a365d;
    line-height: 1.3;
}

.experience-tile-desc {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.experience-tile-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.experience-check {
    color: #28a745;
    font-weight: bold;
}

.experience-cross {
    color: #dc3545;
    font-weight: bold;
}

.experience-status-text {
    color: #666;
}

.itinerary-meta-row {
    display: flex;
    gap: 24px;
}

.itinerary-meta-left {
    flex: 1;
}

.itinerary-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-icon {
    font-size: 1.2rem;
}

.meta-label {
    font-weight: 600;
    color: #1a365d;
}

.meta-value {
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .itinerary-card-header {
        padding: 10px 12px;
    }
    
    .itinerary-card-thumb {
        width: 80px;
        height: 80px;
    }
    
    .itinerary-card-middle {
        gap: 10px;
    }
    
    .itinerary-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .itinerary-title {
        font-size: 0.9rem;
    }
    
    .itinerary-toggle-btn {
        width: 28px;
        height: 28px;
    }
    
    .itinerary-plus,
    .itinerary-minus {
        font-size: 18px;
    }
    
    .itinerary-card-content {
        padding: 16px;
    }
    
    .itinerary-content-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .itinerary-large-image {
        width: 100%;
        height: 200px;
    }
    
    .itinerary-experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .itinerary-meta-row {
        flex-direction: column;
        gap: 12px;
    }
}