/* Visit2.ge home page (body.home2): a calm photo with one search field, a search sheet, chips and rows of hotels.
   Phone first; 640 and 1024 are the two breakpoints (docs/DESIGN.md). */
.home2 { background: var(--warm); }
.home2 .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* hero: one photo, one sentence, one field */
.h-hero { position: relative; min-height: min(88svh, 760px); display: grid; place-items: center; overflow: hidden; background: #2a2622; color: #fff; isolation: isolate; }
.h-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: opacity 1.2s ease; }
.h-hero-bg.h-next { opacity: 0; }
.h-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .45) 100%); }
.h-hero-in { width: 100%; max-width: 900px; padding: 96px var(--pad) 72px; text-align: center; }
.h-hero h1 { margin: 0 auto 32px; max-width: 16ch; font-size: clamp(32px, 7.2vw, 60px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.h-credit { position: absolute; left: var(--pad); bottom: 16px; max-width: calc(100% - 2 * var(--pad)); min-height: 44px; display: inline-flex; align-items: center;
  color: #fff; font-size: 14px; text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-credit:hover { text-decoration: underline; }

.h-pill { display: flex; align-items: stretch; max-width: 420px; margin: 0 auto; padding: 6px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.h-seg { flex: 1; min-width: 0; min-height: 52px; display: grid; align-content: center; gap: 2px; padding: 4px 14px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.h-seg:hover { background: var(--warm); }
.h-seg-l { display: none; font-size: 12px; font-weight: 700; color: var(--ink); }
.h-seg-v { font-size: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-pill.set .h-seg-where .h-seg-v { color: var(--ink); font-weight: 600; }
.h-seg-when, .h-seg-who { display: none; }
.h-go { flex: 0 0 52px; min-height: 52px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--teal); color: #fff; cursor: pointer; }
.h-go:hover { background: var(--teal-dark); }
@media (min-width: 1024px) {
  .h-pill { max-width: 820px; }
  .h-seg-l { display: block; }
  .h-seg-when, .h-seg-who { display: grid; border-left: 1px solid var(--line); border-radius: 0 12px 12px 0; }
  .h-seg-who { border-radius: 12px; }
  .h-seg-v { font-size: 15px; }
  .h-go { flex-basis: 60px; }
}

/* the search sheet: full screen on a phone, a panel on larger screens */
.h-sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
.h-sheet::backdrop { background: rgba(20, 20, 20, .5); }
.h-sheet-in { height: 100%; overflow-y: auto; padding: max(8px, env(safe-area-inset-top)) var(--pad) 0; box-sizing: border-box; }
.h-view[data-view="main"], .h-view[data-view="where"] { padding-bottom: 24px; }
.h-sheet-head { position: sticky; top: 0; z-index: 2; background: #fff; margin: 0 calc(-1 * var(--pad)); padding: 0 calc(var(--pad) - 8px); }
.h-sheet-head h2 { margin: 0; flex: 1; text-align: center; font-size: 18px; }
.h-back { font-size: 36px; } .h-back[hidden] { visibility: hidden; display: block; }
@media (min-width: 640px) {
  .h-sheet { width: min(560px, 92vw); height: auto; max-height: min(86vh, 860px); margin: auto; border-radius: 20px; }
  .h-sheet.wide { width: min(640px, 92vw); }
  .h-sheet-in { max-height: min(86vh, 860px); }
}
.h-view { display: grid; gap: 14px; padding: 8px 0 8px; }
.h-view[hidden] { display: none; }
.h-field { display: grid; gap: 4px; min-height: 72px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.h-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.h-field b { font-size: 18px; font-weight: 600; }
.h-field:hover { border-color: var(--ink); }
.h-submit { min-height: 56px; font-size: 18px; margin-top: 6px; }
.h-find { min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; font: 400 17px var(--font); color: var(--ink); background: var(--warm); }
.h-towns { display: grid; }
.h-towns h3 { margin: 18px 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.h-town { min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: 500 17px var(--font); color: var(--ink); cursor: pointer; }
.h-town[aria-pressed="true"] { color: var(--teal-dark); font-weight: 700; }
.h-range { display: grid; grid-template-columns: 1fr 1fr; max-width: 420px; width: 100%; margin: 4px auto 0; border-radius: 14px; overflow: hidden; background: var(--ink); color: #fff; }
.h-range-box { display: grid; justify-items: center; padding: 10px 8px; }
.h-range-box + .h-range-box { border-left: 1px solid rgba(255, 255, 255, .35); }
.h-range-box span { font-size: 13px; opacity: .85; } .h-range-box b { font-size: 19px; }
.h-nights { margin: 0; text-align: center; font-weight: 600; min-height: 1.6em; }
.h-dow, .h-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.h-dow { position: sticky; top: 56px; z-index: 1; background: #fff; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.h-month h3 { margin: 18px 0 8px; text-align: center; font-size: 17px; font-weight: 600; }
.h-days > * { display: grid; place-items: center; height: 46px; font: 600 16px var(--font); }
.h-days .past { color: #b9b1a8; text-decoration: line-through; font-weight: 400; }
.h-days button { border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 0; }
.h-days button:hover { background: var(--warm); border-radius: 50%; }
.h-days button.in { background: #E3F2F0; border-radius: 0; }
.h-days button.start, .h-days button.end { background: var(--teal-dark); color: #fff; border-radius: 50%; }
.h-sheet-foot { position: sticky; bottom: 0; display: flex; gap: 12px; justify-content: flex-end; padding: 12px 0 max(4px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.h-sheet-foot .btn { min-height: 52px; flex: 1; max-width: 240px; }
.h-step { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.h-step b { display: block; font-size: 18px; }
.h-step small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.h-stepper { display: flex; align-items: center; gap: 14px; }
.h-stepper button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 400 24px/1 var(--font); color: var(--ink); cursor: pointer; }
.h-stepper button:hover { border-color: var(--ink); }
.h-stepper output { min-width: 2ch; text-align: center; font-size: 20px; }

/* chips */
.h-chips-wrap { position: relative; }
.h-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 20px var(--pad) 6px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; box-sizing: border-box; }
.h-chips::-webkit-scrollbar { display: none; }
.h-chip { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: 600 15px/1 var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; }
.h-chip:hover { border-color: var(--ink); }
.h-chip[aria-pressed="true"], .h-chip[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* rows of cards you swipe through */
.h-row-sec { padding: 28px 0 8px; }
.h-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.h-row-head h2 { margin: 0; font-size: clamp(22px, 4.8vw, 28px); line-height: 1.2; }
.h-row-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.h-more { flex: 0 0 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; color: var(--ink); cursor: pointer; }
.h-more:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.h-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad); }
.h-row::-webkit-scrollbar { display: none; }
.h-row > * { scroll-snap-align: start; }
@media (min-width: 1024px) {
  .h-row { grid-auto-columns: calc((min(100vw, var(--max) + 2 * var(--pad)) - 2 * var(--pad) - 4 * 20px) / 4.4); gap: 20px;
    padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); scroll-padding-left: max(var(--pad), calc((100vw - var(--max)) / 2)); }
}

/* one hotel card */
.h-card { position: relative; min-width: 0; }
.h-card a { display: block; color: var(--ink); text-decoration: none; }
.h-card-ph { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--sand); margin-bottom: 10px; }
.h-card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.h-card a:hover .h-card-ph img { transform: scale(1.03); }
.h-card h3 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.h-card-m { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.h-card-p { margin: 4px 0 0; font-size: 15px; }
.h-card.busy .h-card-ph { opacity: .55; }
.h-busy { color: var(--muted); }
.h-heart { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.h-heart svg { fill: rgba(0, 0, 0, .35); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .3)); }
.h-heart[aria-pressed="true"] svg { fill: #E2563B; }
@media (prefers-reduced-motion: reduce) { .h-card-ph img, .h-hero-bg { transition: none; } }

/* results */
.h-results { padding: 32px 0 12px; scroll-margin-top: 64px; }
.h-res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.h-res-head h2 { margin: 0; font-size: clamp(24px, 5vw, 32px); }
.h-res-head p { margin: 4px 0 0; color: var(--muted); }
.h-res-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.h-grid { display: grid; gap: 28px 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .h-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .h-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.h-grid .h-card-ph { aspect-ratio: 4 / 3; }
@media (min-width: 640px) { .h-grid .h-card-ph { aspect-ratio: 1 / 1; } }
.h-empty { color: var(--muted); }
.h-map-box { margin-bottom: 24px; }
.h-map-hint { margin: 0 0 10px; color: var(--muted); }
.h-map-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.h-radius { display: flex; flex-wrap: wrap; gap: 8px; }
.h-map { height: min(60vh, 480px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }

/* where to eat */
.h-eat-towns { padding: 0 var(--pad) 14px; }
.h-eat { display: grid; align-content: start; gap: 6px; min-height: 120px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; }
.h-eat:hover { border-color: var(--ink); }
.h-eat-k { font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.h-eat b { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.h-eat span:last-child { font-size: 14px; color: var(--muted); }
.h-note { margin: 10px auto 0; font-size: 13px; color: var(--muted); }
#eat .h-row { grid-auto-columns: min(62vw, 240px); }
@media (min-width: 1024px) { #eat .h-row { grid-auto-columns: 240px; } }

/* how it works, about */
.h-how { padding: 56px 0 24px; }
.h-how h2, .h-about h2 { margin: 0 0 18px; font-size: clamp(24px, 5vw, 32px); }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 1024px) { .h-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.h-steps li { counter-increment: s; display: grid; gap: 6px; color: var(--muted); }
.h-steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--teal-dark); font-weight: 800; }
.h-steps b { display: block; color: var(--ink); font-size: 18px; }
.h-about { padding: 32px 0 64px; }
.h-about p { max-width: 62ch; margin: 0; font-size: 17px; color: var(--muted); }

/* a paid restaurant place: photo, a clear badge, a wider card */
.h-eat-ad { position: relative; padding: 0 0 16px; overflow: hidden; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.h-eat-ad img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.h-eat-ad > :not(img):not(.h-eat-badge) { padding: 0 16px; }
.h-eat-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px !important; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
#eat .h-row { align-items: stretch; }
/* paid places: their own row with photos, above the plain list of places nearby */
#eat .h-ads { grid-auto-columns: min(80vw, 340px); margin-bottom: 16px; }
@media (min-width: 1024px) { #eat .h-ads { grid-auto-columns: 340px; } }
#eat .h-ads[hidden] { display: none; }

/* compare: a quiet tick under the card, a small bar while hotels are picked, a side-by-side table */
.h-cmp { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 -6px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.h-cmp-box { width: 18px; height: 18px; border: 1.5px solid #B9AE9F; border-radius: 5px; display: grid; place-items: center; background: #fff; }
.h-cmp[aria-pressed="true"] { color: var(--teal-dark); font-weight: 600; }
.h-cmp[aria-pressed="true"] .h-cmp-box { background: var(--teal-dark); border-color: var(--teal-dark); }
.h-cmp[aria-pressed="true"] .h-cmp-box::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.h-cmp-bar { position: fixed; z-index: 40; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; align-items: center; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 28px rgba(31, 26, 23, .28); max-width: calc(100vw - 106px); }
.h-cmp-bar[hidden], .h-cmp-full[hidden] { display: none; }
.h-cmp-go { min-height: 52px; padding: 0 8px 0 22px; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.h-cmp-x { width: 48px; height: 52px; border: 0; background: none; color: #fff; opacity: .7; font-size: 22px; cursor: pointer; border-radius: 0 999px 999px 0; }
.h-cmp-x:hover { opacity: 1; }
.h-cmp-full { position: fixed; z-index: 41; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(31, 26, 23, .2); font-size: 15px; }
@media (min-width: 640px) { .h-cmp-bar { left: 50%; transform: translateX(-50%); } }
.h-cmp-dlg .h-sheet-head > span { width: 44px; }
.h-sheet.h-cmp-dlg { --cmp-w: 3; }
@media (min-width: 640px) { .h-sheet.wide.h-cmp-dlg { width: min(880px, 94vw); } }
.h-cmp-note { margin: 4px 0 14px; color: var(--muted); font-size: 15px; text-align: center; }
.h-cmp-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 24px; scroll-padding: 0 var(--pad); -webkit-overflow-scrolling: touch; }
.h-cmp-t { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; font-size: 15px; line-height: 1.45; }
.h-cmp-t th, .h-cmp-t td { padding: 12px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.h-cmp-t tbody th { position: sticky; left: calc(-1 * var(--pad)); z-index: 1; width: 104px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; }
.h-cmp-t thead th { border-bottom: 0; padding-bottom: 4px; }
.h-cmp-t thead th:first-child { width: 104px; }
.h-cmp-t thead th:first-child { position: sticky; left: calc(-1 * var(--pad)); background: #fff; z-index: 1; }
.h-cmp-t thead a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.h-cmp-t thead b { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.h-cmp-ph { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sand); }
.h-cmp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-cmp-rm { min-height: 40px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.h-cmp-t td small { display: block; color: var(--muted); font-size: 13px; }
.h-cmp-t td b { font-size: 17px; }
.h-cmp-t ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
