html, body, #app { min-height: 100%; margin: 0; font-family: system-ui, sans-serif; color: #2e3a46; }
* { box-sizing: border-box; }
.voyview-shell { min-height: 100dvh; display: flex; flex-direction: column; background: #f5f7fa; }
.voyview-header { padding: 1rem 1.5rem; background: white; display: flex; align-items: center; gap: 2.5rem; box-shadow: 0 2px 12px #2e3a4612; z-index: 1; }
.brand-navigation { display: flex; flex-direction: column; flex-shrink: 0; }
.voyview-brand { color: #2e3a46; font-size: 1.9rem; font-weight: 800; letter-spacing: -.07rem; text-decoration: none; }
.voyview-brand span { color: #0b3d91; }
.brand-tagline, .search-note { font-size: .75rem; color: #566574; }
.search-placeholder { flex: 1; }
.search-field { flex: 1; min-width: 130px; }
.search-nights { flex: .6; }
.form-label { font-size: .75rem; font-weight: 650; margin-bottom: .2rem; }
.search-note { display: block; margin-top: .4rem; }
.voyview-main, .explore-page { flex: 1; display: flex; flex-direction: column; }
.cruise-map { flex: 1; position: relative; min-height: 60dvh; background: radial-gradient(ellipse at 40% 35%, #e6f2fb, #2a9dde); }
.cruise-map > .map-canvas { position: absolute; inset: 0; }
.map-message { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: min(88%, 420px); padding: 1.5rem; text-align: center; background: #ffffffed; border-radius: 1rem; box-shadow: 0 10px 35px #2e3a4616; }
.explore-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: .7rem 1.5rem; font-size: .8rem; background: white; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { left: 1rem; top: .5rem; z-index: 10; background: white; padding: .5rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #0b3d91; outline-offset: 3px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; background: #fff3cd; width: 100%; padding: 1rem; z-index: 100; }
.loading-progress { display: block; width: 5rem; height: 5rem; margin: 25vh auto 1rem; }
.loading-progress circle { fill: none; stroke: #0b3d91; stroke-width: 5; }
.loading-progress-text { text-align: center; }
.loading-progress-text::after { content: "Loading CruiseVu…"; }
@media (max-width: 800px) {
    .voyview-header { flex-direction: column; align-items: stretch; gap: .75rem; padding: .75rem 1rem; }
    .brand-navigation { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
    .voyview-brand { font-size: 1.5rem; }
    .search-field { min-width: 100px; }
    .cruise-map { min-height: 65dvh; }
    .explore-footer { padding: .6rem 1rem; }
}


.itinerary-explorer { flex: 1; display: flex; min-height: 65dvh; }
.itinerary-explorer .cruise-map { order: 2; }
.itinerary-panel { width: 340px; flex-shrink: 0; padding: 1.5rem; background: white; }
.itinerary-panel h1 { font-size: 1.45rem; margin: .7rem 0; }
.sample-label { color: #0b3d91; font-size: .7rem; letter-spacing: .12em; font-weight: 750; }
.itinerary-stops { padding-left: 1.5rem; }
.itinerary-stops li { padding: .35rem 0 .35rem .3rem; }
.itinerary-stops small { display: block; color: #566574; }
.port-marker { background: #2e3a46; color: white; border: 2px solid white; border-radius: 2rem; padding: .3rem .6rem; box-shadow: 0 2px 8px #2e3a4655; font-weight: 700; }
.sea-day-marker { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: #e6f2fb; color: #2e3a46; border: 2px solid white; font-size: .75rem; }
.sea-day-marker:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }
@media (max-width: 800px) {
 .itinerary-explorer { flex-direction: column; }
 .itinerary-explorer .cruise-map { order: 0; min-height: 52dvh; }
 .itinerary-panel { width: 100%; padding: 1.2rem; }
}
.cruise-results { display: grid; gap: .4rem; max-height: 38dvh; overflow: auto; margin-bottom: 1rem; }
.cruise-result { display: flex; gap: .6rem; text-align: left; background: white; border: 1px solid #d9e2eb; border-radius: .5rem; padding: .7rem; color: #2e3a46; width: 100%; }
.cruise-result[aria-pressed="true"] { border: 2px solid #0b3d91; background: #e6f2fb; }
.cruise-result small { display: block; font-size: .75rem; }
.route-swatch { width: 1.2rem; height: .3rem; margin-top: .6rem; flex-shrink: 0; border-radius: .2rem; }
@media (min-width: 801px) {
 .voyview-shell { height: 100dvh; }
 .voyview-header, .explore-footer { flex-shrink: 0; }
 .voyview-main, .explore-page { min-height: 0; }
 .itinerary-explorer { min-height: 0; overflow: hidden; }
 .itinerary-explorer .cruise-map { min-height: 0; }
 .itinerary-panel { overflow-y: auto; }
}
@media (max-width: 800px) {
 .search-placeholder .search-field { flex: 1 1 calc(50% - .5rem); min-width: 0; }
 .search-placeholder .search-field:first-of-type { flex-basis: 100%; }
}
/* The list uses the sidebar's available space; details live in a modal. */
.cruise-results { max-height: none; overflow: visible; }
.cruise-result-row { display: flex; align-items: stretch; border: 1px solid #d9e2eb; border-radius: .5rem; background: white; }
.cruise-result-row .cruise-result { border: 0; flex: 1; min-width: 0; }
.cruise-result-row .cruise-result[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #0b3d91; }
.route-details-button { width: 3.4rem; flex-shrink: 0; border: 0; border-left: 1px solid #d9e2eb; background: #f5f7fa; border-radius: 0 .5rem .5rem 0; color: #2e3a46; padding: .4rem; }
.route-details-button > span:first-child { font-size: 1.35rem; }
.details-button-label { display: block; font-size: .65rem; line-height: 1.2; }
.cruise-card-content { display: grid; gap: .35rem; min-width: 0; flex: 1; }
.cruise-card-line { color: #566574; font-size: .7rem; font-weight: 650; }
.cruise-card-ship { font-size: 1rem; line-height: 1.2; }
.cruise-card-title { font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.cruise-card-facts { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .6rem; font-size: .75rem; }
.cruise-card-facts .fa-solid { color: #566574; }
.cruise-card-nights { background: #e6f2fb; padding: .15rem .4rem; border-radius: .3rem; font-weight: 650; }
.cruise-card-coverage { font-size: .7rem; color: #566574; }
.cruise-card-selected { font-size: .7rem; font-weight: 700; color: #0b3d91; }
.mobile-results-toggle { display: none; }
@media (max-width: 800px) {
 .mobile-results-toggle { display: flex; align-items: center; justify-content: center; gap: .6rem; order: 1; min-height: 44px; border-radius: 0; border-bottom: 1px solid #d9e2eb; }
 .itinerary-explorer .itinerary-panel { order: 2; }
 .results-collapsed .itinerary-panel { display: none; }
 .results-collapsed .cruise-map { min-height: 70dvh; }
}
.route-details-button:hover { background: #e6f2fb; }
.route-details-dialog { width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 1rem; color: #2e3a46; box-shadow: 0 20px 80px #2e3a4666; }
.route-details-dialog[open] { display: flex; flex-direction: column; }
.route-details-dialog::backdrop { background: #2e3a46b3; }
.route-details-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #d9e2eb; flex-shrink: 0; }
.route-details-body { overflow-y: auto; padding: 1.5rem; }
.route-details-body h2 { font-size: 1.5rem; }
@media (max-width: 800px) {
 .route-details-header, .route-details-body { padding: 1rem; }
}
.cruise-line-picker { position: relative; }
.cruise-line-picker summary { cursor: pointer; white-space: nowrap; }
.cruise-line-options { position: absolute; top: 100%; right: 0; z-index: 20; width: min(310px, 85vw); max-height: 340px; overflow-y: auto; padding: .8rem; border: 1px solid #d9e2eb; border-radius: .5rem; background: white; box-shadow: 0 8px 24px #2e3a4633; }
.cruise-line-option { display: flex; gap: .6rem; align-items: baseline; padding: .4rem 0; font-size: .85rem; }
.cruise-line-option input { accent-color: #0b3d91; }
.cruise-line-options small { display: block; color: #566574; }
@media (max-width: 800px) {
 .cruise-line-options { left: 0; right: auto; width: min(310px, calc(100vw - 2rem)); }
}
.filter-header-action { margin-left: auto; }
.filter-panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; padding: 0; color: #2e3a46; box-shadow: -8px 0 30px #2e3a4633; }
.filter-panel::backdrop { background: #2e3a4688; }
.filter-panel-form { height: 100%; display: flex; flex-direction: column; }
.filter-panel-header, .filter-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; flex-shrink: 0; }
.filter-panel-header { border-bottom: 1px solid #d9e2eb; }
.filter-panel-header h2 { margin: 0; font-size: 1.35rem; }
.filter-panel-footer { border-top: 1px solid #d9e2eb; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.filter-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1.25rem; }
.filter-panel-body .search-field { margin-bottom: 1rem; }
.filter-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
.filter-panel-body .filter-pair .search-field { min-width: 0; }
.filter-pair .form-control, .filter-pair .form-select { width: 100%; min-width: 0; font-size: .85rem; padding-left: .45rem; padding-right: .45rem; }
.filter-pair .form-select { padding-right: 1.8rem; }
.departure-port-options { max-height: 200px; overflow-y: auto; border: 1px solid #d9e2eb; border-radius: .5rem; padding: .5rem; }
.departure-port-options small { display: block; color: #566574; }
.panel-cruise-lines { display: grid; gap: .15rem; }
.panel-cruise-lines small { color: #566574; }
.active-filter-summary { font-size: .8rem; color: #566574; }
@media (max-width: 800px) {
 .voyview-header { flex-direction: row; align-items: center; }
 .brand-navigation { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
 .filter-panel[open] { animation: filter-slide-in .18s ease-out; }
 @keyframes filter-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
}

