:root {
  --bg: #fff8e5;
  --ink: #271817;
  --muted: #756460;
  --line: #ead9bc;
  --red: #f20f0f;
  --red-dark: #c70b0b;
  --yellow: #fff200;
  --green: #2f7d62;
  --blue: #315f8c;
  --paper: #fffdf3;
  --shadow: 0 18px 44px rgba(91, 35, 18, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255, 253, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; color: #2b1715; }
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(242, 15, 15, 0.22));
}
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { text-decoration: none; color: #4d2a24; font-weight: 750; }

.hero {
  min-height: 38vh;
  display: flex;
  align-items: end;
  padding: clamp(54px, 10vw, 120px) clamp(16px, 5vw, 72px) 44px;
  background:
    linear-gradient(rgba(54, 19, 14, 0.24), rgba(54, 19, 14, 0.66)),
    url("/public/assets/sobotiste-kastiel.jpg") center 42%/cover;
  color: white;
}
.hero-content { max-width: 760px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0; font-weight: 800; font-size: 13px; color: currentColor; opacity: 0.78; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); max-width: 760px; }
.hero p:not(.eyebrow) { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; max-width: 700px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--red); border-color: var(--red); color: white; box-shadow: 0 10px 22px rgba(242, 15, 15, 0.22); }
.button.primary:hover { background: var(--red-dark); }
.button.compact { padding: 9px 12px; font-size: 14px; }

.map-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  min-height: 86vh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.map-panel {
  padding: 20px;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 26px; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  font-size: 22px;
  cursor: pointer;
}
.search-label { display: grid; gap: 7px; margin: 18px 0; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: white;
}
.filters { display: grid; gap: 9px; }
.filters label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.filters label::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cat);
}
.filters input { width: auto; }
.layer-switch { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg { border: 0; padding: 10px 8px; background: #fff0c2; cursor: pointer; font-weight: 800; color: #4d2a24; }
.seg.active { background: var(--red); color: white; }
.share-view { margin-top: 16px; }
.map-canvas { min-height: 86vh; }
.poi-marker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  border: 3px solid white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  color: white;
}
.poi-marker i {
  transform: rotate(45deg);
  font-size: 14px;
}

.content-grid, .route-band, .detail, .empty-state {
  padding: 58px clamp(16px, 5vw, 72px);
}
.section-title { max-width: 760px; margin-bottom: 24px; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.poi-card, .route-list article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(43,38,28,0.05);
}
.poi-card h3, .route-list h3 { font-size: 20px; margin-top: 12px; }
.poi-card p, .route-list p { color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat, var(--green)) 16%, white);
  color: var(--cat, var(--green));
  font-size: 13px;
  font-weight: 800;
}
.text-link { font-weight: 800; color: var(--red-dark); }
.route-band { background: #fff0b8; }
.route-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.detail { max-width: 1180px; margin: 0 auto; }
.breadcrumbs { margin-bottom: 20px; color: var(--muted); }
.detail header { margin-bottom: 24px; }
.detail h1 { margin-top: 12px; font-size: clamp(36px, 6vw, 64px); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: 30px; align-items: start; }
.rich-text { font-size: 18px; line-height: 1.65; }
.detail-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 22px; }
.small-map { height: 520px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); position: sticky; top: 86px; }
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(560px, 100vw);
  height: 100vh;
  overflow: auto;
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(0,0,0,0.22);
  padding: 28px;
}
.drawer-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--red);
  font-size: 28px;
  cursor: pointer;
}
.drawer-detail h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 14px; }
.front-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 22px; }
.front-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.opening-list { display: grid; gap: 7px; }
.opening-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.opening-list dt { font-weight: 800; }
.opening-list dd { margin: 0; color: var(--muted); }
.empty-state { min-height: 58vh; display: grid; place-content: center; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 26px clamp(16px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); background: #fff3c7; }
.site-footer a { color: var(--red-dark); font-weight: 800; }

@media (max-width: 880px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { flex-wrap: wrap; }
  .map-shell { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-canvas { min-height: 62vh; }
  .detail-grid { grid-template-columns: 1fr; }
  .small-map { position: static; height: 380px; }
}

@media (max-width: 560px) {
  .hero { min-height: 46vh; }
  .layer-switch { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
