.text-muted { font-size: inherit; }
/* Utility badges: consolidate inline styles into reusable classes */
.badge-pill { border-radius: 999px; padding: 0.35rem 0.7rem; font-weight: 600; }
.badge-geo { border-radius: 12px; padding: 0.35rem 0.65rem; font-weight: 500; }

.badge-grad-blue { background: linear-gradient(135deg, #a0e9ff 0%, #89cff0 100%); color: #0b3d91; }
.badge-grad-neutral { background: linear-gradient(135deg, #e0e0e0 0%, #cfcfcf 100%); color: #333; }
.badge-grad-geo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.badge-grad-kind { background: linear-gradient(135deg, #0fd850 0%, #30cfd0 100%); color: #0d3b2e; }
.badge-grad-warm { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #5a3000; }
/* Google Fonts are loaded via <link> in main layout with display=swap for better mobile performance. */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary-color: #004E89;
    --secondary-dark: #003D6E;
    --accent-color: #FFD23F;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ct-navbar-sticky-offset: 96px;
}

/* Sidebar should stick below the main navbar (navbar is sticky at z-index 1020) */
.booking-sidebar.position-sticky {
    top: var(--ct-navbar-sticky-offset);
    z-index: 900;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    background-color: #f5f7fa; /* Light neutral background for improved readability */
}

.object-fit-cover {
    object-fit: cover;
}

/* Optional dark theme (manual opt-in via adding class="theme-dark" to <body>) */
body.theme-dark {
    background-color: #121212;
    color: #f8f9fa;
}

body.theme-dark p,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {color: #f8f9fa;}

body.theme-dark .card,
body.theme-dark .accordion-item,
body.theme-dark .form-control,
body.theme-dark .form-select {
    background-color: #1e1e1e;
    color: #f8f9fa;
    border-color: #2e2e2e;
}

body.theme-dark .form-control::placeholder,
body.theme-dark .form-select option {color: #b3b3b3;}

body.theme-dark .card {box-shadow: 0 4px 16px rgba(0,0,0,0.4);}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background-image: url('/assets/images/colorido-tours-logo/05-watermarks/watermark-800px-30opacity.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    filter: grayscale(100%) brightness(1.2);
    z-index: 0;
    pointer-events: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* When a section uses `.text-white` (e.g. dark cards), headings should also be white */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
    color: inherit;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Listing page titles */
.container > h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.container > h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* When a section uses `.text-white` (e.g. hero overlays), paragraphs should also be white */
.text-white p,
.text-white .lead {
    color: inherit;
}

/* Muted/secondary text visibility improvements */
.text-muted,
.text-secondary,
.card-text,
.text-light {
    line-height: 1.7;
}

@media (max-width: 768px) {
    .text-muted,
    .text-secondary,
    .card-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    p {
        font-size: 1rem;
    }
}

/* ==================== TOP BAR ==================== */
.top-bar {
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--accent-color);
}

.top-bar .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 0.875rem;
        padding: 1rem 0;
    }
    
    .top-bar .d-flex {
        font-size: 0.85rem;
    }
    
    .top-bar .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Improve wrapping between tablet and small desktop sizes where columns collide */
@media (max-width: 992px) {
    .top-bar .row {flex-wrap: wrap;}
    .top-bar .col-md-8, .top-bar .col-md-4 {flex:1 0 100%; text-align:center !important;}
    .top-bar .col-md-4 {margin-top:.5rem;}
    .top-bar .tagline {display:flex; flex-direction:row; gap:.25rem; align-items:center;}
    .top-bar .tagline span {margin:0;}
    .top-bar .contact-block {display:flex; flex-direction:row; flex-wrap:wrap; gap:.75rem; align-items:center; justify-content:center;}
    .top-bar .separator {display:none;}
}
@media (max-width: 576px) {
    .top-bar .contact-block a {width:100%; text-align:center;}
    .top-bar .btn.btn-success {width:100%;}
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: height 0.3s ease;
    max-width: 200px;
}

/* Desktop: Medium size for large screens */
@media (min-width: 1024px) {
    .navbar-logo {
        height: 45px;
    }
}

/* Tablet size: Reduce logo size */
@media (min-width: 769px) and (max-width: 1023px) {
    .navbar-logo {
        height: 40px;
    }
}

/* Mobile: Smaller size for better mobile layout */
@media (max-width: 768px) {
    .navbar-logo {
        height: 36px;
    }
}

/* Small mobile: Even smaller */
@media (max-width: 576px) {
    .navbar-logo {
        height: 32px;
    }
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher .btn {
    border: 0 !important;
    box-shadow: none !important;
}
.lang-switcher .btn.btn-outline-secondary {
    border: 0 !important;
    color: #6c757d;
}
.lang-switcher .btn.btn-outline-secondary:hover {
    background-color: #dee2e6;
    color: #212529;
}
.lang-switcher .btn.btn-primary {
    border: 0 !important;
}
.lang-switcher .btn:hover,
.lang-switcher .btn:focus,
.lang-switcher .btn:active {
    border: 0 !important;
    box-shadow: none !important;
}

/* Extra-small button utility for compact language pills */
.btn.btn-xs {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* CTA Custom Tour Button */
.cta-custom-tour {
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transition: var(--transition);
    white-space: nowrap;
}

.cta-custom-tour:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.cta-custom-tour i {
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .cta-custom-tour {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    /* Hero now uses placeholder image with a tinted gradient overlay */
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85) 0%, rgba(0, 78, 137, 0.85) 100%), url('/assets/images/hero-placeholder.jpg') center/cover no-repeat;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
}

.hero h1,
.hero p {
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* Unified hero base styles for detail and custom pages */
.home-hero,
.tour-hero,
.package-hero,
.show-hero,
.custom-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 450px;
    color: var(--white);
}

@media (max-width: 992px) {
    .home-hero,
    .tour-hero,
    .package-hero,
    .show-hero,
    .custom-hero {min-height: 380px;}
}

/* Unified overlay gradients (improved contrast for white text) */
.hero-overlay,
.tour-hero-overlay,
.package-hero-overlay,
.show-hero-overlay,
.custom-hero-overlay {
    position: absolute;
    top: 0;left: 0;width: 100%;height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
    pointer-events: none;
    transition: opacity .3s ease;
}

/* Text shadow helper for readability over imagery */
.hero-text-shadow h1,
.hero-text-shadow h2,
.hero-text-shadow h3,
.hero-text-shadow p,
.hero-text-shadow .lead {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Ensure badge contrast inside heros */
.home-hero .badge.bg-light.text-dark,
.tour-hero .badge.bg-light.text-dark,
.package-hero .badge.bg-light.text-dark,
.show-hero .badge.bg-light.text-dark {
    background: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(2px);
}

.hero .btn {
    position: relative;
    z-index: 1;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:focus,
.btn-primary:active {
    background: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5);
    outline: none;
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5);
    outline: none;
}

/* ==================== CARDS ==================== */
.tour-card {
    cursor: pointer;
}

.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: none;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card .card-img-top {
    overflow: hidden;
}

.card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: none;
}

.card:hover .card-img-top {
    transform: none;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Card title as H3 - maintain visual size */
.card-title.h3,
h3.card-title {
    font-size: 1.1rem;
    line-height: 1.3;
}

/* Tour/Show section titles */
.tour-section-title,
.show-section-title,
.package-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Booking sidebar titles */
.booking-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Ticket and supplement names in shows */
h3.ticket-name,
h3.supplement-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Blog post title as H3 */
h3.blog-post-title {
    font-size: 1.15rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ==================== SUPPLEMENTS / ADD-ONS ==================== */
.supp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.supp-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f3f6ff;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.supp-card .supp-title-row,
.supp-card .d-flex.justify-content-between.align-items-start {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.supp-card .price-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: #f1f5ff;
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.supp-card .price-pill .text-muted {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .supp-card {
        padding: 0.85rem;
    }

    .supp-card .supp-title-row,
    .supp-card .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
        align-items: flex-start;
    }

    .supp-card .price-pill {
        margin-top: 0.25rem;
    }
}

/* ==================== BADGES ==================== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.bg-primary {
    background: var(--primary-color) !important;
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
   
    align-items: center!important;
    justify-content: center!important;
}


.lang-switcher .btn {
    margin: 0 0.25rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-switcher .btn:hover {
    transform: translateY(-2px);
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ==================== ENHANCED CHECKBOX & RADIO VISIBILITY ==================== */
/* Standard form checkboxes and radios */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1875rem;
    border: 2px solid #CED4DA;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.form-check-input:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: inset 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.form-check-input:indeterminate {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: inset 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Form check labels for better readability */
.form-check-label {
    user-select: none;
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .form-check-input {
        width: 1.375rem;
        height: 1.375rem;
    }
    
    .form-check-label {
        font-size: 1.05rem;
        font-weight: 500;
    }
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('/assets/images/colorido-tours-logo/05-watermarks/watermark-1600px-18opacity.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.08;
    z-index: 0;
    
    pointer-events: none;
}

footer > .container {
    position: relative;
    z-index: 1;
}

footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer a {
    color: #BDC3C7;
    text-decoration: none;

    /* --- Home Page Header Overlay --- */
    body.home-page .top-bar {position:absolute; top:0; left:0; right:0; background:rgba(0,0,0,.55); z-index:100;}
    body.home-page .navbar {position:absolute; top:48px; left:0; right:0; background:transparent !important; box-shadow:none; z-index:90;}
    body.home-page .navbar .nav-link {color:#fff !important;}
    body.home-page .navbar .nav-link:hover {color:var(--accent-color) !important;}
    body.home-page .navbar .navbar-brand img {filter:drop-shadow(0 2px 4px rgba(0,0,0,.4));}
    body.home-page .home-hero {padding-top:120px;} /* compensate for overlayed bars so text not hidden */
    @media (max-width: 992px){
      body.home-page .top-bar, body.home-page .navbar {position:static; background:#fff !important; box-shadow:var(--shadow-sm);}
      body.home-page .navbar .nav-link {color:var(--text-dark) !important;}
      body.home-page .home-hero {padding-top:0;}
    }
    transition: var(--transition);
    display: inline-block;
}

footer a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

footer .bi {
    margin-right: 0.5rem;
}

/* ==================== ADMIN SIDEBAR ==================== */
aside {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.admin-sidebar {
    background: #12171f;
    background: linear-gradient(180deg,#1d2733 0%,#12171f 100%);
    border-right: 1px solid #22303d;
}
.admin-sidebar .nav-link {
    color: #d0d8e0 !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 4px;
    transition: var(--transition);
}
.admin-sidebar .nav-link:hover {
    background: #2c3e50;
    color: #fff !important;
    text-decoration: none;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link[aria-current="page"] {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.admin-sidebar h5 {
    color: #fff;
}

aside a.nav-link {
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

aside a.nav-link:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateX(5px);
}

aside a.nav-link.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* ==================== ANIMATIONS (DISABLED) ==================== */
.fade-in,
.fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.slide-up,
.animate-on-scroll,
.animate-on-scroll.animated {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* ==================== WHATSAPP FLOAT BUTTON ==================== */
.whatsapp-float {
    animation: pulse 2s infinite;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4) !important;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Improved focus visibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: #adb5bd;
}

/* ==================== UTILITY CLASSES ==================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ==================== LOADING STATES ==================== */
.img-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== CUSTOM TOUR DESTINATIONS ==================== */
.country-destination-group {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    background: #f8f9fa;
}

.country-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.country-header .form-check-input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid #CED4DA;
    transition: var(--transition);
}

.country-header .form-check-input:hover {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.country-header .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.country-checkbox {
    cursor: pointer;
}

/* Accordion Styles */
.country-accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.country-accordion-btn {
    background: #f8f9fa;
    border: none;
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

.country-accordion-btn:not(.collapsed) {
    background: #fff;
    box-shadow: none;
}

.country-accordion-btn:focus {
    box-shadow: none;
    border: none;
}

.country-accordion-btn .country-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #CED4DA;
    transition: var(--transition);
}

.country-accordion-btn .country-checkbox:hover {
    border-color: var(--primary-color);
}

.country-accordion-btn .country-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tri-state checkbox styling */
.country-checkbox:indeterminate {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8h8'/%3e%3c/svg%3e");
}

.cities-count {
    font-size: 0.85rem;
    color: #6c757d;
}

.cities-grid-accordion {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.city-checkbox-accordion {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.city-checkbox-accordion:hover {
    border-color: var(--primary-color);
    background: #fff5f2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.city-checkbox-accordion input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #CED4DA;
    flex-shrink: 0;
}

.city-checkbox-accordion input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.city-checkbox-accordion input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.city-checkbox-accordion input[type="checkbox"]:checked + .city-label {
    color: var(--primary-color);
    font-weight: 600;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.city-checkbox {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.city-checkbox:hover {
    border-color: var(--primary-color);
    background: #fff5f2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.city-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #CED4DA;
    flex-shrink: 0;
}

.city-checkbox input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.city-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.city-checkbox input[type="checkbox"]:checked + .city-label {
    color: var(--primary-color);
    font-weight: 600;
}

.city-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: var(--transition);
    user-select: none;
}

.city-label i {
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .cities-grid,
    .cities-grid-accordion {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.4rem;
    }
    
    .city-checkbox,
    .city-checkbox-accordion {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

/* ==================== NAVBAR TOGGLER ==================== */
.navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    width: 24px;
    height: 18px;
    position: relative;
    transition: var(--transition);
    background-image: none !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 50%;
    transform: translateY(-50%);
}

.navbar-toggler-icon::after {
    bottom: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Keep switches compact and inline to avoid overflow in admin forms */
.form-check.form-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.5rem; /* add breathing room so knob isn’t clipped */
    min-height: 1.5rem;
    overflow: visible;
}
.form-check.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    margin-left: 0;
    margin-top: 0;
    flex-shrink: 0;
    border: 2px solid #CED4DA;
    transition: var(--transition);
    cursor: pointer;
}
.form-check.form-switch .form-check-input:hover {
    border-color: var(--primary-color);
}
.form-check.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.form-check.form-switch .form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .form-check.form-switch {
        margin: 0.5rem 0;
    }
    
    .form-check.form-switch .form-check-label {
        font-size: 1.05rem;
    }
}

/* ==================== RESPONSIVE TABLES FOR MOBILE ==================== */
/* Make DEPARTURES table stack on mobile with buttons below rows */
@media (max-width: 768px) {
    #departures .table-responsive {
        border: 0;
        overflow-x: visible;
    }
    
    #departures .table {
        display: block;
        width: 100%;
        border-collapse: collapse;
    }
    
    #departures .table thead {
        display: none;
    }
    
    #departures .table tbody {
        display: block;
        width: 100%;
    }
    
    #departures .table tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        padding: 1rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
    
    #departures .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border: 0;
        text-align: right;
    }
    
    #departures .table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
        flex: 0 0 40%;
        margin-right: 1rem;
    }
    
    #departures .table td:first-child {
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
        padding-top: 0;
    }
    
    #departures .table td:first-child::before {
        content: none;
    }
    
    /* Last column (action buttons) - full width */
    #departures .table td:last-child {
        justify-content: stretch;
        padding: 1rem 0 0 0;
        margin-top: 1rem;
        border-top: 1px solid #dee2e6;
        padding-top: 1rem;
    }
    
    #departures .table td:last-child::before {
        content: none;
    }
    
    #departures .table td:last-child .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Add data labels for better UX */
    #departures .table td:nth-child(1)::before { content: none; }
    #departures .table td:nth-child(2)::before { content: 'Salida'; }
    #departures .table td:nth-child(3)::before { content: 'Regreso'; }
    #departures .table td:nth-child(4)::before { content: 'Estado'; }
    #departures .table td:nth-child(5)::before { content: 'Plazas'; }
    #departures .table td:nth-child(6)::before { content: none; }
    
    /* Badge on mobile */
    #departures .table .badge {
        display: inline-block;
        margin-left: auto;
    }
    
    /* Text alignment fixes for mobile */
    #departures .table td.text-end {
        text-align: right;
    }
    
    #departures .table td.text-center {
        text-align: right;
    }
}

@media (max-width: 576px) {
    #departures .table tr {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    #departures .table td {
        padding: 0.5rem 0;
    }
    
    #departures .table td::before {
        flex: 0 0 35%;
        font-size: 0.85rem;
    }
    
    #departures .table-responsive {
        padding: 0 -0.5rem;
    }
}

.text-muted { font-size: inherit; }
/* Utility badges: consolidate inline styles into reusable classes */
.badge-pill { border-radius: 999px; padding: 0.35rem 0.7rem; font-weight: 600; }
.badge-geo { border-radius: 12px; padding: 0.35rem 0.65rem; font-weight: 500; }

.badge-grad-blue { background: linear-gradient(135deg, #a0e9ff 0%, #89cff0 100%); color: #0b3d91; }
.badge-grad-neutral { background: linear-gradient(135deg, #e0e0e0 0%, #cfcfcf 100%); color: #333; }
.badge-grad-geo { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.badge-grad-kind { background: linear-gradient(135deg, #0fd850 0%, #30cfd0 100%); color: #0d3b2e; }
.badge-grad-warm { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #5a3000; }
/* Google Fonts are loaded via <link> in main layout with display=swap for better mobile performance. */
