:root {
    --accent: #14b8a6;
    --accent-dark: #0f766e;
    --ink: #102033;
    --muted: #667085;
    --line: #d9e2ec;
    --primary: #f97316;
    --primary-dark: #c2410c;
    --soft: #f6f8fb;
    --surface: #ffffff;
}

body {
    background: var(--soft);
    color: var(--ink);
}

a {
    text-decoration: none;
}

.site-header {
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar-brand {
    align-items: center;
    display: flex;
    font-weight: 800;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: var(--accent);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.nav-language {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.language-flag {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(16, 32, 51, .16);
    display: inline-block;
    height: 13px;
    overflow: hidden;
    width: 20px;
}

.language-flag-en {
    background:
        linear-gradient(34deg, transparent 42%, #fff 42%, #fff 49%, #c8102e 49%, #c8102e 55%, #fff 55%, #fff 62%, transparent 62%),
        linear-gradient(-34deg, transparent 42%, #fff 42%, #fff 49%, #c8102e 49%, #c8102e 55%, #fff 55%, #fff 62%, transparent 62%),
        linear-gradient(90deg, transparent 42%, #fff 42%, #fff 58%, transparent 58%),
        linear-gradient(0deg, transparent 36%, #fff 36%, #fff 64%, transparent 64%),
        linear-gradient(90deg, transparent 46%, #c8102e 46%, #c8102e 54%, transparent 54%),
        linear-gradient(0deg, transparent 42%, #c8102e 42%, #c8102e 58%, transparent 58%),
        #012169;
    background-size: 100% 100%;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
}

.hero,
.catalog-hero,
.tour-detail-hero,
.page-hero {
    background:
        radial-gradient(circle at 80% 18%, rgba(20, 184, 166, .28), transparent 30%),
        linear-gradient(135deg, #0f2338 0%, #123c4d 54%, #14524e 100%);
    color: #fff;
}

.hero {
    padding: 48px 0 24px;
}

.page-hero,
.catalog-hero,
.tour-detail-hero {
    padding: 48px 0 24px;
}

.hero-grid,
.page-hero-grid,
.detail-hero-grid,
.experience-grid {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.hero-content,
.page-hero-copy,
.detail-hero-copy {
    max-width: 760px;
}

.hero h1,
.catalog-hero h1,
.tour-detail-hero h1,
.page-hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    margin: 12px 0 18px;
}

.hero p,
.catalog-hero p,
.tour-detail-hero p,
.page-hero p {
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    max-width: 670px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-panel,
.review-card,
.content-block,
.reservation-box,
.reservation-form-panel,
.reservation-summary,
.reservation-start,
.portal-login,
.portal-metrics div,
.portal-list-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-panel {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
    padding: 20px;
}

.weekly-route-slider {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: #fff;
    min-height: 360px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.weekly-route-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.weekly-route-head button {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.weekly-route-slide {
    display: none;
}

.weekly-route-slide.is-active {
    display: block;
}

.weekly-route-slide img {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    margin-bottom: 14px;
    object-fit: cover;
    width: 100%;
}

.weekly-route-slide span {
    color: #9cf2e6;
    font-weight: 800;
}

.weekly-route-slide h2 {
    font-size: 28px;
    font-weight: 900;
    margin: 8px 0;
}

.weekly-route-slide p {
    color: rgba(255, 255, 255, .82);
}

.weekly-route-slide div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.hero-panel h2 {
    font-size: 26px;
    font-weight: 900;
    margin: 8px 0;
}

.hero-panel div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-panel span {
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 8px 12px;
}

.search-box,
.catalog-filter {
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 32, 51, .12);
    display: grid;
    gap: 12px;
}

.search-box {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    margin-top: 28px;
    padding: 18px;
}

.catalog-filter {
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto;
    margin: 24px 0 34px;
    padding: 18px;
    position: relative;
    z-index: 2;
}

.catalog-filter-wide {
    grid-column: span 2;
}

.search-box label,
.catalog-filter label {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.eyebrow {
    color: var(--accent);
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.catalog-hero .eyebrow,
.tour-detail-hero .eyebrow,
.page-hero .eyebrow {
    color: #9cf2e6;
}

.section {
    padding: 64px 0;
}

.section-muted,
.catalog-section {
    background: #eef4f7;
}

.section-heading,
.catalog-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-heading h2,
.catalog-header h2,
.experience-grid h2,
.content-block h2,
.reservation-form-panel h1,
.reservation-summary h2,
.reservation-start h1 {
    font-weight: 900;
}

.tour-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tour-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.tour-card-media,
.detail-visual,
.gallery-placeholder,
.destination-card {
    background: linear-gradient(135deg, #0f766e, #f97316);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.tour-card-media {
    display: block;
    flex: 0 0 auto;
    height: 210px;
    width: 100%;
}

.tour-card-media img,
.detail-visual img,
.gallery-grid img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-grid video,
.gallery-grid iframe {
    aspect-ratio: 4 / 3;
    background: #0f172a;
    border: 0;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.tour-card-media span,
.detail-visual span,
.gallery-placeholder span {
    bottom: 18px;
    font-size: 28px;
    font-weight: 900;
    left: 18px;
    position: absolute;
}

.tour-card-media em {
    background: #fff;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    padding: 7px 10px;
    position: absolute;
    right: 14px;
    top: 14px;
}

.tour-art-1 { background: linear-gradient(135deg, #0f766e, #f59e0b); }
.tour-art-2 { background: linear-gradient(135deg, #1d4ed8, #14b8a6); }
.tour-art-3 { background: linear-gradient(135deg, #7c2d12, #fb923c); }
.tour-art-4 { background: linear-gradient(135deg, #4338ca, #0ea5e9); }
.tour-art-5 { background: linear-gradient(135deg, #166534, #84cc16); }
.tour-art-6 { background: linear-gradient(135deg, #be123c, #f97316); }

.tour-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.tour-card-top,
.tour-meta,
.detail-meta,
.tour-card-footer,
.summary-line,
.summary-total,
.success-summary div {
    align-items: center;
    display: flex;
}

.tour-card-top,
.tour-card-footer,
.summary-line,
.summary-total,
.success-summary div {
    justify-content: space-between;
}

.tour-card-top {
    color: var(--muted);
    font-size: 14px;
    gap: 10px;
    min-height: 34px;
}

.tour-card-top > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-card-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.tour-card-top strong {
    color: #d97706;
    white-space: nowrap;
}

.tour-dates-trigger {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    padding: 4px 8px;
    white-space: nowrap;
}

.tour-dates-trigger .tour-dates-arrow {
    font-size: 13px;
    margin-left: 1px;
}

.tour-card h3 {
    font-size: 21px;
    font-weight: 900;
    margin: 10px 0;
    min-height: 52px;
}

.tour-card h3 a {
    color: var(--ink);
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tour-card p {
    color: var(--muted);
    display: -webkit-box;
    line-height: 1.5;
    min-height: 63px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tour-meta,
.detail-meta {
    color: var(--muted);
    flex-wrap: wrap;
    font-size: 14px;
    gap: 12px;
}

.tour-meta {
    min-height: 46px;
}

.tour-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-meta {
    color: rgba(255, 255, 255, .86);
    margin-top: 20px;
}

.tour-card-footer {
    border-top: 1px solid var(--line);
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.tour-card-footer > div {
    min-width: 0;
}

.tour-card-footer small {
    color: var(--muted);
    display: block;
}

.tour-card-footer strong {
    font-size: 20px;
    white-space: nowrap;
}

.destination-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-category-grid,
.package-step-grid {
    display: grid;
    gap: 16px;
}

.home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-category-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 10px;
    min-height: 190px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.home-category-card img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    opacity: .14;
    position: absolute;
    width: 100%;
}

.home-category-card i,
.home-category-card strong,
.home-category-card span {
    position: relative;
}

.home-category-card i {
    align-items: center;
    background: #e8fbf8;
    border-radius: 8px;
    color: var(--accent-dark);
    display: inline-flex;
    font-size: 24px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.home-category-card strong {
    font-size: 19px;
}

.home-category-card span {
    color: var(--muted);
}

.package-step-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.package-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 140px;
    padding: 18px;
}

.package-step span {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    margin-bottom: 16px;
    width: 34px;
}

.package-step strong {
    display: block;
    font-size: 18px;
}

.visual-block-grid .destination-card {
    isolation: isolate;
}

.visual-block-grid .destination-card img {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: -2;
}

.visual-block-grid .destination-card::after {
    background: linear-gradient(180deg, transparent, rgba(16, 32, 51, .72));
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.destination-card {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
}

.destination-card span {
    color: rgba(255, 255, 255, .82);
}

.destination-card strong {
    font-size: 28px;
}

.experience-grid {
    grid-template-columns: 1.1fr .7fr .7fr;
}

.experience-grid p {
    color: var(--muted);
    font-size: 18px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.feature-list span {
    font-weight: 700;
}

.feature-list i {
    color: var(--accent);
}

.review-card {
    padding: 24px;
}

.review-card i {
    color: var(--primary);
    font-size: 30px;
}

.review-card p {
    color: var(--ink);
    font-size: 16px;
    margin-top: 14px;
}

.review-card span {
    color: var(--muted);
    display: block;
}

.cta-band {
    background: var(--accent-dark);
    color: #fff;
}

.cta-band .container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.cta-band h2 {
    font-weight: 900;
    margin: 8px 0 0;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: end;
}

.category-pills a {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    padding: 9px 14px;
}

.category-pills a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-bar {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.detail-visual {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.general-participation-notice {
    align-items: center;
    color: #fff;
    cursor: help;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
    margin-top: 12px;
    outline: none;
    position: relative;
}

.general-participation-notice > span:first-child {
    color: #facc15;
}

.general-participation-tooltip {
    background: #0f172a;
    border-radius: 8px;
    bottom: calc(100% + 10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    left: 0;
    line-height: 1.45;
    max-width: min(340px, 80vw);
    opacity: 0;
    padding: 10px 12px;
    pointer-events: none;
    position: absolute;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
    visibility: hidden;
    width: max-content;
    z-index: 5;
}

.general-participation-notice:hover .general-participation-tooltip,
.general-participation-notice:focus .general-participation-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.detail-layout,
.reservation-flow {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 380px;
}

.content-block,
.reservation-box,
.reservation-form-panel,
.reservation-summary,
.reservation-start {
    padding: 24px;
}

.content-block + .content-block {
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.gallery-grid img,
.gallery-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

.program-content {
    color: #334155;
    line-height: 1.75;
}

.info-list {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 100%;
    padding: 18px;
}

.info-list h3,
.reservation-box h3,
.form-section h2 {
    font-size: 18px;
    font-weight: 900;
}

.reservation-box,
.reservation-summary {
    position: sticky;
    top: 88px;
}

.date-list,
.price-list,
.extra-grid,
.contract-approval-list {
    display: grid;
    gap: 10px;
}

.date-option,
.price-list div,
.extra-option,
.contract-approval,
.passenger-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.date-option,
.price-list div,
.extra-option,
.contract-approval {
    align-items: center;
    display: grid;
    gap: 12px;
}

.date-option {
    grid-template-columns: 1fr auto;
}

.date-option.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, .2);
}

.date-option span,
.extra-option small,
.contract-approval small {
    color: var(--muted);
    display: block;
}

.price-list div {
    grid-template-columns: 1fr auto;
}

.availability-table-wrap {
    overflow-x: auto;
}

.availability-table {
    border-collapse: collapse;
    min-width: 780px;
    width: 100%;
}

.availability-table th,
.availability-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    vertical-align: middle;
}

.availability-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.availability-table td span {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.availability-badge {
    border-radius: 999px;
    display: inline-block !important;
    font-weight: 800;
    padding: 6px 10px;
}

.availability-available { background: #dcfce7; color: #166534 !important; }
.availability-limited { background: #fef3c7; color: #92400e !important; }
.availability-full { background: #fee2e2; color: #991b1b !important; }
.availability-closed { background: #e2e8f0; color: #475569 !important; }

.tour-date-selector {
    background: #fff;
    border: 1px solid rgba(15, 37, 55, .08);
    box-shadow: 0 18px 44px rgba(15, 37, 55, .08);
}

.tour-date-selector-head {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tour-date-selector-head h2 {
    margin: 0;
}

.tour-date-selector-head p {
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    max-width: 360px;
}

.tour-date-card-strip {
    display: grid;
    gap: 14px;
    grid-auto-columns: minmax(210px, calc((100% - 56px) / 5));
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
}

.tour-date-card {
    background: #fff;
    border: 1px solid #dce8ec;
    border-radius: 8px;
    color: #0f2537;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 198px;
    padding: 16px;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tour-date-card:hover {
    border-color: #14c8a8;
    box-shadow: 0 16px 34px rgba(20, 200, 168, .16);
    color: #0f2537;
    transform: translateY(-2px);
}

.tour-date-card.is-selected {
    border-color: #14c8a8;
    box-shadow: 0 0 0 2px rgba(20, 200, 168, .18), 0 18px 34px rgba(20, 200, 168, .14);
}

.tour-date-card.is-disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .72;
    pointer-events: none;
}

.tour-date-check {
    align-items: center;
    background: #14c8a8;
    border-radius: 999px;
    color: #fff;
    display: none;
    height: 26px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 26px;
}

.tour-date-card.is-selected .tour-date-check {
    display: inline-flex;
}

.tour-date-range {
    color: #056c68;
    font-size: 13px;
    font-weight: 900;
}

.tour-date-card strong {
    font-size: 22px;
    line-height: 1.1;
}

.tour-date-departure,
.tour-date-quota {
    color: #64748b;
    font-size: 13px;
}

.tour-date-status {
    align-self: flex-start;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.status-available .tour-date-status { background: #dcfce7; color: #166534; }
.status-limited .tour-date-status { background: #ffedd5; color: #9a3412; }
.status-full .tour-date-status { background: #fee2e2; color: #991b1b; }
.status-closed .tour-date-status { background: #e2e8f0; color: #475569; }

.tour-date-price {
    color: #0f766e;
    font-size: 20px;
    font-weight: 950;
    margin-top: auto;
}

.selected-date-summary {
    background: #f3fbfb;
    border: 1px solid rgba(20, 200, 168, .28);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 14px;
}

.selected-date-summary span,
.selected-date-summary small {
    color: var(--muted);
    font-size: 13px;
}

.selected-date-summary strong {
    color: #0f2537;
}

.reservation-page {
    background: #eef4f7;
}

.reservation-form-panel h1 {
    margin: 8px 0;
}

.form-section {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 22px;
}

.extra-option {
    cursor: pointer;
    grid-template-columns: auto 1fr auto;
}

.extra-option em {
    font-style: normal;
    font-weight: 900;
}

.contract-approval {
    align-items: start;
    grid-template-columns: auto 1fr;
}

.passenger-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 120px repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
}

.passenger-row strong {
    align-self: center;
}

.summary-line,
.summary-total,
.success-summary div {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.summary-total {
    border-bottom: 0;
    font-size: 20px;
    font-weight: 900;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
}

.empty-state.small {
    padding: 14px;
}

.tour-date-modal-head {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 140px 1fr;
    margin-bottom: 16px;
}

.tour-date-modal-head img,
.tour-date-modal-placeholder {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.tour-date-modal-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #0f766e, #f97316);
    color: #fff;
    display: flex;
    font-weight: 900;
    justify-content: center;
}

.tour-date-helper {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    font-weight: 800;
    gap: 6px;
    margin-top: 8px;
}

.tour-date-list {
    display: grid;
    gap: 10px;
}

.tour-date-row {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    padding: 12px;
}

.tour-date-row small {
    color: var(--muted);
    display: block;
    font-size: 12px;
}

.tour-date-row strong {
    display: block;
}

.tour-detail-date-select {
    margin-bottom: 12px;
}

.tour-price-summary {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.tour-price-chip {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
}

.tour-price-chip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.tour-price-chip strong {
    color: var(--ink);
    font-size: 17px;
}

.tour-date-click-hint {
    align-items: center;
    background: #ecfeff;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    color: #0f766e;
    display: flex;
    font-weight: 900;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    transition: opacity .25s ease, transform .25s ease;
}

.tour-date-click-hint button {
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    margin-left: auto;
}

.tour-date-click-hint.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.coupon-panel {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 14px;
    padding: 14px;
}

.contract-modal-trigger {
    appearance: none;
    background: #fff;
    border: 1px solid var(--line);
    color: inherit;
    cursor: pointer;
    text-align: left;
    width: 100%;
    grid-template-columns: auto 1fr auto;
}

.contract-modal-trigger:hover {
    border-color: #14b8a6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.contract-checkbox {
    pointer-events: none;
}

.contract-open-icon {
    color: #64748b;
    font-size: 1.1rem;
}

.contract-scroll {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #334155;
    line-height: 1.7;
    max-height: 58vh;
    overflow: auto;
    padding: 18px;
}

.site-footer {
    background: #102033;
    color: #cbd5e1;
    padding: 34px 0;
}

.site-footer a {
    color: #fff;
}

.pwa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.portal-metrics,
.portal-grid {
    display: grid;
    gap: 16px;
}

.portal-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-wide {
    grid-column: 1 / -1;
}

.portal-login,
.portal-metrics div,
.portal-list-item {
    padding: 18px;
}

.portal-list {
    display: grid;
    gap: 10px;
}

.portal-list-item {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.portal-list-item span,
.portal-header p {
    color: var(--muted);
}

@media (min-width: 992px) {
    .col-lg-3 .tour-card-media {
        height: 190px;
    }
}

@media (max-width: 1200px) {
    .catalog-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-tour-search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-tour-search-field.is-wide,
    .home-tour-search-submit {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .page-hero-grid,
    .detail-hero-grid,
    .experience-grid,
    .detail-layout,
    .reservation-flow,
    .tour-grid,
    .destination-grid,
    .home-category-grid,
    .package-step-grid,
    .portal-grid,
    .portal-metrics {
        grid-template-columns: 1fr;
    }

    .search-box,
    .catalog-filter {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-filter-wide {
        grid-column: span 2;
    }

    .reservation-box,
    .reservation-summary {
        position: static;
    }

    .passenger-row {
        grid-template-columns: 1fr 1fr;
    }

    .tour-card-media {
        height: 220px;
    }
}

@media (max-width: 680px) {
    .hero,
    .page-hero,
    .catalog-hero,
    .tour-detail-hero {
        padding-top: 42px;
    }

    .search-box,
    .catalog-filter,
    .gallery-grid,
    .passenger-row,
    .extra-option,
    .tour-date-modal-head,
    .tour-date-row,
    .cta-band .container {
        grid-template-columns: 1fr;
    }

    .catalog-filter-wide,
    .home-tour-search-field.is-wide,
    .home-tour-search-submit {
        grid-column: auto;
    }

    .home-tour-search {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .catalog-header {
        align-items: start;
        flex-direction: column;
    }

    .category-pills {
        justify-content: start;
    }

    .tour-card-media {
        height: 210px;
    }
}

.home-reference-page {
    background: #fff;
    color: #0f2537;
}

.home-ref-hero {
    background: #06243a;
    color: #fff;
    min-height: 675px;
    overflow: hidden;
    position: relative;
}

.home-ref-hero::before {
    background-image: var(--hero-bg);
    background-position: center;
    background-size: cover;
    content: "";
    inset: 0;
    opacity: .58;
    position: absolute;
}

.home-ref-hero-overlay {
    background: linear-gradient(90deg, rgba(6, 36, 58, .96) 0%, rgba(6, 36, 58, .72) 45%, rgba(6, 36, 58, .34) 100%);
    inset: 0;
    position: absolute;
}

.home-ref-hero-inner {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1.35fr) minmax(410px, .75fr);
    padding-bottom: 36px;
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.home-ref-hero-copy {
    align-self: center;
    max-width: 780px;
}

.home-ref-kicker {
    color: #14c8a8;
    display: inline-block;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.home-ref-kicker.dark {
    color: #056c68;
}

.home-ref-hero h1 {
    color: #fff;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 22px;
    max-width: 800px;
}

.home-ref-hero-copy p {
    color: rgba(255, 255, 255, .92);
    font-size: 18px;
    line-height: 1.75;
    margin: 0;
    max-width: 760px;
}

.home-ref-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.home-ref-button {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(2, 16, 28, .16);
    color: #0f2537;
    display: inline-flex;
    font-weight: 850;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-ref-button:hover {
    box-shadow: 0 16px 34px rgba(2, 16, 28, .24);
    color: #0f2537;
    transform: translateY(-2px);
}

.home-ref-button.is-primary {
    background: linear-gradient(135deg, #14c8a8, #05a88d);
    border-color: transparent;
    color: #fff;
}

.home-ref-button.is-primary:hover {
    color: #fff;
}

.home-route-card {
    align-self: start;
    background: rgba(4, 38, 59, .78);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
    overflow: hidden;
    padding: 26px;
    position: relative;
}

.home-route-card::before {
    backdrop-filter: blur(14px);
    content: "";
    inset: 0;
    position: absolute;
    z-index: -1;
}

.home-route-card-head h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    margin: 0;
}

.home-route-card-head span {
    background: #14c8a8;
    display: block;
    height: 3px;
    margin: 8px 0 20px;
    width: 128px;
}

.home-route-slide {
    display: none;
}

.home-route-slide.is-active {
    display: block;
}

.home-route-image {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}

.home-route-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home-route-copy {
    background: linear-gradient(180deg, rgba(6, 36, 58, .25), rgba(3, 23, 36, .92));
    border-radius: 0 0 10px 10px;
    margin-top: -118px;
    min-height: 160px;
    padding: 72px 20px 18px;
    position: relative;
}

.home-route-copy h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 6px;
}

.home-route-copy p {
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 12px;
}

.home-route-bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.home-route-bottom strong {
    color: #14c8a8;
    font-size: 18px;
}

.home-route-bottom a {
    background: #fff;
    border-radius: 999px;
    color: #0f2537;
    font-weight: 900;
    padding: 10px 24px;
}

.home-route-controls {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: 44px 1fr 44px;
    margin-top: 16px;
}

.home-route-controls > button,
.home-ref-round-nav {
    align-items: center;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.home-route-dots {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.home-route-dots button {
    background: rgba(255, 255, 255, .46);
    border: 0;
    border-radius: 999px;
    height: 12px;
    padding: 0;
    width: 12px;
}

.home-route-dots button.is-active {
    background: #fff;
}

.home-trust-bar {
    align-self: end;
    display: grid;
    gap: 22px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 6px;
}

.home-trust-item {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px 1fr;
}

.home-trust-item i {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    color: #14c8a8;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.home-trust-item strong,
.home-trust-item span {
    display: block;
}

.home-trust-item strong {
    color: #fff;
    font-weight: 900;
}

.home-trust-item span {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
}

.home-tour-search {
    align-items: end;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(2, 16, 28, .28);
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(150px, .85fr)) repeat(2, minmax(96px, .46fr)) auto;
    margin-top: -2px;
    padding: 14px;
}

.home-tour-search-field label {
    color: #536171;
    display: block;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 6px;
}

.home-tour-search-control {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #dbe5ee;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 18px 1fr;
    min-height: 48px;
    padding: 0 10px;
}

.home-tour-search-control i {
    color: #0f766e;
    font-size: 16px;
}

.home-tour-search-control .form-control {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #102033;
    min-height: 44px;
    padding: 0;
}

.home-tour-search-submit {
    align-items: center;
    background: #f97316;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    white-space: nowrap;
}

.home-tour-search-submit:hover {
    background: #c2410c;
}

.home-ref-categories {
    background: #fff;
    padding: 34px 0 42px;
}

.home-ref-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.home-ref-section-head h2 {
    color: #0f2537;
    font-size: 28px;
    font-weight: 900;
    margin: 0;
}

.home-ref-section-head a {
    color: #05a88d;
    font-weight: 900;
}

.home-ref-category-wrap {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.home-ref-category-wrap .home-ref-round-nav {
    background: #fff;
    border-color: #e5eef0;
    box-shadow: 0 10px 24px rgba(15, 37, 55, .12);
    color: #0f2537;
}

.home-ref-category-row {
    display: grid;
    gap: 14px;
    grid-auto-columns: minmax(126px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
    padding: 8px 2px 14px;
    scrollbar-width: thin;
}

.home-ref-category-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e7eef0;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(15, 37, 55, .1);
    color: #0f2537;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 108px;
    padding: 18px 12px;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-ref-category-card:hover {
    border-color: #14c8a8;
    box-shadow: 0 18px 34px rgba(20, 200, 168, .18);
    color: #0f2537;
    transform: translateY(-4px);
}

.home-ref-category-card i {
    color: #056c68;
    font-size: 30px;
}

.home-ref-category-card strong {
    font-size: 15px;
    line-height: 1.2;
}

.home-ref-package {
    background: #f3fbfb;
    padding: 62px 0;
}

.home-ref-package-grid {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: 350px minmax(0, 1fr);
}

.home-ref-package-copy h2 {
    color: #0f2537;
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 12px;
}

.home-ref-package-copy p {
    color: #0f2537;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}

.home-ref-illustration {
    align-items: end;
    display: flex;
    gap: 14px;
    margin-top: 30px;
    min-height: 120px;
}

.home-ref-illustration i {
    align-items: center;
    background: #dff6f1;
    border-radius: 22px;
    color: #056c68;
    display: inline-flex;
    font-size: 42px;
    height: 86px;
    justify-content: center;
    width: 86px;
}

.home-ref-illustration i:first-child {
    background: #14c8a8;
    color: #fff;
    height: 118px;
    width: 92px;
}

.home-ref-timeline {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: relative;
}

.home-ref-timeline::before {
    background: repeating-linear-gradient(90deg, #14c8a8 0 8px, transparent 8px 14px);
    content: "";
    height: 1px;
    left: 9%;
    opacity: .65;
    position: absolute;
    right: 9%;
    top: 0;
}

.home-ref-step {
    background: #fff;
    border: 1px solid #e2eef0;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 37, 55, .1);
    min-height: 210px;
    padding: 32px 18px 22px;
    position: relative;
    text-align: center;
}

.home-ref-step-number {
    align-items: center;
    background: #11b99d;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: -19px;
    transform: translateX(-50%);
    width: 38px;
}

.home-ref-step-icon {
    align-items: center;
    background: #dff6f1;
    border-radius: 999px;
    color: #056c68;
    display: inline-flex;
    font-size: 30px;
    height: 64px;
    justify-content: center;
    margin-bottom: 18px;
    width: 64px;
}

.home-ref-step h3 {
    color: #0f2537;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 10px;
}

.home-ref-step p {
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1200px) {
    .home-ref-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-route-card {
        max-width: 560px;
    }

    .home-ref-package-grid,
    .home-ref-timeline {
        grid-template-columns: 1fr;
    }

    .home-ref-timeline::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .home-ref-hero {
        min-height: auto;
    }

    .home-ref-hero-inner {
        padding-bottom: 28px;
        padding-top: 38px;
    }

    .home-ref-hero h1 {
        font-size: 36px;
    }

    .home-ref-button,
    .home-ref-actions {
        width: 100%;
    }

    .home-ref-button {
        justify-content: center;
    }

    .home-route-card {
        padding: 16px;
    }

    .home-route-copy {
        margin-top: -70px;
        padding: 52px 14px 14px;
    }

    .home-route-copy h3 {
        font-size: 22px;
    }

    .home-trust-bar {
        grid-template-columns: 1fr;
    }

    .home-ref-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .home-ref-category-wrap {
        grid-template-columns: 1fr;
    }

    .home-ref-round-nav {
        display: none;
    }
}

/* Reference v2 homepage refinements */
.home-reference-page .home-ref-hero {
    min-height: 560px;
}

.home-reference-page .home-ref-hero::before {
    background-position: center center;
    opacity: .9;
}

.home-reference-page .home-ref-hero::before {
    display: none;
}

.home-hero-bg-stack,
.home-hero-bg {
    inset: 0;
    position: absolute;
}

.home-hero-bg-stack {
    overflow: hidden;
    z-index: 0;
}

.home-hero-bg {
    background-position: center center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1200ms ease;
}

.home-hero-bg.is-active {
    opacity: 1;
}

.home-reference-page .home-ref-hero-overlay {
    background:
        linear-gradient(90deg, rgba(6, 36, 58, .88) 0%, rgba(6, 36, 58, .68) 42%, rgba(5, 108, 104, .25) 100%),
        linear-gradient(180deg, rgba(6, 36, 58, .04) 0%, rgba(6, 36, 58, .58) 100%);
    z-index: 1;
}

.home-reference-page .home-ref-hero-inner {
    align-items: center;
    gap: 28px;
    grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 560px;
    padding-bottom: 20px;
    padding-top: 32px;
    position: relative;
    z-index: 2;
}

.home-reference-page .home-ref-hero-copy {
    max-width: 690px;
}

.home-reference-page .home-ref-kicker {
    font-size: 12px;
    margin-bottom: 10px;
}

.home-reference-page .home-ref-hero h1 {
    font-size: clamp(34px, 3.8vw, 48px);
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 660px;
}

.home-reference-page .home-ref-hero-copy p {
    font-size: 16px;
    line-height: 1.55;
    max-width: 650px;
}

.home-reference-page .home-ref-actions {
    gap: 10px;
    margin-top: 22px;
}

.home-reference-page .home-ref-button {
    border-radius: 999px;
    min-height: 44px;
    padding: 0 15px;
}

.home-reference-page .home-route-card {
    align-self: center;
    background: rgba(5, 34, 52, .72);
    border-color: rgba(255, 255, 255, .24);
    border-radius: 18px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, .32);
    max-height: 476px;
    padding: 18px;
}

.home-reference-page .home-route-card-head h2 {
    font-size: 21px;
}

.home-reference-page .home-route-card-head span {
    margin-bottom: 14px;
    width: 96px;
}

.home-reference-page .home-route-image {
    aspect-ratio: 16 / 10;
    background: #06243a;
}

.home-reference-page .home-route-copy {
    margin-top: -94px;
    min-height: 136px;
    padding: 54px 16px 14px;
}

.home-reference-page .home-route-copy h3 {
    font-size: 22px;
}

.home-reference-page .home-route-copy p {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-reference-page .home-route-controls {
    gap: 10px;
    grid-template-columns: 38px 1fr 38px;
    margin-top: 12px;
}

.home-reference-page .home-route-controls > button {
    height: 38px;
    width: 38px;
}

.home-reference-page .home-route-dots {
    gap: 8px;
}

.home-reference-page .home-route-dots button {
    height: 8px;
    width: 8px;
}

.home-reference-page .home-trust-bar {
    align-self: end;
    background: rgba(4, 28, 43, .38);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    gap: 16px;
    margin-top: 0;
    padding: 14px 18px;
}

.home-reference-page .home-trust-item {
    gap: 10px;
    grid-template-columns: 30px 1fr;
    min-width: 0;
}

.home-reference-page .home-trust-item i {
    height: 30px;
    width: 30px;
}

.home-reference-page .home-trust-item span {
    display: none;
}

.home-reference-page .home-ref-categories {
    padding: 26px 0 32px;
}

.home-reference-page .home-ref-category-row {
    grid-auto-columns: minmax(118px, 132px);
    padding-bottom: 10px;
}

.home-reference-page .home-ref-category-card {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 37, 55, .08);
    gap: 9px;
    min-height: 92px;
    padding: 14px 10px;
}

.home-reference-page .home-ref-category-card i {
    font-size: 24px;
}

.home-reference-page .home-ref-category-card strong {
    display: -webkit-box;
    font-size: 13px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-reference-page .home-ref-package {
    padding: 48px 0;
}

.home-reference-page .home-ref-timeline {
    align-items: stretch;
}

.home-reference-page .home-ref-step {
    display: flex;
    flex-direction: column;
    min-height: 196px;
    padding: 30px 14px 18px;
}

.home-reference-page .home-ref-step-icon {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.home-reference-page .home-ref-step h3 {
    min-height: 42px;
}

.category-pills {
    align-items: flex-start;
    max-height: 94px;
    overflow: hidden;
}

.category-pills.is-expanded {
    max-height: none;
}

.category-pills a {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    min-height: 36px;
    padding: 8px 12px;
}

.catalog-header {
    align-items: flex-start;
}

.category-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 70%;
}

.category-toggle {
    align-self: flex-end;
    white-space: nowrap;
}

.site-footer {
    padding: 18px 0;
}

.footer-inner {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .8fr) auto;
}

.site-footer p {
    font-size: 13px;
    line-height: 1.45;
}

.footer-links,
.pwa-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.footer-links a {
    font-size: 13px;
    white-space: nowrap;
}

.pwa-actions {
    justify-content: flex-end;
}

.pwa-actions .btn {
    min-height: 32px;
    padding: 5px 10px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .home-reference-page .home-ref-hero,
    .home-reference-page .home-ref-hero-inner {
        min-height: auto;
    }

    .home-reference-page .home-ref-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 34px;
    }

    .home-reference-page .home-route-card {
        justify-self: start;
        max-width: 520px;
    }
}

@media (max-width: 992px) {
    .category-filter-panel {
        max-width: 100%;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .pwa-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .tour-date-selector-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tour-date-card-strip {
        grid-auto-columns: minmax(230px, 82vw);
    }

    .home-reference-page .home-ref-hero-inner {
        gap: 22px;
        padding-bottom: 20px;
        padding-top: 28px;
    }

    .home-reference-page .home-ref-hero h1 {
        font-size: 31px;
    }

    .home-reference-page .home-ref-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .home-reference-page .home-ref-button,
    .home-reference-page .home-ref-actions {
        width: auto;
    }

    .home-reference-page .home-ref-button {
        font-size: 13px;
        min-height: 42px;
        padding: 0 10px;
    }

    .home-reference-page .home-route-card {
        max-height: none;
        width: 100%;
    }

    .home-reference-page .home-trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    .home-reference-page .home-trust-item strong {
        font-size: 13px;
    }

    .home-reference-page .home-ref-category-row {
        grid-auto-columns: minmax(104px, 118px);
    }

    .category-pills {
        flex-wrap: nowrap;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .category-pills a {
        flex: 0 0 auto;
    }

    .category-toggle {
        display: none;
    }
}

.home-reference-page .home-route-date {
    background: #dff6f1;
    border-radius: 999px;
    color: #056c68;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
    padding: 6px 10px;
}

.home-reference-page .home-route-bottom strong {
    color: #14b8a6;
    font-size: 22px;
}

.home-reference-page .home-route-bottom a {
    align-items: center;
    background: linear-gradient(135deg, #14c8a8, #05a88d);
    color: #fff;
    display: inline-flex;
    gap: 10px;
}

.home-reference-page .home-route-controls {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    position: relative;
}

.home-reference-page .home-route-controls > button {
    background: #fff;
    border: 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
    color: #0f2537;
    height: 44px;
    position: absolute;
    top: -242px;
    width: 44px;
    z-index: 3;
}

.home-reference-page .home-route-controls > button:first-child {
    left: -40px;
}

.home-reference-page .home-route-controls > button:last-child {
    right: -40px;
}

.home-reference-page .home-route-dots button {
    background: rgba(255, 255, 255, .82);
}

.home-reference-page .home-route-dots button.is-active {
    background: #14c8a8;
}

@media (max-width: 1200px) {
    .home-reference-page .home-route-controls > button {
        top: -220px;
    }

    .home-reference-page .home-route-controls > button:first-child {
        left: 8px;
    }

    .home-reference-page .home-route-controls > button:last-child {
        right: 8px;
    }
}

@media (max-width: 760px) {
    .home-reference-page .home-route-controls > button {
        height: 40px;
        top: -210px;
        width: 40px;
    }

    .home-reference-page .home-route-copy {
        padding: 14px;
    }
}

/* Homepage compact visual tuning */
.home-reference-page .home-ref-hero {
    min-height: 420px;
}

.home-reference-page .home-ref-hero-inner {
    min-height: 420px;
    padding-bottom: 16px;
    padding-top: 24px;
}

.home-reference-page .home-ref-hero h1 {
    font-size: clamp(30px, 3.2vw, 40px);
    margin-bottom: 12px;
}

.home-reference-page .home-ref-hero-copy p {
    font-size: 15px;
    line-height: 1.45;
}

.home-reference-page .home-route-card {
    max-height: 390px;
    padding: 14px;
}

.home-reference-page .home-route-card-head h2 {
    font-size: 19px;
}

.home-reference-page .home-route-card-head span {
    margin-bottom: 10px;
}

.home-reference-page .home-route-image {
    aspect-ratio: 16 / 8.8;
}

.home-reference-page .home-route-copy {
    margin-top: -78px;
    min-height: 112px;
    padding: 44px 14px 12px;
}

.home-reference-page .home-route-copy h3 {
    font-size: 19px;
}

.home-reference-page .home-route-copy p {
    font-size: 13px;
    line-height: 1.35;
}

.home-reference-page .home-route-bottom a {
    padding: 8px 16px;
}

.home-reference-page .home-route-controls > button {
    height: 38px;
    top: -188px;
    width: 38px;
}

.home-reference-page .home-route-controls > button:first-child {
    left: 10px;
}

.home-reference-page .home-route-controls > button:last-child {
    right: 10px;
}

.home-reference-page .home-trust-bar {
    gap: 12px;
    padding: 10px 14px;
}

.home-tour-section.section,
.home-reference-page .section,
.home-ref-categories,
.home-ref-package {
    padding-bottom: 44px;
    padding-top: 44px;
}

.home-tour-section .section-heading {
    margin-bottom: 16px;
}

.home-tour-section .row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 14px;
}

.home-tour-section .tour-card-media {
    height: 150px;
}

.home-tour-section .tour-card-body {
    padding: 12px;
}

.home-tour-section .tour-card-top {
    font-size: 12px;
    min-height: 26px;
}

.home-tour-section .tour-card-top {
    align-items: flex-start;
    flex-direction: column;
}

.home-tour-section .tour-card-actions {
    justify-content: space-between;
    width: 100%;
}

.home-tour-section .tour-dates-trigger {
    font-size: 11px;
    max-width: 152px;
    padding: 4px 7px;
}

.home-tour-section .tour-card h3 {
    font-size: 17px;
    margin: 7px 0;
    min-height: 42px;
}

.home-tour-section .tour-card p {
    font-size: 13px;
    line-height: 1.35;
    min-height: 36px;
    -webkit-line-clamp: 2;
}

.home-tour-section .tour-meta {
    font-size: 12px;
    gap: 8px;
    min-height: 28px;
}

.home-tour-section .tour-card-footer {
    padding-top: 10px;
}

.home-tour-section .tour-card-footer strong {
    font-size: 17px;
}

.home-reference-page .destination-grid {
    gap: 12px;
}

@media (max-width: 1200px) {
    .home-reference-page .home-ref-hero,
    .home-reference-page .home-ref-hero-inner {
        min-height: auto;
    }

    .home-reference-page .home-route-controls > button {
        top: -176px;
    }
}

/* Keep weekly route controls out of the image area */
.home-reference-page .home-route-controls {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    margin-top: 12px;
    position: static;
}

.home-reference-page .home-route-controls > button {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: none;
    color: #fff;
    position: static;
}

.home-reference-page .home-route-controls > button:first-child,
.home-reference-page .home-route-controls > button:last-child {
    left: auto;
    right: auto;
}

@media (max-width: 760px) {
    .home-reference-page .home-route-controls > button {
        top: -174px;
    }
}

.site-support-widget {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.site-support-toggle {
    width: 66px;
    height: 66px;
    border: 0;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    box-shadow: 0 16px 35px rgba(15, 118, 110, 0.32);
    display: grid;
    place-items: center;
    gap: 1px;
    font-weight: 800;
    line-height: 1;
}

.site-support-toggle i {
    font-size: 1.45rem;
}

.site-support-toggle span {
    font-size: 0.68rem;
}

.site-support-panel {
    width: min(320px, calc(100vw - 32px));
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.site-support-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    color: #0f172a;
}

.site-support-head button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.site-support-actions {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.site-support-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-support-action:hover {
    border-color: #14b8a6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    color: #0f172a;
    transform: translateY(-1px);
}

.site-support-action i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.site-support-action.is-whatsapp i {
    background: #22c55e;
}

.site-support-action.is-email i {
    background: #2563eb;
}

.site-support-action span {
    display: grid;
    min-width: 0;
}

.site-support-action small {
    color: #64748b;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .site-support-widget {
        right: 14px;
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .site-support-toggle {
        width: 58px;
        height: 58px;
    }

    .site-support-toggle span {
        display: none;
    }

    .site-support-panel {
        width: min(300px, calc(100vw - 28px));
    }
}

/* Final homepage route controls: keep actions inside the weekly route card. */
.home-reference-page .home-route-card {
    max-height: none;
    overflow: hidden;
    padding: 12px;
}

.home-reference-page .home-route-card-head h2 {
    font-size: 18px;
}

.home-reference-page .home-route-card-head span {
    margin: 6px 0 8px;
}

.home-reference-page .home-route-image {
    aspect-ratio: 16 / 7.8;
}

.home-reference-page .home-route-copy {
    margin-top: -58px;
    min-height: 98px;
    padding: 30px 12px 10px;
}

.home-reference-page .home-route-copy h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.home-reference-page .home-route-copy p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 6px;
    -webkit-line-clamp: 1;
}

.home-reference-page .home-route-date {
    font-size: 11px;
    margin-bottom: 6px;
    padding: 4px 8px;
}

.home-reference-page .home-route-bottom {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.home-reference-page .home-route-bottom strong {
    font-size: 17px;
}

.home-reference-page .home-route-bottom a {
    flex: 0 0 auto;
    min-width: 104px;
    justify-content: center;
    padding: 7px 14px;
    text-decoration: none;
}

.home-reference-page .home-route-controls {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 36px minmax(60px, 1fr) 36px;
    justify-content: initial;
    margin-top: 8px;
    position: static;
}

.home-reference-page .home-route-controls > button,
.home-reference-page .home-route-controls > button:first-child,
.home-reference-page .home-route-controls > button:last-child {
    align-items: center;
    background: #fff;
    border: 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    color: #0f2537;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    left: auto;
    opacity: 1;
    position: static;
    right: auto;
    top: auto;
    visibility: visible;
    width: 36px;
    z-index: 3;
}

.home-reference-page .home-route-controls > button:hover {
    background: #14b8a6;
    color: #fff;
}

@media (max-width: 560px) {
    .home-reference-page .home-route-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .home-reference-page .home-route-bottom a {
        width: 100%;
    }
}

.home-reference-page .home-ref-package,
.home-ref-package {
    padding-bottom: 32px;
    padding-top: 32px;
}

.home-reference-page .home-ref-package-grid,
.home-ref-package-grid {
    gap: 22px;
}

.home-reference-page .home-ref-package-copy h2,
.home-ref-package-copy h2 {
    font-size: 25px;
    margin-bottom: 8px;
}

.home-reference-page .home-ref-package-copy p,
.home-ref-package-copy p {
    font-size: 14px;
    line-height: 1.45;
}

.home-reference-page .home-ref-illustration,
.home-ref-illustration {
    margin-top: 18px;
    min-height: 88px;
}

.home-reference-page .home-ref-illustration i,
.home-ref-illustration i {
    border-radius: 18px;
    font-size: 32px;
    height: 64px;
    width: 64px;
}

.home-reference-page .home-ref-illustration i:first-child,
.home-ref-illustration i:first-child {
    height: 88px;
    width: 72px;
}

.home-reference-page .home-ref-step,
.home-ref-step {
    min-height: 154px;
    padding: 24px 12px 14px;
}

.home-reference-page .home-ref-step-number,
.home-ref-step-number {
    height: 32px;
    top: -16px;
    width: 32px;
}

.home-reference-page .home-ref-step-icon,
.home-ref-step-icon {
    font-size: 24px;
    height: 50px;
    margin-bottom: 12px;
    width: 50px;
}

.home-reference-page .home-ref-step h3,
.home-ref-step h3 {
    font-size: 15px;
    margin-bottom: 6px;
    min-height: 36px;
}

.home-reference-page .home-ref-step p,
.home-ref-step p {
    font-size: 12px;
    line-height: 1.35;
}

.contact-form-panel {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    margin-top: 28px;
    padding: 28px;
}

.contact-form-panel h2 {
    color: #0f172a;
    font-weight: 900;
    margin-bottom: 8px;
}

.contact-form-panel p {
    color: #64748b;
    margin-bottom: 20px;
}

.contact-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-message {
    grid-column: 1 / -1;
}

.contact-form-message textarea {
    min-height: 150px;
}

.contact-form-grid button {
    justify-self: start;
}

@media (max-width: 768px) {
    .contact-form-panel {
        border-radius: 14px;
        padding: 18px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.home-reference-page .home-ref-package,
.home-reference-page #homeTours,
.home-reference-page .home-ref-categories,
.home-reference-page .section-muted,
.tour-detail-hero + .section .content-block,
.tour-detail-hero + .section .reservation-box {
    content-visibility: auto;
    contain-intrinsic-size: 1px 520px;
}

/* Final responsive layout: keep homepage, search and catalog aligned on tablet/mobile. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.site-header .container,
.home-reference-page .container {
    min-width: 0;
}

.navbar-brand {
    min-width: 0;
}

.navbar-brand span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .home-reference-page .home-ref-hero {
        min-height: auto;
    }

    .home-reference-page .home-ref-hero-inner {
        align-items: stretch;
        display: grid;
        gap: 18px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        padding-bottom: 26px;
        padding-top: 28px;
    }

    .home-reference-page .home-ref-hero-copy,
    .home-reference-page .home-route-card,
    .home-reference-page .home-trust-bar,
    .home-tour-search {
        grid-column: 1;
        max-width: none;
        width: 100%;
    }

    .home-reference-page .home-route-card {
        justify-self: stretch;
    }

    .home-tour-search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0;
    }

    .home-tour-search-field.is-wide,
    .home-tour-search-submit {
        grid-column: 1 / -1;
    }

    .catalog-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-filter-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
    }

    .navbar-brand span:last-child {
        max-width: min(56vw, 420px);
    }

    .navbar-collapse {
        padding-top: 12px;
    }

    .navbar-nav {
        align-items: stretch !important;
        gap: 4px !important;
    }

    .navbar-nav .nav-link {
        border-radius: 8px;
        padding: 10px 12px;
    }

    .navbar-nav .dropdown-menu {
        border-radius: 8px;
        box-shadow: none;
        margin: 0 0 8px;
    }

    .home-reference-page .home-ref-hero h1 {
        max-width: 100%;
    }

    .home-reference-page .home-ref-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .home-reference-page .home-ref-button {
        justify-content: center;
        min-width: 0;
        text-align: center;
        width: 100%;
    }

    .home-reference-page .home-trust-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-wide,
    .catalog-filter .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .home-reference-page .home-ref-hero-inner {
        gap: 14px;
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .home-reference-page .home-ref-kicker {
        font-size: 11px;
        line-height: 1.25;
    }

    .home-reference-page .home-ref-hero h1 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 10px;
    }

    .home-reference-page .home-ref-hero-copy p {
        font-size: 14px;
        line-height: 1.45;
    }

    .home-reference-page .home-ref-actions {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .home-reference-page .home-route-card {
        border-radius: 12px;
        padding: 10px;
    }

    .home-reference-page .home-route-image {
        aspect-ratio: 16 / 10;
    }

    .home-reference-page .home-route-copy {
        margin-top: 0;
        min-height: 0;
        padding: 12px 4px 4px;
    }

    .home-reference-page .home-route-copy p {
        -webkit-line-clamp: 2;
    }

    .home-reference-page .home-trust-bar {
        border-radius: 12px;
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .home-reference-page .home-trust-item span {
        display: block;
    }

    .home-tour-search,
    .catalog-filter {
        border-radius: 12px;
        gap: 10px;
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .home-tour-search-field,
    .home-tour-search-field.is-wide,
    .home-tour-search-submit,
    .catalog-filter-wide,
    .catalog-filter .btn {
        grid-column: 1;
    }

    .home-tour-search-control {
        min-height: 46px;
    }

    .home-tour-search-submit {
        min-height: 46px;
        width: 100%;
    }

    .home-reference-page .home-ref-category-wrap {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-reference-page .home-ref-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-reference-page .home-ref-category-row {
        grid-auto-columns: minmax(112px, 38vw);
        overflow-x: auto;
    }
}

@media (max-width: 420px) {
    .navbar-brand span:last-child {
        max-width: 48vw;
    }

    .brand-mark {
        height: 34px;
        width: 34px;
    }

    .home-reference-page .home-ref-hero h1 {
        font-size: 25px;
    }

    .home-reference-page .home-route-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .home-reference-page .home-route-bottom a {
        width: 100%;
    }
}

/* Keep the weekly-route slider dimensions stable between tour images. */
.home-reference-page .home-route-slide {
    height: 325px;
    overflow: hidden;
}

.home-reference-page .home-route-image {
    aspect-ratio: auto;
    height: 190px;
}

.home-reference-page .home-route-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.home-reference-page .home-route-copy {
    height: 190px;
    min-height: 190px;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .home-reference-page .home-route-slide {
        height: 390px;
    }

    .home-reference-page .home-route-image {
        height: 190px;
    }

    .home-reference-page .home-route-copy {
        height: 200px;
        min-height: 200px;
    }
}
