:root {
  --bg: #f4efe4; --paper: #fffdf8; --ink: #18251e; --muted: #657168;
  --green: #245946; --green-dark: #173c30; --orange: #d58143; --line: #dcd8cd;
  --shadow: 0 12px 34px rgb(24 37 30 / 12%); --safe-top: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; background: var(--green-dark); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.modal-open { overflow: hidden; position: fixed; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #f1a45d; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); background: white; padding: 12px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.hero { min-height: 390px; position: relative; overflow: hidden; display: flex; align-items: flex-end; color: white; background: var(--green-dark); padding: calc(32px + var(--safe-top)) 20px 78px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgb(9 31 24 / 82%)); }
.hero__art { position: absolute; inset: 0; background: url("assets/images/tbilisi.svg") center 42% / cover no-repeat; opacity: .8; }
.hero__content { position: relative; z-index: 1; width: min(850px, 100%); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 750; }
.hero h1 { max-width: 700px; margin: 11px 0 15px; font-size: clamp(38px, 11vw, 68px); line-height: .98; letter-spacing: -.035em; }
.hero p:last-child { margin: 0; font-size: 17px; }
.wrap { width: min(850px, 100%); margin: -47px auto 0; position: relative; z-index: 2; padding: 0 14px calc(70px + env(safe-area-inset-bottom, 0px)); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.facts article { min-height: 108px; display: flex; flex-direction: column; background: var(--paper); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.facts span, .facts small { color: var(--muted); font-size: 12px; }
.facts strong { margin: 4px 0; font-size: 17px; }
.notice { display: grid; gap: 3px; margin: 18px 0 22px; padding: 14px 16px; border: 1px solid #bed4c7; border-radius: 15px; background: #e7f0e8; color: #254a36; }
.app-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -6px 0 22px; padding: 16px; border-radius: 15px; color: white; background: var(--green); box-shadow: var(--shadow); }
.app-tools div { display: grid; gap: 3px; }
.app-tools span { font-size: 13px; opacity: .86; }
.app-tools button { flex: 0 0 auto; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 12px; color: var(--green-dark); background: #fff; font-weight: 800; cursor: pointer; }
.app-tools button:disabled { cursor: default; opacity: .72; }
.notice span { font-size: 13px; }
.city-nav { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 24px; padding: 2px 14px 8px; scrollbar-width: none; }
.city-nav::-webkit-scrollbar { display: none; }
.city-nav a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 9px 15px; font-weight: 700; }
.city { scroll-margin-top: 10px; margin: 0 0 34px; }
.city__head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.city__head h2 { margin: 0; font-size: 29px; letter-spacing: -.025em; }
.city__head p { margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.stay { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.stay.tentative { color: #775325; }
.day { width: 100%; min-height: 96px; display: grid; grid-template-columns: 63px 1fr 20px; gap: 12px; align-items: center; margin: 9px 0; padding: 14px; text-align: left; color: var(--ink); cursor: pointer; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 4px 18px rgb(24 37 30 / 6%); }
.day:hover { border-color: #a8b5aa; transform: translateY(-1px); }
.day__date { font-size: 23px; font-weight: 850; line-height: 1; }
.day__date small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.day__title { display: block; font-size: 17px; }
.day__summary { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.day__arrow { color: var(--green); font-size: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #edf1ec; color: #46534a; font-size: 11px; font-style: normal; }
footer { margin-top: 42px; color: var(--muted); text-align: center; font-size: 12px; }
dialog { width: min(760px, 100%); max-width: none; height: min(94dvh, 980px); max-height: none; margin: auto auto 0; padding: 0; overflow: hidden; color: var(--ink); background: var(--paper); border: 0; border-radius: 25px 25px 0 0; box-shadow: 0 -14px 60px rgb(0 0 0 / 34%); }
dialog::backdrop { background: rgb(8 22 17 / 72%); backdrop-filter: blur(2px); }
.sheet { height: 100%; position: relative; }
.sheet__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.close { position: absolute; z-index: 5; top: 12px; right: 12px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: #172018; background: rgb(255 255 255 / 94%); box-shadow: var(--shadow); font-size: 29px; line-height: 1; cursor: pointer; }
.detail-visual { min-height: 255px; position: relative; display: flex; align-items: flex-end; padding: 24px 20px; color: white; background: var(--green-dark) center / cover no-repeat; }
.detail-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgb(9 26 20 / 88%)); }
.detail-visual > div { position: relative; z-index: 1; }
.detail-visual .eyebrow { margin: 0 0 6px; }
.detail-visual h2 { margin: 0 50px 5px 0; font-size: 31px; line-height: 1.06; }
.detail-visual p { margin: 0; opacity: .9; }
.detail { padding: 19px; }
.status-pill { display: inline-flex; margin-bottom: 15px; padding: 7px 10px; border-radius: 9px; color: #624719; background: #fff0d5; font-size: 12px; font-weight: 750; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.quick div { padding: 12px; border-radius: 13px; background: #f1eee6; }
.quick small { display: block; margin-bottom: 3px; color: var(--muted); }
.detail h3 { margin: 24px 0 10px; font-size: 19px; }
.schedule { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--orange); }
.schedule li { position: relative; padding: 8px 10px 8px 17px; }
.schedule li::before { content: ""; position: absolute; width: 7px; height: 7px; top: 15px; left: -5px; border-radius: 50%; background: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; color: white; background: var(--green); text-decoration: none; font-size: 14px; font-weight: 750; }
.action:nth-child(n+2) { color: var(--ink); background: #eee9de; }
.external-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.notes { margin: 0; padding: 13px 15px 13px 31px; border-radius: 14px; color: #60491f; background: #fff3df; }
.gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7px; margin-top: 11px; }
.place-photo { margin: 0; }
.place-photo img { display: block; width: 100%; height: clamp(220px, 45vw, 390px); object-fit: cover; border-radius: 13px; background: #dbe4d8; }
.place-photo figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
.place-photo figcaption a { color: var(--green); }
.gallery img:first-child { height: 317px; grid-row: span 2; }
.status-toast, .update-toast { position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 10px 14px; color: white; background: #222b26; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; }
.update-toast { display: flex; align-items: center; gap: 12px; }
.update-toast[hidden], .status-toast[hidden] { display: none; }
.update-toast button { min-height: 40px; padding: 7px 11px; border: 0; border-radius: 9px; color: var(--green-dark); background: #f6b46f; font-weight: 800; cursor: pointer; }
.noscript { margin: 20px; padding: 15px; background: #fff3df; }
.release-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 16px; font-size: 12px; opacity: .72; }
@media (max-width: 430px) { .app-tools { align-items: stretch; flex-direction: column; } .app-tools button { width: 100%; } }
@media (min-width: 700px) { dialog { margin: auto; border-radius: 25px; height: min(90dvh, 900px); } }
@media (max-width: 520px) {
  .hero { min-height: 370px; padding-bottom: 78px; }
  .facts { grid-template-columns: 1fr; }
  .facts article { min-height: 0; display: grid; grid-template-columns: 74px 1fr; align-items: center; }
  .facts article small { grid-column: 2; }
  .day { grid-template-columns: 56px 1fr 16px; padding: 14px 12px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { height: 190px; grid-column: span 2; grid-row: auto; }
  .gallery img { height: 115px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
