/* ═══════════════════════════════════════════════════════
   DesertPaths™ Theme — Custom styles
   ═══════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; overflow-x: hidden; min-width: 0; }

/* ── Global form-field text color fix ──
   Public dark sections apply text-white to their wrapping container; text/email/search inputs
   and <select>/<textarea> inherit that white color onto their own (white/light) background,
   making typed text invisible until selected. Reset to a readable dark color everywhere except
   fields that already manage their own color (.dp-input/.auth-input's dark theme, color pickers). */
input:not([type="color"]):not(.dp-input):not(.auth-input),
select:not(.dp-input):not(.auth-input),
textarea:not(.dp-input):not(.auth-input) {
    color: #1f2937;
}

/* ── Public dark form inputs (Cart / Checkout / Pay) ── */
/* Tailwind v4 @layer base resets <input> background to white; this unlayered rule wins. */
.dp-input {
    width: 100%;
    background: #0f0f12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.dp-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.dp-input:focus {
    background: #0f0f12;
    border-color: #EC661C;
    box-shadow: 0 0 0 1px #EC661C;
    outline: none;
}
.dp-input:-webkit-autofill,
.dp-input:-webkit-autofill:hover,
.dp-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #0f0f12 inset;
    box-shadow: 0 0 0 1000px #0f0f12 inset;
    border-color: rgba(255, 255, 255, 0.1);
    transition: background-color 5000s ease-in-out 0s;
}
/* Small variant for inline qty pickers */
.dp-input-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}
/* Number input arrows lighter on dark */
.dp-input[type="number"]::-webkit-inner-spin-button,
.dp-input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1) brightness(0.7);
}

/* ── Auth form inputs (Login/Register/Profile) ── */
.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    padding-left: 2.75rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.auth-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #EC661C;
    box-shadow: 0 0 0 1px #EC661C;
    outline: none;
}
.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.auth-input-no-icon {
    padding-left: 1rem;
}
/* Fix browser autofill overriding colors */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.95) inset;
    box-shadow: 0 0 0 1000px rgba(30, 30, 30, 0.95) inset;
    border-color: rgba(255, 255, 255, 0.2);
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Color picker (pill-shaped swatch) ── */
input[type="color"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    overflow: hidden;
    border-radius: 9999px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 9999px;
}
input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 9999px;
}

/* ── Color palette picker (wraps input[type="color"]) ── */
.dp-color-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.dp-color-wrap > input[type="color"] {
    flex: 1;
    min-width: 0;
}
.dp-palette-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #9ca3af;
    transition: all 0.15s ease;
}
.dp-palette-btn:hover {
    border-color: #EC661C;
    color: #EC661C;
    background: #fff7ed;
}
.dp-palette-popup {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10001;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.05);
    display: none;
    min-width: 180px;
    max-width: 260px;
}
.dp-palette-popup.open {
    display: block;
}
.dp-palette-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dp-palette-swatch {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.dp-palette-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.dp-palette-swatch.active {
    border-color: #374151;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #374151;
}
.dp-palette-swatch-label {
    display: block;
    text-align: center;
    font-size: 9px;
    color: #9ca3af;
    margin-top: 2px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 36px;
}
.dp-palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Responsive safety ── */
*, *::before, *::after { max-width: 100%; box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 374px) {
    .font-heading, h1 { font-size: clamp(1.5rem, 8vw, 2rem) !important; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1E1E1E; }
::-webkit-scrollbar-thumb { background: #EC661C; border-radius: 4px; }

/* ── Hero ── */
.hero-overlay {
    background: linear-gradient(180deg, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0.3) 40%, rgba(18,18,18,0.6) 100%);
}

/* ── Nav hover underline ── */
.nav-hover-line { position: relative; }
.nav-hover-line::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #EC661C;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-hover-line:hover::after { width: 100%; }

/* ── Land cards ── */
.land-card {
    --land-color: #EC661C;
    transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s ease;
}
.land-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px color-mix(in srgb, var(--land-color) 35%, transparent);
}
.land-card .land-img {
    transition: transform 0.7s cubic-bezier(0.23,1,0.32,1);
}
.land-card:hover .land-img { transform: scale(1.08); }

/* ── Land map popup ── */
.land-map-popup.leaflet-popup {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}
.land-map-popup .leaflet-popup-content-wrapper {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    background: #1a1a2e !important;
    border-radius: 10px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
    border: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box !important;
}
.land-map-popup .leaflet-popup-content {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}
.land-map-popup .map-popup-card {
    display: block !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    text-decoration: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
.land-map-popup .map-popup-card img {
    display: block !important;
    width: 220px !important;
    height: 120px !important;
    max-width: none !important;
    object-fit: cover !important;
}
.land-map-popup .map-popup-body {
    display: block !important;
    width: 220px !important;
    padding: 8px 12px !important;
    background: #1a1a2e !important;
    color: #fff !important;
    box-sizing: border-box !important;
}
.land-map-popup .leaflet-popup-tip {
    background: #1a1a2e !important;
}
.land-map-popup .leaflet-popup-close-button {
    z-index: 10 !important;
    color: #fff !important;
}

/* ── Land boundary tooltip ── */
.land-boundary-tooltip {
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.land-boundary-tooltip::before {
    display: none !important;
}
.leaflet-interactive.land-boundary-poly {
    cursor: pointer !important;
    stroke: none !important;
    stroke-width: 0 !important;
    stroke-opacity: 0 !important;
}

/* ── Land glow polygon (soft shadow territory) ── */
.land-glow-poly {
    filter: blur(18px);
    pointer-events: none;
    stroke: none !important;
    stroke-width: 0 !important;
}
}

/* ── Fade-up on scroll ── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stat number shimmer ── */
.stat-number {
    background: linear-gradient(90deg, #EC661C, #FFD07F, #EC661C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    to { background-position: 200% center; }
}

/* ── CTA pulse ring ── */
.cta-pulse { animation: pulse-ring 2s ease-in-out infinite; }
@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(236,102,28,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(236,102,28,0); }
}

/* ── Gallery marquee ── */
.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Video play button ── */
.play-btn { transition: transform 0.3s ease, background 0.3s ease; }
.play-btn:hover {
    transform: scale(1.15);
    background: rgba(236,102,28,0.9);
}

/* ── Text gradient orange ── */
.text-gradient-orange {
    background: linear-gradient(135deg, #EC661C 0%, #FFD07F 50%, #EC661C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Section divider ── */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, #EC661C, transparent);
}

/* ── Font families (not in compiled Tailwind) ── */
.font-display { font-family: 'Playfair Display', serif; }
.font-arabic { font-family: 'Noto Sans Arabic', sans-serif; }
.font-body { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

/* ═══════════════════════════════════════════════════════
   RTL Support — dir="rtl" on <html>
   ═══════════════════════════════════════════════════════ */

/* Flip arrow icons */
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* Flip justify-self for page header grid (back left, action right) */
[dir="rtl"] .rtl-justify-flip[style*="justify-self:start"] { justify-self: end !important; }
[dir="rtl"] .rtl-justify-flip[style*="justify-self:end"] { justify-self: start !important; }

/* Notification dot position — end-1 logical */
[dir="rtl"] .absolute.end-1 { right: auto; left: 0.25rem; }

/* Text alignment — swap in RTL */
[dir="rtl"] .text-start { text-align: right; }
[dir="rtl"] .text-end { text-align: left; }
[dir="rtl"] .text-right { text-align: left; }
[dir="rtl"] .text-left { text-align: right; }

/* Margin swaps — mr ↔ ml */
[dir="rtl"] .mr-1 { margin-right: 0; margin-left: 0.25rem; }
[dir="rtl"] .mr-2 { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .ml-1 { margin-left: 0; margin-right: 0.25rem; }
[dir="rtl"] .ml-0\.5 { margin-left: 0; margin-right: 0.125rem; }
[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }

/* Padding swaps — pl ↔ pr */
[dir="rtl"] .pl-4 { padding-left: 0; padding-right: 1rem; }
[dir="rtl"] .pr-4 { padding-right: 0; padding-left: 1rem; }

/* DataTables search icon — flip padding + icon */
[dir="rtl"] div.dt-container .dt-search input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background-position: right 0.75rem center;
}

/* DataTables sort arrows — flip margin */
[dir="rtl"] table.dataTable > thead > tr > th span.dt-column-order {
    margin-left: 0;
    margin-right: 0.375rem;
}

/* DataTables header background in RTL */
[dir="rtl"] table.dataTable thead th { text-align: right; }

/* Flex direction for icon + text items */
[dir="rtl"] .flex { /* flexbox auto-reverses with dir=rtl */ }

/* FA icons that are directional — flip them */
[dir="rtl"] .fa-arrow-left:not(.rtl-flip) { transform: scaleX(-1); }
[dir="rtl"] .fa-arrow-right:not(.rtl-flip) { transform: scaleX(-1); }
[dir="rtl"] .fa-chevron-left { transform: scaleX(-1); }
[dir="rtl"] .fa-chevron-right { transform: scaleX(-1); }
[dir="rtl"] .fa-sign-out-alt { transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════
   Reusable Component Classes
   ═══════════════════════════════════════════════════════ */

/* ── Hero section ── */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .hero-content { padding: 0 1.5rem; }
}

.hero-inner {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
}

/* ── Hero subtitle (e.g. "Journey Through Ancient Arabia") ── */
.hero-subtitle {
    color: #EC661C;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
    }
}
@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.3em;
    }
}

/* ── Hero title — forced to one line at every viewport width via a viewport-relative clamp()
   instead of fixed breakpoint sizes, so "NEW JOURNEYS ON OLD PATHS" never wraps regardless of
   screen size or device (was sized/breakpointed for a single short word like the original
   "DESERTPATHS" this was first built for). ── */
.hero-title {
    font-size: clamp(1.1rem, 6.2vw, 3.75rem);
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    white-space: nowrap;
}
/* Full-title white-to-orange gradient, replacing the old two-tone split where only
   "ON OLD PATHS" carried the orange gradient and "NEW JOURNEYS" was plain white. */
.hero-title-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, #FFD07F 65%, #EC661C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Hero description ── */
.hero-desc {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    font-weight: 300;
    line-height: 1.7;
    padding: 0 0.5rem;
}
@media (min-width: 640px) {
    .hero-desc { font-size: 1.125rem; margin-bottom: 2.5rem; padding: 0; }
}
@media (min-width: 768px) {
    .hero-desc { font-size: 1.25rem; }
}

/* ── Hero button group ── */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
/* .btn-primary/.btn-outline default to width:100% for their normal full-bleed mobile usage
   elsewhere in the app — override to auto here so the hero buttons stay compact/pill-sized on
   small screens instead of stretching edge-to-edge. */
.hero-buttons .btn-primary,
.hero-buttons .btn-outline {
    width: auto;
}
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        width: auto;
    }
    /* Equal width so the visual gap between the two buttons lands on the hero's true center —
       .btn-primary/.btn-outline are otherwise auto-width, and "Explore Lands" vs "Watch Memories"
       aren't the same length, which shifted the gap off-center from the video/scroll-indicator. */
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 230px;
    }
}

/* ── Buttons: Primary & Outline ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #EC661C;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-primary:hover { background: #d55a17; }
@media (min-width: 640px) {
    .btn-primary {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        width: auto;
    }
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.625rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-outline:hover {
    border-color: #EC661C;
    color: #EC661C;
}
@media (min-width: 640px) {
    .btn-outline {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        width: auto;
    }
}

/* Smaller variant for navs / login */
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #EC661C;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.btn-primary-sm:hover { background: #d55a17; }
@media (min-width: 640px) {
    .btn-primary-sm { padding: 0.625rem 1.5rem; font-size: 0.875rem; }
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.375rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline-sm:hover {
    border-color: #EC661C;
    color: #EC661C;
}
@media (min-width: 640px) {
    .btn-outline-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
}

/* ── Manage-area buttons (unlayered — overrides Tailwind v4 button reset) ── */
.btn-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #EC661C;
    color: #fff;
    padding: 0.625rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    border: none;
}
.btn-manage:hover {
    background: #d55a17;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.btn-manage:disabled {
    background: #EC661C;
    color: #fff;
    opacity: 0.65;
    cursor: default;
    box-shadow: none;
}
.btn-manage-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.625rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-manage-secondary:hover {
    background: #e5e7eb;
}
@media (min-width: 640px) {
    .btn-manage,
    .btn-manage-secondary { width: auto; }
}

/* ── DataTables — DesertPaths modern theme ── */

/* Card wrapper */
.dt-card {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    overflow: clip;
}

/* Container padding — hidden until AJAX loads, then shown via JS */
.dt-card div.dt-container { padding: 0; visibility: hidden; height: 0; overflow: hidden; }

/* Table area padding — let DataTables scrollX handle overflow natively */
.dt-card .dt-scroll { padding: 0 1rem; }
.dt-card .dt-scroll-head { overflow: visible !important; }
.dt-card .dt-scroll-headInner { width: 100% !important; }
.dt-card .dt-scroll-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Toolbar (search + length) */
.dt-card .dt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}

/* Search input */
div.dt-container .dt-search { display: flex; align-items: center; gap: 0; }
div.dt-container .dt-search label { display: none; }
div.dt-container .dt-search input {
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    min-width: 260px;
    outline: none;
    transition: all 0.2s;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.45 4.38l4.09 4.09a.75.75 0 11-1.06 1.06l-4.09-4.09A7 7 0 012 9z'/%3E%3C/svg%3E") no-repeat 0.75rem center / 1rem;
}
div.dt-container .dt-search input:focus {
    border-color: #EC661C;
    box-shadow: 0 0 0 3px rgba(236,102,28,0.12);
}

/* Length select — visible dropdown arrow */
div.dt-container .dt-length { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: #6b7280; }
div.dt-container .dt-length label { white-space: nowrap; cursor: default; }
div.dt-container .dt-length select {
    appearance: auto;
    -webkit-appearance: menulist;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    outline: none;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
div.dt-container .dt-length select:hover {
    border-color: #EC661C;
}
div.dt-container .dt-length select:focus {
    border-color: #EC661C;
    box-shadow: 0 0 0 3px rgba(236,102,28,0.12);
}

/* Table */
table.dataTable { border-collapse: collapse !important; width: 100% !important; }
table.dataTable thead th {
    background: #fafafa;
    color: #9ca3af;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
    cursor: pointer;
}
table.dataTable thead th:hover { color: #6b7280; }
table.dataTable thead th.dt-ordering-asc,
table.dataTable thead th.dt-ordering-desc { color: #EC661C; }

/* Sort icons — minimal dot style */
table.dataTable > thead > tr > th span.dt-column-order {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-left: 0.375rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
table.dataTable > thead > tr > th span.dt-column-order::before,
table.dataTable > thead > tr > th span.dt-column-order::after {
    font-size: 0.5rem;
    line-height: 1;
    opacity: 0.25;
    transition: opacity 0.2s, color 0.2s;
}
table.dataTable > thead > tr > th.dt-orderable-asc span.dt-column-order::before,
table.dataTable > thead > tr > th.dt-orderable-desc span.dt-column-order::after {
    color: #d1d5db;
    opacity: 0.4;
}
table.dataTable > thead > tr > th.dt-ordering-asc span.dt-column-order::before {
    color: #EC661C;
    opacity: 1;
}
table.dataTable > thead > tr > th.dt-ordering-desc span.dt-column-order::after {
    color: #EC661C;
    opacity: 1;
}
/* Hide inactive arrow when sorted */
table.dataTable > thead > tr > th.dt-ordering-asc span.dt-column-order::after { opacity: 0.15; }
table.dataTable > thead > tr > th.dt-ordering-desc span.dt-column-order::before { opacity: 0.15; }
table.dataTable tbody td {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    vertical-align: middle;
}
table.dataTable tbody tr { transition: background 0.15s ease; }
table.dataTable tbody tr:hover { background: #fef7f2; }
table.dataTable tbody tr:last-child td { border-bottom: none; }

/* Remove DataTables stripe defaults */
table.dataTable.stripe > tbody > tr.odd > *,
table.dataTable.stripe > tbody > tr.even > * { box-shadow: none; background: transparent; }

/* Footer (info + pagination) */
.dt-card .dt-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

/* Info text */
div.dt-container .dt-info {
    font-size: 0.8125rem;
    color: #9ca3af;
    padding: 0;
}

/* Pagination — all buttons get cursor pointer + visible bg */
div.dt-container .dt-paging { padding: 0; }
div.dt-container .dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 9999px !important;
    border: none !important;
    padding: 0 0.5rem !important;
    font-size: 0.8125rem;
    margin: 0 0.125rem;
    transition: all 0.2s;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
}
div.dt-container .dt-paging .dt-paging-button:hover {
    background: #fef3eb !important;
    color: #EC661C !important;
    cursor: pointer;
}
div.dt-container .dt-paging .dt-paging-button.current {
    background: #EC661C !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(236,102,28,0.3);
    cursor: default;
}
div.dt-container .dt-paging .dt-paging-button.disabled {
    opacity: 0.3;
    cursor: default;
}
/* Prev/Next arrow buttons — ensure visible */
div.dt-container .dt-paging .dt-paging-button.previous,
div.dt-container .dt-paging .dt-paging-button.next {
    font-weight: 700;
    font-size: 0.875rem;
    background: #f3f4f6;
    color: #6b7280;
}
div.dt-container .dt-paging .dt-paging-button.previous:hover,
div.dt-container .dt-paging .dt-paging-button.next:hover {
    background: #EC661C !important;
    color: #fff !important;
    cursor: pointer;
}

/* Processing overlay — hidden (using skeleton instead) */
div.dt-container .dt-processing { display: none !important; }

/* Skeleton loading */
.dt-loading { padding: 0; }
.dt-loading-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.dt-loading-rows { padding: 0.5rem 1.5rem; }
.dt-loading-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f9fafb;
}
.dt-loading-row:last-child { border-bottom: none; }
.dt-loading-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}
.dt-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: dt-shimmer 1.5s ease-in-out infinite;
    border-radius: 0.375rem;
    height: 14px;
}
@keyframes dt-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Action buttons inside table */
.dt-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}
.dt-action-btn:hover { color: #EC661C; }

/* Responsive */
@media (max-width: 639px) {
    .dt-card .dt-toolbar,
    .dt-card .dt-footer { padding: 0.75rem 1rem; }
    .dt-card .dt-scroll { padding: 0 0.5rem; }
    div.dt-container .dt-search input { min-width: 0; width: 100%; }
    table.dataTable thead th,
    table.dataTable tbody td { padding: 0.625rem 0.75rem; }
    table.dataTable { min-width: 700px; }
}

/* Scrollbar inside dt-card */
.dt-card ::-webkit-scrollbar { height: 6px; }
.dt-card ::-webkit-scrollbar-track { background: #f9fafb; }
.dt-card ::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.dt-card ::-webkit-scrollbar-thumb:hover { background: #EC661C; }

/* DataTables scrollX wrappers */
div.dt-container .dt-scroll-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
div.dt-container .dt-scroll-head { overflow: hidden; border-bottom: 2px solid #f3f4f6; }

/* ── Confirm modal ── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.confirm-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
}
.confirm-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}
.confirm-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.confirm-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.confirm-actions .btn-manage:hover { filter: brightness(0.9); }

/* ── Scroll indicator (bouncing pill) ── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
}
.scroll-indicator-track {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 9999px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}
.scroll-indicator-dot {
    width: 0.375rem;
    height: 0.75rem;
    background: #EC661C;
    border-radius: 9999px;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-25%); }
}

/* ── Section header (centered title blocks) ── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-label {
    color: #EC661C;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.25rem;
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .section-title { font-size: 3.75rem; }
}
.section-desc {
    color: rgba(255,255,255,0.5);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   Admin & Manage Sidebar Navigation Links
   ═══════════════════════════════════════════════════════ */

.admin-nav-link,
.manage-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.2s ease;
}
.admin-nav-link:hover {
    background: rgba(236, 102, 28, 0.1);
    color: #EC661C;
}
.admin-nav-link.active {
    background: rgba(236, 102, 28, 0.15);
    color: #EC661C;
    font-weight: 600;
}
.manage-nav-link:hover {
    background: rgba(105, 201, 194, 0.1);
    color: #69C9C2;
}
.manage-nav-link.active {
    background: rgba(105, 201, 194, 0.15);
    color: #69C9C2;
    font-weight: 600;
}

/* ── Image Uploader ── */
.img-uploader {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1.5px dashed #e5e7eb;
    border-radius: 1rem;
    background: #fafafa;
    transition: border-color 0.2s;
}
.img-uploader:hover { border-color: #EC661C; }
.img-uploader.dragover { border-color: #EC661C; background: #fff7f2; }

.img-uploader-preview {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img-uploader-preview .placeholder-icon {
    font-size: 1.5rem;
    color: #d1d5db;
}

.img-uploader-body { flex: 1; min-width: 0; }
.img-uploader-title { font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 0.25rem; }
.img-uploader-hint { font-size: 0.75rem; color: #9ca3af; margin-bottom: 0.5rem; }
.img-uploader-status { font-size: 0.75rem; margin-top: 0.375rem; min-height: 1rem; }
.img-uploader-status.uploading { color: #EC661C; }
.img-uploader-status.success { color: #16a34a; }
.img-uploader-status.error { color: #dc2626; }

/* ═══════════════════════════════════════════
   Editor.js — Plugin Styles
   ═══════════════════════════════════════════ */

/* --- Columns --- */
.ce-editorjsColumns_col {
    border-right: 1px solid #e5e7eb;
    padding: 0 12px;
    min-height: 80px;
}
.ce-editorjsColumns_col:last-child {
    border-right: none;
}

/* --- Alert --- */
.cdx-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.cdx-alert[data-type="primary"],
.cdx-alert.cdx-alert-primary {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}
.cdx-alert[data-type="secondary"],
.cdx-alert.cdx-alert-secondary {
    background: #f3f4f6;
    border-left: 4px solid #6b7280;
    color: #374151;
}
.cdx-alert[data-type="info"],
.cdx-alert.cdx-alert-info {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}
.cdx-alert[data-type="warning"],
.cdx-alert.cdx-alert-warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
.cdx-alert[data-type="danger"],
.cdx-alert.cdx-alert-danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
.cdx-alert[data-type="success"],
.cdx-alert.cdx-alert-success {
    background: #ecfdf5;
    border-left: 4px solid #22c55e;
    color: #166534;
}

/* --- Text Alignment --- */
.ce-tune-alignment--left  { text-align: left; }
.ce-tune-alignment--center { text-align: center; }
.ce-tune-alignment--right { text-align: right; }
.ce-tune-alignment--justify { text-align: justify; }

/* --- Text Color / Marker plugin (inline) --- */
[style*="color:"] .cdx-marker {
    background: inherit;
}
/* Ensure the inline toolbar allows popups to overflow */
.ce-inline-toolbar {
    overflow: visible !important;
    z-index: 10;
}
.ce-inline-toolbar .ce-inline-toolbar__buttons {
    overflow: visible !important;
}
.ce-inline-toolbar .ce-inline-toolbar__actions {
    overflow: visible !important;
}

/* ─ Custom color swatch on inline button ─ */
.dp-ed-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,.15);
    margin-left: 2px;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.15s;
    flex-shrink: 0;
}
.dp-ed-swatch:hover {
    transform: scale(1.3);
}

/* ─ Color picker popup (renderActions) ─ */
.dp-ed-color-popup {
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border: 1px solid #e5e7eb;
    max-width: none !important;
    width: auto !important;
}
.dp-ed-color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 200px;
}
.dp-ed-color-item {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
}
.dp-ed-color-item:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.dp-ed-color-item.active {
    border-color: #374151;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #374151;
}
.dp-ed-color-custom {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px dashed #d1d5db;
    padding: 0;
    cursor: pointer;
    background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

/* --- Checklist enhancements --- */
.cdx-checklist__item--checked .cdx-checklist__item-text {
    text-decoration: line-through;
    color: #9ca3af;
}

/* --- Attaches --- */
.cdx-attaches {
    border-radius: 8px;
}
.cdx-attaches__file-icon {
    border-radius: 6px;
}

/* --- Link Tool --- */
.link-tool {
    border-radius: 8px;
    overflow: hidden;
}

/* --- Editor container desert theme --- */
.codex-editor .ce-toolbar__plus,
.codex-editor .ce-toolbar__settings-btn {
    color: #EC661C;
}
.codex-editor .ce-toolbar__plus:hover,
.codex-editor .ce-toolbar__settings-btn:hover {
    background-color: #fef7f2;
}

/* --- RTL support for editor --- */
[dir="rtl"] .ce-block__content,
[dir="rtl"] .ce-paragraph,
[dir="rtl"] .cdx-list,
[dir="rtl"] .cdx-checklist,
[dir="rtl"] .cdx-quote,
[dir="rtl"] .cdx-alert {
    direction: rtl;
    text-align: right;
}
[dir="rtl"] .ce-toolbar {
    left: auto;
    right: -60px;
}
[dir="rtl"] .ce-toolbar__actions {
    left: auto;
    right: 0;
}

/* ══════════════════════════════════════════════
   Itinerary Timeline
   ══════════════════════════════════════════════ */

/* Timeline vertical line */
.tl-group { position: relative; padding-left: 28px; }
.tl-group::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 36px;
    bottom: 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(to bottom, var(--tl-color, #d1d5db), transparent);
}

/* Timeline node (icon circle on the line) */
.tl-node {
    position: absolute;
    left: -28px;
    top: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    z-index: 2;
    box-shadow: 0 0 0 3px #fff;
}

/* Timeline card */
.tl-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.tl-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: #d1d5db;
}

/* Resource chips */
.res-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

/* ── Itinerary icon buttons (day card actions) ───────────────────────────── */
/* Modern floating buttons: soft tinted background, no border, animated lift on hover */
.itinerary-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: none !important;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.itinerary-icon-btn:active { transform: translateY(0) scale(0.96); }
.itinerary-icon-btn.btn-edit       { background: #fff4ec !important; color: #EC661C !important; }
.itinerary-icon-btn.btn-duplicate  { background: #eff6ff !important; color: #3b82f6 !important; }
.itinerary-icon-btn.btn-delete     { background: #fef2f2 !important; color: #ef4444 !important; }
.itinerary-icon-btn:hover { transform: translateY(-2px); }
.itinerary-icon-btn.btn-edit:hover      { background: #EC661C !important; color: #fff !important; box-shadow: 0 6px 14px -4px rgba(236, 102, 28, 0.45); }
.itinerary-icon-btn.btn-duplicate:hover { background: #3b82f6 !important; color: #fff !important; box-shadow: 0 6px 14px -4px rgba(59, 130, 246, 0.45); }
.itinerary-icon-btn.btn-delete:hover    { background: #ef4444 !important; color: #fff !important; box-shadow: 0 6px 14px -4px rgba(239, 68, 68, 0.45); }

/* Wrapper for the 3 action buttons — no border, just spacing */
.itinerary-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Land primary star button — modern, with pulse on becoming primary */
.land-star-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #f9fafb !important;
    color: #d1d5db !important;
    border: 1.5px solid #e5e7eb !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.land-star-btn i { font-size: 0.95rem; transition: transform 0.25s ease; }
.land-star-btn:hover {
    background: #fffbeb !important;
    color: #f59e0b !important;
    border-color: #fcd34d !important;
    transform: scale(1.1) rotate(-8deg);
}
.land-star-btn:hover i { transform: scale(1.1); }
.land-star-btn.is-primary {
    background: var(--land-color, #EC661C) !important;
    color: #ffffff !important;
    border-color: var(--land-color, #EC661C) !important;
    box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--land-color, #EC661C) 60%, transparent),
                0 0 0 4px color-mix(in srgb, var(--land-color, #EC661C) 12%, transparent);
    transform: none;
    animation: star-pop 0.35s ease-out;
}
.land-star-btn.is-primary:hover {
    filter: brightness(1.08);
    transform: scale(1.06);
    box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--land-color, #EC661C) 70%, transparent),
                0 0 0 6px color-mix(in srgb, var(--land-color, #EC661C) 15%, transparent);
}
@keyframes star-pop {
    0%   { transform: scale(0.85); }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.day-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.day-nav-btn:hover {
    background: #EC661C;
    color: #ffffff;
    border-color: #EC661C;
    transform: scale(1.08);
}
.day-nav-btn.invisible { visibility: hidden; }

.res-chip:hover { filter: brightness(0.95); }
.res-chip .res-remove {
    margin-left: 2px;
    opacity: 0.5;
    cursor: pointer;
    font-size: 10px;
}
.res-chip .res-remove:hover { opacity: 1; }

/* Accommodation bookmark card */
.accom-card {
    background: linear-gradient(135deg, #eef2ff, #f0f9ff);
    border: 1px solid #c7d2fe;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

/* Group header */
.tl-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tl-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add item dropdown */
.add-dropdown {
    position: relative;
    display: inline-block;
}
.add-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px;
    z-index: 50;
    min-width: 180px;
}
.add-dropdown-menu.show { display: block; }
.add-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.1s;
    white-space: nowrap;
}
.add-dropdown-item:hover { background: #f3f4f6; }
.add-dropdown-item i { width: 18px; text-align: center; }

/* Badge pills */
.tl-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}
.tl-badge-included { background: #dcfce7; color: #166534; }
.tl-badge-optional { background: #fef3c7; color: #92400e; }
.tl-badge-excluded { background: #fee2e2; color: #991b1b; }

/* ═══════ Schedule Preview Drawer ═══════ */
.sp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
}
.sp-overlay.show { opacity: 1; pointer-events: auto; }

.sp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 720px;
    background: #fff;
    z-index: 61;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,0.35);
}
.sp-drawer.show { transform: translateX(0); }

.sp-header {
    position: relative;
    padding: 22px 24px 20px;
    color: #fff;
    background: linear-gradient(135deg, #EC661C 0%, #d14a0a 55%, #7c2d12 100%);
    overflow: hidden;
}
.sp-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.18) 0%, transparent 45%),
                      radial-gradient(circle at 15% 90%, rgba(255,255,255,0.12) 0%, transparent 40%);
    pointer-events: none;
}
.sp-header > * { position: relative; z-index: 1; }
.sp-header .sp-title {
    font-family: 'Audiowide', 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    margin: 0;
}
.sp-header .sp-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 4px;
}
.sp-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    z-index: 2;
}
.sp-close-btn:hover { background: rgba(255,255,255,0.32); }

.sp-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #fffaf6 0%, #f8fafc 260px);
}

.sp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.sp-empty i { font-size: 40px; margin-bottom: 12px; display: block; color: #cbd5e1; }

/* Schedule view toggle (Timeline / Map) */
.sp-view-btn { color: #475569; transition: background .15s ease, color .15s ease; }
.sp-view-btn.is-active { background: #ffffff; color: #EC661C; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* Timeline spine */
.sp-timeline {
    position: relative;
    padding-left: 38px;
}
.sp-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #EC661C 0%, #f59e0b 50%, #6366f1 100%);
    border-radius: 2px;
    opacity: 0.35;
}

.sp-day { position: relative; margin-bottom: 28px; }
.sp-day:last-child { margin-bottom: 0; }

.sp-day-marker {
    position: absolute;
    left: -38px;
    top: 2px;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #EC661C;
    color: #EC661C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(236, 102, 28, 0.25);
}

.sp-day-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.sp-day-head {
    padding: 14px 18px;
    background: linear-gradient(90deg, #fef3ec 0%, #fff 70%);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sp-day-head .sp-day-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0;
}
.sp-day-head .sp-day-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-land-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(236,102,28,0.1);
    color: #EC661C;
    border: 1px solid rgba(236,102,28,0.25);
}
.sp-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 9999px;
}
.sp-summary-chip i { font-size: 9px; color: #64748b; }

.sp-day-body { padding: 14px 18px 16px; }
.sp-day-desc {
    font-size: 12px;
    color: #64748b;
    font-style: italic;
    margin-bottom: 12px;
}

.sp-tl { position: relative; }
.sp-tl-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f1f5f9;
}
.sp-tl-item:last-child { border-bottom: 0; }

.sp-tl-time {
    flex: 0 0 64px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 12px;
    color: #334155;
    padding-top: 4px;
}
.sp-tl-time .sp-tl-time-sub { display: block; font-weight: 500; font-size: 10px; color: #94a3b8; margin-top: 2px; }
.sp-tl-time.sp-tl-time-empty { color: #cbd5e1; font-style: italic; font-weight: 500; }

.sp-tl-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.sp-tl-body { flex: 1 1 auto; min-width: 0; }
.sp-tl-title { font-weight: 600; color: #1f2937; font-size: 13px; line-height: 1.25; }
.sp-tl-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.sp-tl-sub i { font-size: 9px; margin-right: 3px; color: #94a3b8; }
.sp-tl-notes { font-size: 11px; color: #94a3b8; font-style: italic; margin-top: 4px; }
.sp-tl-badges { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }

/* Accommodation row inline in timeline */
.sp-tl-item.sp-accom {
    background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, rgba(99,102,241,0) 100%);
    border-radius: 10px;
    padding: 10px 12px;
    border-bottom: 1px dashed rgba(99,102,241,0.2);
}
.sp-tl-item.sp-accom .sp-tl-icon { background: #6366f1; }

/* Resources below each day */
.sp-resources {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e5e7eb;
}
.sp-resources-head {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sp-res-group { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sp-res-group:last-child { margin-bottom: 0; }
.sp-res-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid transparent;
}
.sp-res-chip i { font-size: 10px; }
.sp-res-empty { font-size: 11px; color: #cbd5e1; font-style: italic; }

/* Rest day */
.sp-rest-day {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-style: italic;
}
.sp-rest-day i { color: #cbd5e1; }

[dir="rtl"] .sp-drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .sp-drawer.show { transform: translateX(0); }
[dir="rtl"] .sp-close-btn { right: auto; left: 18px; }
[dir="rtl"] .sp-timeline { padding-left: 0; padding-right: 38px; }
[dir="rtl"] .sp-timeline::before { left: auto; right: 15px; }
[dir="rtl"] .sp-day-marker { left: auto; right: -38px; }

/* -- Modern Active/Inactive Toggle Switch (consistent across Manage area) -- */
.dp-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
    user-select: none;
    line-height: 1;
}
.dp-toggle:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.dp-toggle:focus-visible { outline: 2px solid #EC661C; outline-offset: 2px; }
.dp-toggle .dp-toggle-knob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15), 0 1px 1px rgba(0,0,0,0.06);
    transition: transform .25s ease, background-color .25s ease;
    flex-shrink: 0;
}
.dp-toggle .dp-toggle-knob i { font-size: 10px; color: #9ca3af; transition: color .25s ease; }
.dp-toggle .dp-toggle-text { white-space: nowrap; }

/* ON state - green */
.dp-toggle.is-on {
    background: #dcfce7;
    border-color: rgba(34,197,94,0.35);
    color: #166534;
    flex-direction: row-reverse;
    padding: 4px 4px 4px 10px;
}
.dp-toggle.is-on .dp-toggle-knob { background: #22c55e; }
.dp-toggle.is-on .dp-toggle-knob i { color: #ffffff; }
.dp-toggle.is-on:hover { background: #bbf7d0; }

/* OFF state - gray */
.dp-toggle.is-off { background: #f3f4f6; border-color: rgba(0,0,0,0.06); color: #6b7280; }
.dp-toggle.is-off:hover { background: #e5e7eb; }

[dir="rtl"] .dp-toggle.is-on { flex-direction: row; padding: 4px 10px 4px 4px; }
[dir="rtl"] .dp-toggle.is-off { flex-direction: row-reverse; padding: 4px 4px 4px 10px; }

/* ========================================================================
   IMAGE EDITOR (Cropper.js + draw overlay) — global modal
   ======================================================================== */
.dpie-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dpie-shell {
    background: #fff; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
    width: 100%; max-width: 1100px; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
}
.dpie-header {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    border-bottom: 1px solid var(--dp-dark-100, #e5e7eb);
}
.dpie-title { font-size: 15px; font-weight: 600; color: var(--dp-dark-800, #1f2937); display: flex; align-items: center; gap: 8px; margin: 0; }
.dpie-tabs { display: flex; gap: 6px; margin-left: auto; }
.dpie-tab {
    background: #f3f4f6; color: #4b5563; border: 1px solid transparent;
    border-radius: 9999px; padding: 6px 14px; font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: all .15s;
}
.dpie-tab:hover { background: #e5e7eb; }
.dpie-tab.is-active { background: #EC661C; color: #fff; }
.dpie-close {
    background: none; border: none; color: #6b7280; font-size: 18px; cursor: pointer;
    width: 36px; height: 36px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.dpie-close:hover { background: #f3f4f6; color: #1f2937; }

.dpie-body { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f9fafb; }
.dpie-pane { display: none; flex: 1; min-height: 0; flex-direction: column; }
.dpie-pane.is-active { display: flex; }

.dpie-toolbar {
    display: flex; align-items: center; gap: 14px; padding: 10px 16px;
    background: #fff; border-bottom: 1px solid var(--dp-dark-100, #e5e7eb); flex-wrap: wrap;
}
.dpie-toolbar-group { display: flex; align-items: center; gap: 6px; }
.dpie-toolbar-label { font-size: 12px; color: #6b7280; margin-right: 4px; }

.dpie-pill {
    background: #f3f4f6; color: #4b5563; border: 1px solid transparent;
    border-radius: 9999px; padding: 5px 12px; font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
}
.dpie-pill:hover { background: #e5e7eb; }
.dpie-pill.is-active { background: #EC661C; color: #fff; }

.dpie-icon-btn {
    background: #f3f4f6; color: #4b5563; border: 1px solid transparent;
    width: 34px; height: 34px; border-radius: 9999px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s;
}
.dpie-icon-btn:hover { background: #e5e7eb; color: #1f2937; }

.dpie-color {
    width: 34px; height: 34px; padding: 0; border: none; cursor: pointer;
    background: transparent;
}
.dpie-color::-webkit-color-swatch { border-radius: 9999px; border: 2px solid #e5e7eb; }
.dpie-color::-moz-color-swatch { border-radius: 9999px; border: 2px solid #e5e7eb; }
.dpie-range { width: 110px; accent-color: #EC661C; }

.dpie-canvas-wrap {
    flex: 1; min-height: 0; padding: 16px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: repeating-conic-gradient(#f3f4f6 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
}
.dpie-canvas-wrap img { max-width: 100%; max-height: 100%; display: block; }
.dpie-draw-wrap canvas {
    background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.25);
    cursor: crosshair; touch-action: none;
    max-width: 100%; max-height: 100%;
}

.dpie-footer {
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    padding: 12px 20px; border-top: 1px solid var(--dp-dark-100, #e5e7eb); background: #fff;
}

@media (max-width: 768px) {
    .dpie-shell { max-height: 100vh; border-radius: 0; }
    .dpie-toolbar { padding: 8px 10px; gap: 8px; }
    .dpie-canvas-wrap { max-height: calc(100vh - 220px); }
    .dpie-draw-wrap canvas { max-height: calc(100vh - 220px); }
}

/* === Tom Select - DesertPaths theme override ===
   Matches Tailwind utility look used across Manage:
   - Rounded inputs (lg by default, full when .ts-rounded-full is added)
   - Border #e5e7eb (dark-200), focus ring orange-400 (#EC661C / #f97316)
   - Pill chips for multi-select in orange-50/orange-600
   ================================================== */
.ts-wrapper { font-family: inherit; }

/* Tom Select copies the original <select>'s classes (Tailwind utilities like
   `border border-dark-200 rounded-full px-4 py-2 focus:ring-...`) onto the
   outer .ts-wrapper. That creates a phantom outer border in addition to the
   real one on .ts-control. Neutralize the wrapper completely. */
.ts-wrapper,
.ts-wrapper.single,
.ts-wrapper.multi {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    /* Cancel Tailwind focus:ring-* utilities that may have been copied over */
    --tw-ring-shadow: 0 0 transparent !important;
    --tw-ring-offset-shadow: 0 0 transparent !important;
}

/* Native <select> is hidden by Tom Select via .ts-hidden-accessible, but its
   Tailwind classes (border, padding, rounded, etc.) can still leak into layout.
   Force it visually invisible while preserving accessibility. */
.ts-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem; /* matches rounded-lg used by m-field */
    box-shadow: none !important;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
    min-height: 38px;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Kill default inset shadow / inner ring from Tom Select base CSS */
.ts-wrapper .ts-control,
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.multi.input-active .ts-control {
    box-shadow: none !important;
    background-image: none !important;
}

/* Pill-shaped variant (opt-in via data-ts-rounded="full") */
.ts-wrapper.ts-rounded-full .ts-control {
    border-radius: 9999px;
    padding-left: 1rem;
    padding-right: 2.25rem;
}

.ts-wrapper.focus .ts-control,
.ts-wrapper.single.focus .ts-control,
.ts-wrapper.multi.focus .ts-control {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, .25) !important;
    outline: none;
}

.ts-wrapper.disabled .ts-control {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.ts-wrapper .ts-control > input {
    font-size: 0.875rem;
    color: #374151;
}

.ts-wrapper .ts-control > input::placeholder,
.ts-wrapper.single .ts-control .placeholder,
.ts-wrapper.multi .ts-control .placeholder {
    color: #9ca3af;
    font-style: normal;
}

/* Dropdown panel */
.ts-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .15);
    margin-top: 4px;
    overflow: hidden;
    z-index: 9999; /* sit above modals */
    font-size: 0.875rem;
}

.ts-dropdown .ts-dropdown-content { padding: 4px; }

.ts-dropdown .option {
    border-radius: 0.5rem;
    color: #374151;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.ts-dropdown .option.active,
.ts-dropdown .option:hover {
    background: #fef3ec;
    color: #c2410c;
}

.ts-dropdown .option.selected {
    background: #fee7d4;
    color: #c2410c;
}

.ts-dropdown .no-results,
.ts-dropdown .optgroup-header {
    color: #9ca3af;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.ts-dropdown .optgroup-header {
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Search input inside dropdown (when plugin dropdown_input is used) */
.ts-dropdown .dropdown-input-wrap { padding: 6px; }

.ts-dropdown .dropdown-input {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    width: 100%;
}

.ts-dropdown .dropdown-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, .25);
    outline: none;
}

/* Multi-select chips */
.ts-wrapper.multi .ts-control > .item {
    background: #fef3ec;
    border: 1px solid rgba(249, 115, 22, .35);
    border-radius: 9999px;
    color: #c2410c;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.25rem 0.6rem;
    margin: 2px 4px 2px 0;
}

.ts-wrapper.multi .ts-control > .item.active {
    background: #fdd5b3;
    border-color: #f97316;
    color: #9a3412;
}

.ts-wrapper.multi .ts-control > .item .remove {
    border: none;
    color: inherit;
    margin-left: 4px;
    opacity: 0.6;
    padding: 0 4px;
    text-decoration: none;
}
.ts-wrapper.multi .ts-control > .item .remove:hover { opacity: 1; }

/* Caret (chevron) */
.ts-wrapper.single .ts-control::after,
.ts-wrapper.multi .ts-control::after {
    border: none !important;
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    color: #9ca3af;
    font-size: 0.6rem;
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform .15s ease;
    margin: 0 !important;
}

.ts-wrapper.dropdown-active.single .ts-control::after,
.ts-wrapper.dropdown-active.multi .ts-control::after {
    transform: translateY(-50%) rotate(180deg);
}

/* RTL */
[dir="rtl"] .ts-wrapper.single .ts-control,
[dir="rtl"] .ts-wrapper.multi .ts-control { padding: 0.4rem 0.75rem 0.4rem 2rem; }
[dir="rtl"] .ts-wrapper.single .ts-control::after,
[dir="rtl"] .ts-wrapper.multi .ts-control::after { right: auto; left: 0.85rem; }
[dir="rtl"] .ts-wrapper.multi .ts-control > .item { margin: 2px 0 2px 4px; }

/* Inside item modal (z-index higher) */
#itemModal .ts-dropdown,
#mapPickerModal .ts-dropdown,
.dpie-shell .ts-dropdown { z-index: 10050; }

/* ═══════════ Explore Our World Section ═══════════ */
.ew-shell {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.ew-mode-label {
    color: rgba(255,255,255,0.42);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 14px;
    text-align: center;
}

/* ── Theme Cards ── */
.ew-themes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.ew-theme {
    border: none;
    border-radius: 22px;
    padding: 28px 20px 22px;
    text-align: center;
    color: white;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}
.ew-theme:hover,
.ew-theme.active {
    transform: translateY(-5px);
    background: color-mix(in srgb, var(--c) 10%, rgba(255,255,255,0.04));
    box-shadow: 0 12px 40px color-mix(in srgb, var(--c) 25%, transparent),
                0 4px 16px rgba(0,0,0,0.3);
}
.ew-theme-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 15%, transparent);
    color: var(--c);
    font-size: 20px;
    transition: 0.3s;
}
.ew-theme.active .ew-theme-icon,
.ew-theme:hover .ew-theme-icon {
    background: color-mix(in srgb, var(--c) 25%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--c) 20%, transparent);
}
.ew-theme h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    font-family: var(--font-heading);
}
.ew-theme-count {
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ew-theme-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 15%, transparent);
    color: var(--c);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s;
    opacity: 0;
    transform: translateY(4px);
}
.ew-theme:hover .ew-theme-link,
.ew-theme.active .ew-theme-link {
    opacity: 1;
    transform: translateY(0);
}
.ew-theme-link:hover {
    background: color-mix(in srgb, var(--c) 25%, transparent);
}

/* ── Category Chips ── */
.ew-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.ew-cat {
    border: none;
    background: rgba(255,255,255,0.055);
    color: rgba(255,255,255,0.65);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.ew-cat:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}
.ew-cat.active {
    color: white;
    background: rgba(236,102,28,0.18);
}

/* ── Sub-tag Chips ── */
.ew-subtags {
    margin-bottom: 24px;
}
.ew-subtag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.ew-subtag {
    border: none;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ew-subtag:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.08);
}
.ew-subtag.active {
    color: white;
    background: rgba(236,102,28,0.15);
}

/* ── Show More Button ── */
.ew-show-more-wrap {
    text-align: center;
    margin-top: 24px;
}
.ew-show-more {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    padding: 12px 28px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ew-show-more:hover {
    background: rgba(236,102,28,0.15);
    border-color: rgba(236,102,28,0.4);
    color: white;
}

/* ── Active Filter Pills ── */
.ew-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
}
.ew-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(236,102,28,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}
.ew-filter-pill:hover {
    background: rgba(236,102,28,0.22);
}
.ew-filter-pill i {
    font-size: 10px;
    opacity: 0.5;
}
.ew-filter-pill:hover i {
    opacity: 1;
}

/* ── Results Head ── */
.ew-results-head {
    text-align: center;
    margin-bottom: 24px;
}
.ew-result-meta {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 800;
}
.ew-clear {
    border: 0;
    background: transparent;
    color: #e7c981;
    font-weight: 900;
    cursor: pointer;
    font-size: 13px;
}

/* ── Place Cards ── */
.ew-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.ew-place {
    min-height: 365px;
    border: none;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    background: #15130f;
    color: white;
    text-decoration: none;
    transition: 0.25s;
    display: block;
}
.ew-place:hover { transform: translateY(-6px); }
.ew-place.ew-hidden { display: none; }
.ew-place::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,0.96), rgba(0,0,0,0.35), rgba(0,0,0,0.1)),
        var(--img);
    background-size: cover;
    background-position: center;
    transition: 0.55s;
}
.ew-place:hover::before { transform: scale(1.06); }
.ew-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ew-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.38);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.ew-badge-land {
    color: var(--land);
    border-color: color-mix(in srgb, var(--land) 40%, transparent);
    background: color-mix(in srgb, var(--land) 18%, rgba(0,0,0,0.35));
}
.ew-place-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 22px;
}
.ew-place h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.05;
    font-family: var(--font-heading);
}
.ew-place p {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.55;
}
.ew-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ew-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.075);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.68);
    font-size: 11px;
    font-weight: 800;
}
.ew-link {
    font-size: 14px;
    font-weight: 900;
}
.ew-empty {
    display: none;
    text-align: center;
    color: rgba(255,255,255,0.48);
    padding: 40px;
}
.ew-empty.ew-show { display: block; }

/* ── Explore Our World — Responsive ── */
@media (max-width: 960px) {
    .ew-themes {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    .ew-theme {
        min-width: 200px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .ew-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ew-shell { padding: 0; }
    .ew-grid { grid-template-columns: 1fr; }
}

/* ═══════════ Journey Horizontal Slider ═══════════ */
.jy-slider-wrap {
    position: relative;
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 56px;
}
.jy-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0 16px;
}
.jy-slider::-webkit-scrollbar { display: none; }
.jy-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: white;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 14px;
    transition: 0.25s;
}
.jy-arrow:hover {
    background: rgba(236,102,28,0.25);
    border-color: rgba(236,102,28,0.5);
}
.jy-arrow-left { left: 8px; }
.jy-arrow-right { right: 8px; }

.jy-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
    border-radius: 22px;
    overflow: hidden;
    background: #15130f;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}
.jy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.12);
}
.jy-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.jy-card-img img { width: 100%; height: 100%; object-fit: cover; }
.jy-badge-diff {
    position: absolute;
    top: 14px;
    left: 14px;
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.jy-badge-dur {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.jy-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.jy-card-body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-family: var(--font-heading);
    line-height: 1.2;
}
.jy-card-body p {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jy-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jy-card-land {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.jy-card-price {
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .jy-slider-wrap { padding: 0 16px; }
    .jy-card { flex: 0 0 300px; }
    .jy-arrow { display: none; }
}

/* ═══════════ Navbar dropdown token ═══════════ */
.nav-dropdown {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-dropdown .nav-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}
.nav-dropdown .nav-dd-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.nav-dropdown .nav-dd-item.active {
    color: #EC661C;
    font-weight: 600;
}
.nav-dropdown .nav-dd-divider {
    border-top: 1px solid rgba(255,255,255,0.07);
    margin: 4px 0;
}

/* ═══════════ Trip Planner — Step-by-step Assistant ═══════════ */
.tp-shell {
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}
.tp-step {
    margin-bottom: 28px;
    transition: opacity 0.4s, transform 0.4s;
}
.tp-step.tp-locked {
    opacity: 0.25;
    pointer-events: none;
    transform: translateY(8px);
}
.tp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(236,102,28,0.18);
    color: #EC661C;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}
.tp-step-title {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}
.tp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tp-option {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.tp-option:hover {
    color: white;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}
.tp-option.active {
    color: white;
    background: rgba(236,102,28,0.18);
    border-color: rgba(236,102,28,0.55);
    box-shadow: 0 0 0 1px rgba(236,102,28,0.2);
}
.tp-option i {
    font-size: 16px;
    opacity: 0.7;
}
.tp-option.active i { opacity: 1; color: #EC661C; }

/* Results area */
.tp-results {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    transition: opacity 0.4s, transform 0.4s;
}
.tp-results.tp-locked {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: none;
}
.tp-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.tp-results-title {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

/* Custom trip CTA */
.tp-custom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    transition: opacity 0.4s;
}
.tp-custom.tp-locked { opacity: 0; max-height: 0; overflow: hidden; padding: 0; border: none; }
.tp-custom-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(236,102,28,0.12);
    border: 1px solid rgba(236,102,28,0.35);
    color: #EC661C;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.25s;
}
.tp-custom-cta:hover {
    background: rgba(236,102,28,0.22);
    transform: translateY(-2px);
}

/* Trip Planner responsive */
@media (max-width: 640px) {
    .tp-shell { padding: 18px; border-radius: 22px; }
    .tp-option { padding: 12px 16px; font-size: 13px; }
}

/* ═══════════ Legacy Explore (kept for other pages) ═══════════ */

/* ── Type & Tag Pills ── */
.explore-pill {
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.72);
    border-radius: 999px;
    padding: 11px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    white-space: nowrap;
}
.explore-pill:hover {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(249,115,22,0.55);
}
.explore-pill.active {
    color: #fff;
    background: linear-gradient(135deg, #EC661C, #fb923c);
    border-color: transparent;
    box-shadow: 0 10px 34px rgba(249,115,22,0.32);
}
.explore-pill.small {
    padding: 9px 13px;
    font-size: 13px;
}
.explore-pill.ghost {
    background: transparent;
}

/* Legacy .explore-filter (keep for show-more btn compatibility) */
.explore-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.explore-filter:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}
.explore-filter.active {
    color: #fff;
    background: #EC661C;
    border-color: #EC661C;
    box-shadow: 0 4px 20px rgba(236,102,28,0.3);
}

.explore-card {
    animation: exploreCardIn 0.4s ease both;
}

@keyframes exploreCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Carousel Editor (Manage) ── */
.dp-carousel-editor { padding: 8px 0; }
.dp-carousel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.dp-carousel-thumb {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    cursor: grab;
    transition: border-color 0.2s;
}
.dp-carousel-thumb:hover { border-color: #EC661C; }
.dp-carousel-thumb.drag-over { border-color: #3b82f6; border-style: dashed; }
.dp-carousel-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.dp-carousel-cap {
    width: 100%;
    border: none;
    border-top: 1px solid #e5e7eb;
    padding: 4px 8px;
    font-size: 11px;
    outline: none;
    background: #fff;
}
.dp-carousel-cap:focus { background: #fef7f2; }
.dp-carousel-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    display: none;
}
.dp-carousel-thumb:hover .dp-carousel-remove { display: block; }

/* ── Public Carousel (marquee-style, full-bleed) ── */
.cb-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* Full-bleed: span the full viewport width regardless of parent padding/max-width. */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
    padding: 1rem 0;
}
.cb-carousel-track {
    display: flex;
    gap: 16px;
    animation: cbMarquee var(--cb-speed, 25s) linear infinite;
    width: max-content;
}
.cb-carousel-track:hover { animation-play-state: paused; }
.cb-carousel-slide {
    flex-shrink: 0;
    position: relative;
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-origin: center center;
}
.cb-carousel-slide:hover {
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.55);
}
.cb-carousel-slide img {
    height: 260px;
    width: 380px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: filter 0.35s ease;
}
.cb-carousel-slide figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    border-radius: 0 0 12px 12px;
}
@keyframes cbMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Public Carousel — Lightbox on click ── */
.cb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    cursor: zoom-out;
    animation: cbFadeIn 0.2s ease;
}
.cb-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.cb-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cb-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
@keyframes cbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Public Image Alignment ── */
.cb-img-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 45%;
}
.cb-img-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 45%;
}
.cb-img-center {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
}
.cb-img-left img,
.cb-img-right img,
.cb-img-center img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}
.content-blocks::after {
    content: '';
    display: table;
    clear: both;
}

/* ── Trip Planner filter buttons ── */
.tp-filter-btn {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.tp-filter-btn:hover {
    background: rgba(236,102,28,0.15);
    color: #fff;
    border-color: rgba(236,102,28,0.4);
}
.tp-filter-btn.active {
    background: #EC661C;
    color: #fff;
    border-color: #EC661C;
}

/* ── Explore Grid + Faceted Filters ── */

/* Full-width wrapper that breaks out of max-w-7xl */
.explore-grid-wrap {
    width: 100%;
    padding: 2rem 1.5rem 0;
    max-width: 1600px;
    margin: 0 auto;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.explore-grid .explore-card {
    position: relative;
}
.explore-card-hidden {
    display: none;
}

/* ── Modern Card Design ── */
.explore-card-inner {
    position: relative;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.explore-card:hover .explore-card-inner {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--card-color, #EC661C) 50%, transparent);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px color-mix(in srgb, var(--card-color, #EC661C) 15%, transparent);
}

.explore-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(0.9) brightness(0.75);
}
.explore-card:hover .explore-card-img {
    transform: scale(1.08);
    filter: saturate(1.05) brightness(0.85);
}

.explore-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.15) 30%,
        rgba(0,0,0,0.85) 75%,
        rgba(0,0,0,0.95) 100%
    );
    z-index: 1;
}

.explore-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    background: linear-gradient(0deg,
        color-mix(in srgb, var(--card-color, #EC661C) 25%, transparent) 0%,
        transparent 50%
    );
}
.explore-card:hover .explore-card-glow { opacity: 1; }

/* Left accent bar */
.explore-card-accent {
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--card-color, #EC661C);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0.3);
    transition: all 0.4s ease;
    z-index: 5;
}
.explore-card:hover .explore-card-accent {
    opacity: 1;
    transform: scaleY(1);
}

/* Badge */
.explore-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--card-color, #EC661C);
    background: color-mix(in srgb, var(--card-color, #EC661C) 12%, rgba(0,0,0,0.5));
    border: 1px solid color-mix(in srgb, var(--card-color, #EC661C) 30%, transparent);
    backdrop-filter: blur(12px);
}

/* Body */
.explore-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 10;
}
.explore-card-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}
.explore-card-title {
    font-family: var(--font-heading, 'Audiowide', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    transition: transform 0.3s ease;
    line-height: 1.3;
}
.explore-card:hover .explore-card-title {
    transform: translateX(4px);
}
.explore-card-sub {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 6px;
}
.explore-card-desc {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.explore-card-cta {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.explore-card-cta i { font-size: 10px; }
.explore-card:hover .explore-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── Category Strip (premium cards with color accent glow) ── */
.explore-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.explore-cat-card {
    border: 1px solid rgba(255,255,255,0.105);
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
    border-radius: 22px;
    padding: 16px;
    cursor: pointer;
    min-height: 100px;
    text-align: left;
    transition: all 0.28s ease;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.explore-cat-card::before {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -48px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--cat-color, #EC661C);
    opacity: 0.12;
    transition: all 0.28s ease;
}
.explore-cat-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--cat-color, #EC661C) 60%, transparent);
}
.explore-cat-card.active {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045));
    border-color: color-mix(in srgb, var(--cat-color, #EC661C) 60%, transparent);
}
.explore-cat-card.active::before {
    opacity: 0.26;
    transform: scale(1.15);
}

.explore-cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--cat-color, #EC661C) 18%, transparent);
    color: var(--cat-color, #EC661C);
    margin-bottom: 12px;
    font-size: 15px;
}
.explore-cat-card.active .explore-cat-icon {
    background: color-mix(in srgb, var(--cat-color, #EC661C) 28%, transparent);
}
.explore-cat-name {
    font-weight: 850;
    font-size: 14px;
    margin-bottom: 4px;
}
.explore-cat-count {
    color: rgba(255,255,255,0.32);
    font-size: 12px;
}

/* ── Tag Panel (dark inset with close) ── */
.explore-tag-panel {
    border: 1px solid rgba(255,255,255,0.105);
    background: rgba(0,0,0,0.24);
    border-radius: 26px;
    padding: 16px 20px;
    margin-bottom: 18px;
}
.explore-tag-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-weight: 850;
    color: rgba(255,255,255,0.82);
}
.explore-tag-panel-hint {
    color: rgba(255,255,255,0.58);
    font-weight: 600;
    font-size: 13px;
}
.explore-tag-panel-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}
.explore-tag-panel-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ── Active Filters Bar ── */
.explore-active-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.explore-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    color: #fff;
    background: rgba(249,115,22,0.14);
    border: 1px solid rgba(249,115,22,0.36);
}
.explore-active-x {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 11px;
}
.explore-active-x:hover { opacity: 1; }
.explore-clear-all {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 13px;
}
.explore-clear-all:hover { color: #EC661C; border-color: rgba(236,102,28,0.4); }

/* ── Results Meta ── */
.explore-results-meta {
    color: rgba(255,255,255,0.58);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.explore-results-meta strong { color: #fff; }

/* ── Popular Filters Row ── */
.explore-popular {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

/* ── Responsive ── */
@media (max-width: 1280px) {
    .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .explore-card-inner { height: 380px; }
}
@media (max-width: 1024px) {
    .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .explore-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .explore-card-inner { height: 360px; }
}
@media (max-width: 768px) {
    .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .explore-shell { padding: 14px; border-radius: 24px; }
    .explore-grid-wrap { padding: 1.5rem 1rem 0; }
    .explore-card-inner { height: 340px; }
    .explore-card-body { padding: 18px; }
    .explore-card-title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .explore-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .explore-categories { grid-template-columns: 1fr 1fr; }
    .explore-card-inner { height: 300px; }
    .explore-card-body { padding: 14px; }
    .explore-card-title { font-size: 1rem; }
    .explore-card-desc { display: none; }
    .explore-grid-wrap { padding: 1rem 0.75rem 0; }
}

/* ═══════════ Global BYP / shared button variants ═══════════ */
/* Primary solid orange — use for main CTAs (e.g. "Build new path", "Add new path") */
.byp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #EC661C;
    border: 1px solid rgba(236,102,28,0.6);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 18px rgba(236,102,28,0.3);
}
.byp-btn:hover {
    background: #d45818;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(236,102,28,0.4);
    color: #fff;
}
.byp-btn:disabled,
.byp-btn[disabled] {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.3);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Outline orange — same as tp-custom-cta (e.g. "Contact us for a custom trip") */
.byp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(236,102,28,0.12);
    border: 1px solid rgba(236,102,28,0.35);
    color: #EC661C;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.byp-btn-outline:hover {
    background: rgba(236,102,28,0.22);
    transform: translateY(-2px);
    color: #EC661C;
}
.byp-btn-outline:disabled,
.byp-btn-outline[disabled] {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.25);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ── Public listing pages: search + filter chips (Journeys, Experiences, Attractions, Lands, Themes) ── */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-chip:hover {
    background: rgba(236,102,28,0.12);
    color: #fff;
    border-color: rgba(236,102,28,0.3);
}
.filter-chip.active {
    background: rgba(236,102,28,0.9);
    color: #fff;
    border-color: #EC661C;
}

/* ── Public listing pages: filter trigger + dropdown panel (visitsaudi.com-style) ── */
.filter-trigger {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.filter-trigger:hover { border-color: rgba(236,102,28,0.4); color: #fff; }
.filter-trigger.open { background: rgba(236,102,28,0.9); border-color: #EC661C; color: #fff; }
.filter-trigger.has-value { border-color: #EC661C; color: #EC661C; }
.filter-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    margin-top: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
}

/* ── Public dark cards: no outline, depth from a soft shadow (Cornel, 15 Sep 2026) ──
   The dark public pages drew every card with a thin white border (border-white/5 or /10), which read
   as a hard outline on the black ground. Cards now sit on a shadow instead. Scoped to the public
   layout (body.bg-dark-900 — the admin layout has a light body) and to block containers only:
   outline buttons, form fields and border-t/border-b divider lines keep their borders. */
body.bg-dark-900 :is(div, section, article, aside, form, li, details, nav).border:is([class*="bg-dark-"], [class*="bg-white/"], [class*="bg-black/"]) {
    border-color: transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .75);
}
/* Tiles inside a card (Total / Paid / Due …) — a lighter lift so they don't float too far. */
body.bg-dark-900 :is([class*="bg-dark-8"], [class*="bg-dark-9"]) :is(div, li).border:is([class*="bg-dark-"], [class*="bg-white/"]) {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 16px -8px rgba(0, 0, 0, .6);
}

/* ── Buttons keep their Tailwind background (15 Sep 2026) ──
   flowbite.min.css ships a reset — `button,[type=submit]… { background-color: transparent }` — outside
   any cascade layer, and in Tailwind v4 every utility (bg-orange-400 …) lives in @layer utilities, so
   Flowbite's reset always won: a <button> with a bg-* class rendered with no background at all (e.g.
   "Pay now" at checkout). revert-layer drops Flowbite's unlayered value and lets the layered Tailwind
   utility apply. Only buttons that actually carry a bg-* class are touched. */
button:where([class*="bg-"]),
[type="button"]:where([class*="bg-"]),
[type="submit"]:where([class*="bg-"]),
[type="reset"]:where([class*="bg-"]) {
    background-color: revert-layer;
    background-image: revert-layer;
}
