@font-face {
    font-family: 'Lora';
    src: url('../fonts/lora-variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #193e31;
    --primary-hover: #28563f;
    --secondary-color: #46775c;
    --accent-color: #efc278;
    --accent-soft: #f4ead6;
    --background-color: #f8f9f4;
    --surface-color: #f0f2e9;
    --surface-2: #e7ece2;
    --text-color: #203b30;
    --text-muted: #657469;
    --border-color: #d9dfd4;
    --font-heading: 'Lora', 'Noto Sans SC', Georgia, serif;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-soft: 0 8px 30px #153b2910;
    --shadow-strong: 0 20px 70px #102b2528;
}

body { line-height: 1.6; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.045em; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bf762c; outline-offset: 5px; }
::selection { background: #efc278; color: #193e31; }
.qw-container { max-width: 1320px; padding-inline: clamp(20px, 3vw, 48px); }
.qw-section { padding: 90px 0; scroll-margin-top: 85px; }
.qw-section__head { max-width: 850px; margin-bottom: 36px; }
.qw-section__head h2 { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.18; }
.qw-btn { border-radius: 7px; font-size: .9rem; padding: 13px 21px; min-height: 44px; }
.qw-btn--primary { background: var(--primary-color); color: #fff; box-shadow: none; }
.qw-btn--primary:hover { background: var(--primary-hover); box-shadow: none; transform: translateY(-2px); }
.qw-btn--outline { background: transparent; border-color: #b8c5b8; color: var(--primary-color); }
.qw-btn--outline:hover { background: #e9eee4; border-color: var(--primary-color); color: var(--primary-color); }
.qw-tag { background: var(--surface-2); color: var(--primary-color); }
.skip-link { position: fixed; z-index: 4000; top: 10px; left: 15px; padding: 10px 18px; background: #fff; color: #193e31; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* The wordmark stays familiar; the view behind it becomes the main material. */
.qw-header, .qw-header.is-scrolled { position: fixed; inset: 0 0 auto; background: rgba(25,62,49,calc(.35 + var(--header-progress,0) * .62)); backdrop-filter: blur(calc(var(--header-progress,0) * 14px)); border-bottom: 1px solid #ffffff26; box-shadow: none; transition: background-color .3s ease, backdrop-filter .3s ease; }
.qw-header__inner { min-height: 88px; }
.qw-brand { font: 800 1.06rem var(--font-body); letter-spacing: -.035em; color: var(--header-ink, #fff); }
.qw-brand__mark { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 50%; width: 34px; height: 34px; }
.qw-brand__text span { color: inherit; font-weight: 400; margin-left: 3px; }
.qw-nav { gap: 28px; }
.qw-nav__link { color: var(--header-ink, #fff); font-size: .85rem; font-weight: 500; padding: 10px 0; }
.qw-nav__link::after { height: 1px; background: #efc278; transform-origin: left; }
.lang-switch__btn { color: var(--header-ink, #fff); background: transparent; border-color: currentColor; font-size: .8rem; border-radius: 5px; padding: 9px 12px; }
.lang-switch__menu { border-radius: 7px; }
.qw-burger { color: var(--header-ink, #fff); background: transparent; border-color: currentColor; border-radius: 5px; }
.qw-brand, .qw-brand__mark, .qw-nav__link, .lang-switch__btn, .qw-burger { transition: color .3s ease, border-color .3s ease; }
.qw-mobile { background: var(--background-color); }
.qw-mobile__link { font-size: .95rem; }

/* Full-width landscape, with a persistent, directly usable place index. */
.travel-hero { --hero-header-size: 88px; --hero-space: clamp(16px, 2.7svh, 28px); min-height: 0; padding: 0; color: #fff; background: #193e31; }
.travel-hero__photos, .travel-hero__shade { position: absolute; inset: 0; pointer-events: none; }
.travel-hero__photos { z-index: 0; overflow: hidden; }
.travel-hero__photo { position: absolute; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 48%; opacity: 0; }
.travel-hero__photo.is-current { opacity: 1; }
.travel-hero__shade { z-index: 1; background: linear-gradient(90deg, #102923b3 0%, #10292355 56%, #10292312 100%), linear-gradient(0deg, #102923d9, transparent 46%, #10292340), linear-gradient(180deg, #10292380, transparent 180px); }
.travel-hero__inner { min-height: min(91svh, 920px); position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 6svh, 72px); padding-top: calc(var(--hero-header-size) + clamp(24px, 6.5svh, 82px)); padding-bottom: clamp(18px, 2.7svh, 32px); }
.travel-hero__content { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 60px); }
.travel-hero__copy { min-width: 0; width: min(760px, 100%); }
.travel-hero__location { font-size: .8rem; letter-spacing: .09em; margin-bottom: var(--hero-space); color: #f8f9f4; }
.qw-hero__title { font-size: clamp(3.3rem, 6.65vw, 6.3rem); line-height: 1.08; letter-spacing: -.055em; max-width: 760px; min-height: 2.16em; text-wrap: initial; font-weight: 400; }
.qw-hero__sub { max-width: 490px; margin-top: var(--hero-space); font-size: .98rem; line-height: 1.8; color: #fff; min-height: 3.6em; }
.travel-hero__action { display: inline-flex; align-items: center; gap: 28px; padding: 13px 0 6px; margin-top: 15px; border-bottom: 1px solid #ffffff77; font-size: .9rem; color: #fff; }
.travel-hero__action i { transition: transform .3s ease; font-size: .8rem; }
.travel-hero__action:hover i { transform: translate(4px, -4px); }
.qw-hero__search { flex: 0 0 340px; max-width: 420px; border-radius: 8px; padding: 5px 5px 5px 17px; gap: 11px; margin-bottom: 5px; box-shadow: none; background: #f8f9f4; }
.qw-hero__search input { font-size: .9rem; padding: 12px 0; }
.qw-hero__search .qw-btn { padding-inline: 20px; min-height: 46px; border-radius: 5px; }
.qw-hero__search:focus-within { outline: 2px solid #efc278; outline-offset: 4px; }
.travel-hero__picker { display: flex; width: 100%; border-top: 1px solid #ffffff55; padding-top: var(--hero-space); gap: clamp(14px, 1.5vw, 24px); }
.hero-place { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; gap: 13px; padding: 0 0 16px; color: #fff; background: none; border: 0; text-align: left; opacity: .73; transition: opacity .3s ease; font-size: .88rem; line-height: 1.45; }
.hero-place img { width: 56px; height: 52px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.hero-place::after { position: absolute; content: ''; left: 0; bottom: 0; width: 100%; height: 2px; background: #efc278; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.hero-place:hover, .hero-place[aria-pressed="true"] { opacity: 1; }
.hero-place[aria-pressed="true"]::after { transform: scaleX(1); }
.hero-place span { transition: transform .3s ease; }
.hero-place:hover span { transform: translateY(-3px); }

/* Four photographs form one collection rather than four framed panels. */
.qw-dest { background: var(--background-color); }
.qw-dest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.qw-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.qw-card:hover { transform: none; box-shadow: none; }
.qw-card__media { aspect-ratio: 3 / 4; border-radius: 12px; background: var(--surface-2); }
.qw-card__media img { transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.qw-card:hover .qw-card__media img, .qw-card:focus-within .qw-card__media img { transform: scale(1.055); }
.qw-card__body { padding: 20px 0 0; gap: 9px; }
.qw-card__type { color: #647467; font-size: .7rem; font-weight: 600; letter-spacing: .055em; }
.qw-card__title { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.25; }
.qw-card__loc { color: #5c6d61; font-size: .8rem; line-height: 1.7; }
.qw-card__loc i { display: none; }
.qw-card__actions { padding-top: 6px; }
.qw-card__actions .qw-btn { padding: 8px 0; min-height: 38px; font-size: .8rem; border-radius: 0; background: transparent; color: #193e31; border-bottom: 1px solid #b3c1af; box-shadow: none; }
.qw-card__actions .qw-btn:hover { transform: none; border-bottom-color: #193e31; }
.qw-card__actions i { font-size: .72rem; }

/* The map has a contrasting field, with weather and the place list beside it. */
.qw-city { background: #193e31; color: #fff; }
.qw-city .qw-section__head { margin-bottom: 34px; }
.qw-city .qw-section__head h2 { color: #f8f9f4; }
.city-map-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 40px; }
.city-map-toolbar { gap: 7px; margin-bottom: 16px; }
.city-map-toolbar .qw-btn { color: #fff; border-color: #ffffff55; background: transparent; border-radius: 5px; font-size: .75rem; min-height: 38px; padding: 9px 14px; }
.city-map-toolbar .qw-btn:hover, .city-map-toolbar [aria-pressed="true"] { background: #f8f9f4; border-color: #f8f9f4; color: #193e31; }
#cityMap { height: 540px; border: 0; border-radius: 10px; }
.city-map-sidebar { padding-top: 0; gap: 24px; }
.city-weather { padding: 0 0 20px; border: 0; border-bottom: 1px solid #ffffff38; border-radius: 0; background: none; }
.city-weather h3 { color: #e2e9db; font: 500 .8rem var(--font-body); letter-spacing: 0; }
#cityWeatherValue { color: #fff; font: 400 2.8rem var(--font-heading); line-height: 1.35; margin: 6px 0; }
#cityWeatherFeels, #cityWeatherSource { color: #d7e1d2; font-size: .75rem; }
.map-shortcuts { display: grid; }
.map-shortcuts button { background: none; border: 0; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; text-align: left; font-size: .85rem; }
.map-shortcuts button::after { content: '↗'; color: #efc278; transition: transform .3s; }
.map-shortcuts button:hover::after { transform: translate(3px, -3px); }
.city-map-info { padding: 22px; border: 0; border-radius: 9px; background: #eff2e7; color: var(--primary-color); }
.city-map-info h3 { font: 600 1rem var(--font-body); letter-spacing: -.02em; }
.city-map-info p { font-size: .82rem; color: #5b6b5d; }
.city-map-actions .qw-btn { font-size: .8rem; }
.city-route-result { border: 0; background: var(--background-color); color: var(--primary-color); }
.city-route-result h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.city-map-demo, #mapRouteStatus { color: #f5e6c9; }

/* Transport stays a real planner, with a bounded list of sample lines. */
.qw-routes { background: var(--surface-color); }
.qw-planner { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 60px; align-items: start; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.travel-planner__controls { background: var(--background-color); padding: 26px; border-radius: 10px; }
.qw-planner__fields { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.qw-field { font-size: .7rem; letter-spacing: .05em; color: #5f6d60; }
.qw-field select { background: #fff; border-radius: 5px; padding: 12px; font-size: .85rem; font-weight: 500; }
.qw-note { color: #647062; font-size: .75rem; line-height: 1.7; }
#driveSelectedRoute { width: 100%; font-size: .78rem; padding-inline: 10px; }
.qw-route-results { margin-top: 0; min-width: 0; }
.qw-route-results h3 { font: 600 .85rem var(--font-body); letter-spacing: 0; margin-bottom: 14px; }
.qw-route-list { max-height: 430px; overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; gap: 0; scrollbar-width: thin; scrollbar-color: #acb7a8 transparent; }
.qw-route { padding: 17px 0; border: 0; border-bottom: 1px solid #d2dacd; border-radius: 0; background: none; box-shadow: none; gap: 17px; }
.qw-route:first-child { padding-top: 4px; }
.qw-route:last-child { border-bottom: 0; }
.qw-route__no { background: #dce5d7; color: #193e31; border-radius: 5px; font: 700 .9rem var(--font-body); padding: 9px 6px; min-width: 43px; }
.qw-route__path { font-size: .88rem; font-weight: 600; line-height: 1.55; }
.qw-route__meta { gap: 14px; margin-top: 5px; }
.qw-route__meta .qw-tag { background: none; padding: 0; border-radius: 0; font-size: .74rem; color: #5c6d61; }
.qw-route__stops { font-size: .75rem; line-height: 1.7; margin-top: 6px; }

/* The existing guide becomes an image-led, readable travel sheet. */
.qw-modal { padding: 24px; }
.qw-modal__backdrop { background: #102921ba; backdrop-filter: blur(9px); }
.qw-modal__dialog { width: min(1020px, 100%); max-height: 92dvh; background: var(--background-color); border-radius: 14px; }
.qw-modal__dialog--sm { width: min(480px, 100%); }
.qw-modal__close { background: #173c2de6; width: 40px; height: 40px; top: 16px; right: 16px; }
.dest-hero { aspect-ratio: 16 / 7; max-height: 400px; background: #193e31; }
.dest-hero__scrim { background: linear-gradient(0deg, #102921d9, transparent 80%); }
.dest-hero__title { left: 35px; right: 35px; bottom: 25px; }
.dest-hero__title h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.25; margin-bottom: 8px; }
.dest-hero__title span { display: block; max-width: 690px; font-size: .8rem; line-height: 1.6; color: #fff; }
.dest-body { padding: 30px 35px 35px; gap: 28px; }
.dest-desc { color: #425c4a; font-size: 1rem; line-height: 1.85; }
.dest-actions { gap: 9px; }
.dest-actions .qw-btn { font-size: .78rem; min-height: 40px; padding: 11px 16px; }
.dest-block { padding: 0; border: 0; border-radius: 0; background: none; }
.dest-block h3 { font: 600 .9rem var(--font-body); letter-spacing: 0; margin-bottom: 8px; }
.dest-block p { font-size: .9rem; line-height: 1.8; }
.dest-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dest-gallery button { min-width: 0; padding: 3px; border-radius: 8px; background: transparent; border: 2px solid transparent; }
.dest-gallery button[aria-pressed="true"] { border-color: #b37a32; }
.dest-gallery img { aspect-ratio: 4 / 3; height: auto; width: 100%; object-fit: cover; border-radius: 4px; }
.dest-map { height: 300px; border: 0; border-radius: 9px; }
.driver-card h2 { font-size: 2rem; }
.driver-address { overflow-wrap: anywhere; }

.assistant-fab { width: 52px; height: 52px; padding: 0; aspect-ratio: 1; border-radius: 50%; background: #193e31; color: #fff; border: 1px solid #ffffff55; box-shadow: 0 4px 16px #102b2528; font-size: 1.2rem; }
.assistant-fab:hover { background: #28563f; transform: none; box-shadow: 0 5px 20px #102b2528; }
.assistant-fab__label { position: absolute; right: 65px; top: 50%; transform: translate(4px,-50%); width: max-content; max-width: 230px; border-radius: 6px; padding: 8px 12px; background: #f8f9f4; border: 1px solid #d9dfd4; color: #193e31; font-size: .75rem; font-weight: 500; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.assistant-fab:hover .assistant-fab__label, .assistant-fab:focus-visible .assistant-fab__label { opacity: 1; transform: translate(0,-50%); }
.assistant-panel { width: min(410px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 40px)); border-radius: 12px; border-color: #d9dfd4; background: #fff; box-shadow: 0 18px 65px #102b2540; }
.assistant-panel:not([hidden]) { animation: assistant-open .3s cubic-bezier(.22,.61,.36,1) both; }
.assistant-panel__head { padding: 17px 20px; background: #fff; color: #193e31; border-bottom: 1px solid #e6e9e1; }
.assistant-panel__title { gap: 11px; }
.assistant-panel__title strong { font: 800 .85rem var(--font-body); letter-spacing: -.025em; }
.assistant-panel__avatar { background: none; color: #193e31; border: 1px solid #b8c9b7; width: 31px; height: 31px; font-size: .9rem; }
.assistant-status { color: #647462; font-size: .7rem; }
.assistant-status::before { display: none; }
.assistant-close { color: #193e31; min-width: 36px; min-height: 36px; border-radius: 5px; }
.assistant-close:hover { background: #f0f3eb; }
.assistant-panel__body { background: #fff; padding: 22px 20px 8px; min-height: 80px; max-height: 350px; gap: 14px; }
.assistant-panel.has-conversation .assistant-panel__body { min-height: 220px; padding-bottom: 20px; background: #f7f9f3; }
.qw-msg { font-size: .9rem; line-height: 1.75; border-radius: 9px; padding: 11px 14px; }
.qw-msg--bot { border: 0; background: #eaf0e4; }
.qw-msg--welcome { padding: 0; margin: 0; border: 0; border-radius: 0; background: none; max-width: 100%; font: 400 1.5rem/1.4 var(--font-heading); letter-spacing: -.035em; color: #193e31; }
.assistant-panel__chips { display: grid; gap: 7px; padding: 0 20px 6px; }
.assistant-panel__chips .qw-chip { border-radius: 6px; background: #fff; padding: 11px 13px; min-height: 43px; text-align: left; justify-content: flex-start; font-size: .82rem; font-weight: 500; border-color: #dce4d6; }
.assistant-panel__chips .qw-chip:hover { background: #f2f6ed; color: #193e31; border-color: #a9bfa4; }
.assistant-panel__form { flex-shrink: 0; margin: 15px 20px 8px; padding: 9px; gap: 8px; align-items: flex-end; border: 1px solid #bdcbb8; border-radius: 8px; background: #fff; }
.assistant-panel__form:focus-within { border-color: #477456; box-shadow: 0 0 0 2px #47745615; }
.assistant-input { display: block; width: 100%; min-height: 50px; max-height: 140px; padding: 3px 4px; border: 0; border-radius: 0; resize: none; font-size: .92rem; line-height: 1.7; background: none; }
.assistant-input:focus-visible { outline: none; }
.assistant-input::placeholder { color: #83907e; }
.assistant-send { width: 38px; height: 38px; border-radius: 6px; font-size: .85rem; }
.assistant-panel__note { margin: 0; padding: 0 20px 17px; font-size: .68rem; line-height: 1.65; color: #6e7b68; }
@keyframes assistant-open { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.qw-footer { padding: 54px 0 25px; background: #15372b; }
.qw-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.qw-footer__brand strong { font: 800 1.2rem var(--font-body); letter-spacing: -.035em; }
.qw-footer__brand strong span { color: #fff; }
.qw-footer__brand p { color: #d3dece; font-size: .85rem; }
.qw-footer__col h4 { font: 600 .8rem var(--font-body); letter-spacing: 0; margin-bottom: 7px; }
.qw-footer__col a, .qw-footer__link { font-size: .8rem; color: #d3dece; }
.qw-footer__bottom { font-size: .7rem; line-height: 1.7; border-color: #ffffff20; margin-top: 45px; }

@media (max-width: 1199px) {
    .qw-nav { display: none; }
    .qw-burger { display: inline-flex; }
    .qw-hero__title { font-size: clamp(3.5rem, 6.4vw, 5.4rem); }
    .qw-hero__search { flex-basis: 290px; }
    .qw-dest__grid { gap: 20px; }
    .city-map-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 28px; }
}
@media (max-width: 959px) {
    .qw-section { padding-block: 70px; }
    .travel-hero__content { display: block; }
    .travel-hero__copy { max-width: 680px; }
    .qw-hero__title { font-size: clamp(3.8rem, 8vw, 5.8rem); min-height: 0; }
    .qw-hero__search { margin-top: var(--hero-space); max-width: 420px; }
    .hero-place { gap: 9px; font-size: .78rem; }
    .hero-place img { width: 40px; height: 46px; }
    .qw-dest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 36px; }
    .qw-card__media { aspect-ratio: 5 / 4; }
    .qw-card__title { font-size: 1.9rem; }
    .qw-planner { grid-template-columns: 290px minmax(0, 1fr); gap: 30px; }
    .travel-planner__controls { padding: 20px; }
}
@media (max-width: 760px) {
    .qw-section { padding-block: 58px; }
    .qw-header__inner, .qw-header.is-scrolled .qw-header__inner { min-height: 72px; }
    .qw-brand { font-size: .88rem; gap: 8px; }
    .qw-brand__mark { width: 30px; height: 30px; }
    .lang-switch__btn { padding: 8px 9px; gap: 5px; font-size: .75rem; }
    .qw-burger { width: 36px; height: 36px; }
    .travel-hero { --hero-header-size: 72px; }
    .travel-hero__location { font-size: .72rem; }
    .qw-hero__title { font-size: clamp(2.9rem, 8.7vw, 4.9rem); line-height: 1.12; max-width: 600px; }
    .qw-hero__sub { font-size: .85rem; max-width: 420px; line-height: 1.75; min-height: 0; }
    .travel-hero__action { font-size: .82rem; margin-top: 12px; }
    .qw-hero__search { margin-top: var(--hero-space); width: 100%; max-width: 420px; padding-left: 14px; }
    .qw-hero__search input { font-size: .85rem; }
    .qw-hero__search .qw-btn { padding-inline: 16px; font-size: .8rem; }
    .travel-hero__picker { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ffffff44 transparent; scroll-snap-type: x proximity; gap: 22px; }
    .hero-place { flex: 0 0 130px; scroll-snap-align: start; padding-bottom: 15px; gap: 10px; font-size: .76rem; }
    .hero-place img { width: 40px; height: 42px; }
    .city-map-layout { grid-template-columns: 1fr; gap: 30px; }
    #cityMap { height: 410px; }
    .city-map-sidebar { grid-template-columns: 1fr 1fr; column-gap: 25px; }
    .city-weather { border-bottom: 0; padding-bottom: 0; }
    .city-map-info { grid-column: 1 / -1; }
    .city-map-toolbar .qw-btn { font-size: .7rem; padding: 9px 11px; }
    .qw-planner { grid-template-columns: 1fr; gap: 30px; }
    .qw-planner__fields { grid-template-columns: 1fr 1fr; }
    #routeSearchBtn { grid-column: 1 / -1; }
    .qw-route-list { max-height: 400px; }
    .qw-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .qw-footer__brand { grid-column: 1 / -1; }
    .assistant-fab { width: 52px; padding: 0; }
    .assistant-fab__label { display: none; }
    .qw-modal { padding: 12px; }
    .qw-modal__dialog { max-height: 94dvh; border-radius: 10px; }
    .dest-hero { aspect-ratio: 5 / 4; }
    .dest-hero__title { left: 22px; right: 22px; bottom: 22px; }
    .dest-body { padding: 24px 22px; gap: 24px; }
    .dest-actions .qw-btn { font-size: .73rem; padding-inline: 12px; }
    .dest-desc { font-size: .9rem; }
    .dest-gallery { gap: 5px; }
    .dest-gallery button { padding: 2px; }
}
@media (max-width: 480px) {
    .assistant-panel { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100dvh - 24px); }
    .qw-header__inner { gap: 8px; }
    .qw-header__actions { gap: 7px; }
    .qw-section__head { margin-bottom: 28px; }
    .qw-section__head h2 { font-size: 2.3rem; }
    .qw-dest__grid { grid-template-columns: 1fr; gap: 34px; }
    .qw-card__media { aspect-ratio: 6 / 5; }
    .qw-card__body { padding-top: 16px; gap: 8px; }
    .qw-card__title { font-size: 2rem; }
    .qw-card__loc { font-size: .83rem; }
    .qw-card__actions { padding-top: 2px; }
    .city-map-sidebar { grid-template-columns: 1fr 1fr; }
    .city-weather { display: block; }
    #cityWeatherValue { font-size: 2.1rem; }
    #cityWeatherFeels, #cityWeatherSource { font-size: .7rem; }
    .map-shortcuts button { padding-block: 8px; font-size: .75rem; }
    .qw-planner__fields { grid-template-columns: 1fr; }
    .qw-route { gap: 12px; }
    .qw-footer { padding-top: 42px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
    .hero-place:hover span, .qw-card:hover .qw-card__media img,
    .qw-card:focus-within .qw-card__media img, .travel-hero__action:hover i,
    .map-shortcuts button:hover::after { transform: none; }
}

/* Anchor geometry uses the measured header, so sections do not hide behind it. */
:root { --header-height: 89px; }
html { scroll-padding-top: var(--header-height); }
.travel-hero { --hero-header-size: var(--header-height); }
.travel-hero__inner { min-height: 100svh; }
.qw-section { --section-space: clamp(20px, 3svh, 42px); padding-block: var(--section-space); min-height: calc(100svh - var(--header-height)); scroll-margin-top: 0; }
.qw-section__head, .qw-city .qw-section__head { margin-bottom: clamp(16px, 2.6svh, 24px); }
.qw-section__head h2 { font-size: clamp(2rem, min(3.9vw, 6.3svh), 3.5rem); }
.qw-dest > .qw-container, .qw-routes > .qw-container { min-height: calc(100svh - var(--header-height) - 2 * var(--section-space)); display: flex; flex-direction: column; justify-content: center; }
.qw-city > .qw-container { height: calc(100svh - var(--header-height) - 2 * var(--section-space)); display: flex; flex-direction: column; overflow-anchor: none; }
.qw-city .qw-section__head { flex-shrink: 0; }
.city-map-layout { flex: 1; min-height: 0; align-items: stretch; }
.city-map-main { display: flex; flex-direction: column; min-height: 0; }
.city-map-toolbar { flex-shrink: 0; margin-bottom: 12px; }
#cityMap { flex: 1; height: auto; min-height: 0; }
.city-map-demo, #mapRouteStatus { flex-shrink: 0; }
.city-map-sidebar { display: flex; flex-direction: column; min-height: 0; max-height: 100%; gap: 12px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #7e9b7d transparent; }
.city-map-sidebar > * { flex-shrink: 0; }
.city-weather { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding-bottom: 12px; }
.city-weather h3 { grid-column: 1; grid-row: 1; }
#cityWeatherValue { grid-column: 2; grid-row: 1 / 3; font-size: 2rem; margin: 0; }
#cityWeatherFeels { grid-column: 1; grid-row: 2; }
#cityWeatherSource { grid-column: 1; grid-row: 3; margin: 0; }
.map-shortcuts { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.map-shortcuts button { font-size: .78rem; min-height: 36px; padding: 7px 0; }
.map-shortcuts button::after { content: none; }
.map-shortcuts button:hover { color: #efc278; }
.city-map-info { padding: 18px; }
.city-map-actions { gap: 6px; margin-top: 12px; }
.city-map-actions .qw-btn { min-height: 34px; font-size: .74rem; padding: 8px 10px; }
.city-route-result { margin-top: 0; max-height: min(390px, 48svh); overflow-y: auto; }
.qw-route-list { max-height: clamp(200px, calc(100svh - var(--header-height) - 2 * var(--section-space) - 140px), 430px); }
@media (min-width: 960px) {
    .qw-card__media { height: clamp(150px, calc(100svh - var(--header-height) - 2 * var(--section-space) - 310px), 420px); aspect-ratio: auto; }
}
@media (min-width: 761px) and (max-height: 700px) {
    .travel-planner__controls { padding: 20px; }
    .qw-planner__fields { gap: 12px; }
}
@media (max-width: 760px) {
    :root { --header-height: 73px; }
    .qw-city { --section-space: 16px; }
    .qw-city .qw-section__head h2 { font-size: 1.8rem; line-height: 1.2; }
    .qw-city .qw-section__head { margin-bottom: 12px; }
    .city-map-layout { display: flex; flex-direction: column; gap: 10px; }
    .city-map-sidebar { display: contents; }
    .city-weather { order: 0; padding: 0; border: 0; flex-shrink: 0; }
    .city-weather h3 { font-size: .72rem; }
    #cityWeatherValue { font-size: 1.5rem; grid-row: 1; grid-column: 2; }
    #cityWeatherFeels { grid-row: 2; grid-column: 1; font-size: .67rem; }
    #cityWeatherSource { grid-row: 2; grid-column: 2; text-align: right; font-size: .67rem; }
    .map-shortcuts { order: 1; display: flex; gap: 16px; overflow-x: auto; scrollbar-width: thin; flex-shrink: 0; }
    .map-shortcuts button { flex: 0 0 auto; padding: 5px 0; font-size: .73rem; min-height: 30px; }
    .city-map-main { order: 2; flex: 1; min-height: 0; }
    .city-map-toolbar { gap: 6px; margin-bottom: 9px; }
    .city-map-info { order: 3; flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 12px 14px; }
    .city-map-info h3 { grid-column: 1; grid-row: 1; font-size: .8rem; margin: 0; }
    .city-map-info p { grid-column: 1 / -1; grid-row: 2; padding-right: 54px; margin-bottom: 8px; font-size: .7rem; line-height: 1.5; }
    .city-map-actions { grid-column: 2; grid-row: 1; display: flex; margin: 0; align-self: center; }
    .city-map-actions .qw-btn { width: 34px; min-height: 36px; padding: 0; }
    .city-map-actions .qw-btn i { font-size: .85rem; }
    .city-map-actions .city-map-action-label { display: none; }
    .city-route-result { order: 3; flex-shrink: 0; max-height: 24svh; padding: 14px; }
}
@media (max-width: 760px) and (max-height: 560px) {
    .qw-city > .qw-container { height: auto; }
    #cityMap { flex: auto; height: 260px; }
}
