:root {
  color-scheme: light;
  --paper: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #162c42;
  --muted: #52667a;
  --deep: #0F4C81;
  --mint: #e9f1f8;
  --line: #d9e3eb;
  --orange: #F97316;
  --price: color-mix(in srgb, var(--orange) 73%, #381e0c);
  --ease: cubic-bezier(0.22,1,0.36,1);
  --speed: 240ms;
  --radius: 16px;
  --shadow: 0 5px 18px #12304b0c;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); }
body.has-modal { overflow: hidden; }
[hidden] { display: none !important; }
button, input { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
a { color: var(--deep); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid #0f639f; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
svg { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { --gutter: clamp(16px, 4.2vw, 44px); max-width: 1152px; margin-inline: auto; padding-inline: max(var(--gutter),env(safe-area-inset-left)) max(var(--gutter),env(safe-area-inset-right)); }
.site-header { background: var(--paper); padding-top: env(safe-area-inset-top); }
.header-inner { min-height: 68px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: white; font-size: 24px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 23px; line-height: 1.1; letter-spacing: .01em; }
.brand small { font-size: 11px; margin-top: 3px; font-weight: 600; color: var(--muted); letter-spacing: .045em; }
.header-explore { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; border: 0; padding: 0 2px 0 10px; background: transparent; font-size: 13px; color: var(--deep); font-weight: 650; }
.header-explore svg { width: 19px; height: 19px; }
.discovery { position: relative; padding-bottom: 18px; }
.hero {
  --hero-photo: url("../photos/960px-Racha-Yai-Island-77395e8f5a.webp");
  --hero-position: 50% 53%;
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-start;
  min-height: clamp(226px, 34vw, 382px); padding: 24px clamp(19px, 4vw, 44px);
  border-radius: var(--radius); background: #28474a var(--hero-photo) var(--hero-position) / cover no-repeat; color: white;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(140deg, #081b27b0, transparent 67%); }
.hero h1 { font-size: clamp(37px, 5.4vw, 64px); font-weight: 800; line-height: 1.18; letter-spacing: -.055em; }
.hero-sub { margin-top: 7px; font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .04em; }
.hero-credit { position: absolute; bottom: 36px; right: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; color: #fff; background: #152e37b8; border-radius: 6px; font-size: 11px; text-decoration: none; }
.hero-credit svg { width: 13px; height: 13px; }
.search-block { position: relative; z-index: 5; margin: -24px 10px 0; }
#search-form { display: flex; align-items: center; gap: 7px; padding: 6px; min-height: 56px; border: 1px solid #d7e1e9; background: #fff; border-radius: 15px; box-shadow: 0 3px 9px #0d2f4c13; transition: transform var(--speed) var(--ease); }
#search-form:focus-within { transform: translateY(-3px); outline: 2px solid #76a0c6; }
.search-icon { color: var(--deep); padding-left: 8px; font-size: 18px; }
#search { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; height: 42px; font-size: 16px; }
#search::placeholder { color: #52667a; font-size: 14px; }
#search::-webkit-search-cancel-button { display: none; }
.search-submit, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding-inline: 13px; border: 0; border-radius: 10px; color: #fff; background: var(--deep); white-space: nowrap; font-size: 14px; font-weight: 700; }
.primary-button { min-height: 45px; padding-inline: 16px; border-radius: 12px; }
.suggestions { max-height: min(46dvh, 360px); overflow-y: auto; overscroll-behavior: contain; position: absolute; inset: calc(100% + 5px) 0 auto; border: 1px solid var(--line); border-radius: 14px; padding: 5px; background: var(--surface); box-shadow: var(--shadow); animation: reveal var(--speed) var(--ease) both; }
.suggestion { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; width: 100%; border: 0; border-radius: 10px; padding: 10px; background: transparent; text-align: left; }
.suggestion:hover, .suggestion[aria-selected="true"] { background: var(--mint); }
.suggestion strong, .suggestion small { display: block; }
.suggestion small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.promo {
  position: relative; isolation: isolate; overflow: hidden; width: 100%; display: flex;
  justify-content: space-between; min-height: 93px; padding: 0; border: 0; border-radius: 12px;
  background: var(--orange); color: #292017; text-align: left;
}
.promo::after {
  content: ""; position: absolute; z-index: -1; inset: -60% auto -60% -35%; width: 35%;
  opacity: 0; background: linear-gradient(90deg, transparent, #fff7e9aa, transparent); pointer-events: none;
}
.promo.sheen::after { animation: shimmer 350ms var(--ease); }
.promo strong { flex: 1; align-self: center; padding: 13px clamp(18px,4vw,32px); font-size: clamp(24px, 6.5vw, 37px); line-height: 1.18; letter-spacing: -.035em; }
.promo strong > span { display: block; }
.promo strong .promo-invite { display: flex; align-items: center; width: fit-content; gap: 7px; margin-top: 5px; font-size: .74em; }
.promo-invite svg { width: 20px; height: 20px; }
.promo-stub { position: relative; flex: none; display: grid; place-items: center; width: clamp(65px,18vw,110px); border-left: 1px dashed #59300e85; }
.promo-stub::before, .promo-stub::after { content: ""; position: absolute; left: -7px; top: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); }
.promo-stub::after { top: auto; bottom: -6px; }
.ticket-bars { width: 33px; height: 49px; color: #432f1b; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px); }
.filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 21px; }
.filter-line { min-width: 0; display: flex; align-items: start; gap: 8px; }
.filter-label { color: var(--muted); font-size: 13px; font-weight: 750; line-height: 38px; padding-right: 2px; flex: none; }
.filter-rail, .variant-rail { min-width: 0; position: relative; isolation: isolate; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 1px 2px 3px; }
.filter-rail::-webkit-scrollbar, .variant-rail::-webkit-scrollbar { display: none; }
.filter-rail button, .variant-rail button { flex: none; min-height: 37px; padding: 5px 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 100px; white-space: nowrap; font-size: 14px; font-weight: 650; }
.filter-rail button[aria-pressed="true"] { color: white; border-color: transparent; }
.indicator { position: absolute; z-index: -1; background: var(--deep); box-shadow: none; top: 1px; left: 0; height: 37px; width: 58px; border-radius: 100px; transform-origin: left; transform: translateX(var(--x, 0px)) scaleX(var(--width, 1)); transition: transform var(--speed) var(--ease); }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block: 22px 12px; }
.list-heading h2 { font-size: clamp(23px, 3.2vw, 32px); letter-spacing: -.055em; line-height: 1.15; }
#results-count { margin-top: 5px; font-size: 13px; color: var(--muted); }
.map-toggle, .outline-button, .detail-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 1px solid #ccdbe6; border-radius: 12px; background: var(--surface); color: var(--deep); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.map-toggle[aria-pressed="true"] { background: var(--mint); }
.results { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.card { width: 100%; min-width: 0; min-height: 127px; display: grid; grid-template-columns: 36% minmax(0,1fr); gap: 0; align-items: stretch; padding: 0; overflow: clip; text-align: left; background: var(--surface); border: 1px solid #dce5ec; border-radius: 13px; box-shadow: var(--shadow); }
.card-enter { animation: reveal var(--speed) var(--ease) backwards; animation-delay: var(--delay,0ms); }
.card-body { min-width: 0; display: flex; flex-direction: column; align-items: start; padding: 13px; }
.card-meta { display: flex; gap: 5px; align-items: center; color: #46637c; font-size: 12px; font-weight: 650; }
.card-meta svg { font-size: 11px; }
.card-title { margin-block: 3px 5px; font-size: 18px; font-weight: 750; line-height: 1.25; letter-spacing: -.045em; overflow-wrap: anywhere; }
.card-sub { color: var(--muted); font-size: 12px; line-height: 1.42; margin-bottom: 6px; }
.card-quote { display: flex; align-items: baseline; gap: 5px; margin-top: auto; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.card-quote strong { color: var(--price); font-size: 22px; line-height: 1.1; }
.card-quote strong.inquiry { color: var(--deep); font-size: 14px; font-weight: 750; }
.card-sub.match { margin-top: 2px; color: var(--deep); font-size: 13px; }
.photo { position: relative; isolation: isolate; overflow: hidden; background: #e0ebf1; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--speed) var(--ease); }
.photo img.loaded { opacity: 1; }
.photo-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 6px; text-align: center; color: #40647e; }
.photo-placeholder svg { width: 29px; height: 29px; }
.photo-placeholder small { font-size: 12px; }
.photo-flag { position: absolute; bottom: 6px; left: 6px; max-width: calc(100% - 12px); color: white; background: #19384ee6; padding: 3px 6px; font-size: 11px; line-height: 1.3; border-radius: 5px; }
.photo-credit { margin-top: 7px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.skeleton { position: relative; overflow: hidden; min-height: 115px; border-radius: 17px; background: #eef2f6; }
.skeleton::before { content: ""; display: block; position: absolute; width: 34%; height: 100%; background: #dfe8ee; }
.skeleton::after { content: ""; position: absolute; left: 39%; top: 24%; width: 46%; height: 10px; border-radius: 100px; background: #d9e3eb; box-shadow: 0 24px 0 #e0e7ed, 0 48px 0 #e0e7ed; animation: skeleton var(--speed) var(--ease) both; }
.status { margin: 10px 0; min-height: 190px; display: grid; justify-items: center; align-content: center; gap: 9px; padding: 20px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.status > svg { width: 48px; height: 48px; padding: 11px; background: var(--mint); color: var(--deep); border-radius: 16px; }
.status p { color: var(--muted); font-size: 14px; }
.load-more { display: flex; margin: 16px auto 0; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; padding: 21px 0 32px; margin-top: 26px; border-top: 1px solid var(--line); }
.site-footer span, .site-footer a { color: var(--muted); font-size: 12px; }
.site-footer strong { color: var(--deep); font-size: 17px; }
.map-view { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.map-canvas { position: relative; aspect-ratio: 480 / 360; width: min(100%, 720px); margin-inline: auto; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; }
.map-note { position: absolute; bottom: 8px; left: 8px; padding: 3px 6px; border-radius: 6px; background: #FFFFFF; color: var(--muted); font-size: 11px; text-decoration: none; }
.map-marker { position: absolute; z-index: 1; display: flex; align-items: center; gap: 4px; min-height: 35px; padding: 5px 8px; white-space: nowrap; border-radius: 30px; border: 1px solid #b9cedd; background: var(--surface); color: var(--deep); font-size: 13px; font-weight: 750; box-shadow: var(--shadow); translate: calc(-100% - 4px) -65%; animation: marker var(--speed) var(--ease) backwards; animation-delay: var(--delay,0ms); }
.map-marker::before { content: ""; position: absolute; top: 65%; right: -8px; translate: 0 -50%; width: 7px; height: 7px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 2px white; }
.map-marker[data-city="芭提雅"] { translate: 4px -20%; }
.map-marker[data-city="芭提雅"]::before { left: -8px; right: auto; top: 20%; }
.map-marker[aria-pressed="true"] { background: var(--deep); color: white; z-index: 2; }
.map-marker[aria-pressed="false"]:disabled { opacity: .55; }
.map-marker svg { font-size: 12px; }
.map-preview { display: grid; gap: 10px; padding: 12px; }
.map-preview .outline-button { justify-self: start; }
.map-preview > p { color: var(--muted); font-size: 14px; }
.detail { padding-bottom: 32px; }
.detail-nav { display: flex; align-items: center; gap: 13px; position: sticky; top: 0; z-index: 3; padding-block: max(8px,env(safe-area-inset-top)) 13px; background: var(--paper); }
.detail-nav strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-media .photo { aspect-ratio: 1.9; border-radius: var(--radius); }
.detail-header { margin-block: 13px 20px; }
.detail-header h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; letter-spacing: -.06em; margin-block: 4px 10px; }
.detail-header .intro { font-size: 16px; line-height: 1.62; color: #394e63; }
.pending { color: #5b6371; background: #eef2f5; padding: 3px 7px; border-radius: 5px; font-size: 12px; font-weight: 660; display: inline-block; margin-top: 6px; }
.detail-header a { display: inline-block; margin: 9px 13px 0 0; font-size: 13px; }
.ticket-panel { scroll-margin-top: 70px; padding: clamp(14px, 4vw, 24px); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticket-panel h2 { font-size: 24px; letter-spacing: -.045em; }
.ticket-panel .variant-rail { margin: 10px -2px 8px; }
.variant-rail button[aria-pressed="true"] { color: white; background: var(--deep); border-color: var(--deep); }
.ticket-panel .offer-summary { margin-top: 8px; padding: 13px; background: #f1f6fa; border-radius: 15px; }
.offer-summary h3 { margin-bottom: 7px; font-size: 16px; }
.audience-rail { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 5px; margin-bottom: 5px; }
.audience-rail button { min-height: 38px; flex: none; padding: 4px 9px; border: 1px solid #c2d3e1; border-radius: 9px; background: var(--surface); color: var(--deep); font-size: 14px; font-weight: 650; }
.audience-rail button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: white; }
.money { font-variant-numeric: tabular-nums; }
.price-display { overflow: hidden; min-height: 55px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; padding-block: 5px; }
.price-display strong { color: var(--price); font-size: 33px; letter-spacing: -.05em; line-height: 1.3; display: inline-flex; }
.price-inquiry { color: var(--deep); font-size: 25px; font-weight: 750; background: transparent; border: 0; padding: 2px 0; }
.price-display .digit { position: relative; overflow: hidden; display: inline-flex; }
.price-display .digit::before { content: attr(data-previous); position: absolute; inset: 0; animation: roll-away var(--speed) var(--ease) both; }
.price-display .digit b { font-weight: inherit; display: block; animation: roll var(--speed) var(--ease) both; }
.fare-status { display: inline-block; vertical-align: middle; border-radius: 4px; background: #f2f0eb; color: #675b48; font-size: 11px; font-weight: 600; padding: 1px 5px; white-space: nowrap; }
.fare-meta { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12px; margin: 4px 0 8px; color: var(--muted); }
.fare-meta a { text-underline-offset: 3px; }
.price-display .fare-status { color: #675b48; font-size: 11px; }
.price-display span, .price-caption { font-size: 13px; color: var(--muted); }
.price-display strong .digit { color: inherit; font-size: inherit; }
.price-caption { line-height: 1.55; }
.offer-actions { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.offer-content { scroll-margin-top: 72px; display: grid; gap: 10px; margin-top: 15px; }
.info-list h3 { font-size: 16px; }
.info-list ul { margin: 6px 0 0; padding-left: 20px; color: #394e63; line-height: 1.6; }
.info-list li { margin-bottom: 2px; }
.detail-focus { border-color: #96b6d0; }
.answer-target:focus { outline: 0; }
.offer-content.answer-target .info-list:first-child { padding-left: 11px; border-left: 3px solid var(--orange); }
.photo-flight { position: fixed; z-index: 8; overflow: hidden; border-radius: 16px; transform-origin: top left; pointer-events: none; background: #e0ebf1; }
.photo-flight img { position: absolute; max-width: none; }
:root { --dock-height: calc(66px + env(safe-area-inset-bottom, 0px)); }
.page-scroll { position: fixed; inset: 0 0 var(--dock-height); overflow: auto; overscroll-behavior-y: contain; }
.page-scroll:has(~ dialog[open]) { overflow: hidden; }
.support-dock { position: fixed; inset: auto 0 0; height: var(--dock-height); z-index: 9; padding-bottom: env(safe-area-inset-bottom); background: white; border-top: 1px solid var(--line); }
.dock-inner { max-width: 1152px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); margin-inline: auto; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.dock-discount { display: inline-flex; align-items: center; gap: 7px; min-height: 43px; border: 0; padding: 0 6px; background: transparent; font-weight: 650; color: var(--deep); font-size: 14px; }
.dock-discount svg { width: 22px; height: 22px; }
.chat-fab { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 19px; color: #fff; background: var(--deep); border: 0; border-radius: 100px; box-shadow: 0 3px 9px #0f4c812e; font-size: 15px; font-weight: 700; }
.chat-fab svg { font-size: 18px; }
@media(min-width: 1430px) {
  .page-scroll { position: static; overflow: visible; }
  .support-dock { inset: auto max(20px, calc((100vw - 1550px) / 2)) 20px auto; height: auto; padding: 0; border: 0; background: transparent; }
  .dock-inner { padding: 0; }
  .dock-discount { display: none; }
  .chat-fab { min-height: 49px; }
}
.sheet { position: fixed; inset: auto 0 0; margin: 0 auto; padding: 0; width: min(100%, 530px); max-width: 100%; max-height: min(91dvh, 800px); overflow: visible; border: 0; border-radius: 24px 24px 0 0; background: transparent; color: var(--ink); }
.sheet::backdrop { background: #102b42a8; animation: fade var(--speed) var(--ease) both; }
.sheet[open] { animation: sheet-rise 280ms var(--ease) both; }
.sheet-body { max-height: min(91dvh, 800px); overflow: auto; overscroll-behavior: contain; padding: 0 17px max(20px,env(safe-area-inset-bottom)); background: var(--surface); border-radius: inherit; transform: translateY(var(--drag,0)); transition: transform var(--speed) var(--ease); }
.sheet-body.dragging { transition: none; }
.sheet-grab { display: grid; place-items: center; height: 27px; touch-action: none; cursor: grab; }
.sheet-grab span { display: block; width: 37px; height: 4px; border-radius: 9px; background: #afc1cf; }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-header h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.045em; }
.sheet-header h2 svg { color: var(--deep); }
.icon-button { display: inline-grid; place-items: center; width: 39px; height: 39px; padding: 0; flex: none; background: #eef3f7; border: 0; border-radius: 10px; color: var(--deep); }
.search-clear { width: 28px; height: 35px; background: transparent; }
.sheet-description { margin-block: 6px 13px; color: var(--muted); line-height: 1.5; }
.account { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 13px; border: 1px solid #d2dfea; background: var(--mint); border-radius: 14px; }
.account span, .account strong { display: block; }
.account > div > span { color: var(--muted); font-size: 13px; }
.account strong { font-size: clamp(17px,5vw,25px); color: var(--deep); margin-top: 2px; }
.price-content { display: grid; gap: 12px; padding-top: 8px; }
.price-content .price-display { background: #f1f6fa; border-radius: 12px; padding-inline: 10px; }
.price-content dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 13px; margin: 0; line-height: 1.55; }
.price-content dt { color: var(--muted); font-size: 14px; }
.price-content dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.chat-sheet .sheet-body { display: flex; flex-direction: column; overflow: hidden; height: min(660px, 85dvh); }
.chat-context { padding: 7px 9px; margin-top: 6px; color: var(--deep); background: var(--mint); border-radius: 10px; font-size: 13px; }
.chat-log { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 9px; padding-block: 13px; }
.chat-message { align-self: start; max-width: 88%; padding: 8px 11px; background: #edf3f8; border-radius: 12px 12px 12px 4px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; animation: reveal var(--speed) var(--ease) both; }
.chat-message.visitor { align-self: end; background: var(--deep); color: white; border-radius: 12px 12px 4px 12px; }
.chat-message img, .chat-message video { display: block; max-width: 100%; max-height: 230px; border-radius: 8px; }
.chat-status, .chat-attachment { color: var(--muted); font-size: 13px; padding-block: 4px; }
.chat-status:empty { display: none; }
.chat-attachment button { margin-left: 8px; }
.chat-form { display: flex; align-items: center; gap: 7px; }
.chat-form input[type="text"] { min-width: 0; flex: 1; min-height: 45px; border: 1px solid #c5d6e3; padding: 7px 10px; border-radius: 10px; background: white; }
.chat-form:has(#chat-file:focus-visible) .attach { outline: 2px solid var(--deep); outline-offset: 2px; }
.attach { cursor: pointer; }
.toast { position: fixed; z-index: 9999; left: 50%; bottom: 88px; width: max-content; max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 100px; transform: translateX(-50%); background: #143c5e; color: #fff; display: flex; align-items: center; gap: 7px; font-weight: 700; box-shadow: var(--shadow); pointer-events: none; animation: fade var(--speed) var(--ease) both; }
#promo-sheet .toast { position: absolute; bottom: calc(100% + 13px); }
.toast.success svg { animation: check-pop var(--speed) var(--ease) both; }
button { transition: transform var(--speed) var(--ease); }
button:active { transform: scale(.98); }
@keyframes shimmer { 0% { transform: translateX(0) skewX(-16deg); opacity: 0; } 45% { opacity: .38; } 100% { transform: translateX(410%) skewX(-16deg); opacity: 0; } }
@keyframes reveal { from { transform: translateY(9px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes sheet-rise { from { transform: translateY(100%); opacity:.6; } to { transform: translateY(0); opacity:1; } }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
@keyframes skeleton { from { opacity:.35; } to { opacity:1; } }
@keyframes marker { from { transform: translateY(4px) scale(.92); opacity:0; } to { transform: translateY(0) scale(1); opacity:1; } }
@keyframes roll { from { transform: translateY(92%); opacity:.3; } to { transform: translateY(0); opacity:1; } }
@keyframes roll-away { from { transform: translateY(0); opacity:1; } to { transform: translateY(-92%); opacity:0; } }
@keyframes check-pop { from { transform: scale(.4) rotate(-22deg); opacity:.2; } to { transform: scale(1) rotate(0); opacity:1; } }
/* Keep the catalogue controls reachable while browsing long city lists. */
.page-scroll:has(#home:not([hidden])) .site-header { position: sticky; top: 0; z-index: 6; }
#explore { scroll-margin-top: calc(76px + env(safe-area-inset-top)); }
.sheet-body { padding-inline: max(17px,env(safe-area-inset-left)) max(17px,env(safe-area-inset-right)); }

@media(min-width: 620px) {
  .results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .search-block { max-width: 700px; margin-inline: 22px; margin-top: -24px; }
  .promo strong { display: flex; align-items: baseline; }
  .promo strong .promo-invite { margin: 0; }
  .promo { min-height: 89px; }
  .promo strong { font-size: clamp(28px, 4.4vw, 43px); }
  .detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0,1fr); align-items: start; gap: 24px; }
  .detail-header h1 { font-size: clamp(27px,4vw,44px); }
  .detail-media .photo { aspect-ratio: 1.45; }
}
@media(min-width: 950px) {
  .header-inner { min-height: 82px; }
  .results { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 218px; }
  .card .photo { aspect-ratio: 2.12; }
  .card-body { padding: 13px; }
  .hero-credit { padding: 7px 11px; }
  .promo { min-height: 79px; }
}
@media(max-width: 352px) {
  .hero { min-height: 188px; }
  .promo-stub { width: 49px; }
  .promo strong { font-size: 22px; padding-inline: 15px; }
  .search-block { margin-inline: 4px; }
  .filter-rail button { padding-inline: 9px; }
}
@media(prefers-reduced-motion: reduce) {
  .price-display .digit::before { display: none; }
  *, *::before, *::after, dialog::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.message-retry { display: inline-block; margin: 3px 0 0 7px; padding: 2px 5px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 5px; font-size: 12px; }

/* Two transform-only strokes trace the copy confirmation inside the SVG. */
.toast .check-first { transform-origin: 5px 12px; animation: check-first 180ms var(--ease) both; }
.toast .check-last { transform-origin: 9px 16px; animation: check-last 200ms var(--ease) 90ms both; }
@keyframes check-first { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes check-last { from { transform: scale(0); } to { transform: scale(1); } }
