:root {
  --cream: #faf5ea;
  --cream-dark: #f1e8d6;
  --ink: #23393a;
  --ink-soft: #526667;
  --accent: #e0774a;
  --accent-dark: #c25f36;
  --sea: #bcdcdc;
  --card-bg: #ffffff;
  --shadow: 0 6px 24px rgba(35, 57, 58, 0.1);
  --shadow-lg: 0 12px 40px rgba(35, 57, 58, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Segoe UI', 'Nunito Sans', -apple-system, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.logo-font {
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid rgba(35, 57, 58, 0.08);
}

.site-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border-radius: 999px;
  padding: 10px;
  box-shadow: var(--shadow);
  margin: 28px 0;
}

.filter-pill {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.filter-pill:hover { background: var(--cream-dark); }

.filter-pill.active {
  background: var(--accent);
  color: #fff;
}

.filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin: 28px 0;
}

.filter-group-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 800;
  margin-right: 4px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Map ---------- */
.map-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 620px;
  background: var(--sea);
}

#kort {
  width: 100%;
  height: 100%;
  background: var(--sea);
}

.map-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--ink);
  background: rgba(250, 245, 234, 0.88);
  padding: 6px 20px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 500;
  text-align: center;
}

/* Warm/beachy tile filter applied to the Leaflet tile layer */
.leaflet-tile-pane {
  filter: sepia(0.35) saturate(1.5) hue-rotate(-8deg) brightness(1.06) contrast(0.96);
}

.pin-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.pin-marker:hover { transform: scale(1.1); }
.pin-marker.kommer-snart {
  filter: grayscale(1) brightness(0.9);
  opacity: 0.75;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  font-family: 'Nunito Sans', sans-serif;
}

.map-popup { width: 210px; }
.map-popup img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.map-popup h3 {
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
  font-size: 1.4rem;
  margin: 0 0 2px;
  color: var(--ink);
}
.map-popup p {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.map-popup .btn-link {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.85rem;
}
.map-popup .badge-snart {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ---------- Cards / grids ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 48px 0 18px;
}
.section-title h2 {
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
  font-size: 2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .see-all {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.trip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.trip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.trip-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-dark);
}
.trip-card .card-body { padding: 14px 16px 18px; }
.trip-card h3 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.trip-card .meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.trip-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--cream-dark);
  color: var(--ink-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.trip-card.kommer-snart .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
  font-size: 1.3rem;
}
.trip-card.kommer-snart { opacity: 0.85; }

/* ---------- Destination page ---------- */
.breadcrumb {
  margin: 20px 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb span { color: var(--ink-soft); }

.dest-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dest-title-row h1 {
  font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive;
  font-size: 3.2rem;
  margin: 0 0 6px;
}
.dest-lead {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 18px;
  line-height: 1.5;
}

.dest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  color: var(--ink);
}
.pill-btn:hover { background: var(--cream-dark); }

.hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.gallery-grid img:hover { transform: scale(1.02); }

.gallery-loadmore {
  display: block;
  margin: 0 auto 40px;
  background: var(--card-bg);
  border: none;
  box-shadow: var(--shadow);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  color: var(--accent-dark);
}

.info-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .info-row { grid-template-columns: 1fr; }
}

.notes-box, .related-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.notes-box h3, .related-box h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}
.notes-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 8px;
}
.notes-box dt { color: var(--ink-soft); font-weight: 700; }
.notes-box dd { margin: 0; }
.notes-box .noter-fri {
  grid-column: 1 / -1;
  margin-top: 8px;
  line-height: 1.5;
}

.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.related-item:hover { background: var(--cream-dark); }
.related-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}
.related-item .r-name { font-weight: 800; }
.related-item .r-meta { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(35, 57, 58, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.site-footer h4 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-tagline { font-family: 'Segoe Script', 'Brush Script MT', 'Caveat', cursive; font-size: 1.4rem; color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { gap: 16px; font-size: 0.85rem; }
  .map-shell { height: 420px; }
  .dest-title-row h1 { font-size: 2.3rem; }
}
