/* CityStayGuide: shared styles for the homepage and city pages */

:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-soft: #eaeef7;
  --ink: #111524;
  --ink-soft: #565c70;
  --line: #dde1ec;
  --accent: #ee2225;
  --accent-strong: #a7181a;
  --accent-soft: #fde9e9;
  --on-accent: #ffffff;
  --shadow: 0 10px 30px rgba(17, 21, 36, 0.08);
  --r-box: 16px;
  --r-ui: 12px;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-ui) 0;
  font-size: 14px;
  font-weight: 650;
}
.skip-link:focus { left: 0; }

html { scroll-behavior: smooth; color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.site-nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

.header-cta { margin-left: 8px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--r-ui);
  padding: 13px 22px;
  font-size: 15.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 64px; text-align: center; }

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 16px;
  max-width: 18ch;
  font-weight: 800;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 auto 30px;
  max-width: 52ch;
}

.search-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.search-card select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-ui);
  background: var(--surface);
  color: var(--ink);
  font-size: 15.5px;
  padding: 12px 14px;
}
.search-card select:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-note {
  margin: 14px 2px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Row of 3 short benefits under the search form */
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  text-align: center;
}

.hero-stat .ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}
.hero-stat .ico svg { width: 22px; height: 22px; }

.hero-stat strong { font-size: 15.5px; }
.hero-stat span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }
.section-tint { background: var(--surface-soft); }

.section-head { max-width: 62ch; margin-bottom: 32px; }

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 750;
}

.section-head p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- Cities ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.city-card,
.type-tile {
  position: relative;
  border-radius: var(--r-box);
  overflow: hidden;
  color: #fff;
  background: var(--surface-soft);
  transition: transform 0.2s ease;
}
.city-card:hover,
.type-tile:hover { transform: translateY(-3px); color: #fff; }

.city-card { aspect-ratio: 4 / 3; }
.type-tile { aspect-ratio: auto; }

.city-card.featured { grid-column: span 2; aspect-ratio: auto; min-height: 260px; }

.city-card img,
.type-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-card .veil,
.type-tile .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 13, 0) 40%, rgba(10, 16, 13, 0.72) 100%);
}

.city-card .meta,
.type-tile .meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
}

.city-card .meta strong,
.type-tile .meta strong { display: block; font-size: 19px; letter-spacing: -0.01em; }
.city-card .meta span,
.type-tile .meta span { font-size: 13.5px; opacity: 0.85; }

/* ---------- Stay types ---------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-bottom: 22px;
}

.type-tile.featured { grid-row: span 2; }

.type-tile .meta span { display: block; max-width: 32ch; }

.type-cta { display: inline-block; }

/* ---------- How it works ---------- */

.steps .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.step-list { display: flex; flex-direction: column; gap: 4px; counter-reset: step; }

.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }

.step .num {
  counter-increment: step;
  flex: 0 0 44px;
  height: 44px;
  border-radius: var(--r-ui);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.step .num::before { content: counter(step); }

.step h3 { margin: 2px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.steps-photo {
  border-radius: var(--r-box);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Perks ---------- */

.perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}

.perk { padding: 20px 0; border-top: 1px solid var(--line); }
.perk h3 { margin: 0 0 6px; font-size: 17px; }
.perk p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 16.5px;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--ink-soft); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }

.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; max-width: 65ch; }

/* ---------- City page ---------- */

.city-hero { position: relative; color: #fff; }

.city-hero .photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.city-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.city-hero .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 13, 0.35), rgba(10, 16, 13, 0.72));
}

.city-hero .container {
  position: relative;
  padding-top: 76px;
  padding-bottom: 76px;
}

.breadcrumbs { font-size: 13.5px; margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { color: rgba(255, 255, 255, 0.65); }

.city-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 22ch;
  font-weight: 800;
}

.city-hero .lead {
  font-size: 16.5px;
  max-width: 56ch;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-link {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-link:hover { color: #fff; opacity: 0.85; }

.city-hero .hero-stats { justify-content: flex-start; margin-top: 36px; }
.city-hero .hero-stat { align-items: flex-start; text-align: left; }
.city-hero .hero-stat .ico { background: rgba(255, 255, 255, 0.14); color: #fff; }
.city-hero .hero-stat strong { color: #fff; }
.city-hero .hero-stat span { color: rgba(255, 255, 255, 0.75); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.about-city p { color: var(--ink-soft); font-size: 16px; margin: 0 0 16px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-ui);
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 550;
  transition: border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Blog ---------- */

.breadcrumbs-dark { margin-bottom: 18px; }
.breadcrumbs-dark a { color: var(--ink-soft); }
.breadcrumbs-dark a:hover { color: var(--ink); }
.breadcrumbs-dark span { color: var(--ink-soft); }

.blog-title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 0 0 10px; }

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 22px 20px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.post-card time { font-size: 13px; color: var(--ink-soft); }
.post-card strong { font-size: 17.5px; line-height: 1.3; letter-spacing: -0.01em; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.post-card .go { color: var(--accent); font-weight: 650; font-size: 14.5px; }

.article .container { max-width: 800px; }
.article h1 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.article-meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.article-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 8px; }
.article h2 { font-size: 22px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.article p { font-size: 16px; color: var(--ink); max-width: 70ch; }
.article ul { padding-left: 22px; }
.article li { margin: 8px 0; font-size: 16px; }

.answer-box {
  margin: 18px 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-ui);
  padding: 16px 20px;
}
.answer-box strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
.answer-box p { margin: 0; font-size: 15.5px; }

.cta-box {
  margin-top: 36px;
  background: var(--accent-soft);
  border-radius: var(--r-box);
  padding: 26px;
}
.cta-box strong { display: block; font-size: 19px; margin-bottom: 6px; }
.cta-box p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  margin-top: 24px;
}

.site-footer .cols {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 62ch;
}

.site-footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .steps .container { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .type-tile.featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero { padding: 28px 0 44px; }
  .section { padding: 40px 0; }
  .city-grid { grid-template-columns: 1fr; gap: 14px; }
  .city-card.featured { grid-column: auto; }
  .city-card { aspect-ratio: 16 / 10; }
  .perks { grid-template-columns: 1fr; }
  .search-card { flex-direction: column; }
  .search-card .btn { width: 100%; }
  .hero-stats { gap: 18px 28px; }
  .city-hero .hero-stats { justify-content: space-between; }
  .type-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .type-tile { aspect-ratio: 4 / 3; }
  .type-tile.featured { grid-row: auto; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .city-card, .type-tile, .chip { transition: none; }
}
