/* TimeGo Weekend Escape: premium layer. Load AFTER the page's own <style>. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --serif: "Fraunces", Georgia, serif;
  --forest: #1f5c46;
  --gold: #e9b44c;
  --glass: rgba(255,255,255,.14);
  --ring-shadow: 0 18px 50px rgba(120, 50, 20, .22);
}

/* ---------- Brand ---------- */
.brand-pill { padding: 8px 18px 8px 8px; gap: 10px; letter-spacing: -.01em; }
.brand-pill .tg-mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(201,99,59,.35)); }
.brand-pill .tg-word { font-family: var(--head); font-size: 1.15rem; line-height: 1; }
.brand-pill .tg-word small { display: block; font-size: .56rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }

/* ---------- Hero ---------- */
.hero {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(55% 80% at 12% 0%, rgba(255,236,210,.35), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(70, 28, 10, .45), transparent 65%),
    linear-gradient(135deg, #b9532d 0%, #d9774b 50%, #f2a65a 100%);
  padding-bottom: 150px;
}
.hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; }
.hero-tag { background: rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(80,30,10,.25); }
body.is-results .hero { padding-bottom: 80px; }
body.is-results .tg-stats { display: none; }

.tg-stats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.tg-stat { min-width: 128px; padding: 14px 20px; border-radius: 20px; background: var(--glass); border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(10px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.tg-stat b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.tg-stat span { display: block; margin-top: 6px; font-size: .76rem; font-weight: 700; opacity: .92; }

/* ---------- Form panel ---------- */
.panel { position: relative; border: none; box-shadow: var(--ring-shadow), 0 2px 0 rgba(255,255,255,.7) inset; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--forest), var(--terracotta), var(--gold)); }
.step-title { font-size: 1.08rem; }
.choice { position: relative; }
.choice.is-on::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.chip.is-on { box-shadow: 0 8px 18px rgba(201,99,59,.35); }
.go { position: relative; overflow: hidden; }
.go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; }
.go:hover:not(:disabled)::after { transform: translateX(120%); }

/* ---------- Results ---------- */
.results-top { border: none; border-left: 6px solid var(--terracotta); }
.results-top h2 { font-family: var(--serif); font-size: 1.6rem; }
.toolbar { position: sticky; top: 10px; z-index: 30; padding: 12px 16px; border-radius: 22px; background: rgba(244,239,231,.82); backdrop-filter: blur(14px) saturate(150%); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(28,27,25,.1); }

.pick { box-shadow: 0 30px 70px rgba(201,99,59,.28); }
.pick-body h3, .place-name { font-family: var(--serif); letter-spacing: -.01em; }
.place { border: none; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 16px 36px rgba(28,27,25,.1); }
.place-img::after { background: linear-gradient(to top, rgba(20,10,4,.72), rgba(20,10,4,0) 60%); }

.place-match { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 5px; background: rgba(255,255,255,.96); color: var(--ink); }
.tg-ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.tg-ring circle { fill: none; stroke-width: 4; }
.tg-ring .bg { stroke: #eadfd2; }
.tg-ring .fg { stroke-linecap: round; stroke-dasharray: 56.5; stroke-dashoffset: 56.5; animation: tgfill 1s .15s ease forwards; }
@keyframes tgfill { to { stroke-dashoffset: calc(56.5 - 56.5 * var(--p) / 100); } }

.tg-rank { position: absolute; z-index: 4; top: 56px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #3d2a05; background: linear-gradient(135deg, #f6d57a, var(--gold)); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.tg-rank.r2 { background: linear-gradient(135deg, #f2f2f2, #c3c8cf); color: #2a2d33; }
.tg-rank.r3 { background: linear-gradient(135deg, #f0c9a0, #cd8b55); color: #3a1f0a; }

.next-tile { border: 1px solid var(--line); background: #fff; }
.next-tile i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand); font-size: 1.5rem; }

.btn-soft.tg-pdf { border-color: var(--forest); color: var(--forest); }
.btn-soft.tg-pdf:hover { background: var(--forest); color: #fff; }

/* ---------- Print / Save as PDF ---------- */
@media print {
  .navbar, .brand-pill, .tray, .toast, .toolbar, .results-actions, .hero-route, .fav, .place-actions, .next, .tg-stats, .map-wrap { display: none !important; }
  body { background: #fff; }
  .hero { padding: 24px !important; background: #fff !important; color: var(--ink); }
  .hero h1, .hero p { text-shadow: none; }
  .page { margin: 0; padding: 0; max-width: 100%; }
  .place, .pick { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .result-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tg-stat { min-width: 100px; padding: 12px 14px; }
  .toolbar { position: static; }
}