/* Pereiaslav Guide website — same palette and type as the app. Dark by default. */
:root,
[data-theme="dark"] {
  --background: 225 20% 12%;
  --foreground: 0 0% 100%;
  --card: 225 18% 15%;
  --secondary: 225 15% 18%;
  --muted: 225 15% 20%;
  --muted-foreground: 0 0% 80%;
  --primary: 47 94% 63%;
  --primary-foreground: 225 20% 12%;
  --destructive: 3 60% 53%;
  --border: 225 15% 22%;
  --header: 240 28% 14%;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --radius: 12px;
  color-scheme: dark;
}
[data-theme="light"] {
  --background: 40 30% 96%;
  --foreground: 225 20% 15%;
  --card: 40 25% 93%;
  --secondary: 40 20% 88%;
  --muted: 40 15% 85%;
  --muted-foreground: 225 10% 40%;
  --primary: 47 94% 63%;
  --primary-foreground: 0 0% 0%;
  --border: 40 15% 82%;
  --header: 40 25% 93%;
  --shadow: 0 10px 30px -14px rgba(30, 30, 50, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll, body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
a:hover { color: hsl(var(--primary)); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 14px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: 8px; }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
.site-main { min-height: 60vh; padding-bottom: 48px; }
.muted { color: hsl(var(--muted-foreground)); }
.gold { color: hsl(var(--primary)); }
.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--header) / .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
  padding-top: env(safe-area-inset-top);
}
.header-inner { max-width: 1400px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; font-size: 1.25rem; line-height: 1; }
.brand-sub { font-size: .8rem; font-weight: 500; color: hsl(var(--muted-foreground)); margin-top: 3px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav .menu a { display: block; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 1.05rem; }
.site-nav .menu a:hover { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.site-nav .current-menu-item > a { color: hsl(var(--primary)); }
.nav-download { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 8px 14px; border-radius: 10px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; }
.nav-download:hover { color: hsl(var(--primary-foreground)); filter: brightness(1.05); }
.header-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: hsl(var(--secondary)); }
.when-light { display: none; }
[data-theme="light"] .when-light { display: inline-flex; }
[data-theme="light"] .when-dark { display: none; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .site-nav {
    position: fixed; inset: calc(60px + env(safe-area-inset-top)) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 16px;
    background: hsl(var(--background)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .menu-open .site-nav { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .menu a { padding: 14px 12px; font-size: 1.3rem; border-bottom: 1px solid hsl(var(--border)); border-radius: 0; }
  .nav-download { margin: 12px 0 0; justify-content: center; padding: 14px; }
}

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); border: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.2; transition: filter .15s, background .15s; }
.btn.sm { padding: 8px 12px; font-size: .95rem; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: 0 8px 20px -10px hsl(var(--primary) / .6); }
.btn-primary:hover { color: hsl(var(--primary-foreground)); filter: brightness(1.06); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.btn-secondary:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-link { background: none; border: 0; color: hsl(var(--muted-foreground)); padding: 10px; text-decoration: underline; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px;
  border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow);
}
.filter-row .chip { padding: 0 14px; box-shadow: none; }
.chip.is-active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.chip-icon { padding: 0 11px; }
.chip-dot, .type-dot { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.chip-dot { width: 28px; height: 28px; }
.type-dot { width: 20px; height: 20px; }

.round-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: hsl(var(--background) / .85); backdrop-filter: blur(6px); color: hsl(var(--foreground));
  transition: transform .12s, background .15s, color .15s;
}
.round-btn.sm { width: 32px; height: 32px; background: hsl(var(--secondary)); }
.round-btn:active { transform: scale(.9); }
.round-btn[data-favorite].is-active { color: #D0483F; background: rgba(208, 72, 63, .16); }
.round-btn[data-favorite].is-active svg { fill: currentColor; }
.round-btn[data-visited].is-active { color: #E8C547; background: #1A1A2E; }

/* ---------- map page ---------- */
.map-page { padding-bottom: 0; }
.map-shell { position: relative; height: calc(100vh - 60px); height: calc(100dvh - 60px - env(safe-area-inset-top)); min-height: 420px; }
.map-canvas { position: absolute; inset: 0; background: hsl(var(--secondary)); }
.map-toolbar { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.map-search { position: relative; max-width: 420px; }
.map-search .search-ico { position: absolute; left: 12px; top: 12px; color: hsl(var(--muted-foreground)); }
.map-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); font: inherit; box-shadow: var(--shadow); }
.search-results { list-style: none; margin: 6px 0 0; padding: 0; background: hsl(var(--card)); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.search-results:empty { display: none; }
.search-results li.muted { padding: 10px 14px; }
.search-results button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: none; text-align: left; font-size: 1.05rem; }
.search-results button:hover { background: hsl(var(--secondary)); }
.map-notice { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 18px; border-radius: 12px; background: hsl(var(--card)); }
@media (max-width: 600px) { .chip-label { display: none; } .chip { padding: 0 6px; } }

.pg-marker { width: 34px; height: 34px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(0, 0, 0, .38); display: flex; align-items: center; justify-content: center; padding: 0; }
.pg-marker.is-numbered { font-weight: 700; font-family: system-ui, sans-serif; font-size: 15px; }
.mapboxgl-popup-content { padding: 0 !important; border-radius: 14px !important; overflow: hidden; background: hsl(var(--card)) !important; color: hsl(var(--foreground)); box-shadow: var(--shadow) !important; font-family: 'Cormorant Garamond', serif; }
.mapboxgl-popup-tip { border-top-color: hsl(var(--card)) !important; border-bottom-color: hsl(var(--card)) !important; }
.mapboxgl-popup-close-button { z-index: 2; width: 28px; height: 28px; margin: 6px; border-radius: 999px; background: hsl(var(--background) / .8) !important; color: hsl(var(--foreground)); font-size: 18px; }
.pg-popup { width: 280px; max-width: 100%; }
.pg-popup-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pg-popup-body { padding: 12px 14px 14px; }
.pg-popup-title { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-weight: 700; font-size: 1.2rem; line-height: 1.15; margin-bottom: 4px; }
.pg-popup-actions { display: flex; gap: 6px; }
.pg-popup-row { display: flex; gap: 8px; margin: 6px 0 0; font-size: .95rem; color: hsl(var(--muted-foreground)); white-space: pre-line; }
.pg-popup-row .icon { color: hsl(var(--primary)); margin-top: 3px; }
.pg-popup .btn { margin-top: 10px; }

.place-index { padding-top: 40px; }
.place-index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.place-index-list a { display: flex; gap: 10px; align-items: center; padding: 6px 0; }

/* ---------- page basics ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 8px; font-size: .95rem; color: hsl(var(--muted-foreground)); }
.breadcrumbs a:hover { color: hsl(var(--primary)); }
.page-head { margin: 8px 0 24px; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
.display-title { font-size: clamp(3rem, 10vw, 5rem); font-weight: 800; line-height: 1; margin: 0 0 12px; }
.section-title { font-size: 1.6rem; margin: 32px 0 14px; }
.lead { font-size: 1.3rem; color: hsl(var(--muted-foreground)); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 600; color: hsl(var(--primary)); margin-bottom: 6px; }
.pill { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; font-size: .85rem; }
.prose { font-size: 1.2rem; }
.prose h2 { font-size: 1.6rem; margin-top: 8px; }
.prose a { color: hsl(var(--primary)); text-decoration: underline; }
.prose img { border-radius: var(--radius); }
.cover-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: 8px 0 20px; }
.entry-title { font-size: clamp(2rem, 5vw, 3rem); margin: 24px 0 16px; }
.page-section .entry-content { font-size: 1.2rem; }

/* ---------- card grid ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card, .route-card, .person-card, .place-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, border-color .15s; }
.event-card:hover, .route-card:hover, .person-card:hover, .place-card:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / .5); color: inherit; }
.event-card.is-featured { border-color: hsl(var(--primary) / .6); }
.event-photo, .person-photo { position: relative; aspect-ratio: 16 / 10; background: hsl(var(--secondary)); }
.person-photo { aspect-ratio: 4 / 3; }
.event-photo img, .person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo img { object-position: top; }
.card-body { padding: 14px 16px 18px; }
.card-body p { margin: 6px 0 0; color: hsl(var(--muted-foreground)); font-size: 1.05rem; }
.card-title { font-size: 1.4rem; margin: 0 0 4px; }
.card-fav { position: absolute; top: 10px; right: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: hsl(var(--muted-foreground)); font-size: 1rem; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { color: hsl(var(--primary)); }

/* ---------- place page ---------- */
.place-hero { position: relative; height: clamp(260px, 45vw, 480px); background: hsl(var(--secondary)); overflow: hidden; }
.place-hero img { width: 100%; height: 100%; object-fit: cover; }
.place-hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(to top, hsl(var(--background)), transparent); }
.hero-actions { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 10px; }
.type-badge { position: absolute; z-index: 2; right: 14px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: hsl(var(--background) / .9); font-weight: 600; }
.place-body .page-title { margin-bottom: 6px; }
.place-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.place-aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .place-grid { grid-template-columns: 1fr; } .place-aside { position: static; order: -1; } }
.rating-line { display: inline-flex; align-items: center; gap: 8px; color: hsl(var(--primary)); font-size: 1.05rem; }
.rating-line span { color: hsl(var(--muted-foreground)); }
.stars { display: inline-flex; gap: 1px; }
.star { color: hsl(var(--muted-foreground) / .5); display: inline-flex; }
.star.is-on { color: #E8C547; }
.star.is-on svg { fill: currentColor; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.action-row .btn { flex: 1 1 140px; }
.audio-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius); background: hsl(var(--secondary)); }
.audio-label { font-weight: 700; color: hsl(var(--primary)); }
.audio-card audio { width: 100%; }
.info-card { padding: 6px 16px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 1.05rem; }
.info-row:last-child { border-bottom: 0; }
.info-row .icon { color: hsl(var(--primary)); margin-top: 4px; }
.info-label { display: block; font-weight: 700; }
.pre { white-space: pre-line; color: hsl(var(--muted-foreground)); }
.mini-map { height: 220px; border-radius: var(--radius); overflow: hidden; }
.app-card { padding: 16px; }
.app-card p { margin-bottom: 12px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery-item { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 14px; }
.lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 999px; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.lb-close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 12px; top: 50%; } .lb-next { right: 12px; top: 50%; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(255, 255, 255, .12); padding: 4px 14px; border-radius: 999px; font-size: 1rem; }

/* reviews */
.review-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review { padding: 14px 16px; border-radius: var(--radius); background: hsl(var(--secondary)); }
.review.is-new { outline: 1px solid hsl(var(--primary) / .5); }
.review p { margin: 8px 0 0; font-size: 1.1rem; }
.review-head { display: flex; gap: 10px; align-items: center; }
.review-meta { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: hsl(var(--muted-foreground)); }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.review-form { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.review-form h3 { margin: 0; font-size: 1.4rem; }
.star-input { display: flex; gap: 4px; }
.star-input .star { background: none; border: 0; padding: 2px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.field input, .field textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid hsl(var(--border));
  background: hsl(var(--background)); color: hsl(var(--foreground)); font: inherit; font-weight: 400;
}
.field input:focus, .field textarea:focus, .wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: hsl(var(--primary)); }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.2em; }
.form-msg.is-error { color: #e2665d; }
.form-msg.is-ok { color: hsl(var(--primary)); }

/* ---------- history ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid hsl(var(--primary) / .5); display: flex; flex-direction: column; gap: 18px; }
.timeline-item { position: relative; padding: 18px 20px; }
.timeline-item::before { content: ''; position: absolute; left: -31px; top: 24px; width: 14px; height: 14px; border-radius: 999px; background: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--background)); }
.timeline-item h2 { font-size: 1.7rem; }
.timeline-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.more summary { cursor: pointer; color: hsl(var(--primary)); font-weight: 700; padding: 6px 0; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 8px; }

/* ---------- people ---------- */
.filter-row { margin-bottom: 18px; }
.person-head { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; margin: 8px 0 24px; }
.person-portrait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius); }
@media (max-width: 640px) { .person-head { grid-template-columns: 1fr; } .person-portrait { max-width: 260px; } }
.section-card { padding: 18px 20px; margin-bottom: 14px; }

/* ---------- routes ---------- */
.progress-card { padding: 14px 16px; margin-bottom: 18px; }
.progress-text { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.progress-text .icon { color: hsl(var(--primary)); }
.progress-bar { height: 8px; border-radius: 999px; background: hsl(var(--secondary)); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: hsl(var(--primary)); transition: width .3s; }
.route-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .route-grid { grid-template-columns: 1fr; } }
.route-map { height: clamp(320px, 55vh, 560px); border-radius: var(--radius); overflow: hidden; background: hsl(var(--secondary)); }
.route-desc { margin-top: 18px; }
.stop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stop { display: flex; gap: 12px; align-items: center; padding: 10px; position: relative; }
.stop img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.stop p { margin: 2px 0 0; font-size: .95rem; }
.stop-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: system-ui, sans-serif; font-size: 14px; }
.stop-title { font-weight: 700; font-size: 1.2rem; }
.stop-visited { margin-left: auto; width: 28px; height: 28px; border-radius: 999px; background: #1A1A2E; color: #E8C547; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-state > .icon { opacity: .4; margin-bottom: 10px; }
.empty-title { font-weight: 700; font-size: 1.3rem; margin: 0; }
.empty-state .btn { margin-top: 14px; }

/* ---------- contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: start; margin-bottom: 24px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { padding: 6px 16px; }
.contact-form { padding: 18px; }
.wpcf7 p { margin: 0 0 12px; }
.wpcf7 label { display: block; font-weight: 600; }
.wpcf7 input[type="submit"] { padding: 10px 22px; border-radius: var(--radius); border: 0; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font: inherit; font-weight: 700; cursor: pointer; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; border-radius: 10px; padding: 10px 12px; }

/* ---------- downloads ---------- */
.downloads-hero { text-align: center; padding: 48px 16px 24px; display: flex; flex-direction: column; align-items: center; }
.downloads-icon { border-radius: 32px; box-shadow: var(--shadow); margin-bottom: 20px; }
.downloads-alert { font-size: 1.25rem; margin: 8px 0 18px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; text-align: left; }
.feature-list li { display: flex; gap: 10px; align-items: center; font-size: 1.15rem; }
.feature-list .icon { color: hsl(var(--primary)); }

/* ---------- store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.store-buttons.is-large { justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); min-width: 160px; }
.store-btn:hover { color: #fff; border-color: hsl(var(--primary)); }
.store-btn img { width: 24px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.05; font-family: system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 1.05rem; }
.store-btn small { font-size: .7rem; font-weight: 400; opacity: .85; }
.store-buttons.is-large .store-btn { padding: 12px 22px; }

/* ---------- footer ---------- */
.site-footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); padding: 40px 0 calc(16px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-lead { color: hsl(var(--muted-foreground)); margin: 14px 0; }
.footer-title { font-size: 1.2rem; color: hsl(var(--primary)); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .95rem; }
.footer-bottom .link { color: hsl(var(--primary)); }
.map-page + .site-footer, .home .site-footer { margin-top: 0; }

/* ---------- app popup ---------- */
.app-popup { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; animation: pg-fade .2s ease; }
.app-popup-card { position: relative; width: 100%; max-width: 420px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 20px; padding: 24px 20px calc(16px + env(safe-area-inset-bottom)); text-align: center; box-shadow: var(--shadow); animation: pg-up .25s ease; }
.app-popup-card img { border-radius: 16px; margin-bottom: 12px; }
.app-popup-card h2 { font-size: 1.5rem; }
.app-popup-card p { color: hsl(var(--muted-foreground)); }
.app-popup-close { position: absolute; top: 8px; right: 8px; }
@keyframes pg-fade { from { opacity: 0; } }
@keyframes pg-up { from { transform: translateY(30px); opacity: 0; } }

/* WordPress basics */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text { font-size: .9rem; color: hsl(var(--muted-foreground)); }
