/* Római Vakáció – mobilra tervezett stíluslap */

:root {
  --bg: #f6efe4;
  --paper: #fffaf2;
  --ink: #2b2118;
  --muted: #74675a;
  --line: #e6d9c5;
  --terra: #8a3b2f;
  --terra-soft: #f1ddd3;
  --gold: #b88a3e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 18px rgba(60, 40, 20, .08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Felső sáv ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  height: calc(var(--top) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 6px 0;
  display: flex; align-items: center; gap: 4px;
  background: var(--terra); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.topbar a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; text-decoration: none; color: #fff;
}
.topbar a:active { background: rgba(255,255,255,.18); }
.topbar__title {
  flex: 1; min-width: 0; text-align: center;
  font: 600 18px/1.2 var(--sans); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.is-home .topbar__back { visibility: hidden; }

.app {
  max-width: 560px; margin: 0 auto;
  padding: 0 0 calc(40px + env(safe-area-inset-bottom));
  outline: none;
}

/* ---------- Kezdőlap ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 34px 22px 26px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(184,138,62,.35), transparent 60%),
    linear-gradient(160deg, #8a3b2f, #5e2a22);
  color: #fff;
}
.hero h1 {
  margin: 0; font: 700 42px/1.02 var(--serif); letter-spacing: .01em;
}
.hero p { margin: 8px 0 0; opacity: .9; font-size: 16px; }

.section { padding: 0 16px; }
.lead { padding: 18px 20px 4px; color: var(--ink); }
.lead p { margin: 0 0 12px; }

.h2 {
  margin: 26px 20px 10px;
  font: 700 26px/1.15 var(--serif); color: var(--terra);
}

.daycard {
  display: flex; align-items: stretch; gap: 0;
  margin: 0 16px 12px; text-decoration: none;
  background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.daycard__num {
  width: 70px; flex: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
  font: 700 13px/1.1 var(--sans); text-transform: uppercase; letter-spacing: .06em;
}
.daycard__num b { font: 700 34px/1 var(--serif); letter-spacing: 0; margin-top: 2px; }
.daycard__body { padding: 12px 14px; min-width: 0; flex: 1; }
.daycard__date { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.daycard__title { font: 700 21px/1.15 var(--serif); margin: 2px 0 6px; }
.daycard__sights { font-size: 14px; color: var(--muted); line-height: 1.4; }
.daycard__chev { align-self: center; padding-right: 12px; color: var(--muted); }

.badge-today {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 11px; vertical-align: 2px;
}

.linkrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 16px 0; }
.linkbox {
  display: block; padding: 16px; text-decoration: none;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.linkbox b { display: block; font: 700 20px/1.15 var(--serif); color: var(--terra); }
.linkbox span { font-size: 14px; color: var(--muted); }

/* ---------- Napoldal ---------- */
.dayhead { padding: 22px 20px 18px; color: #fff; }
.dayhead__date { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.dayhead h1 { margin: 4px 0 6px; font: 700 32px/1.08 var(--serif); }
.dayhead__walk { font-size: 14px; opacity: .9; }

.timeline { list-style: none; margin: 0 16px; padding: 0; }
.timeline li {
  position: relative; padding: 0 0 14px 70px; min-height: 40px;
}
.timeline li::before {
  content: ""; position: absolute; left: 58px; top: 8px; bottom: -2px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 53px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot, var(--terra)); box-shadow: 0 0 0 3px var(--bg);
}
.timeline__time {
  position: absolute; left: 0; top: 0; width: 46px; text-align: right;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.timeline__what { font-weight: 600; line-height: 1.3; }
.timeline__note { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.note {
  margin: 4px 16px 0; padding: 12px 14px;
  background: var(--terra-soft); border-radius: 12px; font-size: 15px;
}

/* ---------- Látnivaló-kártyák ---------- */
.cards { display: grid; gap: 12px; margin: 0 16px; }
.card {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; text-decoration: none;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card:active { transform: scale(.99); }
.card__img {
  width: 92px; height: 92px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #eadbc4, #d9c3a3);
}
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { min-width: 0; flex: 1; }
.card__num { font-size: 12px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .06em; }
.card__name { font: 700 20px/1.12 var(--serif); margin: 1px 0 3px; }
.card__lead {
  font-size: 14px; color: var(--muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__chev { color: var(--muted); flex: none; }

.card--feature { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.card--feature .card__img { width: 100%; height: 180px; border-radius: 0; }
.card--feature .card__body { padding: 12px 14px 14px; }
.card--feature .card__lead { -webkit-line-clamp: 3; }
.card--feature .cta { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--terra); font-size: 15px; }

/* ---------- Egy látnivaló oldala ---------- */
.place__img {
  position: relative; height: 62vw; max-height: 340px; min-height: 220px;
  background: linear-gradient(135deg, #eadbc4, #d9c3a3); overflow: hidden;
}
.place__img img { width: 100%; height: 100%; object-fit: cover; }
.place__credit {
  position: absolute; right: 8px; bottom: 8px;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff; text-decoration: none;
}
.place__head { padding: 16px 20px 4px; }
.place__kicker { font-size: 13px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .06em; }
.place__head h1 { margin: 4px 0 0; font: 700 32px/1.08 var(--serif); }
.place__lead { padding: 10px 20px 0; font-size: 18px; }
.place__lead p { margin: 0; }

.facts { list-style: none; margin: 16px 16px 0; padding: 0; display: grid; gap: 10px; }
.facts li {
  position: relative; padding: 12px 14px 12px 44px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow);
  line-height: 1.45;
}
.facts li::before {
  content: "★"; position: absolute; left: 14px; top: 11px;
  color: var(--gold); font-size: 18px;
}
.facts__title { margin: 22px 20px 0; font: 700 22px/1.2 var(--serif); color: var(--terra); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 16px 0; }
.pager a {
  display: block; padding: 12px 14px; text-decoration: none; min-height: 64px;
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow);
}
.pager a small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pager a span { font-weight: 600; line-height: 1.25; display: block; margin-top: 2px; }
.pager .next { text-align: right; grid-column: 2; }
.pager .empty { visibility: hidden; }

.backlink {
  display: block; margin: 14px 16px 0; padding: 14px; text-align: center;
  border: 2px solid var(--terra); border-radius: 12px;
  color: var(--terra); font-weight: 700; text-decoration: none;
}

/* ---------- Múzeum ---------- */
.route { margin: 0 16px; padding: 14px 16px 14px 36px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.route li { margin: 4px 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 6px; margin: 14px 0 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 7px 13px; border-radius: 999px; text-decoration: none;
  background: var(--paper); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--terra);
}

/* ---------- Tippek, kvíz ---------- */
.tips { display: grid; gap: 10px; margin: 0 16px; }
.tip { padding: 14px 16px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); }
.tip b { display: block; color: var(--terra); font: 700 19px/1.2 var(--serif); margin-bottom: 2px; }

.quiz { display: grid; gap: 10px; margin: 0 16px; }
.quiz details {
  background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.quiz summary {
  list-style: none; cursor: pointer; padding: 14px 16px 14px 50px; position: relative;
  font-weight: 600; line-height: 1.35;
}
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary span {
  position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--terra); color: #fff; font-size: 14px; display: grid; place-items: center;
}
.quiz .answer { padding: 0 16px 14px 50px; color: var(--terra); font-weight: 700; }
.quiz .hint { margin: 0 20px 10px; font-size: 14px; color: var(--muted); }

.footer { margin: 34px 20px 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }
.noscript { padding: 20px; }

.card__img--none, .place__noimg { display: grid; place-items: center; }
.card__img--none span { font: 700 40px/1 var(--serif); color: rgba(138,59,47,.45); }
.place__noimg { height: 120px; color: #fff; opacity: .92; }
.place__noimg span { font: 700 64px/1 var(--serif); opacity: .5; }
