/* Customer Tours index refinement — phase 10.
   Intentionally scoped to .tours-page. Do not change global navigation,
   the public footer, other discovery pages, or booking business logic. */

body.ui-customer.marsata-tours-body .tours-page {
    min-width: 0;
}

body.ui-customer.marsata-tours-body .tours-page .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Shorter hero while retaining the existing wide artwork treatment. */
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero {
    height: auto;
    min-height: 0;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-inner {
    min-height: 292px !important;
    height: auto;
    padding-bottom: 44px;
    column-gap: 28px;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .tour-breadcrumb {
    padding-top: 14px;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-copy {
    padding-top: 0;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero h1 {
    font-size: clamp(34px, 3.8vw, 51px) !important;
    letter-spacing: -.045em !important;
    max-width: 600px;
    margin: 6px 0 10px;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    max-width: 470px;
}
body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-visual {
    height: 210px;
    max-width: 490px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-searchdock {
    margin-top: -38px;
    position: relative;
    z-index: 6;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search {
    padding: 12px 16px;
    border-radius: 16px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(135px, .95fr) minmax(100px, .7fr) auto;
    gap: 0;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-field {
    padding-inline: 17px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-field label {
    margin-bottom: 3px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-field input {
    min-height: 34px;
    font-size: 14px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-submit {
    margin-left: 12px;
    min-height: 46px;
    padding: 12px 18px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-categories {
    padding: 18px 0;
    gap: 8px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-category-chip {
    padding: 8px 12px;
}

/* Let results consume the space previously wasted by fixed-width tracks.
   auto-fit collapses unused columns when only a few listings exist. */
body.ui-customer.marsata-tours-body .tours-page .results-section {
    padding: 20px 0 10px;
    min-width: 0;
}
body.ui-customer.marsata-tours-body .tours-page .results-layout {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    width: 100%;
    min-width: 0;
}
body.ui-customer.marsata-tours-body .tours-page .results-main {
    width: 100%;
    min-width: 0;
}
body.ui-customer.marsata-tours-body .tours-page .tour-grid {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    align-items: stretch;
    gap: 15px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filters {
    position: static;
    top: auto;
    overflow: visible;
    max-height: none;
    min-width: 0;
}
body.ui-customer.marsata-tours-body .tours-page .filter-panel-title {
    padding: 14px 16px 12px;
}
body.ui-customer.marsata-tours-body .tours-page .filter-panel-title h2 {
    font-size: 16px !important;
}
body.ui-customer.marsata-tours-body .tours-page .filter-group {
    padding: 13px 16px;
}
body.ui-customer.marsata-tours-body .tours-page .filter-group + .filter-group {
    padding-top: 13px;
}
body.ui-customer.marsata-tours-body .tours-page .filter-group > label,
body.ui-customer.marsata-tours-body .tours-page .filter-group > legend,
body.ui-customer.marsata-tours-body .tours-page .filter-label {
    margin-bottom: 8px;
}
body.ui-customer.marsata-tours-body .tours-page .marsata-tour-radio-choice {
    margin: 7px 0;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more {
    border-bottom: 1px solid #e9efea;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more > summary {
    display: flex;
    padding: 13px 16px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #285548;
    font-size: 13px;
    font-weight: 750;
    list-style: none;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more > summary::-webkit-details-marker {
    display: none;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more > summary::after {
    content: '+';
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more[open] > summary::after {
    content: '−';
}
body.ui-customer.marsata-tours-body .tours-page .tour-filter-more > summary:focus-visible {
    outline: 3px solid #e8a28a;
    outline-offset: -3px;
}
body.ui-customer.marsata-tours-body .tours-page .filter-apply {
    margin: 14px 16px;
    width: calc(100% - 32px);
}
body.ui-customer.marsata-tours-body .tours-page .saved-search-form {
    padding: 14px 16px;
}

/* Compact results header: meaningful count + functional controls only. */
body.ui-customer.marsata-tours-body .tours-page .results-main .results-toolbar {
    align-items: end;
    gap: 12px;
    margin: 0 0 14px;
}
body.ui-customer.marsata-tours-body .tours-page .results-heading h2 {
    font-size: clamp(23px, 2.2vw, 29px) !important;
    line-height: 1.2;
}
body.ui-customer.marsata-tours-body .tours-page .results-heading p {
    margin-top: 2px;
    font-size: 13px;
}
body.ui-customer.marsata-tours-body .tours-page .results-actions {
    gap: 8px;
}

/* Only the Tour index listing cards, not shared cards on other pages. */
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    gap: 0;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-media {
    aspect-ratio: 16 / 9;
    height: auto;
    flex-shrink: 0;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-body {
    display: flex;
    flex-direction: column;
    min-height: 185px;
    flex: 1 1 auto;
    gap: 7px;
    padding: 13px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing h3 {
    font-size: 16px !important;
    line-height: 1.33;
    min-height: 0;
    margin: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-kicker {
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .04em;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .meta {
    margin-top: 0;
    min-height: 0;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .meta:not(:has(.tour-meta-row)) {
    display: none;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-footer {
    margin-top: auto;
    border-top: 1px solid #edf2ee;
    padding-top: 10px;
    align-items: center;
    gap: 10px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .price {
    min-width: 0;
    font-weight: 700;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .price > span:not(.price-range) {
    display: block;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .price > small {
    display: block;
    margin-top: 1px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-actions {
    flex: 0 0 auto;
}
body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-actions a {
    font-size: 12px;
    white-space: nowrap;
}

/* Tighten non-booking discovery sections without removing useful links. */
body.ui-customer.marsata-tours-body .tours-page .tour-discover-section {
    margin-top: 30px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-discover-head {
    margin-bottom: 14px;
}
body.ui-customer.marsata-tours-body .tours-page .tour-discover-head h2 {
    margin-bottom: 0;
}

/* Tablet: filters become a collapsible block and results span the full page. */
@media (max-width: 930px) {
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-inner {
        min-height: 290px;
        padding-bottom: 44px;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-grid {
        grid-template-columns: 1.4fr 1fr .75fr;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-submit {
        grid-column: 1 / -1;
        margin: 10px 0 0;
    }
    body.ui-customer.marsata-tours-body .tours-page .results-layout {
        display: block;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-filters {
        display: none;
        margin-bottom: 16px;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-filters.is-open {
        display: block;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    }
}
@media (max-width: 760px) {
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-inner {
        min-height: 0;
        padding-bottom: 46px;
    }
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero-visual {
        height: clamp(135px, 30vw, 190px);
        max-width: 490px;
    }
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero h1 {
        font-size: clamp(32px, 7vw, 44px) !important;
    }
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero p {
        font-size: 13px;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-searchdock {
        margin-top: -28px;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px 0;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-field:first-child {
        grid-column: 1 / -1;
    }
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search-submit {
        grid-column: 1 / -1;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.ui-customer.marsata-tours-body .tours-page .results-main .results-toolbar {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    body.ui-customer.marsata-tours-body .tours-page .results-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
@media (max-width: 560px) {
    body.ui-customer.marsata-tours-body .tours-page .marsata-tour-search {
        padding: 12px;
    }
    body.ui-customer.marsata-tours-body .tours-page.tours-page-refreshed .marsata-tour-hero h1 {
        font-size: clamp(30px, 8vw, 38px) !important;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    body.ui-customer.marsata-tours-body .tours-page .tour-card--listing .tour-body {
        min-height: 0;
    }
}
