/* ==========================================================================
   MOVED FROM style.css (missing from main.css)
   ========================================================================== */

body.layout-grid .archive-cards-wrapper, body.layout-grid .tour-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    body.layout-grid .archive-cards-wrapper, body.layout-grid .tour-list {
        grid-template-columns: 1fr;
    }
}
body.layout-list .archive-cards-wrapper, body.layout-list .tour-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
body.layout-list .archive-cards-track, body.layout-list .tour-card {
    width: 100%;
}
html {
    width: 100%;
}
body {
    background-color: #fff;
    width: 100%;
}
.container {
    width: 100%;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
p {
    margin-bottom: 1rem;
}
a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff6b35;
    text-decoration: underline;
}
.page-layout {
    display: grid;
    gap: 30px;
}
.page-layout.no-sidebar {
    grid-template-columns: 1fr;
}
.page-layout.with-sidebar {
    grid-template-columns: 2fr 1fr;
}
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.page-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-branding .site-title {
    font-size: 1.8rem;
    margin: 0;
    color: #0073aa;
}
.site-branding .site-title a {
    color: inherit;
    text-decoration: none;
}
.site-branding .custom-logo {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.site-branding img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 80px;
        max-width: 160px;
    }
    .site-branding img {
        max-height: 80px;
        max-width: 160px;
    }
}
@media (max-width: 480px) {
    .site-branding .custom-logo {
        max-height: 60px;
        max-width: 120px;
    }
    .site-branding img {
        max-height: 60px;
        max-width: 120px;
    }
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
@media (max-width: 480px) {
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-navigation {
        width: 100%;
    }
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    .main-navigation ul.active {
        display: flex;
    }
}
.main-navigation a:hover {
    background: #f8f9fa;
}
.language-switcher {
    position: relative;
    z-index: 1000;
    margin-left: 20px;
}
.language-dropdown {
    position: relative;
}
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
}
.language-toggle:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}
.language-name {
    font-weight: 500;
    text-transform: uppercase;
}
.language-arrow {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
}
.language-dropdown:hover .language-arrow {
    transform: rotate(180deg);
}
.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}
.language-dropdown:hover .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-options a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}
.language-options a:last-child {
    border-bottom: none;
}
.language-options a:hover {
    background: #f8f8f8;
}
.language-options span {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
}
.hero-section {
    margin-bottom: 3rem;
}
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}
.cta-button:hover {
    color: white;
    text-decoration: none;
}
.tour-section {
    margin-bottom: 3rem;
}
.tour-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
.tour-categories-grid {
    margin-bottom: 3rem;
}
.category-title a {
    color: inherit;
    text-decoration: none;
}
.category-title a:hover {
    text-decoration: underline;
}
.tour-list {
    margin-bottom: 3rem;
}
.tour-card {
    overflow: hidden;
}
.tour-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.tour-card:hover .tour-thumbnail {
    transform: scale(1.05);
}
.tour-type-badge.public {
    background: #0073aa;
}
.tour-type-badge.private {
    background: #ff6b35;
}
.tour-header {
    margin-bottom: 1rem;
}
.tour-categories {
    margin-bottom: 0.5rem;
}
.tour-category {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}
.tour-category a {
    background: #e7f3ff;
    color: #0073aa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
}
.tour-category a:hover {
    background: #0073aa;
    color: white;
}
.tour-title a {
    color: inherit;
    text-decoration: none;
}
.tour-title a:hover {
    color: #ff6b35;
}
.tour-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tour-capacity {
    display: flex;
    align-items: center;
    gap: 5px;
}
.tour-languages {
    align-items: center;
}
.tour-languages .language-flag {
    display: inline-block;
    width: 14px;
    height: 10px;
    border-radius: 0;
    margin-right: 4px;
    vertical-align: middle;
    object-fit: cover;
}
.language-more {
    background: #666;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.price-amount {
    display: block;
    font-size: 1.4rem;
}
.price-type {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}
.btn-primary {
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-secondary {
    cursor: pointer;
    font-size: 0.9rem;
}
.btn-primary:hover {
    color: white;
    text-decoration: none;
}
.btn-secondary:hover {
    text-decoration: none;
}
.tour-header {
    margin-bottom: 2rem;
}
.tour-featured-image {
    overflow: hidden;
}
.featured-tour-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.tour-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.tour-meta-info span {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}
.price-box .max-people {
    color: white;
}
.booking-widget h4 {
    margin-bottom: 1rem;
    color: #0073aa;
}
.tour-filter {
    margin-bottom: 3rem;
}
.footer-content {
    align-items: flex-start;
}
.footer-logo img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .header-content {
        gap: 1rem;
    }
    .page-content {
        padding: 15px;
    }
    .tour-footer {
        flex-direction: column;
        gap: 1rem;
    }
    .language-switcher {
        margin-left: 10px;
    }
    .language-toggle {
        padding: 6px 10px;
        font-size: 13px;
    }
    .language-name {
        display: none;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .tour-card {
        margin-bottom: 1.5rem;
    }
    .tour-card .tour-content {
        padding: 1rem;
    }
    .tour-card .tour-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    .tour-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    .tour-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .tour-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .tour-button {
        margin-top: 1rem;
        text-align: center;
    }
    .tour-button .btn-booking {
        display: inline-block !important;
        padding: 0.75rem 1.5rem;
        background: #0073aa;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
        transition: background-color 0.3s ease;
    }
    .tour-button .btn-booking:hover {
        background: #0056b3;
    }
    .tour-registration-form {
        padding: 2rem 1.5rem;
    }
    .tour-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 1rem;
}
.mb-2 {
    margin-bottom: 2rem;
}
.mb-3 {
    margin-bottom: 3rem;
}
.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.mt-3 {
    margin-top: 3rem;
}
.hidden {
    display: none;
}
.show {
    display: block;
}
.loading {
    opacity: 0.6;
    pointer-events: none;
}
.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.archive-cards-wrapper {
    position: relative;
}
.archive-cards-track {
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    width: auto;
    -ms-overflow-style: none;
}
.archive-card {
    flex: 0 0 calc(33.333% - 14px);
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}
.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.archive-card-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}
.archive-card-image {
    height: 220px;
    overflow: hidden;
    background: #dce3ea;
    flex-shrink: 0;
}
.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.archive-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.archive-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}
.archive-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex: 1;
}
.archive-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
}
.archive-card-btn {
    display: inline-block;
    padding: 10px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: .88rem;
    transition: background 0.2s ease, transform 0.15s ease;
    flex: 1;
    text-align: center;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}
.archive-card-btn-details {
    background: #0073aa;
}
.archive-card-btn-details:hover {
    background: #005a87;
    transform: translateY(-1px);
}
.archive-card-btn-book {
    background: #F3992B;
}
.archive-card-btn-book:hover {
    background: #d9831f;
    transform: translateY(-1px);
}
.archive-cards-error, .archive-cards-empty {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
}
.archive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}
.archive-modal {
    background: white;
    width: 320px;
    height: 856.2px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.archive-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.archive-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.archive-modal-btn-details {
    padding: 8px 16px !important;
    background: #0073aa !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    display: inline-block !important;
    border: none !important;
    cursor: pointer !important;
}
.archive-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0d1b2a;
    line-height: 1.3;
    flex: 1;
    padding-right: 12px;
}
.archive-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0 2px;
    font-weight: 300;
    flex-shrink: 0;
}
.archive-modal-close:hover {
    color: #000;
}
.archive-modal-body {
    padding: 20px;
    min-height: 400px;
}
.archive-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
@media (max-width: 600px) {
    .archive-modal {
        width: 95%;
        height: 90vh;
    }
    .archive-modal-body {
        padding: 15px;
        min-height: 300px;
    }
}
@media (max-width: 1024px) {
    .archive-card {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 767px) {
    .archive-cards-wrapper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .archive-cards-track {
        width: auto;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .archive-card {
        flex: 0 0 100%;
        transition: box-shadow 0.3s ease;
        position: static;
    }
    .archive-card-image {
        height: 180px;
    }
    .archive-card-title {
        font-size: 1rem;
    }
    .archive-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .archive-modal-title {
        font-size: 0.85rem;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;
        font-weight: 700;
        width: 100%;
        margin-top: 8px;
    }
    .archive-modal-close {
        font-weight: 700;
    }
    .archive-modal-actions {
        margin-left: auto;
    }
    .archive-card-excerpt {
        font-size: 13px;
    }
    .archive-card-btn {
        padding: 9px 8px;
        font-size: .82rem;
    }
    .archive-modal {
        width: 95%;
        height: 95vh;
    }
}

/* ===================== END MOVED FROM style.css ===================== */

*, *::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: var(--te-body-font, 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, 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: var(--te-heading-font, 'Montserrat', 'Segoe UI', Roboto, Arial, 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: var(--te-heading-font, 'Montserrat', 'Segoe UI', Roboto, Arial, 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 {
    display: inline-block;
    width: auto;
}

.tp-urg {
    list-style:none;
    margin:0 0 4px;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.tp-urg li {
    font-size:11px;
    font-weight:700;
    color:#1a3a52;
    display:block;
    line-height:1.3;
}

.tp-urg li i {
    font-size:11px;
    color:#27ae60;
    display:inline-block;
    margin-right:6px;
    margin-top:1px;
}

.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: var(--te-heading-font, 'Montserrat', 'Segoe UI', Roboto, Arial, 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-family: var(--te-heading-font, 'Montserrat', 'Segoe UI', Roboto, Arial, sans-serif);
    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: var(--te-body-font-size, 16px);
    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
   ================================================ */
.te-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    white-space: nowrap;
}
body .te-official-badge img {
    width: 16px;
    height: 16px;
    max-width: none;
    flex: 0 0 auto;
}
@media (min-width: 768px) and (max-width: 1024px) {
    body .te-official-badge img {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 767px) {
    .te-official-badge {
        font-size: 11px;
        padding: 2px 6px;
        gap: 3px;
    }
    body .te-official-badge img {
        width: 18px;
        height: 18px;
    }
}

@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;
    }
}

/* Global Horizontal Padding Rules */
body.has-custom-html-block .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}
body.has-custom-html-block .blog-single,
body.has-custom-html-block .blog-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    body.has-custom-html-block .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    body.has-custom-html-block .blog-single,
    body.has-custom-html-block .blog-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Custom HTML Content Spacing - scoped to body.has-custom-html-content (see functions.php).
   Same values as Global Horizontal Padding Rules above: 20px desktop, 10px mobile. */
body.has-custom-html-content .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}
body.has-custom-html-content .blog-single,
body.has-custom-html-content .blog-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    body.has-custom-html-content .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    body.has-custom-html-content .blog-single,
    body.has-custom-html-content .blog-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Blog Wrapper Spacing - blog post + blog listing pages (all posts, not only Custom HTML).
   .container is the only wrapper with horizontal padding; .blog-single/.blog-layout get none. */
.container:has(> .blog-single),
.container:has(> .blog-layout) {
    padding-left: 20px;
    padding-right: 20px;
}
@media (max-width: 768px) {
    .container:has(> .blog-single),
    .container:has(> .blog-layout) {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ==========================================================================
   General Post/Page Template CSS Rules
   Moved from inline <style> blocks in single.php, home.php, index.php
   ========================================================================== */

/* ---- moved from single.php (inline <style>, original lines 72-208) ---- */
.blog-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-post-single {
    background: #fff;
    padding: 40px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.blog-single .blog-post-title {
    margin: 0 0 15px 0;
    font-size: var(--te-h1-size, 36px);
    line-height: 1.2;
    color: #333;
}

.blog-single .blog-post-meta {
    font-size: var(--te-body-font-size, 16px);
    color: #666;
}

.blog-single .blog-post-meta span {
    margin-right: 20px;
}

.blog-post-featured-image {
    margin: 0 0 30px 0;
    max-width: 100%;
}

.blog-post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
}

.blog-single .blog-post-content {
    font-size: var(--te-body-font-size, 16px);
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.blog-single .blog-post-content p {
    margin-bottom: 20px;
}

.blog-single .blog-post-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: var(--te-h2-size, 28px);
}

.blog-single .blog-post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: var(--te-h3-size, 26px);
}

.blog-post-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.blog-post-tags {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-prev a,
.nav-next a {
    display: block;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.nav-prev a:hover,
.nav-next a:hover {
    background: #e0e0e0;
}

.nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .blog-post-single {
        padding: 20px 5px;
    }

    .blog-single .blog-post-title {
        font-size: 28px;
    }

    .blog-post-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-next {
        text-align: left;
    }
    .blog-post-featured-image img {
        height: auto;
        object-fit: contain;
    }
}

/* ---- moved from home.php (inline <style>, original lines 69-217) ---- */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.blog-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.blog-post-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-layout .blog-post-content {
    padding: 20px;
}

.blog-layout .blog-post-title {
    margin: 0 0 10px 0;
    font-size: 19px;
    line-height: 1.3;
}

.blog-layout .blog-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-layout .blog-post-title a:hover {
    color: var(--tp-primary-color, #007cba);
}

.blog-layout .blog-post-meta {
    margin: 0 0 15px 0;
    font-size: 13px;
    color: #666;
}

.blog-layout .blog-post-meta span {
    margin-right: 15px;
}

.blog-post-excerpt {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.6;
    font-size: 13px;
}

.btn-read-more {
    display: inline-block;
    padding: 8px 16px;
    background: var(--tp-primary-color, #007cba);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s ease;
}

.btn-read-more:hover {
    background: var(--tp-accent-color, #005a87);
}

/* Pagination — use theme colors */
.blog-pagination {
    grid-column: 1 / -1;
    margin: 50px 0 40px 0;
    text-align: center;
}

.blog-pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--tp-primary-color, #007cba);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.blog-pagination .page-numbers:hover {
    background: var(--tp-accent-color, #005a87);
}

.blog-pagination .page-numbers.current {
    background: var(--tp-accent-color, #005a87);
    cursor: default;
}

.blog-pagination .page-numbers.dots {
    background: transparent;
    color: #666;
}

@media (max-width: 768px) {
    .blog-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 11px;
        padding: 0 8px;
    }
}

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

/* ---- moved from index.php (inline <style>, original lines 105-253) ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.partner-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.partner-logo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--tp-primary-color);
}

.partner-placeholder-logo {
    width: 120px;
    height: 120px;
    background: var(--tp-primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 32px;
    font-weight: bold;
    border: 4px solid var(--tp-primary-color);
}

.partner-name {
    margin-bottom: 15px;
}

.partner-name a {
    color: var(--tp-primary-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.partner-name a:hover {
    text-decoration: underline;
}

.partner-description {
    color: #666;
    margin-bottom: 15px;
    min-height: 50px;
    line-height: 1.5;
}

.partner-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.partner-address .dashicons {
    color: var(--tp-primary-color);
}

.partner-website a {
    color: var(--tp-primary-color);
    font-size: 14px;
    text-decoration: none;
}

.partner-website a:hover {
    text-decoration: underline;
}

.partner-stats {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.tour-count {
    color: var(--tp-primary-color);
    font-weight: bold;
}

.partner-actions {
    margin-top: 20px;
}

.partner-actions .button {
    background: var(--tp-primary-color);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.partner-actions .button:hover {
    background: var(--tp-accent-color);
    color: white;
    text-decoration: none;
}

.no-partners {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-top: 50px;
}

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

    .partner-card {
        padding: 20px;
    }

    .partner-logo img,
    .partner-placeholder-logo {
        width: 100px;
        height: 100px;
        font-size: 24px;
    }
}
/* ===================== END General Post/Page Template CSS Rules ===================== */
