/* ============================================================
   Peyriac Guide — David & Emelie
   ============================================================ */

:root {
  --green: #2c3e2f;
  --green-dark: #1e2b21;
  --green-light: #3c5240;
  --beige: #f5f1e8;
  --beige-warm: #ebe5d4;
  --bronze: #c89b5a;
  --bronze-dark: #a87f43;
  --ink: #1f2a20;
  --ink-soft: #4a5247;
  --line: rgba(44, 62, 47, 0.18);
  --line-soft: rgba(44, 62, 47, 0.08);
  --white-warm: #fbf9f3;
  --urgent: #b8392e;
  --urgent-dark: #8f2a22;
  --urgent-soft: #fdf3f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Masthead
   ============================================================ */

.masthead {
  background: var(--green);
  color: var(--beige);
  padding: 56px 24px 64px;
  text-align: center;
  border-bottom: 4px solid var(--bronze);
}

.masthead-inner {
  max-width: 780px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--bronze);
  margin: 0 0 8px;
}

.masthead h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: rgba(245, 241, 232, 0.85);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   Sticky nav
   ============================================================ */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
  border-bottom: 1px solid rgba(200, 155, 90, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 14px 16px;
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}

.nav-link-urgent {
  color: #ffb3ad;
  font-weight: 600;
}

.nav-link-urgent:hover,
.nav-link-urgent:focus {
  color: #ffd6d3;
  border-bottom-color: var(--urgent);
}

/* ============================================================
   Search bar
   ============================================================ */

.search-bar {
  background: var(--white-warm);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  position: sticky;
  top: 49px;
  z-index: 49;
}

.search-inner {
  max-width: 780px;
  margin: 0 auto;
}

#searchInput {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

#searchInput::placeholder {
  color: rgba(31, 42, 32, 0.42);
  font-style: italic;
}

#searchInput:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(200, 155, 90, 0.18);
}

/* ============================================================
   Main content
   ============================================================ */

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.section {
  margin-bottom: 56px;
  scroll-margin-top: 130px;
}

.section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--green);
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bronze);
  letter-spacing: -0.005em;
}

.section-intro {
  color: var(--ink-soft);
  font-style: italic;
  margin: 8px 0 24px;
  font-size: 15px;
}

/* ============================================================
   Wine list
   ============================================================ */

.wine-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.wine-item {
  background: var(--white-warm);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--bronze);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.wine-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--green);
}

.wine-type {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  text-transform: lowercase;
}

/* ============================================================
   Card list
   ============================================================ */

.card-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--white-warm);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: space-between;
  transition: border-color 0.18s, transform 0.18s;
}

.card:hover {
  border-color: var(--line);
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--green);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   Map buttons
   ============================================================ */

.map-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--green);
  color: var(--beige);
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--green);
  transition: background 0.18s, color 0.18s, transform 0.1s;
}

.map-btn:hover,
.map-btn:focus {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--white-warm);
}

.map-btn:active {
  transform: scale(0.97);
}

.map-btn-sm {
  padding: 7px 12px;
  font-size: 12px;
}

.pin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bronze);
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1.5px var(--beige) inset;
}

.map-btn:hover .pin,
.map-btn:focus .pin {
  background: var(--green);
  box-shadow: 0 0 0 1.5px var(--white-warm) inset;
}

.dual-links {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.inline-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  margin-left: 6px;
  background: transparent;
  color: var(--green);
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: middle;
  transition: background 0.18s, color 0.18s;
}

.inline-map-btn:hover,
.inline-map-btn:focus {
  background: var(--green);
  color: var(--beige);
}

.inline-map-btn .pin {
  width: 9px;
  height: 9px;
}

/* ============================================================
   Note list (Bra att veta)
   ============================================================ */

.note-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.note {
  background: transparent;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}

.note:last-child {
  border-bottom: none;
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
}

.note strong {
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   Health info box (Service & vård)
   ============================================================ */

.health-info {
  background: var(--white-warm);
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--bronze);
  border-radius: 4px;
  padding: 22px 24px 18px;
  margin: 22px 0 0;
  box-shadow: 0 2px 10px rgba(44, 62, 47, 0.08);
}

.health-info h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 23px;
  color: var(--green-dark);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.health-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.health-info-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}

.health-info-list li:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.health-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bronze);
}

.health-info-list strong {
  color: var(--green-dark);
  font-weight: 600;
}

.health-info-list em {
  font-style: italic;
}

@media print {
  .health-info {
    background: #ffffff;
    border: 1px solid #999999;
    border-left: 3px solid #000000;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .health-info h3,
  .health-info-list strong {
    color: #000000;
  }
  .health-info-list li {
    color: #222222;
  }
}

/* ============================================================
   Transport
   ============================================================ */

.transport-note {
  background: var(--white-warm);
  border-left: 3px solid var(--bronze);
  padding: 18px 20px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  margin: 24px 0 0;
}

/* ============================================================
   No results
   ============================================================ */

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--green);
  color: rgba(245, 241, 232, 0.7);
  padding: 32px 24px;
  text-align: center;
  font-size: 13.5px;
  border-top: 4px solid var(--bronze);
}

.site-footer p {
  margin: 0;
  max-width: 580px;
  margin: 0 auto;
  font-style: italic;
}

/* ============================================================
   Urgent section (I akut nöd)
   ============================================================ */

.section-urgent {
  background: var(--urgent-soft);
  border: 1px solid rgba(184, 57, 46, 0.25);
  border-left: 5px solid var(--urgent);
  border-radius: 6px;
  padding: 24px 24px 28px;
  margin-top: 8px;
  margin-bottom: 56px;
  box-shadow: 0 3px 14px rgba(184, 57, 46, 0.08);
}

.section-urgent h2 {
  color: var(--urgent-dark);
  border-bottom-color: var(--urgent);
  margin-top: 0;
}

.section-urgent .section-intro {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.urgent-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
  list-style: none;
  padding: 0;
}

.urgent-number {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(184, 57, 46, 0.2);
  border-left: 4px solid var(--urgent);
  border-radius: 4px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.1s;
}

.urgent-number:hover,
.urgent-number:focus {
  background: var(--urgent);
  border-color: var(--urgent);
  color: #ffffff;
}

.urgent-number:hover .urgent-number-label,
.urgent-number:focus .urgent-number-label {
  color: rgba(255, 255, 255, 0.92);
}

.urgent-number:active {
  transform: scale(0.98);
}

.urgent-number-digits {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--urgent-dark);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  min-width: 56px;
}

.urgent-number:hover .urgent-number-digits,
.urgent-number:focus .urgent-number-digits {
  color: #ffffff;
}

.urgent-number-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 500;
}

.urgent-subhead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--urgent-dark);
  margin: 8px 0 12px;
  letter-spacing: -0.005em;
}

.card-urgent {
  border-left: 3px solid var(--urgent);
}

/* ============================================================
   Subsection headings (Aktiviteter, Vin)
   ============================================================ */

.subsection-head {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--green-dark);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: -0.005em;
}

.subsection-head:first-of-type {
  margin-top: 24px;
}

/* ============================================================
   Wine region cards (Vinet i regionen)
   ============================================================ */

.corbieres-text {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}

.corbieres-text:last-child {
  margin-bottom: 0;
}

.wine-type-inline {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--bronze-dark);
  text-transform: lowercase;
  margin-left: 8px;
  letter-spacing: 0.02em;
}

.aop-link-wrap {
  margin: 10px 0 0;
}

.aop-link {
  display: inline-block;
  color: var(--green);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--bronze);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}

.aop-link:hover,
.aop-link:focus {
  color: var(--bronze-dark);
  border-bottom-color: var(--bronze-dark);
}

/* ============================================================
   Search filtering helpers
   ============================================================ */

.searchable.is-hidden,
.section.is-hidden {
  display: none !important;
}

/* ============================================================
   Mobile tweaks
   ============================================================ */

@media (max-width: 600px) {
  .masthead {
    padding: 40px 20px 48px;
  }
  .content {
    padding: 24px 16px 60px;
  }
  .section {
    margin-bottom: 44px;
  }
  .card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .map-btn {
    align-self: flex-start;
  }
  .wine-list {
    grid-template-columns: 1fr;
  }
  .nav-link {
    padding: 12px 14px;
    font-size: 13.5px;
  }
  .search-bar {
    padding: 12px 16px;
  }
  #searchInput {
    font-size: 16px;
    padding: 11px 16px;
  }
  .section-urgent {
    padding: 20px 18px 22px;
  }
  .urgent-numbers {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .urgent-number {
    padding: 12px 14px;
    gap: 12px;
  }
  .urgent-number-digits {
    font-size: 34px;
    min-width: 44px;
  }
  .urgent-number-label {
    font-size: 13px;
  }
  .subsection-head {
    font-size: 21px;
    margin-top: 28px;
  }
}

/* ============================================================
   Print styles
   ============================================================ */

@media print {
  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
    line-height: 1.4;
  }
  .sticky-nav,
  .search-bar,
  .no-results {
    display: none !important;
  }
  .masthead {
    background: #ffffff;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding: 20px 0;
    text-align: left;
  }
  .masthead h1 {
    color: #000000;
    font-size: 24pt;
  }
  .eyebrow,
  .subtitle {
    color: #444444;
  }
  .content {
    max-width: 100%;
    padding: 16px 0;
  }
  .section {
    page-break-inside: avoid;
    margin-bottom: 24px;
  }
  .section h2 {
    color: #000000;
    border-bottom: 1.5px solid #000000;
    font-size: 18pt;
  }
  .card,
  .wine-item,
  .transport-note {
    background: #ffffff;
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
  .card-body h3,
  .wine-name {
    color: #000000;
  }
  .card-body p,
  .note,
  .transport-note {
    color: #222222;
  }
  .map-btn {
    background: transparent;
    color: #000000;
    border: 1px solid #000000;
    padding: 4px 10px;
  }
  .map-btn::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555555;
    font-weight: normal;
  }
  .pin {
    display: none;
  }
  .inline-map-btn {
    color: #000000;
    border-color: #000000;
  }
  .site-footer {
    background: #ffffff;
    color: #000000;
    border-top: 1px solid #000000;
    padding: 16px 0;
  }
  .section-urgent {
    background: #ffffff;
    border: 1.5px solid #000000;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .section-urgent h2,
  .urgent-subhead,
  .urgent-number-digits {
    color: #000000;
  }
  .urgent-number {
    background: #ffffff;
    border: 1px solid #999999;
    border-left: 3px solid #000000;
    color: #000000;
  }
  .urgent-number-label {
    color: #222222;
  }
  .subsection-head {
    color: #000000;
    border-bottom: 1px solid #999999;
  }
  .aop-link {
    color: #000000;
    border-bottom-color: #555555;
  }
  .aop-link::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #555555;
    font-weight: normal;
  }
}
