/*
  Layout for the guide pages (summer, bars, restaurants, Sofia transfers,
  Borovets or Bansko). Tokens and shared components come from site.css; the
  pages themselves are written by tools/build-guides.py. See DESIGN.md.
*/

.guide-hero {
  background: linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 60%, var(--pine-3) 100%);
  color: var(--snow);
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(32px, 5vw, 56px);
}

.guide-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.guide-hero .eyebrow {
  color: var(--glacial);
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  margin: 0 0 20px;
  max-width: 18ch;
}

.guide-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 0 28px;
}

.guide-body {
  padding: clamp(32px, 5vw, 64px) var(--gutter);
}

.guide-body .guide-inner > * {
  max-width: 72ch;
}

.guide-body .guide-inner > .guide-wide {
  max-width: none;
}

.guide-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1;
  margin: 56px 0 16px;
}

.guide-body h2:first-child {
  margin-top: 0;
}

.guide-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.guide-body p,
.guide-body li {
  font-size: 1.08rem;
  line-height: 1.65;
}

.guide-body p {
  margin: 0 0 16px;
}

.guide-body ul,
.guide-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.guide-body li {
  margin: 0 0 8px;
}

.guide-body a {
  color: var(--glacial-ink);
  text-underline-offset: 3px;
}

.guide-body a:hover {
  color: var(--glacial-deep);
}

.guide-checked {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--granite);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 40px;
}

/* Venue lists: a name, then what we know about it, one per line. */
.guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.guide-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 4px 20px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.guide-list .name {
  font-weight: 700;
}

.guide-list .detail {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--granite);
  line-height: 1.5;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
}

.guide-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  background: var(--white);
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  vertical-align: top;
}

.guide-table thead th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--granite);
}

.guide-table tbody th {
  font-weight: inherit;
}

.guide-table td.num {
  font-family: var(--font-mono);
}

/* A map of the places a guide names. guide-map.js draws it with Leaflet; the
   caption carries the same places as text and links. */
.guide-map-wrap {
  margin: 0 0 24px;
}

.guide-map {
  height: clamp(320px, 52vw, 460px);
  background: var(--snow-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.guide-map-wrap figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--granite);
  margin-top: 12px;
}

/* A square pin with its name beside it. Shops are waymark red; anything else
   on the map (a bus station) is a quieter pine pin with a white label. */
.guide-pin {
  box-sizing: border-box;
  background: var(--waymark);
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.guide-pin span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  background: var(--pine);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.guide-pin.is-minor {
  background: var(--pine);
}

.guide-pin.is-minor span {
  background: var(--white);
  color: var(--ink);
}

.guide-camp {
  background: var(--snow-2);
  padding: clamp(32px, 5vw, 56px) var(--gutter);
}

.guide-camp h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1;
  margin: 0 0 12px;
}

.guide-camp p {
  max-width: 62ch;
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.guide-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
}

@media (max-width: 640px) {
  .guide-list li {
    grid-template-columns: 1fr;
  }
}
