/* Tour Search Standalone Styles */

.ts-pl-results {
    padding-left: 0;
}

[x-cloak] { display: none !important; }

/* Material Symbols size inside tour-search (matches Google Fonts default) */
.tour-search-container .material-symbols-outlined {
    font-size: 24px;
}

/* Placeholders and gray text - font weight 600 */
.tour-search-container ::placeholder {
    font-weight: 600;
}
.tour-search-container input::placeholder,
.tour-search-container textarea::placeholder {
    font-weight: 600;
}
/* Gray placeholder text in dropdowns and labels */
.ts-placeholder {
    color: #9CA3AF;
    font-weight: 600;
}
/* All dropdown button text should be 600 weight */
.ts-dropdown .ts-input span {
    font-weight: 600;
}

/* Scope all tour search styles */
/* Override parent container max-width when it contains tour-search */
.container:has(.tour-search-container) {
    max-width: 100% !important;
    margin: 0;
}

/* Gray background fills the full content area */
#main:has(.tour-search-container) { background-color: #E5E7EB !important; }

.tour-search-container {
    /* Single fluid base: every text/control token derives from this via calc(var(--ts-fs)*N),
       so the whole UI scales proportionally — ~13px on mobile up to ~18px on 24"+ screens. */
    --ts-fs: clamp(13px, 0.45vw + 9.5px, 18px);
    --ts-h: calc(var(--ts-fs) * 2.8);  /* uniform control height for all inputs (~48px desktop, per design) */
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    font-size: var(--ts-fs);
    line-height: 1.45;
    color: #1E3054;
    padding: calc(var(--ts-fs) * 1.3);
    max-width: 2400px;
    margin-inline: auto;
    width: 100%;
}

/* Page title - Tours Search heading */
.ts-page-title {
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    font-size: calc(var(--ts-fs) * 1.6);
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1E3054;
    margin: 0 0 0.75rem 0;
}

/* Smaller padding on mobile */
@media (max-width: 768px) {
    .tour-search-container {
        padding: 1rem;
        overflow-x: hidden;
    }

    /* iOS zooms the page only when a real text field with font-size < 16px gets focus.
       Apply the 16px floor to actual <input> elements ONLY — dropdown trigger buttons
       also use .ts-input but don't cause zoom, and forcing 16px on them makes their
       text look oversized and "non-adapting" on a narrow window. */
    .tour-search-container input.ts-input,
    .tour-search-container .ts-region-search input,
    .tour-search-container .ts-hotel-search input,
    .tour-search-container .ts-price-value {
        font-size: 16px;
    }

    /* Reduce card padding from 24px to 16px */
    .ts-card {
        padding: 1rem;
    }

    /* Remove padding on absolute-positioned card content since card already has padding */
    .ts-grid > .ts-card > .ts-absolute.ts-inset-0,
    .ts-grid > .ts-card.ts-relative > .ts-absolute.ts-inset-0 {
        padding: 0 !important;
    }

    /* Stack dates row vertically on mobile */
    .ts-dates-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Stack price row vertically on mobile */
    .ts-price-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Custom scrollbar */
.tour-search-container .custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.tour-search-container .custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
.tour-search-container .custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.tour-search-container .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Custom checkbox styling */
.tour-search-container input[type="checkbox"],
.ts-tree-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    border: 1px solid #CCD0D8;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    background: transparent;
}
.tour-search-container input[type="checkbox"]:checked,
.ts-tree-checkbox:checked {
    background-color: #00A16B;
    border-color: #00A16B;
    border-radius: 4px;
}
.tour-search-container input[type="checkbox"]:checked::after,
.ts-tree-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #E5E7EB;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.tour-search-container input[type="checkbox"]:indeterminate,
.ts-tree-checkbox:indeterminate {
    background-color: #00A16B;
    border-color: #00A16B;
}
.tour-search-container input[type="checkbox"]:indeterminate::after,
.ts-tree-checkbox:indeterminate::after {
    content: '';
    position: absolute;
    background: #E5E7EB;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Card styling */
.ts-card {
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: calc(var(--ts-fs) * 1.3);
}

/* Input styling */
.ts-input {
    width: 100%;
    background-color: #E5E7EB;
    height: var(--ts-h);
    padding: 0 calc(var(--ts-fs) * 0.85);
    border-radius: 0.75rem;
    border: none;
    outline: none;
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    appearance: none;
    cursor: pointer;
}
.ts-input:focus {
    outline: none;
    box-shadow: none;
}

/* Feedback: input + placeholder text must match the admin sidebar text size
   (14px, Unfold text-sm). The fluid calc(var(--ts-fs)*0.85) rendered smaller. */
.tour-search-container .ts-input,
.tour-search-container .ts-input-value,
.tour-search-container .ts-input-label,
.tour-search-container input,
.tour-search-container select {
    font-size: 0.875rem;
}
.tour-search-container input::placeholder,
.tour-search-container ::placeholder {
    font-size: 0.875rem;
}

/* Input with label inside */
.ts-input-with-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ts-input-label {
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #64748B;
}
.ts-input-value {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: #1E3054;
}

/* Chip styling */
.ts-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: calc(var(--ts-fs) * 0.85);
    color: #475569;
    transition: all 0.2s;
}
.ts-chip:hover {
    background: #e2e8f0;
}
.ts-chip:has(input:checked) {
    background: #2E4A7A;
    border-color: #2E4A7A;
    color: white;
}
.ts-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Active hotel filter chip */
.ts-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: #2E4A7A;
    color: white;
    font-size: calc(var(--ts-fs) * 0.92);
    font-weight: 600;
    width: fit-content;
}
.ts-filter-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.65rem;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}
.ts-filter-chip button:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Removable selection chips shown inside dropdown triggers */
.ts-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 10px;
    border-radius: 9999px;
    background: #2E4A7A;
    color: white;
    font-size: calc(var(--ts-fs) * 0.85);
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}
.ts-tag-chip-remove {
    background: none;
    border: none;
    padding: 0 0 0 2px;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.ts-tag-chip-remove:hover {
    color: white;
}
/* Trigger button that wraps chips instead of fixed height */
.ts-chip-trigger {
    height: auto !important;
    min-height: var(--ts-h);
    padding: 0.3rem 0.6rem !important;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 5px;
    align-items: center;
}

/* Button styling */
.ts-btn-primary {
    position: relative;
    width: 100%;
    height: calc(var(--ts-fs) * 2.9);
    background-color: #1E3054;
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-btn-primary:hover {
    background-color: #152238;
}
.ts-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ts-btn-primary .ts-spinner {
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    margin: auto 0;
}

/* Grid layout */
.ts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--ts-fs) * 1.15);
}
@media (min-width: 1111px) {
    .ts-grid {
        /* Ratio based on design: 408:408:691 (col1:col2:col3) */
        grid-template-columns: 408fr 408fr 691fr;
    }
}

/* Tablet / small laptop: 2 columns — Destinations | Dates+Tourists on row 1,
   Hotels full-width on row 2. The absolute->flow flip is handled by the
   max-width:1110px block below. */
@media (min-width: 769px) and (max-width: 1110px) {
    .ts-grid {
        grid-template-columns: 1fr 1fr;
    }
    /* Hotels spans the full row. Use :last-child, NOT nth-child(3): two
       display:none <script> elements sit between col2 and col3 as direct grid children. */
    .ts-grid > :last-child {
        grid-column: 1 / -1;
    }
}

/* Fix for Destinations and Hotels cards in single-column mode */
@media (max-width: 1110px) {
    /* Switch from absolute to normal flow positioning */
    .ts-grid > .ts-card.ts-relative > .ts-absolute.ts-inset-0,
    .ts-grid > .ts-card > .ts-absolute.ts-inset-0 {
        position: relative !important;
        inset: auto !important;
    }

    /* Constrain the scrollable lists inside widgets */
    .ts-tree-list {
        max-height: 150px;
        overflow-y: auto;
    }

    .ts-hotel-list,
    .ts-selected-list {
        max-height: 120px;
        overflow-y: auto;
    }

    /* Stack grids in single column */
    .ts-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Dedicated class for 3-column filter rows - responsive */
.ts-filter-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 1110px) {
    .ts-filter-row-3 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Responsive inner rows - Dates row with 2 columns */
.ts-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

/* Price row with 2 columns */
.ts-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

/* Price row now stacks at 768px via the main mobile media query above */

/* Custom date picker */
.ts-date-picker {
    position: relative;
}
.ts-date-picker .ts-input span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-date-hidden {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Days counter component */
.ts-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    background: #E5E7EB;
    border-radius: 0.75rem;
    padding: 0 0.1875rem;
    height: var(--ts-h);
    max-width: 54px;
}
.ts-counter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1E3054;
    padding: 0;
}
.ts-counter-btn:hover {
    opacity: 0.7;
}
.ts-counter-btn .material-symbols-outlined {
    font-size: 1rem;
}
.ts-counter-value {
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    min-width: 0.75rem;
    text-align: center;
}

/* Price input component */
.ts-price-input {
    display: flex;
    align-items: center;
    background: #E5E7EB;
    border-radius: 0.75rem;
    padding: 0 0.75rem;
    height: var(--ts-h);
    gap: 0.375rem;
}
.ts-price-label {
    font-size: calc(var(--ts-fs) * 0.85);
    color: #64748B;
    font-weight: 600;
}
.ts-price-value {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    text-align: center;
    width: 100%;
    -moz-appearance: textfield;
}
.ts-price-value::-webkit-outer-spin-button,
.ts-price-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ts-price-currency {
    font-size: calc(var(--ts-fs) * 0.85);
    color: #64748B;
    font-weight: 600;
}

/* Room modal */
.ts-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 2rem;
    overflow-y: auto;
}

/* Mobile: smaller modal padding and stacked room layout */
@media (max-width: 768px) {
    .ts-modal-overlay {
        padding: 1rem;
    }

    .ts-modal {
        padding: 1rem;
    }

    /* Stack room items vertically */
    .ts-room-item {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        position: relative;
    }

    /* Room label row - use flex to put remove button on right */
    .ts-room-number {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        width: 100%;
    }

    /* Position remove button absolutely in label row */
    .ts-room-item .ts-room-remove {
        position: absolute;
        top: 0;
        right: 0;
    }

    /* Full width inputs stacked */
    .ts-room-inputs {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .ts-room-inputs > * {
        width: 100% !important;
        flex: none !important;
    }
}
.ts-modal {
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: 1.125rem;
    width: 100%;
    max-width: 583px;
    overflow: visible;
}
.ts-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.125rem;
}
.ts-modal-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1E3054;
}
.ts-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 0.25rem;
}
.ts-modal-close:hover {
    color: #1E3054;
}

/* Room item */
.ts-room-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.ts-room-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E3054;
    min-width: 60px;
}
.ts-room-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}
.ts-room-remove {
    background: #EF4444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    width: 16px;
    height: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-room-remove:hover {
    background: #DC2626;
}
.ts-room-remove .material-symbols-outlined {
    font-size: 12px;
    font-weight: 700;
}

/* Add room button */
.ts-add-room-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: #00BB7D;
    font-weight: 600;
    font-size: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    margin: 0.75rem auto 0;
    padding: 0.5625rem 1.125rem;
}
.ts-add-room-btn:hover {
    color: #009966;
}

/* Room summary button */
.ts-room-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Title with button */
.ts-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.ts-title-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1E3054;
    background: none;
    border: none;
    cursor: pointer;
}
.ts-title-btn:hover {
    color: #00BB7D;
}

/* Children ages - combined container */
.ts-ages-container {
    display: flex;
    align-items: center;
    gap: 0.5625rem;
    background: #E5E7EB;
    border-radius: 0.75rem;
    padding: 0 0.75rem;
    height: var(--ts-h);
    margin-top: 0.5625rem;
}
.ts-ages-label {
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
}
.ts-ages-dropdowns {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ts-age-dropdown {
    position: relative;
}
.ts-age-btn {
    display: flex;
    align-items: center;
    gap: 0.09375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    padding: 0.1875rem;
}
.ts-age-btn:hover {
    opacity: 0.7;
}

/* Modal select styling */
.ts-modal-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.65rem;
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
    appearance: none;
    text-align: center;
    width: 1.5rem;
}
.ts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Responsive ts-grid-2 - stack on narrow screens */
@media (max-width: 600px) {
    .ts-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Dropdown styling */
.ts-dropdown {
    position: relative;
}
.ts-dropdown-clear {
    transition: color 0.15s;
}
.ts-dropdown-clear:hover {
    color: #1E3054;
}
.ts-dropdown-menu input.ts-input {
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.ts-dropdown-menu input.ts-input:focus {
    border-color: #1E3054;
    box-shadow: 0 0 0 3px rgba(30, 48, 84, 0.12);
}
.ts-dropdown-item--active {
    background: #f1f5f9;
}
.ts-dest-trigger.ts-dest-active,
.ts-dest-trigger:focus {
    box-shadow: 0 0 0 2px #1E3054;
    outline: none;
}
.ts-desc-wrap {
    position: relative;
}
.ts-more-link {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 2.5rem;
    background: linear-gradient(to right, rgba(249, 250, 251, 0), #f9fafb 45%);
    color: #64748B;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    border: none;
}
.ts-more-link:hover {
    opacity: 0.75;
}
.ts-dropdown-menu {
    position: absolute;
    width: 100%;
    margin-top: 0.1875rem;
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid #CBD5E1;
    box-shadow: 0 32px 64px -12px rgba(15, 23, 42, 0.45), 0 12px 24px rgba(15, 23, 42, 0.18), 0 0 0 4px rgba(30, 48, 84, 0.06);
    z-index: 1100;
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
}
/* Dropdown opens upward for bottom cards */
.ts-dropdown-menu.open-up {
    bottom: 100%;
    top: auto;
    margin-top: 0;
    margin-bottom: 0.25rem;
}
/* Allow overflow for cards with upward dropdowns */
.ts-card:has(.open-up) {
    overflow: visible !important;
}
.ts-space-y-4:has(.open-up) {
    overflow: visible !important;
}
/* Allow overflow when any dropdown menu is open (x-show toggles inline display:none). */
.ts-card:has(.ts-dropdown-menu:not([style*="display: none"])),
.ts-card .ts-absolute.ts-inset-0:has(.ts-dropdown-menu:not([style*="display: none"])),
.ts-space-y-4:has(.ts-dropdown-menu:not([style*="display: none"])) {
    overflow: visible !important;
}
/* Allow results list to overflow when the per-room price breakdown popup is open. */
.ts-results-list:has(.ts-price-breakdown-popup:not([style*="display: none"])) {
    overflow: visible !important;
}
/* Additional-filters floating popup — wider/taller than its trigger and lifted off the form */
.ts-filter-popup {
    position: absolute;
    bottom: 100%;
    left: -64px;
    right: -64px;
    margin-bottom: 0.6rem;
    z-index: 1100;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 1.1rem;
    box-shadow: 0 32px 64px -14px rgba(15, 23, 42, 0.42), 0 10px 24px rgba(15, 23, 42, 0.16);
    padding: calc(var(--ts-fs) * 1.6) calc(var(--ts-fs) * 1.7);
    max-height: none;
}
/* Tablet / small laptop: columns are narrower — spill less so it never runs off-screen */
@media (min-width: 769px) and (max-width: 1110px) {
    .ts-filter-popup {
        left: -24px;
        right: -24px;
    }
}
/* Mobile: align to the trigger width with a lighter shadow */
@media (max-width: 768px) {
    .ts-filter-popup {
        left: 0;
        right: 0;
        padding: calc(var(--ts-fs) * 1.25);
        box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.35), 0 6px 14px rgba(15, 23, 42, 0.14);
    }
}

.ts-dropdown-item {
    padding: 0.46875rem 0.75rem;
    cursor: pointer;
    font-size: calc(var(--ts-fs) * 0.8);
    color: #1E3054;
}
.ts-dropdown-item:hover {
    background: #f1f5f9;
}
.ts-dropdown-item.selected {
}
.ts-select-all-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    font-weight: 600;
}
.ts-dropdown-group-header {
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: calc(var(--ts-fs) * 0.72);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1E3054;
}
.ts-dropdown-facility-icon {
    width: 1.125rem;
    height: 1.125rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* Search-list dropdowns (Направления): set apart the search header and delimit each option row.
   Scoped to menus that hold a search input so the Отели checkbox filters / number pickers stay untouched. */
.ts-dropdown-menu > div:has(> input.ts-input) {
    border-bottom: 1px solid #E2E8F0;
    background: #F8FAFC;
}
.ts-dropdown-menu:has(> div > input.ts-input) .ts-dropdown-item {
    border-bottom: 1px solid #EEF2F7;
}
.ts-dropdown-menu:has(> div > input.ts-input) .ts-dropdown-item:last-child {
    border-bottom: none;
}

/* Labels */
.ts-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #64748B;
    margin-bottom: 0.375rem;
}
.ts-title {
    font-size: calc(var(--ts-fs) * 0.95);
    font-weight: 700;
    color: #1E3054;
    margin-bottom: 0.375rem;
}

/* Spacing utilities */
.ts-space-y > * + * { margin-top: 0.75rem; }
.ts-space-y-4 > * + * { margin-top: 1rem; }
.ts-flex-wrap { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ts-mt-4 { margin-top: 1rem; }
.ts-pt-3 { padding-top: 0.75rem; }
.ts-border-t { border-top: 1px solid #E5E7EB; }

/* Region search widget - unified container */
.ts-region-widget {
    background: #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ts-region-search {
    display: flex;
    align-items: center;
    height: var(--ts-h);
    padding: 0 0.75rem;
    border-bottom: 1px solid #d1d5db;
}
.ts-region-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: calc(var(--ts-fs) * 0.85);
    color: #1E3054;
}
.ts-region-search input::placeholder {
    color: #9CA3AF;
    font-weight: 600;
}
.ts-region-search .search-icon {
    color: #9CA3AF;
    font-size: 1.25rem;
}

/* Tree list */
.ts-tree-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}
.ts-tree-node {
    display: flex;
    flex-direction: column;
}
.ts-tree-row {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.ts-tree-row:hover {
    opacity: 0.85;
}
.ts-tree-row-leaf {
    cursor: pointer;
}
.ts-tree-children {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 22px;
}

/* Tree chevron — collapse/expand state indicator */
.ts-tree-chevron {
    font-size: 18px;
    line-height: 1;
    color: #9CA3AF;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

/* Tree toggle — green filled rounded square with light-gray +/− */
.ts-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    background: #00A16B;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}
.ts-tree-toggle:hover {
    background: #008b5c;
}
.ts-tree-toggle::before {
    content: '';
    position: absolute;
    background: #E5E7EB;
    width: 10px;
    height: 2px;
    border-radius: 1px;
}
.ts-tree-toggle.plus::after {
    content: '';
    position: absolute;
    background: #E5E7EB;
    width: 2px;
    height: 10px;
    border-radius: 1px;
}

/* Tree checkbox — indeterminate (dash) state */
.ts-tree-checkbox:indeterminate {
    background-color: #00A16B;
    border-color: #00A16B;
    border-radius: 4px;
}
.ts-tree-checkbox:indeterminate::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    background: #E5E7EB;
    border-radius: 1px;
}

/* Label sizes by level */
.ts-tree-label {
    font-size: calc(var(--ts-fs) * 0.78);
    color: #1E3054;
    flex: 1;
}
.ts-tree-label-parent {
    font-weight: 400;
    font-size: calc(var(--ts-fs) * 0.84);
}
.ts-tree-label-root {
    font-weight: 700;
    font-size: calc(var(--ts-fs) * 0.95);
    color: #1E3054;
}

/* Hotel selector - two columns side by side */
.ts-hotel-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
    min-height: 0;
}
@media (max-width: 768px) {
    .ts-hotel-selector-grid {
        grid-template-columns: 1fr;
    }
}

/* Hotel search widget - matches region widget style */
.ts-hotel-widget {
    background: #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ts-hotel-search {
    display: flex;
    align-items: center;
    height: var(--ts-h);
    padding: 0 0.75rem;
    border-bottom: 1px solid #d1d5db;
}
.ts-hotel-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: calc(var(--ts-fs) * 0.85);
    color: #1E3054;
}
.ts-hotel-search input::placeholder {
    color: #9CA3AF;
    font-weight: 600;
}
.ts-hotel-search .search-icon {
    color: #9CA3AF;
    font-size: 1.25rem;
}
.ts-hotel-list {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}
.ts-hotel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.ts-hotel-item:hover {
    opacity: 0.8;
}
.ts-hotel-name {
    flex: 1;
    font-size: calc(var(--ts-fs) * 0.66);
    text-transform: uppercase;
    color: #1E3054;
}

/* Selected hotels widget - same style as search */
.ts-selected-hotels {
    background: #E5E7EB;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.ts-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--ts-h);
    padding: 0 0.375rem;
    border-bottom: 1px solid #d1d5db;
}
.ts-selected-header .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #F9FAFB;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    color: #9CA3AF;
}
.ts-selected-header .copy-btn:hover {
    color: #1E3054;
}
.ts-selected-header .copy-btn .material-symbols-outlined {
    font-size: 1.25rem;
}
.ts-selected-header .clear-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #64748B;
    background: #F9FAFB;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    height: 30px;
}
.ts-selected-header .clear-btn:hover {
    color: #1E3054;
}
.ts-selected-header .clear-btn .material-symbols-outlined {
    font-size: 1.125rem;
}
.ts-selected-list {
    flex: 1;
    overflow-y: auto;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}
.ts-selected-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.ts-selected-item:hover {
    opacity: 0.8;
}
.ts-selected-empty {
    text-align: center;
    color: #64748B;
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
}

/* Spin animation for loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Tour Search Results Section === */

.ts-results-section {
    margin-top: 2rem;
    position: relative;
}

/* Map Sidebar — clips the full-width inner to 540px */
.ts-map-sidebar {
    width: 540px;
    flex-shrink: 0;
    overflow: hidden;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    /* Own stacking context below the site header (z 998) so Leaflet controls (z 1000) don't cover it */
    z-index: 1;
}

/* Inner renders at full content width (set by JS) */
.ts-map-sidebar-inner {
    /* width set by JS to full container width */
    height: 700px;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

/* Top controls — constrained to visible 540px in sidebar mode */
.ts-map-controls-top {
    max-width: calc(540px - 2rem);
}

/* Expanded: reveal the full map */
.ts-results-container.ts-map-expanded {
    flex-wrap: wrap;
}

.ts-results-container.ts-map-expanded .ts-map-sidebar {
    width: 100%;
    order: -1;
    position: relative;
    top: auto;
    flex-shrink: 1;
}

.ts-results-container.ts-map-expanded .ts-map-sidebar-inner {
    width: 100% !important;
    height: 550px;
}

/* Expanded: controls use full width */
.ts-results-container.ts-map-expanded .ts-map-controls-top {
    max-width: none;
}

/* Laptop band: shrink the map sidebar so the results list gets more room.
   Scoped >=1025px so the <=1024px full-width behavior stays intact. */
@media (min-width: 1025px) and (max-width: 1600px) {
    .ts-map-sidebar { width: 400px; }
    .ts-map-controls-top { max-width: calc(400px - 2rem); }
}
@media (min-width: 1025px) and (max-width: 1440px) {
    .ts-map-sidebar { width: 340px; }
    .ts-map-controls-top { max-width: calc(340px - 2rem); }
}
@media (min-width: 1025px) and (max-width: 1280px) {
    .ts-map-sidebar { width: 300px; }
    .ts-map-controls-top { max-width: calc(300px - 2rem); }
}

/* Mobile: always full width */
@media (max-width: 1024px) {
    .ts-map-sidebar {
        width: 100% !important;
        order: -1;
        position: relative;
        top: auto;
    }
    .ts-map-sidebar-inner {
        width: 100% !important;
        height: 400px;
        position: relative;
        top: auto;
    }
    .ts-map-controls-top {
        max-width: none;
    }
}

.ts-results-header {
    margin-bottom: 1.5rem;
}

.ts-results-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ts-results-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* Tablet: Keep controls on same row as search */
@media (min-width: 1024px) {
    .ts-results-title-row {
        flex-wrap: nowrap;
    }
}

.ts-results-title {
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1E3054;
    margin: 0;
}

.ts-results-timestamp {
    font-size: 0.65rem;
    color: #64748B;
    font-weight: 500;
}

.ts-results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search + Cart group - centered on desktop */
.ts-search-cart-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.ts-results-search {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border-radius: 0.75rem;
    padding: 0 calc(var(--ts-fs) * 0.85);
    height: var(--ts-h);
    width: 317px;
    max-width: 317px;
    min-width: 150px;
}

.ts-results-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: calc(var(--ts-fs) * 0.85);
    color: #1E3054;
}

.ts-results-search input::placeholder {
    color: #9CA3AF;
    font-weight: 600;
}

.ts-results-search .material-symbols-outlined {
    color: #9CA3AF;
    font-size: 1.25rem;
}

.ts-sort-dropdown {
    width: auto;
    min-width: 180px;
}

.ts-sort-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    background: #F9FAFB;
    border: none;
    border-radius: 0.75rem;
    padding: 0 calc(var(--ts-fs) * 0.85);
    height: var(--ts-h);
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
    width: 100%;
}

.ts-control-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #F9FAFB;
    border: none;
    border-radius: 0.75rem;
    padding: 0 calc(var(--ts-fs) * 0.85);
    height: var(--ts-h);
    font-size: calc(var(--ts-fs) * 0.85);
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
    white-space: nowrap;
}

.ts-control-btn:hover {
    background: #E5E7EB;
}

.ts-cart-btn {
    height: var(--ts-h);
    font-size: calc(var(--ts-fs) * 0.85);
}

/* Results toolbar controls: match the admin sidebar text size (14px), like the form inputs. */
.ts-results-search input,
.ts-sort-btn,
.ts-control-btn,
.ts-cart-btn {
    font-size: 0.875rem;
}

/* Price breakdown popup: shrink all its (many, inline-sized) text uniformly. */
.ts-price-breakdown-popup {
    zoom: 0.88;
}

.ts-control-btn .material-symbols-outlined {
    font-size: 1.25rem;
}

.ts-results-content {
    /*display: flex;*/
    gap: 1.5rem;
}

.ts-results-list {
    flex: 1;
    min-width: 0;
    overflow: clip;
    overflow-clip-margin: 24px;
    container-type: inline-size;
    container-name: results;
}

/* Loading overlay */
.ts-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-loading-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ts-loading-spinner {
    animation: spin 1s linear infinite;
    height: 2.25rem;
    width: 2.25rem;
    color: #1E3054;
    margin-bottom: 0.75rem;
}

.ts-loading-card p {
    color: #1E3054;
    font-weight: 600;
    font-size: 0.75rem;
    margin: 0;
}

/* === Tour Search Results Card Styles === */

/* Star icon filled state */
.ts-star-filled {
    font-variation-settings: 'FILL' 1;
    color: #FFB800;
}

/* Flight icon rotations */
.ts-flight-outbound {
    transform: rotate(90deg);
}
.ts-flight-return {
    transform: rotate(-90deg);
}

/* Responsive adjustments for results */
@media (max-width: 640px) {
    .ts-results-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-results-title {
        margin-bottom: 0.5rem;
    }

    /* Search + Cart group - full width, keep in same row */
    .ts-search-cart-group {
        width: 100%;
        justify-content: stretch;
    }

    .ts-results-search {
        flex: 1;
        width: auto;
        max-width: none;
        min-width: unset;
        height: 36px;
    }

    .ts-results-search input {
        height: 36px;
    }

    /* Cart icon-only on mobile */
    .ts-search-cart-group .ts-cart-btn .ts-btn-text {
        display: none;
    }

    .ts-search-cart-group .ts-cart-btn {
        padding: 0;
        width: 36px;
        height: 36px;
        min-width: 36px;
        justify-content: center;
    }

    .ts-results-controls-row {
        width: 100%;
        justify-content: flex-start;
    }

    /* Sort and Filters take half width each on mobile */
    .ts-sort-dropdown,
    .ts-results-controls-row .ts-control-btn {
        flex: 1;
        width: 50%;
        min-width: 0;
    }

    .ts-sort-btn,
    .ts-control-btn {
        width: 100%;
        height: 36px;
    }

    /* Hide sort icon on mobile since we show full label */
    .ts-results-controls-row .ts-sort-icon {
        display: none;
    }
}

/* Hide sort icon on desktop by default */
.ts-sort-icon {
    display: none;
}

/* === Prices Calendar Component === */

/* Dropdown panel - absolute positioned above other content */
.ts-calendar-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    min-width: 280px;
    width: max-content;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 12px 48px rgba(30, 48, 84, 0.3), 0 0 0 1px rgba(30, 48, 84, 0.08);
    border: 1px solid rgba(30, 48, 84, 0.15);
    z-index: 1200;
}
/* Wider popup for 3-month price calendar */
.ts-calendar-dropdown.ts-price-popup {
    min-width: 860px;
    background: #EEF1F6;
    border: 2px solid rgba(30, 48, 84, 0.2);
    box-shadow: 0 20px 60px rgba(30, 48, 84, 0.35), 0 0 0 1px rgba(30, 48, 84, 0.1);
}
.ts-calendar-dropdown.ts-price-popup.ts-single-month {
    min-width: auto;
    width: max-content;
}
/* 3-month price popup: center on screen like a modal */
.ts-calendar-dropdown.ts-price-popup:not(.ts-single-month) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.ts-calendar-dropdown.align-left {
    left: 0;
}
.ts-calendar-dropdown.align-right {
    right: 0;
}

/* Mobile: calendar dropdown takes full width of card */
@media (max-width: 768px) {
    .ts-calendar-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 2rem);
        max-width: 400px;
        min-width: auto;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Price popup capped to viewport width on mobile */
    .ts-calendar-dropdown.ts-price-popup {
        max-width: calc(100vw - 2rem);
    }

    .ts-calendar-dropdown.align-left,
    .ts-calendar-dropdown.align-right {
        left: 50%;
        right: auto;
    }

    /* Scrollable wrapper for calendar grids */
    .ts-calendar-scroll-wrapper {
        overflow-x: auto;
        margin: 0 -12px;
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
    }

    /* Keep single-column calendar grids scrollable */
    .ts-weekday-grid,
    .ts-calendar-grid {
        min-width: 280px;
    }

}

/* Hide 3-month toggle on mobile/tablet — only show on desktop */
@media (max-width: 1024px) {
    .ts-view-toggle {
        display: none !important;
    }
}

/* Header with title and close button */
.ts-calendar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.ts-calendar-title {
    font-size: 15px;
    font-weight: 600;
    color: #1E3054;
}
.ts-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(30, 48, 84, 0.2);
    border-radius: 6px;
    background: transparent;
    color: #1E3054;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ts-view-toggle:hover {
    background: rgba(30, 48, 84, 0.05);
}
.ts-view-toggle.active {
    background: #1E3054;
    color: #fff;
    border-color: #1E3054;
}
.ts-calendar-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #1E3054;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ts-calendar-close:hover {
    opacity: 0.7;
}
.ts-calendar-close .material-symbols-outlined {
    font-size: 16px;
}

/* Month selector bar */
.ts-month-selector {
    position: relative;
    margin-bottom: 16px;
}
.ts-month-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #E5E7EB;
    border: none;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
    height: 48px;
    user-select: none;
}
.ts-month-center-label {
    cursor: pointer;
    flex: 1;
    text-align: center;
}
.ts-month-center-label:hover {
    opacity: 0.8;
}
.ts-month-arrow {
    font-size: 20px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}
.ts-month-arrow:hover {
    background: rgba(30, 48, 84, 0.1);
}
/* Legacy nav arrows (used by search form date pickers) */
.ts-month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-month-nav .material-symbols-outlined {
    font-size: 20px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}
.ts-month-nav .material-symbols-outlined:hover {
    background: rgba(30, 48, 84, 0.1);
}
.ts-month-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
}
.ts-month-dropdown button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1E3054;
    border-radius: 4px;
}
.ts-month-dropdown button:hover {
    background: #f1f5f9;
}
.ts-month-dropdown button.selected {
    background: #1E3054;
    color: white;
}

/* 3-month side-by-side layout */
.ts-calendar-months {
    display: flex;
    gap: 12px;
}
.ts-calendar-month-col {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(30, 48, 84, 0.15);
    border-radius: 12px;
    padding: 10px;
}
.ts-month-col-header {
    font-size: 13px;
    font-weight: 600;
    color: #1E3054;
    text-align: center;
    padding: 2px 0 6px;
}

/* Weekday headers */
.ts-weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 2px;
}
.ts-weekday {
    font-size: 12px;
    font-weight: 500;
    color: #1E3054;
    opacity: 0.4;
    text-align: center;
    padding: 2px 0;
}
.ts-weekday.weekend {
    color: #E45A52;
    opacity: 1;
}

/* Calendar grid */
.ts-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 4px;
    row-gap: 4px;
}
/* Date picker: bigger square cells with more breathing room */
.ts-calendar-dropdown:not(.ts-price-popup) .ts-weekday {
    font-size: 13px;
    padding: 4px 0;
}
.ts-calendar-dropdown:not(.ts-price-popup) {
    min-width: 360px;
    padding: 20px 16px;
}
.ts-calendar-dropdown:not(.ts-price-popup) .ts-calendar-grid {
    column-gap: 6px;
    row-gap: 6px;
}
.ts-calendar-dropdown:not(.ts-price-popup) .ts-day-cell {
    border: 1px solid rgba(30, 48, 84, 0.15);
}

/* Day cells — base style (used by date picker) */
.ts-day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    aspect-ratio: 1;
    min-width: 0;
}
.ts-day-cell:hover {
    opacity: 0.85;
}
.ts-day-cell .day-num {
    font-size: 14px;
    font-weight: 500;
    color: #1E3054;
    line-height: 1;
}

/* Price calendar overrides — compact cells with price labels */
.ts-calendar-months .ts-day-cell {
    background: #F9FAFB;
    border-radius: 6px;
    padding: 2px 3px;
    aspect-ratio: 1;
    min-width: 40px;
    border: 1px solid rgba(30, 48, 84, 0.15);
}
.ts-day-cell .day-price {
    font-size: 11px;
    font-weight: 600;
    color: #1E3054;
    line-height: 13px;
    height: 13px;
    white-space: nowrap;
}
.ts-calendar-months .ts-day-cell .day-num {
    font-size: 10px;
    opacity: 0.5;
    line-height: 12px;
    height: 12px;
}
.ts-day-cell.price-low {
    background: #00BB7D;
}
.ts-day-cell.price-low .day-price,
.ts-day-cell.price-low .day-num {
    color: #1E3054;
}
.ts-day-cell.price-medium {
    background: #FBBF24;
}
.ts-day-cell.price-medium .day-price,
.ts-day-cell.price-medium .day-num {
    color: #1E3054;
}
.ts-day-cell.price-high {
    background: #E45A52;
}
.ts-day-cell.price-high .day-price,
.ts-day-cell.price-high .day-num {
    color: #F9FAFB;
}
.ts-day-cell.other-month {
    opacity: 0.4;
}
.ts-calendar-months .ts-day-cell.other-month {
    background: #E5E7EB;
    opacity: 0.5;
}
.ts-day-cell.other-month .day-num {
    opacity: 1;
}
.ts-day-cell.selected {
    background: #1E3054;
    outline: none;
}
.ts-day-cell.selected .day-num {
    color: #FFFFFF;
}
.ts-day-cell.past-day {
    background: #E5E7EB;
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Availability colors for date calendar */
.ts-day-cell.avail-available {
    background: #dcfce7;
}
.ts-day-cell.avail-available .day-num {
    color: #166534;
}
.ts-day-cell.avail-few {
    background: #ffedd5;
}
.ts-day-cell.avail-few .day-num {
    color: #ea580c;
}
.ts-day-cell.avail-none {
    background: #fee2e2;
    cursor: default;
    pointer-events: none;
}
.ts-day-cell.avail-none .day-num {
    color: #dc2626;
}
.ts-day-cell.no-flight {
    background: #f3f4f6;
    cursor: default;
    pointer-events: none;
}
.ts-day-cell.no-flight .day-num {
    color: #9ca3af;
}

/* Availability legend */
.ts-availability-legend {
    display: flex;
    gap: 12px;
    padding: 8px 12px 4px;
    font-size: 11px;
    color: #64748B;
}
.ts-availability-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ts-availability-legend .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    display: inline-block;
}
.ts-availability-legend .legend-dot.avail-available {
    background: #10b981;
}
.ts-availability-legend .legend-dot.avail-few {
    background: #f97316;
}
.ts-availability-legend .legend-dot.avail-none {
    background: #ef4444;
}

/* Availability loading indicator */
.ts-availability-loading {
    text-align: center;
    padding: 6px 0;
    font-size: 11px;
    color: #9CA3AF;
}

/* No-price cells in price calendar */
.ts-calendar-months .ts-day-cell.no-price {
    background: #E5E7EB;
    min-width: 40px;
}
.ts-calendar-months .ts-day-cell.no-price .day-num {
    font-size: 13px;
    font-weight: 500;
    color: #1E3054;
    opacity: 1;
}

/* === Container Queries for Search Results === */

/* Container queries defined on .ts-results-list (not here) so breakpoints
   measure available space for results, excluding the 340px map sidebar */
.ts-results-container {
}

/* Map container - visible by default as sidebar */
.ts-results-container .ts-map-container {
    display: block;
}

/* Tablet/Mobile: Stack layout with map on top */
@media (max-width: 1024px) {
    /* Change flex direction to column - map on top, results below */
    .ts-results-container {
        flex-direction: column;
    }

    /* Map container - full width, fixed height, remove sticky, ORDER FIRST */
    .ts-results-container .ts-map-container {
        display: block;
        width: 100%;
        height: 400px;
        min-height: 400px;
        position: relative;
        top: auto;
        align-self: stretch;
        order: -1; /* Move map above results */
    }

    /* Results list - full width below map */
    .ts-results-container .ts-results-list {
        width: 100%;
        order: 0;
    }
}

/* Mobile: Smaller map height and overflow control */
@media (max-width: 640px) {
    /* Prevent horizontal overflow on mobile */
    .ts-results-container {
        overflow-x: hidden;
    }

    .ts-results-list {
        overflow: hidden;
    }

    /* Result cards - prevent overflow */
    .ts-results-list > div {
        overflow: hidden;
    }
}

/* Default: Tablet layout (2-row: Image+Flight, Content below) */
.ts-hotel-header-grid {
    display: grid;
    grid-template-columns: minmax(170px, 225px) 1fr minmax(224px, 260px);
    align-items: stretch;
    border: 1px solid rgba(30, 48, 84, 0.12);
}

.ts-hotel-header-grid .ts-hotel-image {
    order: 1;
}

.ts-hotel-header-grid .ts-hotel-content {
    order: 2;
}

.ts-hotel-header-grid .ts-flight-wrapper {
    order: 3;
}

/* Tighter gap on the summary flight legs so terminal codes don't overflow the narrow flight column */
.ts-flight-wrapper .ts-flex.ts-items-center.ts-gap-2 {
    gap: 0.1875rem;
}

/* Hotel-only: no flight column — collapse to 2 columns */
.ts-hotel-header-grid.ts-no-flight {
    grid-template-columns: minmax(170px, 225px) 1fr;
}
.ts-hotel-header-grid.ts-no-flight .ts-hotel-content {
    padding-right: 1rem;
}

/* Check-in date + inline description: hidden by default; only the wide 2-column header layout shows them */
.ts-summary-checkin { display: none; }
.ts-hotel-content > .ts-desc-wrap { display: none; }

/* Wide screens (results ≥ 1500px): split header content into 2 columns (info | facilities+summary) with a vertical tour summary. Ref: Image #41 */
@container results (min-width: 1500px) {
    .ts-hotel-header-grid .ts-hotel-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
        grid-template-rows: auto auto 1fr;
        column-gap: 1.75rem;
    }
    .ts-hotel-content > .ts-hotel-name-row     { grid-area: 1 / 1; }
    .ts-hotel-content > .ts-hotel-rating-row   { grid-area: 2 / 1; }
    .ts-hotel-content > .ts-desc-wrap          { display: block; grid-area: 3 / 1; align-self: stretch; }
    .ts-hotel-content > .ts-hotel-features-row { grid-area: 1 / 2; justify-content: flex-start; }
    .ts-hotel-content > .ts-tour-summary {
        grid-area: 2 / 2 / 4 / 3;
        align-self: start;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 14px !important;
    }
    /* Vertical summary: drop the divider lines and the range; show the check-in date */
    .ts-tour-summary > .ts-summary-range { display: none; }
    .ts-tour-summary > div > div[style*="width: 1px"] { display: none; }
    .ts-summary-checkin { display: inline-flex; align-items: center; gap: 4px; }
    /* Description fills the row height; the fitting line count is computed in JS from the wrap height. */
    .ts-hotel-content > .ts-desc-wrap { min-height: 0; overflow: hidden; }
}

/* Mobile: Compact horizontal layout — thumbnail left, content right, flight below */
@media (max-width: 768px) {
    .ts-map-sidebar {
        display: none !important;
    }

    /* Opened from a card's map button: the sidebar becomes a full-screen map overlay. */
    .ts-map-sidebar.ts-map-overlay-open {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 9999;
        width: 100% !important;
        height: 100vh;
        height: 100dvh;
        background: #fff;
    }

    .ts-map-sidebar.ts-map-overlay-open .ts-map-sidebar-inner {
        position: absolute;
        inset: 48px 0 0 0;
        width: 100% !important;
        height: calc(100vh - 48px) !important;
        height: calc(100dvh - 48px) !important;
        border-radius: 0;
    }

    .ts-map-sidebar.ts-map-overlay-open #sidebar-map {
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 0;
    }

    .ts-map-sidebar.ts-map-overlay-open .ts-map-overlay-topbar {
        display: flex;
    }

    /* Drawing a polygon with a thumb, on a view opened for one hotel, is not worth the row space. */
    .ts-map-tool-area {
        display: none !important;
    }

    .ts-map-link {
        display: none;
    }

    .ts-hotel-header-grid {
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
        overflow: hidden;
    }

    .ts-hotel-header-grid .ts-hotel-image {
        order: 1;
        grid-row: 1;
        grid-column: 1;
        min-height: 120px;
        max-height: 160px;
    }

    .ts-hotel-header-grid .ts-hotel-content {
        order: 2;
        grid-row: 1;
        grid-column: 2;
        padding-right: 1rem;
        min-width: 0;
        overflow: hidden;
    }

    .ts-hotel-header-grid .ts-flight-wrapper {
        display: none;
    }

    /* Hide description link and map link on mobile */
    .ts-hotel-header-grid .ts-description-link {
        display: none;
    }

    /* Facilities row wraps naturally */
    .ts-hotel-header-grid .ts-hotel-features-row {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Compact tour details */
    .ts-hotel-header-grid .ts-tour-details {
        margin-top: 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ts-hotel-header-grid .ts-tour-details .ts-opacity-30 {
        display: none;
    }

    /* Flight card content shouldn't overflow */
    .ts-hotel-header-grid .ts-flight-wrapper > div {
        max-width: 100%;
    }
}

/* Desktop: wider columns when container >= 1150px */
@container results (min-width: 1150px) {
    .ts-hotel-header-grid {
        grid-template-columns: minmax(195px, 245px) 1fr minmax(200px, 245px);
    }
    .ts-hotel-header-grid.ts-no-flight {
        grid-template-columns: minmax(195px, 245px) 1fr;
    }
}

/* Full-width mode (map expanded to a top banner): the header content-grid fills the whole width.
   Reuses the wide content-grid above — description absorbs the slack, facilities+summary pin right. */
@container results (min-width: 1500px) {
    .ts-hotel-header-grid.ts-fullwidth-mode {
        grid-template-columns: minmax(195px, 245px) minmax(0, 1fr) minmax(200px, 245px);
    }
    .ts-hotel-header-grid.ts-fullwidth-mode.ts-no-flight {
        grid-template-columns: minmax(195px, 245px) minmax(0, 1fr);
    }
    .ts-hotel-header-grid.ts-fullwidth-mode .ts-hotel-content {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 240px);
        column-gap: 2.5rem;
    }
}

/* Features column - hidden by default, shown in full-width mode */
.ts-hotel-features-column {
    display: none;
}

/* Description text - hidden by default in cards, shown in full-width mode */
.ts-hotel-header-grid .ts-hotel-description {
    display: none !important;
    max-width: 480px;
}

/* Description tooltip styles */
.ts-description-tooltip {
    pointer-events: none;
}

/* Section heading style for offer details */
.ts-section-heading {
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0;
    color: #1E3054;
    margin: 0;
}

/* Offer details wrapper - indent on tablet to show hierarchy */
@media (min-width: 641px) and (max-width: 1024px) {
    .ts-offer-details-wrapper {
        margin-left: 16px;
    }
}

/* Mobile: Remove indent and ensure full width */
@media (max-width: 640px) {
    .ts-offer-details-wrapper {
        margin-left: 0;
        overflow: hidden;
    }
}

/* === Offer Details Layout === */

/* Default: Flex row layout for large screens */
.ts-offer-details-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    position: relative;
    justify-content: flex-start;
    align-items: stretch;
}

.ts-offer-details-grid .ts-offer-flights {
    flex: 0 1 auto;
    min-width: 0;
    order: 1;
    position: relative;
    z-index: 1;
}

.ts-offer-details-grid .ts-offer-excursions {
    flex: 0 1 auto;
    min-width: 0;
    order: 2;
}

.ts-offer-details-grid .ts-offer-transfer {
    flex: 0 0 250px;
    order: 3;
}

/* L-shaped connector - visible by default on large screens */
.ts-offer-details-grid .ts-offer-connector {
    display: block;
    position: absolute;
    left: 0;
    top: -24px;
    border-left: 3px solid #f9fafb;
    border-bottom: 3px solid #f9fafb;
    border-bottom-left-radius: 16px;
    /* Width extends from left edge to reach flights column (32px into flights area) */
    /* Total flex content: 550px + 258px + 258px + 32px gaps = 1098px, pushed to right */
    width: calc(100% - 801px);
    transition: height 0.3s ease;
    z-index: 0;
}

/* Tablet: Same 50/25/25 row layout, just hide connector */
@container results (max-width: 1099px) {
    .ts-offer-details-grid .ts-offer-connector {
        display: none;
    }
}

/* Media query fallback for tablets without container query support */
@media (max-width: 1099px) and (min-width: 641px) {
    .ts-offer-details-grid .ts-offer-connector {
        display: none;
    }
}

@media (max-width: 1800px) {
    .ts-offer-details-grid .ts-offer-spacer {
        display: none;
    }
}

/* Mobile: Single column stacked layout for offer details */
@media (max-width: 640px) {
    .ts-offer-details-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
        align-items: stretch;
        overflow: hidden;
    }

    .ts-offer-details-grid .ts-offer-flights,
    .ts-offer-details-grid .ts-offer-excursions,
    .ts-offer-details-grid .ts-offer-transfer {
        width: 100%;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Hide connector on mobile */
    .ts-offer-details-grid .ts-offer-connector {
        display: none;
    }

    /* Remove top margin from transfer on mobile */
    .ts-offer-transfer {
        margin-top: 0 !important;
    }

    /* Section heading smaller on mobile */
    .ts-section-heading {
        font-size: 16px;
    }

    /* Section heading tabs wrap on mobile */
    .ts-offer-excursions .ts-flex.ts-items-center.ts-gap-4 {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Flight cards - ensure content fits */
    .ts-offer-flights .ts-rounded-xl {
        overflow: hidden;
    }

    /* Flight rows - allow wrapping */
    .ts-offer-flights .ts-flex.ts-items-center.ts-gap-1 {
        flex-wrap: wrap;
    }
}

/* === Offer Row — aligned to hotel header grid === */

/* Match hotel header grid columns so price col aligns with flight wrapper col */
.ts-offer-row {
    display: flex;
    align-items: stretch;
    padding: 0 16px;
    gap: 16px;
}
.ts-offer-col-content { display: flex; align-items: center; gap: 1rem; min-width: 0; flex: 1 1 0; flex-wrap: nowrap; }
.ts-offer-col-price   { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; flex-wrap: nowrap; white-space: nowrap; }

/* Room name wraps to the next line instead of truncating when it doesn't fit the column */
.ts-offer-col-content .ts-truncate { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }

/* Narrow results list (map sidebar present on laptops ~1280-1440px):
   stack the offer row — details full-width on top, price + action buttons on
   their own footer row below — and let text wrap instead of clipping. */
@container results (max-width: 820px) {
    .ts-offer-row { flex-wrap: wrap; row-gap: 12px; }
    .ts-offer-col-content { flex: 1 1 100%; }
    .ts-offer-col-price { flex: 1 1 100%; }
    .ts-offer-col-price > .ts-flex { justify-content: flex-end; }
    .ts-offer-row > div[style*="width: 1px"] { display: none; }
}

@container results (min-width: 1340px) {
    .ts-offer-row {
        grid-template-columns: minmax(195px, 245px) 1fr minmax(200px, 245px);
    }
}

/* Mobile: revert to flex for small screens */
@media (max-width: 768px) {
    .ts-offer-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
    }
    .ts-offer-col-chevron { padding-left: 0; }
    .ts-offer-col-price   { padding-right: 0; }
}

/* === Offer Row Grid (legacy) === */

/* Default: Tablet layout for offer row */
.ts-offer-row-grid {
    display: grid;
    grid-template-columns: minmax(135px, 180px) 1fr minmax(180px, 220px);
    align-items: center;
    border: 1px solid rgba(30, 48, 84, 0.12);
}

.ts-offer-row-grid .ts-offer-room {
    order: 1;
}

.ts-offer-row-grid .ts-offer-content {
    order: 2;
}

.ts-offer-row-grid .ts-offer-actions {
    order: 3;
}

/* Mobile: Single column stacked layout for offer row */
@media (max-width: 640px) {
    .ts-offer-row-grid {
        grid-template-columns: 1fr;
    }

    .ts-offer-row-grid .ts-offer-room {
        order: 1;
        grid-column: span 1;
    }

    .ts-offer-row-grid .ts-offer-content {
        order: 2;
        grid-column: span 1;
        border-left: none;
        border-top: 1px solid rgba(30, 48, 84, 0.1);
    }

    .ts-offer-row-grid .ts-offer-actions {
        order: 3;
        grid-column: span 1;
    }
}

/* Desktop: wider columns for offer row when container >= 1340px */
@container results (min-width: 1340px) {
    .ts-offer-row-grid {
        grid-template-columns: minmax(150px, 200px) 1fr auto;
    }

    .ts-offer-row-grid .ts-offer-actions {
        padding-left: 16px;
    }
}

/* Price legend */
.ts-price-legend {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 16px 8px 8px;
    margin-top: 8px;
}
.ts-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 6px;
    border: none;
    background: transparent;
    transition: all 0.15s ease;
}
.ts-legend-item:hover {
    background: rgba(30, 48, 84, 0.05);
}
.ts-legend-item.active {
    background: rgba(30, 48, 84, 0.1);
}
.ts-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.ts-legend-dot.low {
    background: #00BB7D;
}
.ts-legend-dot.medium {
    background: #FBBF24;
}
.ts-legend-dot.high {
    background: #E45A52;
}

/* Filtered out day cells */
.ts-day-cell.price-low.filtered-out,
.ts-day-cell.price-medium.filtered-out,
.ts-day-cell.price-high.filtered-out {
    background: #E5E7EB;
}
.ts-day-cell.price-high.filtered-out .day-price,
.ts-day-cell.price-high.filtered-out .day-num {
    color: #1E3054;
}

/* === Leaflet Map Styles === */

/* Leaflet map container */
#sidebar-map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #dde6f0;
    border-radius: 16px;
}

/* Hide default Leaflet controls - we use custom ones */
.ts-map-container .leaflet-control-container .leaflet-top,
.ts-map-container .leaflet-control-container .leaflet-bottom,
.ts-map-sidebar-inner .leaflet-control-container .leaflet-top,
.ts-map-sidebar-inner .leaflet-control-container .leaflet-bottom {
    display: none;
}

/* Keep attribution visible but style it */
.leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 2px 6px !important;
    border-radius: 4px 0 0 0;
}

/* Custom map marker styles */
.ts-map-marker {
    background: transparent;
    border: none;
}

.ts-marker-price {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E3054;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ts-map-marker:hover .ts-marker-price {
    background: #00BB7D;
    transform: scale(1.1);
}

/* Hotel name tooltip on marker hover */
.ts-marker-tooltip {
    display: block;
    max-width: 220px;
    background: #1E3054;
    color: #ffffff;
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-marker-tooltip.leaflet-tooltip-top::before {
    border-top-color: #1E3054;
}

/* Marker cluster styles */
.marker-cluster {
    background: rgba(30, 48, 84, 0.6);
    border-radius: 50%;
    will-change: transform;  /* GPU compositing during zoom */
}

.marker-cluster div {
    background: #1E3054;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster-small {
    background: rgba(30, 48, 84, 0.5);
}

.marker-cluster-small div {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

.marker-cluster-medium {
    background: rgba(30, 48, 84, 0.6);
}

.marker-cluster-medium div {
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.marker-cluster-large {
    background: rgba(30, 48, 84, 0.7);
}

.marker-cluster-large div {
    width: 50px;
    height: 50px;
    line-height: 50px;
}

/* ── Rectangle / polygon draw handles (Leaflet.draw vertex markers) ── */
.leaflet-editing-icon,
.leaflet-div-icon.leaflet-editing-icon {
    width: 12px !important;
    height: 12px !important;
    margin-left: -6px !important;
    margin-top: -6px !important;
    background: #ffffff;
    border: 2px solid #1E3054;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    transition: transform 0.12s ease, background-color 0.12s ease;
}
.leaflet-editing-icon:hover {
    background: #3498DB;
    border-color: #1E3054;
    transform: scale(1.25);
    cursor: pointer;
}
/* Midpoint (add-vertex) handles are shown semi-transparent by Leaflet.draw */
.leaflet-editing-icon.leaflet-edit-move,
.leaflet-editing-icon[style*="opacity"] {
    background: #eaf4ff;
}
/* Draw guide dashed line while placing points */
.leaflet-draw-guide-dash {
    background-color: #1E3054;
    opacity: 0.5;
}

/* Custom popup styles */
.ts-leaflet-popup .leaflet-popup-content-wrapper {
    background: #F9FAFB;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.ts-leaflet-popup .leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
}

.ts-leaflet-popup .leaflet-popup-tip {
    background: #F9FAFB;
}

.ts-map-popup {
    min-width: 150px;
}

.ts-map-popup strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E3054;
    margin-bottom: 4px;
}

.ts-popup-stars {
    color: #FFB800;
    font-size: 12px;
    letter-spacing: 1px;
}

.ts-popup-price {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #00BB7D;
    margin-top: 4px;
}

/* Close button on popup */
.ts-leaflet-popup .leaflet-popup-close-button {
    color: #64748B;
    font-size: 18px;
    padding: 8px;
    right: 4px;
    top: 4px;
}

.ts-leaflet-popup .leaflet-popup-close-button:hover {
    color: #1E3054;
}

/* Map loading state */
.ts-map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 250, 251, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
}

.ts-map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E7EB;
    border-top-color: #1E3054;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Layer toggle button active state */
.ts-layer-active {
    background: #1E3054 !important;
    color: white !important;
}

/* Fix z-index for controls over map */
.ts-map-container .ts-absolute {
    pointer-events: auto;
}

/* Ensure map fills container properly */
.ts-map-container > div:first-of-type:not(.ts-absolute) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Responsive adjustments for map on mobile */
@media (max-width: 1024px) {
    .ts-map-container #sidebar-map {
        min-height: 400px;
    }
}

/* === Flight Modal Responsive Styles === */

.ts-flight-modal {
    width: 100%;
    max-width: 405px;
    max-height: 80vh;
    padding: 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

/* Flight modal header */
.ts-flight-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ts-flight-modal-header h3 {
    font-size: 15px;
    font-weight: 700;
}

/* Flight option card */
.ts-flight-option {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.ts-flight-option:hover {
    opacity: 0.9;
}

/* Flight row - outbound/inbound */
.ts-flight-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    flex-wrap: nowrap;
}

.ts-flight-date {
    width: 84px;
    flex-shrink: 0;
}

.ts-flight-times {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.ts-flight-time-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ts-flight-code {
    width: 39px;
    flex-shrink: 0;
}

.ts-flight-time {
    width: 39px;
    flex-shrink: 0;
}

.ts-flight-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Flight selection button */
.ts-flight-select-btn {
    flex-shrink: 0;
}

/* Tablet */
@media (max-width: 640px) {
    .ts-flight-modal {
        max-width: 100%;
        max-height: 95vh;
        padding: 1rem;
        border-radius: 1rem;
        margin: 0.5rem;
    }

    /* Header */
    .ts-flight-modal-header h3 {
        font-size: 18px;
    }

    /* Flight option card - reduce padding */
    .ts-flight-option {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    /* Flight row - allow wrapping */
    .ts-flight-row {
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
    }

    /* Hide date on small screens - stack in header instead */
    .ts-flight-date {
        width: auto;
        flex-shrink: 1;
        font-size: 10px;
    }

    /* Flight times - smaller gaps */
    .ts-flight-times {
        gap: 0.5rem;
    }

    /* Flight code & time - smaller widths */
    .ts-flight-code,
    .ts-flight-time {
        width: auto;
        min-width: 32px;
    }

    /* Meta info - wrap to new line */
    .ts-flight-meta {
        flex-basis: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
        justify-content: flex-end;
    }
}

/* Very small mobile screens */
@media (max-width: 380px) {
    .ts-flight-modal {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .ts-flight-modal-header h3 {
        font-size: 16px;
    }

    .ts-flight-option {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    /* Selection button - full width on very small screens */
    .ts-flight-option .ts-flight-select-btn {
        align-self: flex-end;
    }

    /* Flight row - stack completely */
    .ts-flight-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Hide dates on very small screens */
    .ts-flight-date {
        display: none;
    }
}

/* === Excursion Modal Responsive Styles === */

.ts-excursion-modal {
    width: 100%;
    max-width: 737px;
    max-height: 90vh;
    padding: 1.875rem;
}

.ts-flight-modal {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    padding: 1.5rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .ts-excursion-modal {
        max-width: 90vw;
        padding: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .ts-excursion-modal {
        max-width: 100%;
        max-height: 95vh;
        padding: 1rem;
        border-radius: 1rem;
        margin: 0.5rem;
    }

    /* Header stacks on mobile */
    .ts-excursion-modal > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    /* Title row full width */
    .ts-excursion-modal > div:first-child > div:first-child {
        width: 100%;
        justify-content: space-between;
    }

    /* Close button — larger tap target on mobile */
    .ts-excursion-modal > div:first-child > button:last-child {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: #f0f2f5;
        opacity: 1;
    }

    .ts-excursion-modal > div:first-child > button:last-child .material-symbols-outlined {
        font-size: 20px !important;
    }

    /* Excursion item adjustments */
    .ts-excursion-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    /* Price section - row layout on mobile */
    .ts-excursion-item > .ts-flex.ts-flex-col.ts-gap-2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .ts-excursion-item > .ts-flex.ts-flex-col.ts-gap-2 button {
        width: auto;
        padding: 0 1.5rem;
        height: 40px;
    }

    /* Description - smaller text on mobile */
    .ts-excursion-item > p {
        font-size: 0.8125rem;
        line-height: 1.25rem;
    }
}

/* === Hotel Detail Modal === */

.ts-hotel-modal {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ts-hotel-gallery {
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f4f5f7;
}

.ts-hotel-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.ts-hotel-thumb {
    width: 64px;
    height: 48px;
    border: none;
    padding: 0;
    background: none;
}

.ts-hotel-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.ts-hotel-description p {
    margin-bottom: 0.5rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .ts-hotel-modal {
        max-width: 90vw;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .ts-hotel-modal {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 1rem;
        margin: 0.5rem;
    }

    .ts-hotel-gallery {
        aspect-ratio: 4 / 3;
    }

    .ts-hotel-thumb {
        width: 52px;
        height: 40px;
    }
}

/* ==========================================================================
   Shared Mobile Tooltip → Bottom Sheet (segment tooltips + price breakdown)
   ========================================================================== */

/* Desktop: hidden by default */
.ts-mobile-tooltip-backdrop {
    display: none;
}

.ts-mobile-tooltip-close {
    display: none;
}

/* Mobile: convert any .ts-mobile-tooltip to fixed bottom sheet */
@media (max-width: 768px) {
    .ts-mobile-tooltip-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 998;
    }

    .ts-mobile-tooltip {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        min-width: auto !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15) !important;
        z-index: 999 !important;
        max-height: 70vh;
        overflow-y: auto;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .ts-mobile-tooltip-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Price Breakdown Tooltip — desktop hover, mobile tap + bottom sheet
   ========================================================================== */

/* Desktop: absolute dropdown below price with arrow */
.ts-price-breakdown-popup {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    right: 0;
    min-width: 240px;
    padding: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 48, 84, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(30, 48, 84, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ts-price-breakdown-arrow {
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid rgba(30, 48, 84, 0.08);
    border-left: 1px solid rgba(30, 48, 84, 0.08);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.ts-price-breakdown-total {
    background: linear-gradient(135deg, #f0faf4, #e8f5ee);
    border-top: 1px solid rgba(39, 174, 96, 0.15);
    border-radius: 0 0 14px 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop: hide backdrop and close button — no !important so Alpine x-show can control */
.ts-price-breakdown-backdrop {
    display: none;
}

.ts-price-breakdown-close {
    display: none;
}

/* Mobile: bottom sheet with backdrop — Alpine x-show controls display, CSS controls layout */
@media (max-width: 768px) {
    .ts-price-breakdown-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(30, 48, 84, 0.35);
        z-index: 998;
    }

    .ts-price-breakdown-popup {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin-top: 0;
        min-width: auto;
        width: 100%;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        background: white;
        /* Sized for a desktop hover tooltip; full size is needed at phone reading distance. */
        zoom: 1;
        max-height: 80svh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    /* The markup carries ts-z-50, which outranks the rule above and would leave the sheet
       under its own backdrop (998) — both sit in the same stacking context. */
    .ts-price-breakdown-popup.ts-z-50 {
        z-index: 999;
    }

    .ts-price-breakdown-arrow {
        display: none;
    }

    .ts-price-breakdown-close {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
    }

    .ts-price-breakdown-total {
        position: sticky;
        bottom: 0;
        border-radius: 0;
        padding: 14px 16px;
        /* Safe area for iPhones with home indicator */
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
}

/* ══════════════════════════════════════════════════════
   Mobile Hotel Detail Popup (≤768px only)
   ══════════════════════════════════════════════════════ */

/* Price badge on hotel card — hidden on desktop */
.ts-mobile-price-badge {
    display: none;
}

/* Mobile detail popup — always present in DOM but hidden via Alpine x-show */
.ts-mobile-detail-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #F8FAFC;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sticky top bar with back button */
.ts-mobile-detail-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 48px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
}

.ts-map-overlay-topbar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 48px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Sticky total for the configured offer — sits directly under the top bar */
.ts-md-ribbon {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    background: #1E3054;
    box-shadow: 0 2px 8px rgba(30, 48, 84, 0.18);
}

.ts-md-ribbon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    opacity: 0.85;
}

.ts-md-ribbon-icon {
    font-size: 16px;
    opacity: 0.7;
}

.ts-md-ribbon-price {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #1E3054;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 10px;
    white-space: nowrap;
}

.ts-mobile-detail-back {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3054;
    flex-shrink: 0;
}

.ts-mobile-detail-back:active {
    background: #f0f2f5;
}

/* Mobile room card selection */
.ts-mobile-room-card {
    border: 2px solid transparent;
    transition: border-color 0.15s, background-color 0.15s;
}

.ts-mobile-room-selected {
    border-color: #00BB7D !important;
    background: rgba(0, 187, 125, 0.04) !important;
}

/* In-flow book section at bottom of popup */
.ts-mobile-book-section {
    padding: 16px 16px 16px 40px;
    margin-top: 8px;
}

/* Mobile detail — hotel gallery */
.ts-md-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px;
    scrollbar-width: none;
}
.ts-md-gallery::-webkit-scrollbar {
    display: none;
}
.ts-md-img {
    flex: 0 0 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e5e7eb;
    border-radius: 16px;
    scroll-snap-align: start;
}
.ts-md-gallery.ts-md-multi .ts-md-img {
    flex: 0 0 48%;
}

/* Mobile detail — hotel description */
.ts-md-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6B7280;
}

/* Mobile detail — selected flight summary */
.ts-md-flight {
    margin: 12px 16px 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ts-md-flight-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #1E3054;
}
.ts-md-flight-info {
    font-size: 16px;
    color: #8C95A8;
}
.ts-md-flight-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-md-flight-plane {
    font-size: 16px;
    flex-shrink: 0;
}
.ts-md-flight-term {
    font-size: 11px;
    font-weight: 600;
    color: #8C95A8;
    min-width: 30px;
}
.ts-md-flight-term:last-child {
    text-align: right;
}
.ts-md-flight-time {
    font-size: 14px;
    font-weight: 700;
    color: #1E3054;
}
.ts-md-flight-mid {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #8C95A8;
}
.ts-md-flight-line {
    flex: 1;
    height: 1px;
    background: #D1D5DB;
}
.ts-md-flight-more {
    margin-top: 4px;
    width: 100%;
    height: 40px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1E3054;
    cursor: pointer;
}
.ts-md-flight-more:active {
    background: #f0f2f5;
}

/* Mobile detail — room→transport connector arc */
.ts-md-transport {
    position: relative;
    z-index: 0;
    padding: 16px 16px 0 40px;
}
.ts-md-connector {
    position: absolute;
    left: 6px;
    top: -40px;
    pointer-events: none;
}

/* Mobile detail — transport option card */
.ts-md-topt {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
}
.ts-md-topt-sel {
    border-color: transparent;
}
.ts-md-topt-unavail {
    background: #FEF2F2;
}
.ts-md-topt-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
}
.ts-md-topt-check {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #E5E7EB;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-md-topt-check-on {
    background: #00BB7D;
}
.ts-md-topt-current {
    font-size: 14px;
    font-weight: 600;
    color: #1E3054;
}
.ts-md-topt-select {
    font-size: 14px;
    font-weight: 600;
    color: #1E3054;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ts-md-topt-delta {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: #FBBF24;
    color: #1E3054;
    font-size: 11px;
    font-weight: 700;
}

/* Mobile detail — room config tabs (multi-room) */
.ts-md-roomtabs {
    display: flex;
    gap: 8px;
}
.ts-md-roomtab {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #1E3054;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
}
.ts-md-roomtab-on {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mobile detail — room card (Figma) */
.ts-md-rooms-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E3054;
    margin: 0;
}
.ts-md-rooms-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 0;
    scrollbar-width: none;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.ts-md-rooms-scroll::-webkit-scrollbar {
    display: none;
}
.ts-md-room {
    flex: 0 0 264px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ts-md-room-selected {
    border-color: #00BB7D;
}
.ts-md-room-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.ts-md-room-name {
    font-size: 15px;
    font-weight: 700;
    color: #1E3054;
    line-height: 1.3;
    text-transform: uppercase;
}
.ts-md-room-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E5E7EB;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s;
}
.ts-md-room-check-on {
    background: #00BB7D;
    color: #fff;
}
.ts-md-room-photos {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    border: none;
    background-color: #64748B;
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.ts-md-room-meal {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #1E3054;
    line-height: 1.4;
}
.ts-md-room-meal b {
    text-transform: uppercase;
}
.ts-md-room-meal-sub {
    font-weight: 500;
    color: #8C95A8;
}
.ts-md-room-dot {
    margin: 0 5px;
    opacity: 0.4;
}
.ts-md-room-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #6B7280;
}
.ts-md-room-divider {
    height: 1px;
    background: #D1D5DB;
    margin: 2px 0;
}
.ts-md-room-provblock {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ts-md-room-provblock .ts-text-base {
    font-size: 13px;
    line-height: 1.35;
}
.ts-md-room-provblock .ts-text-sm {
    font-size: 11px;
    line-height: 1.35;
}
.ts-md-room-provider {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}
.ts-md-room-provider-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #8C95A8;
}
.ts-md-room-provider-val {
    font-size: 12px;
    font-weight: 700;
    color: #1E3054;
}
.ts-md-room-pricerow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}
.ts-md-room-spo {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    background: #FBBF24;
    color: #1E3054;
    font-size: 11px;
    font-weight: 700;
}
.ts-md-room-price {
    font-size: 22px;
    font-weight: 700;
    color: #1E3054;
}
.ts-md-room-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.ts-md-room-book {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #E5E7EB;
    color: #1E3054;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ts-md-room-book:active {
    opacity: 0.9;
}
.ts-md-room-sporow {
    display: flex;
    align-items: center;
}
.ts-md-room-cart {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 12px;
    background: #E5E7EB;
    color: #1E3054;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
}
.ts-md-room-cart-on {
    background: #00BB7D;
    color: #fff;
}
.ts-md-room-cancel {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
}
.ts-md-cancel-lbl {
    color: #6B7280;
}
.ts-md-cancel-date {
    color: #1E3054;
    font-weight: 700;
}
.ts-md-cancel-info {
    font-size: 13px;
    color: #9CA3AF;
}
.ts-md-cancel-btn {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Mobile detail — recommendations clipped to the right of the complementary arc */
.ts-md-rec-section {
    clip-path: inset(0 0 0 26px);
}

/* Mobile detail — recommendations (excursions + transfer) horizontal scroll */
.ts-md-rec-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 40px;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 4px 40px;
    scrollbar-width: none;
    align-items: flex-start;
}
.ts-md-transfer-ico {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #F8FAFC;
    color: #1E3054;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-md-transfer-total {
    font-weight: 700;
    color: #1E3054;
}
.ts-md-rec-scroll::-webkit-scrollbar {
    display: none;
}
.ts-md-rec-card {
    flex: 0 0 284px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ts-md-rec-title {
    font-size: 14px;
    font-weight: 700;
    color: #1E3054;
    margin: 0;
}
.ts-md-rec-transfer {
    cursor: pointer;
}
.ts-md-rec-transfer-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1E3054;
}
.ts-md-rec-transfer-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #6B7280;
}
.ts-md-rec-transfer-sel {
    font-size: 12px;
    font-weight: 600;
    color: #00BB7D;
}
.ts-md-rec-transfer-cta {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #1E3054;
}

/* Mobile detail — recommendations (excursions) */
.ts-md-exc {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ts-md-exc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ts-md-exc-title {
    font-size: 15px;
    font-weight: 700;
    color: #1E3054;
    margin: 0;
}
.ts-md-exc-total {
    font-size: 13px;
    font-weight: 700;
    color: #00BB7D;
}
.ts-md-exc-empty {
    font-size: 13px;
    color: #8C95A8;
}
.ts-md-exc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ts-md-exc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #F8FAFC;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s;
}
.ts-md-exc-item-on {
    border-color: #00BB7D;
}
.ts-md-exc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s;
}
.ts-md-exc-check-on {
    background: #00BB7D;
}
.ts-md-exc-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.ts-md-exc-img-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    color: #1E3054;
}
.ts-md-exc-info {
    flex: 1;
    min-width: 0;
}
.ts-md-exc-name {
    font-size: 13px;
    font-weight: 600;
    color: #1E3054;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-md-exc-price {
    font-size: 12px;
    font-weight: 500;
    color: #8C95A8;
}
.ts-md-exc-more {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 4px 2px;
    font-size: 13px;
    font-weight: 600;
    color: #00BB7D;
    cursor: pointer;
}

/* Mobile detail — footer actions */
.ts-md-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ts-md-footer-btn {
    width: 100%;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    text-align: center;
}
.ts-md-footer-primary {
    background: #1E3054;
    color: #fff;
}
.ts-md-footer-outline {
    background: #fff;
    color: #1E3054;
}
.ts-md-footer-disabled {
    opacity: 0.6;
    cursor: default;
}
.ts-md-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ts-md-spin 0.7s linear infinite;
}
@keyframes ts-md-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    /* Hide room rows and show-more buttons on mobile */
    .ts-room-block {
        display: none !important;
    }
    .ts-show-more-rooms {
        display: none !important;
    }

    /* Show price badge on hotel card */
    .ts-mobile-price-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: #1E3054;
        color: white;
        font-size: 14px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 10px;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        font-family: 'Twemoji Country Flags', 'Roboto', sans-serif;
    }

    /* Make hotel header card position relative for badge positioning */
    .ts-hotel-header-grid {
        position: relative;
        cursor: pointer;
    }
}

/* Desktop: hide popup and mobile elements (safety) */
@media (min-width: 769px) {
    .ts-mobile-detail-popup {
        display: none !important;
    }
    .ts-mobile-price-badge {
        display: none !important;
    }
}

/* Transport row — airline code badge */
.sv2-trow-airline {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    letter-spacing: .4px;
}

/* Transport row — provider badge column */
.sv2-transport-provider {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.sv2-provider-badge--transport {
    font-size: 11px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* Empty-results diagnostics */
.ts-diag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
}

.ts-diag-hero-icon {
    font-size: 3rem;
    color: #1E3054;
    opacity: 0.28;
    margin-bottom: 0.75rem;
}

.ts-diag-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E3054;
}

.ts-diag-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 0.25rem;
}

.ts-diag-nearby-btn {
    border: none;
}

.ts-diag-nearby-spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    animation: ts-diag-nearby-spin 0.7s linear infinite;
}

@keyframes ts-diag-nearby-spin {
    to { transform: rotate(360deg); }
}

.ts-diag-nearby-error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #DC2626;
}

.ts-diag-card {
    width: 100%;
    max-width: 40rem;
    margin-top: 1.75rem;
    text-align: left;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.9rem;
    overflow: hidden;
}

.ts-diag-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #1E3054;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
}

.ts-diag-card-head .material-symbols-outlined {
    font-size: 1.125rem;
}

.ts-diag-staff-tag {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.ts-diag-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid #EEF1F5;
}

.ts-diag-row:first-of-type {
    border-top: none;
}

.ts-diag-count {
    flex-shrink: 0;
    min-width: 2.5rem;
    text-align: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #1E3054;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ts-diag-body {
    min-width: 0;
    flex: 1;
}

.ts-diag-msg {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E3054;
    line-height: 1.35;
}

.ts-diag-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.ts-diag-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.6875rem;
    color: #64748B;
    background: #EEF1F5;
    padding: 0.1rem 0.4rem;
    border-radius: 0.35rem;
}

.ts-diag-chip {
    font-size: 0.6875rem;
    color: #334155;
    background: #E9EDF3;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Mobile list card (Figma) — hidden by default, replaces the desktop card ≤768px ── */
.ts-mc { display: none; }

@media (max-width: 768px) {
    .ts-mc { display: flex; flex-direction: column; }
    /* Hide the desktop header + room rows on mobile; the mobile card replaces them. */
    .ts-mc ~ * { display: none !important; }

    .ts-mc {
        background: #F9FAFB;
        border-radius: 16px;
        isolation: isolate;
    }

    /* Media: horizontal snap carousel */
    .ts-mc-media { position: relative; }
    .ts-mc-imgstrip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 8px;
        border-radius: 16px;
        scrollbar-width: none;
    }
    .ts-mc-imgstrip::-webkit-scrollbar { display: none; }
    .ts-mc-img {
        flex: 0 0 100%;
        height: 156px;
        background-size: cover;
        background-position: center;
        border-radius: 16px;
        scroll-snap-align: start;
        background-color: #e5e7eb;
    }
    /* Multiple images: first ~78% wide so the next image peeks — signals the gallery scrolls (Figma). */
    .ts-mc-imgstrip.ts-mc-multi .ts-mc-img { flex: 0 0 78%; }
    .ts-mc-overlay {
        position: absolute;
        left: 8px; bottom: 8px;
        max-width: calc(100% - 16px);
        display: flex; flex-direction: column;
        gap: 8px;
        padding: 8px;
        background: rgba(83, 81, 81, 0.4);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border-radius: 8px;
        z-index: 1;
    }
    .ts-mc-revrow { display: flex; align-items: center; gap: 8px; }
    .ts-mc-rating {
        display: inline-flex; align-items: center; justify-content: center;
        background: #00BB7D; color: #fff;
        font-weight: 700; font-size: 12px; line-height: 1;
        padding: 4px 12px; border-radius: 24px;
    }
    .ts-mc-reviews { color: #fff; font-size: 10px; font-weight: 600; line-height: 12px; }
    .ts-mc-name { color: #fff; font-size: 12px; font-weight: 600; line-height: 17px; }
    .ts-mc-starloc { display: flex; align-items: center; gap: 8px; }
    .ts-mc-stars { display: inline-flex; align-items: center; }
    .ts-mc-loc { color: #fff; font-size: 12px; font-weight: 600; line-height: 17px; }

    /* Facilities */
    .ts-mc-facilities {
        display: flex; align-items: flex-start;
        gap: 8px;
        justify-content: space-between;
        padding: 16px 16px 0;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .ts-mc-facilities::-webkit-scrollbar { display: none; }
    .ts-mc-fac {
        display: flex; flex-direction: column; align-items: center;
        gap: 4px; padding: 8px; border-radius: 16px; flex: 0 0 auto;
    }
    .ts-mc-fac-ic { width: 16px; height: 16px; object-fit: contain; }
    .ts-mc-fac-lbl { font-size: 12px; font-weight: 500; line-height: 15px; color: #1E3054; text-align: center; white-space: nowrap; }
    .ts-mc-fac-placeholder { filter: blur(3px); opacity: 0.4; user-select: none; pointer-events: none; }

    .ts-mc-divider {
        height: 0; margin: 16px 16px 0;
        border-top: 1px solid #D1D5DB;
    }

    /* Flights — one compact line per leg */
    .ts-mc-flights {
        display: flex; flex-direction: column; gap: 12px;
        padding: 16px 16px 0;
    }
    .ts-mc-flight { display: flex; align-items: center; gap: 6px; }
    .ts-mc-fl-date { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 600; color: #1E3054; flex: 0 0 auto; }
    .ts-mc-fl-logo { height: 18px; width: 18px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
    .ts-mc-fl-code { font-family: 'Inter Tight', sans-serif; font-size: 13px; font-weight: 600; color: #1E3054; flex-shrink: 0; }
    .ts-mc-fl-time { font-family: 'Inter Tight', sans-serif; font-size: 15px; font-weight: 700; color: #1E3054; flex-shrink: 0; }
    .ts-mc-fl-fill { flex: 1 1 0; }
    .ts-mc-fl-plane { flex-shrink: 0; }

    /* Nights + occupancy/dates */
    .ts-mc-inforow {
        display: flex; align-items: center; gap: 16px;
        padding: 16px 16px 0;
    }
    .ts-mc-nights-wrap { position: relative; flex: none; }
    .ts-mc-nights {
        display: flex; align-items: center; gap: 8px;
        padding: 16px; height: 48px;
        background: #E5E7EB; border: none; border-radius: 16px;
        cursor: pointer;
    }
    .ts-mc-nights-val { font-size: 14px; font-weight: 600; color: #1E3054; line-height: 1; }
    .ts-mc-chev { transition: transform 0.15s ease; }
    .ts-mc-nights-menu {
        position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
        background: #fff; border-radius: 12px; padding: 4px;
        box-shadow: 0 8px 24px rgba(30, 48, 84, 0.16);
        min-width: 88px;
    }
    .ts-mc-nights-opt {
        padding: 8px 12px; border-radius: 8px; cursor: pointer;
        font-size: 14px; font-weight: 600; color: #1E3054;
    }
    .ts-mc-nights-opt-active { background: #E5E7EB; }
    .ts-mc-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; flex: 1; }
    .ts-mc-dates { display: flex; align-items: center; gap: 8px; }
    .ts-mc-date-col { display: flex; flex-direction: column; gap: 3px; }
    .ts-mc-date-lbl { font-size: 11px; font-weight: 500; color: #8C95A8; line-height: 1; }
    .ts-mc-date-val { font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 600; color: #1E3054; line-height: 1; }
    .ts-mc-date-sep { align-self: flex-end; font-size: 14px; font-weight: 600; color: #1E3054; line-height: 1; }

    /* Detail rows — label · dotted leader · value · info */
    .ts-mc-details {
        display: flex; flex-direction: column; gap: 12px;
        padding: 16px 16px 0;
    }
    .ts-mc-drow { display: flex; align-items: center; gap: 8px; }
    .ts-mc-dlabel { font-size: 13px; font-weight: 500; color: #8C95A8; flex: 0 0 auto; white-space: nowrap; }
    .ts-mc-dleader { flex: 1 1 auto; align-self: flex-end; height: 0; margin-bottom: 4px; border-bottom: 1px dotted #C4CAD4; }
    .ts-mc-dval { font-size: 13px; font-weight: 600; color: #1E3054; flex: 0 0 auto; white-space: nowrap; text-align: right; }
    .ts-mc-dval-spo { display: inline-flex; align-items: center; gap: 6px; }
    .ts-mc-dbadge {
        display: inline-flex; align-items: center;
        background: #FBBF24; color: #1E3054; border-radius: 6px;
        padding: 1px 6px; font-size: 12px; font-weight: 700; line-height: 1.4;
    }
    .ts-mc-dinfo { font-size: 16px; color: #B0B7C3; flex-shrink: 0; }

    /* Room selector — thumbnail · name · chevron · info */
    .ts-mc-roomsel {
        display: flex; align-items: center; gap: 10px;
        margin: 16px 16px 0; padding: 8px;
        background: #E5E7EB; border-radius: 16px; cursor: pointer;
    }
    .ts-mc-roomsel-thumb {
        position: relative; flex: 0 0 auto;
        width: 72px; height: 52px; border-radius: 12px; overflow: hidden;
        display: flex; align-items: center; justify-content: center;
        background-color: #cbd5e1; background-size: cover; background-position: center;
    }
    .ts-mc-roomsel-count {
        display: inline-flex; align-items: center; gap: 3px;
        color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
        white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    }
    .ts-mc-roomsel-count-ic { font-size: 16px; }
    .ts-mc-roomsel-name {
        flex: 0 1 auto; min-width: 0;
        font-size: 15px; font-weight: 700; color: #1E3054;
        white-space: normal; overflow-wrap: anywhere;
    }
    .ts-mc-roomsel-chev { font-size: 22px; color: #1E3054; flex: 0 0 auto; }
    .ts-mc-roomsel-info { font-size: 20px; color: #B0B7C3; flex: 0 0 auto; margin-left: auto; }

    /* Footer — icons · green price CTA · cart */
    .ts-mc-footer {
        display: flex; align-items: center; gap: 8px;
        padding: 16px;
    }
    .ts-mc-foot-icons { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
    .ts-mc-icobtn {
        position: relative;
        display: inline-flex; align-items: center; justify-content: center;
        width: 40px; height: 40px; border-radius: 12px;
        background: #E5E7EB; border: none; cursor: pointer; color: #1E3054;
    }
    .ts-mc-icobtn .material-symbols-outlined { font-size: 20px; }
    .ts-mc-icobtn-flt::after {
        content: ''; position: absolute; top: 8px; right: 8px;
        width: 7px; height: 7px; border-radius: 50%;
        background: #16A34A; border: 1.5px solid #E5E7EB;
    }
    .ts-mc-price-btn {
        flex: 1 1 auto;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        height: 44px; border-radius: 12px; border: none; cursor: pointer;
        background: #00A16B; color: #fff;
    }
    .ts-mc-price-old { font-size: 13px; font-weight: 600; opacity: 0.7; text-decoration: line-through; }
    .ts-mc-price-new { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 700; }
    .ts-mc-cart-btn {
        flex: 0 0 auto;
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border-radius: 12px;
        background: #1E3054; border: none; cursor: pointer; color: #fff;
    }
    .ts-mc-cart-btn .material-symbols-outlined { font-size: 20px; }
    .ts-mc-cart-on { background: #00A16B; }
}

/* ── Cart: mobile full-screen rich cards (#74) ── */
.ts-cart-mc { display: none; }
@media (max-width: 768px) {
    .ts-cart-overlay { padding: 0 !important; align-items: stretch !important; }
    .ts-cart-panel {
        max-width: none !important;
        max-height: none !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
    }
    .ts-cart-body { background: #F1F5F9; padding: 12px !important; }
    .ts-cart-desktop-only { display: none !important; }
    .ts-cart-item { border-bottom: none !important; }

    .ts-cart-mc {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: #fff;
        border-radius: 20px;
        padding: 12px;
        margin-bottom: 12px;
    }
    .ts-cart-mc-gallery { display: flex; gap: 8px; }
    .ts-cart-mc-img {
        flex: 1 1 0;
        height: 150px;
        border-radius: 14px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #e5e7eb;
    }
    .ts-cart-mc-name {
        font-size: 16px; font-weight: 700; color: #1E3054;
        line-height: 1.25; text-transform: uppercase;
    }
    .ts-cart-mc-starloc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .ts-cart-mc-stars { color: #FBBF24; font-size: 16px; letter-spacing: 2px; }
    .ts-cart-mc-loc { font-size: 14px; font-weight: 600; color: #1E3054; }
    .ts-cart-mc-fac { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
    .ts-cart-mc-facitem { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 40px; }
    .ts-cart-mc-facic { width: 22px; height: 22px; object-fit: contain; }
    .ts-cart-mc-faclbl { font-size: 12px; font-weight: 600; color: #1E3054; text-align: center; }
    .ts-cart-mc-info {
        display: flex; align-items: center; gap: 14px;
        background: #F1F5F9; border-radius: 12px; padding: 12px 16px;
    }
    .ts-cart-mc-info-left { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1E3054; }
    .ts-cart-mc-info-sep { width: 1px; height: 20px; background: #CBD5E1; }
    .ts-cart-mc-info-right { font-weight: 700; color: #1E3054; }
    .ts-cart-mc-meal { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .ts-cart-mc-meal-name { font-size: 15px; font-weight: 700; color: #1E3054; text-transform: uppercase; }
    .ts-cart-mc-meal-pax { font-size: 13px; font-weight: 600; color: #1E3054; opacity: 0.7; white-space: nowrap; }
    .ts-cart-mc-footer {
        display: flex; align-items: center; gap: 10px;
        border-top: 1px solid #E5E7EB; padding-top: 12px;
    }
    .ts-cart-mc-check, .ts-cart-mc-map {
        width: 52px; height: 52px; flex-shrink: 0;
        border: none; border-radius: 16px; background: #E5E7EB; color: #1E3054;
        display: flex; align-items: center; justify-content: center; cursor: pointer;
        transition: background-color 0.15s, color 0.15s;
    }
    .ts-cart-mc-check-on { background: #00BB7D; color: #fff; }
    .ts-cart-mc-details {
        flex: 1; height: 52px;
        border: none; border-radius: 16px; background: #E5E7EB; color: #1E3054;
        font-size: 15px; font-weight: 600; cursor: pointer;
    }
}
