/* Hotel snapshot test prototype. Colours and type come from tokens.css. */
:root { --chakra-fonts-heading: "Sunset Sans", helvetica, arial, sans-serif; --tint: #F5F1F6; --line: var(--chakra-colors-lightGrey4); --purple: var(--chakra-colors-tertiary); --text: var(--chakra-colors-darkGrey1); }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--chakra-colors-lightGrey5); }
html.locked, html.locked body { overflow: hidden; }
body { margin: 0; background: var(--chakra-colors-lightGrey5); color: var(--text); font-family: var(--chakra-fonts-body); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--chakra-colors-accessibleFocus); outline-offset: 2px; }
.ico { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.app { isolation: isolate; max-width: 430px; min-height: 100vh; min-height: 100svh; margin-inline: auto; background: var(--chakra-colors-baseWhite); display: flex; flex-direction: column; }

/* Header */
.hdr { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px 0 46px; background: var(--chakra-colors-baseWhite); box-shadow: 0 4px 8px rgba(0,0,0,.14); }
.hdr__logo { display: block; }
.hdr__logo img { width: 105px; height: 27px; }
.hdr__menu { display: flex; flex-direction: column; align-items: center; color: #1A202C; font-size: 14px; line-height: 20px; }
.hdr__menu svg { display: block; width: 20px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1; }
.hdr__menu span { padding-top: 6px; }

/* Search summary, shared by results and hotel pages */
.search { margin: 16px 16px 0; padding: 16px 0; border-bottom: 1px solid var(--line); color: #1A202C; }
.search--hotel { margin-top: 8px; }
.search__top { display: flex; align-items: center; }
.search__top .ico { width: 21px; height: 21px; margin: 0 12px 0 1px; stroke-width: 1; }
.search__place { font-weight: 600; }
.search__edit { position: relative; margin-left: 16px; font-size: 14px; line-height: 21px; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.search__edit::after { content: ""; position: absolute; inset: -10px; }
.search__sum { padding: 4px 2px; }

/* Results */
.srp-tools { display: flex; align-items: center; gap: 8px; padding: 24px 16px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding-inline: 8px; border: 1px solid var(--chakra-colors-lightGrey2); border-radius: 12px; background: var(--chakra-colors-baseWhite); color: var(--text); font-weight: 500; white-space: nowrap; }
.tool--sort { gap: 4px; padding-inline: 12px 8px; font-weight: 400; }
.tool--sort + .tool { margin-left: auto; }
.tool .ico { width: 20px; height: 20px; stroke-width: 1; }
.srp-count { padding: 0 16px 16px; font-size: 14px; line-height: 20px; font-weight: 500; }
.srp-list { display: grid; gap: 24px; padding: 0 16px 32px; }
.card { border: 1px solid var(--line); border-radius: 4px; background: var(--chakra-colors-baseWhite); overflow: hidden; cursor: pointer; }
.card__media { position: relative; background: var(--chakra-colors-lightGrey5); }
.card__scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card__scroll::-webkit-scrollbar { display: none; }
.card__scroll img { flex: 0 0 100%; width: 100%; height: 198px; object-fit: cover; scroll-snap-align: start; }
.card__next, .card__prev { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; }
.card__next { right: 5px; } .card__prev { left: 5px; }
.card__next span, .card__prev span { width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid var(--chakra-colors-baseWhite); border-radius: 50%; background: var(--chakra-colors-darkGrey2); color: var(--chakra-colors-baseWhite); }
.card__prev span .ico { transform: rotate(180deg); }
.card__next .ico, .card__prev .ico { width: 14px; height: 14px; stroke-width: 2; }
.card__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; align-items: center; gap: 4px; pointer-events: none; }
.card__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--chakra-colors-lightGrey2); }
.card__dots i:last-child:not(.on) { width: 6px; height: 6px; }
.card__dots i.on { background: var(--chakra-colors-baseWhite); }
.card__body { padding: 8px 8px 18px; }
.card__name { display: block; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); text-decoration: none; }
.card__dist { padding: 8px 0; font-size: 14px; line-height: 20px; color: #1A202C; }
.card__tag { display: inline-block; margin-bottom: 7px; padding: 2px 8px; border: 1px solid var(--chakra-colors-primary); border-radius: 11px; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--chakra-colors-primary); }
.card__icons { display: flex; gap: 12px; min-height: 24px; }
.card__icons img { width: 25px; height: 24px; }
.card__price { display: flex; flex-direction: column; width: max-content; margin: 8px 0 0 auto; }
.card__from { font-size: 14px; line-height: 20px; color: var(--text); }
.card__row { display: flex; align-items: center; gap: 8px; }
.card__amount { font-size: 20px; line-height: 22px; font-weight: 700; color: var(--text); }
.card__go { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--chakra-colors-primary); color: var(--chakra-colors-baseWhite); }
.card__go .ico { width: 14px; height: 14px; stroke-width: 2; }

/* Back to results, in the breadcrumb's place */
.backrow { padding: 20px 8px 4px; }
.backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding-inline: 8px; font-size: 14px; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.backlink .ico { width: 16px; height: 16px; transform: rotate(180deg); stroke-width: 2; }

/* Snapshot */
.snap { padding: 0 16px 24px; }
.gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 188px; border-radius: 8px; overflow: hidden; }
.gal button { position: relative; isolation: isolate; display: block; overflow: hidden; background: var(--chakra-colors-lightPurple2); min-height: 0; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal__main { grid-row: 1 / span 2; }
.gal__count { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.65); color: var(--chakra-colors-baseWhite); font-size: 12px; line-height: 20px; }
.gal__count .ico { width: 14px; height: 14px; }
.gal__map { background: #dfe6e8 !important; }
.mapthumb { position: absolute; inset: 0; pointer-events: none; }
.snap__title { font-family: var(--chakra-fonts-heading); margin-top: 16px; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--purple); }
.snap__loc { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; margin-top: 4px; font-size: 14px; line-height: 20px; }
.snap__loc span { display: inline-flex; align-items: center; gap: 4px; }
.snap__loc .ico { width: 16px; height: 16px; }
.textlink { min-height: 44px; margin-block: -12px; font-size: 14px; font-weight: 600; color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.rating { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 0; font-size: 14px; }
.rating img { height: 18px; width: auto; }
.snap__intro { margin-top: 2px; }
.hl { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; }
.hl__tabs { display: grid; grid-template-columns: 1fr 1fr; }
.hl__tab { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 10px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--purple); }
.hl__tab + .hl__tab { border-left: 1px solid var(--line); }
.hl__tab .ico { width: 20px; height: 20px; }
.hl__tab .chev { width: 14px; height: 14px; margin-left: auto; transform: rotate(90deg); stroke-width: 2; transition: transform var(--chakra-transition-duration-fast) var(--chakra-transition-easing-ease-out); }
.hl__tab[aria-expanded="true"] { box-shadow: inset 0 -2px 0 var(--purple); }
.hl__tab[aria-expanded="true"] .chev { transform: rotate(-90deg); }
.hl__panel { padding: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.fac { margin-top: 24px; }
.fac__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.fac__title { font-family: var(--chakra-fonts-heading); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--purple); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 18px; font-weight: 500; }
.chip .ico { width: 20px; height: 20px; color: var(--purple); }
.chip .chev { width: 14px; height: 14px; margin-left: auto; stroke-width: 2; }

/* Buttons */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 8px 16px; border-radius: 4px; background: var(--chakra-colors-primary); color: var(--chakra-colors-baseWhite); font-weight: 600; text-align: center; }
.btn--ghost { background: var(--chakra-colors-baseWhite); border: 1px solid var(--purple); color: var(--purple); }

/* Overlays */
#overlay { position: relative; z-index: 2000; }
.ov { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0,0,0,.5); animation: fade var(--chakra-transition-duration-normal) var(--chakra-transition-easing-ease-out); }
.ov__sheet { width: 100%; max-width: 430px; margin-inline: auto; height: calc(100% - 24px); display: flex; flex-direction: column; background: var(--chakra-colors-baseWhite); border-radius: 16px 16px 0 0; overflow: hidden; animation: rise 240ms var(--chakra-transition-easing-ease-out); }
.ov__sheet:focus { outline: none; }
.ov__head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.ov__title { font-family: var(--chakra-fonts-heading); font-size: 20px; line-height: 26px; font-weight: 700; color: var(--purple); }
.ov__x { width: 44px; height: 44px; display: grid; place-items: center; color: var(--purple); }
.ov__body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
@keyframes rise { from { transform: translateY(32px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ov, .ov__sheet { animation: none; } }

.flist { display: grid; gap: 8px; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.fcard { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; padding: 8px 12px 12px; border: 1px solid var(--chakra-colors-lightGrey3); border-radius: 8px; scroll-margin-top: 16px; transition: border-color 600ms; }
.fcard.is-target { border-color: var(--purple); }
.fcard .ico { color: var(--purple); margin-top: 2px; }
.fcard h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--purple); }
.fcard p { grid-column: 2; }
.fcard__time { grid-column: 2; margin-top: 12px; }
.fcard__time b { font-weight: 600; display: block; }

/* Map sheet */
.ov__head--map { background: var(--chakra-colors-baseWhite); border-bottom: 0; padding: 20px 16px 20px 32px; }
.ov__head--map .ov__title { color: var(--chakra-colors-baseBlack); }
.ov__head--map .ov__x { color: var(--chakra-colors-baseBlack); }
.ov__head--map .ov__x span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--chakra-colors-baseWhite); }
.ov__head--map .ov__x .ico { width: 16px; height: 16px; stroke-width: 2; }
.bigmap { flex: 1; min-height: 0; background: #e5e9ea; }
.tiles .leaflet-tile-pane { filter: saturate(.45) brightness(1.03); }
.pin { background: none; border: 0; }
.pin svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.poi { background: none; border: 0; }
.poi__dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--chakra-colors-primary); border: 2px solid var(--chakra-colors-baseWhite); }
.poi__name { position: absolute; left: 9px; top: -9px; white-space: nowrap; font-family: var(--chakra-fonts-body); font-size: 13px; line-height: 18px; font-weight: 700; color: var(--chakra-colors-primary); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.poi--left .poi__name { left: auto; right: 9px; }
.mapfail { padding: 24px; text-align: center; }

/* Gallery */
.ov--gal { animation: none; background: var(--chakra-colors-baseBlack); justify-content: flex-start; color: var(--chakra-colors-baseWhite); }
.galv { width: 100%; max-width: 430px; height: 100%; margin-inline: auto; display: flex; flex-direction: column; }
.galv:focus { outline: none; }
.galv__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; }
.galv__head .ov__x { color: var(--chakra-colors-baseWhite); }
.galv__scroll { flex: 1; min-height: 0; display: flex; align-items: center; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galv__scroll::-webkit-scrollbar { display: none; }
.galv__scroll img { flex: 0 0 100%; width: 100%; max-height: 100%; object-fit: contain; scroll-snap-align: center; }

/* Edit search */
.form { display: grid; gap: 16px; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); }
.field { display: grid; gap: 4px; }
.field label, .step__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input { width: 100%; min-width: 0; height: 48px; padding-inline: 12px; font: inherit; color: inherit; background: var(--chakra-colors-baseWhite); border: 1px solid var(--chakra-colors-lightGrey1); border-radius: 4px; -webkit-appearance: none; appearance: none; }
.field input[readonly] { background: var(--chakra-colors-lightGrey5); color: var(--chakra-colors-darkGrey2); }
.field--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field--2 > div { display: grid; gap: 4px; min-width: 0; }
.err { color: var(--chakra-colors-error); font-size: 14px; line-height: 20px; }
.step { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.step__label small { display: block; font-size: 13px; font-weight: 400; color: var(--chakra-colors-darkGrey2); }
.step__ctrl { display: flex; align-items: center; gap: 8px; }
.step__ctrl output { min-width: 24px; text-align: center; font-weight: 600; }
.step__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--purple); border-radius: 50%; color: var(--purple); font-size: 22px; line-height: 1; }
.step__btn:disabled { border-color: var(--chakra-colors-lightGrey2); color: var(--chakra-colors-lightGrey2); cursor: default; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 3000; transform: translateX(-50%); padding: 8px 16px; border-radius: 4px; background: var(--chakra-colors-darkGrey1); color: var(--chakra-colors-baseWhite); font-size: 14px; white-space: nowrap; }
.foot { margin-top: auto; padding: 16px; background: var(--chakra-colors-lightGrey5); font-size: 13px; line-height: 18px; text-align: center; color: var(--chakra-colors-darkGrey2); }
