/* ============================================================
   SardiniaGem — version 2026a guide pages (Relax/Eat/Explore/Buy)
   Airbnb-inspired: white canvas, #222/#717171 text, rounded-xl
   imagery, pill chips, card links. Reuses the class vocabulary
   of the 2025 guides so content markup stays untouched.
   ============================================================ */

:root {
  --text: #222222;
  --gray: #717171;
  --border: #dddddd;
  --border-light: #ebebeb;
  --bg-gray: #f7f7f7;
  --rausch: #ff385c;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.12);
  --font: 'Figtree', -apple-system, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.guide-body {
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* top bar */
.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.guide-topbar > div {
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px 24px;
}

.guide-back-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: -8px -14px;
  border-radius: 22px;
  transition: background 0.15s ease;
}

.guide-back-link:hover { background: var(--bg-gray); }

/* cover */
.guide-cover {
  width: min(1120px, calc(100% - 48px));
  margin: 24px auto 0;
  height: clamp(240px, 40vh, 400px);
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.guide-icon {
  font-size: 48px;
  line-height: 1;
  margin: -24px auto 16px;
  display: block;
  width: fit-content;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

/* content column */
.guide-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.guide-content h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 24px;
}

.guide-content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.guide-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

/* table of contents → pill chips */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.guide-toc a {
  display: inline-block;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.guide-toc a:hover { border-color: var(--text); background: var(--bg-gray); }

/* resource / link cards */
.resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.resource-card:hover { border-color: var(--text); box-shadow: var(--shadow-card); }

.resource-card .resource-emoji { font-size: 20px; flex-shrink: 0; }

.resource-card .resource-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.resource-card .resource-url { font-size: 13px; color: var(--gray); }

/* place cards (eat/explore/buy) */
.place-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 16px 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.place-card:hover { border-color: var(--text); box-shadow: var(--shadow-card); }

.place-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.place-card .place-field {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 4px;
}

.place-card .place-field a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.place-card .place-tip {
  font-size: 14px;
  color: var(--gray);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .guide-cover { width: 100%; margin-top: 0; border-radius: 0; }
}
