/* ================================================================
   HDP design tokens. THE palette lives here and nowhere else.
   Redesign experiments = edit this block only.
   ================================================================ */
:root {
  /* Phase 28 redesign palette. THE palette lives here and nowhere else. */
  --hds-ink:          #16241c;   /* deep pine, headings + dark surfaces */
  --hds-accent:       #1f6f5c;   /* teal-pine, primary CTAs + active states */
  --hds-accent-tint:  #e7f2ee;   /* accent hover wash */
  --hds-accent-deep:  #17564760; /* accent shadow tint (rgba-ish) */
  --hds-gold:         #e0a43b;   /* warm amber, highlights + featured */
  --hds-gold-tint:    #fbf1dd;   /* amber wash */
  --hds-surface:      #f5f3ee;   /* warm off-white, section alternates */
  --hds-surface-2:    #fbfaf7;   /* cards, panels */
  --hds-line:         #e6e2d9;   /* borders */
  --hds-line-2:       #eeebe3;   /* softer borders, tab rails */
  --hds-danger:       #c0392b;   /* form errors */
  --hds-danger-2:     #c0392b;   /* destructive actions */
  --hds-ok-bg:        #e6f4ec;   /* success background */
  --hds-ok-ink:       #1f6f5c;   /* success text */
  /* radius + shadow scale (Phase 28) */
  --hds-r-sm:  6px;
  --hds-r:     10px;
  --hds-r-lg:  16px;
  --hds-r-pill:999px;
  --hds-shadow:    0 2px 8px rgba(22,36,28,.06);
  --hds-shadow-lg: 0 10px 30px rgba(22,36,28,.11);
}

/* ============================================================
   Hitta Ditt Sverige - OS Style
   Layout mirrors Piteå Kommun visual identity
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #e5e5e5;
}

a { color: #005b9a; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============================================================
   Container
   ============================================================ */
.hds-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================
   Sticky header
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  transition: transform 0.3s;
}

header.header-hidden {
  transform: translateY(-100%);
}

/* ============================================================
   Main Header
   ============================================================ */
.hds-main-header {
  background: #232323;
  position: relative; /* needed for mobile nav dropdown */
}

.hds-main-header .hds-container {
  display: flex;
  align-items: stretch;
  min-height: 72px;
}

.hds-main-header nav {
  display: flex;
  flex: 1;
}

.hds-logo {
  display: flex;
  align-items: center;
  padding-right: 30px;
  text-decoration: none;
  flex-shrink: 0;
}

.hds-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.hds-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hds-logo-text .line1 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hds-accent);
}

.hds-logo-text .line2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.hds-main-nav {
  display: flex;
  align-items: stretch;
  list-style: none;
  flex: 1;
}

.hds-main-nav li {
  display: flex;
}

.hds-main-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.hds-main-nav li a::before { display: none; }

.hds-main-nav li a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.hds-main-nav li.active a {
  color: #fff;
  background: rgba(255,255,255,0.14);
  border-bottom-color: rgba(255,255,255,0.9);
}

/* Commune home link: slightly more prominent */
.hds-main-nav .hds-commune-home {
  color: #fff !important;
  letter-spacing: 0.8px;
}

/* ============================================================
   Sub Nav
   ============================================================ */
.hds-sub-nav {
  background: var(--hds-accent);
  min-height: 38px;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hds-sub-nav .hds-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.hds-sub-nav-links {
  display: flex;
  list-style: none;
  align-items: stretch;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.hds-sub-nav-links li {
  display: flex;
  align-items: center;
  position: relative;
}

.hds-sub-nav-links li + li::before {
  content: '|';
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.hds-sub-nav-links a {
  color: #fff;
  font-size: 13px;
  padding: 0 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 38px;
}

.hds-sub-nav-links a:hover { text-decoration: underline; }

.hds-sub-nav-links li.active a {
  font-weight: 700;
  text-decoration: underline;
  background: rgba(0,0,0,0.15);
}

.hds-sub-nav-links li.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--hds-accent);
  pointer-events: none;
  z-index: 201;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.hds-breadcrumb {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.hds-breadcrumb-list {
  display: flex;
  list-style: none;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.hds-breadcrumb-list li + li::before {
  content: '›';
  padding: 0 6px;
  color: #999;
}

.hds-breadcrumb-list a { color: #005b9a; }
.hds-breadcrumb-list a:hover { text-decoration: underline; }
.hds-breadcrumb-list li:last-child { color: #333; font-weight: 600; }

/* ============================================================
   Hero
   ============================================================ */
.hds-hero {
  position: relative;
  width: 100%;
  background: var(--hds-ink);
  overflow: hidden;
}

.hds-hero video,
.hds-hero img.hds-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hds-hero-fallback {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, #1a3a2a 0%, #232323 50%, #2d1a2a 100%);
}

.hds-hero-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}

.hds-hero-cta-group {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: calc(100% - 30px);
}

.hds-hero-cta {
  background: #fff;
  color: var(--hds-ink);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hds-hero-cta:hover {
  background: var(--hds-accent);
  color: #fff;
  text-decoration: none;
}

/* Route page cards */
.hds-route-card {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  margin-bottom: 4px;
  cursor: pointer;
}

.hds-route-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.hds-route-card-season {
  width: 52px;
  height: 52px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.hds-route-card-meta { flex: 1; }

.hds-route-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--hds-accent);
  margin-bottom: 3px;
}

.hds-route-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 2px;
}

.hds-route-card-tagline {
  font-size: 12px;
  color: #777;
}

.hds-route-card-stats {
  display: flex;
  gap: 20px;
  text-align: right;
  flex-shrink: 0;
}

.hds-route-stat { display: flex; flex-direction: column; }

.hds-route-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--hds-ink);
}

.hds-route-stat-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hds-route-card-toggle {
  color: var(--hds-accent);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.hds-route-card.open .hds-route-card-toggle { transform: rotate(90deg); }

.hds-route-card-body {
  display: none;
  border-top: 1px solid #eee;
}

.hds-route-card.open .hds-route-card-body { display: block; }

.hds-route-stops { padding: 0 20px 20px; }

.hds-route-stop {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hds-route-stop:last-child { border-bottom: none; }

.hds-route-stop-num {
  width: 28px;
  height: 28px;
  background: var(--hds-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  margin-top: 1px;
}

.hds-route-stop-content { flex: 1; }

.hds-route-stop-tag {
  display: inline-block;
  background: #f5f5f5;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2px 7px;
  margin-bottom: 4px;
}

.hds-route-stop-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 3px;
}

.hds-route-stop-detail {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.hds-route-stop-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--hds-accent);
  display: inline-block;
  margin-top: 5px;
}

.hds-route-stop-link:hover { text-decoration: underline; }

.hds-route-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hds-route-info-item {
  background: #fff;
  border-top: 3px solid var(--hds-accent);
  padding: 16px;
}

.hds-route-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hds-accent);
  margin-bottom: 6px;
}

.hds-route-info-value {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

/* Selector card (update page) */
.hds-selector-card {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  padding: 24px;
  margin-bottom: 28px;
}

.hds-selector-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 16px;
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
}

@media (max-width: 768px) {
  .hds-hero-cta-group { flex-direction: row; flex-wrap: nowrap; gap: 6px; width: calc(100% - 24px); }
  .hds-hero-cta { flex: 1; justify-content: center; font-size: 11px; padding: 10px 8px; white-space: normal; text-align: center; }
  .hds-route-card-stats { display: none; }
  .hds-route-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hds-route-info-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Page Content
   ============================================================ */
.hds-content {
  padding: 30px 0 50px;
}

/* Compact header for section pages that have a map directly below */
.hds-content--compact {
  padding: 10px 0 10px;
}

.hds-content--compact .hds-page-title {
  margin-bottom: 4px;
}

.hds-content--compact .hds-page-intro {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.4;
}

.hds-page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 8px;
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
}

.hds-page-intro {
  font-size: 15px;
  color: #555;
  margin-bottom: 28px;
  max-width: 680px;
  line-height: 1.6;
}

/* ============================================================
   Section Header Bar
   ============================================================ */
.hds-section-bar {
  background: var(--hds-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 46px;
  margin-bottom: 0;
}

.hds-section-bar-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hds-section-bar-link {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hds-section-bar-link:hover { text-decoration: underline; }

/* ============================================================
   Category Card Grid
   ============================================================ */
.hds-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 -7px;
  background: #e5e5e5;
  padding-top: 15px;
}

.hds-card {
  width: calc(33.333% - 14px);
  margin: 0 7px 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  position: relative;
}

.hds-card:hover { text-decoration: none; }

.hds-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--hds-accent);
  width: 100%;
}

.hds-card-img-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hds-card-img-wrap img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hds-card:hover .hds-card-img-wrap img { transform: scale(1.03); }

.hds-card-img-placeholder {
  width: 100%;
  height: 195px;
  background: linear-gradient(135deg, var(--hds-accent) 0%, #1a3a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hds-card-label {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e5e5;
}

.hds-card-title {
  font-size: 14px;
  font-weight: 400;
  color: #005b9a;
  line-height: 1.3;
  flex: 1;
  padding-right: 10px;
}

.hds-card:hover .hds-card-title {
  text-decoration: underline;
  color: var(--hds-accent);
}

.hds-card-arrow {
  color: var(--hds-accent);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ============================================================
   Icon Link Cards
   ============================================================ */
.hds-icon-card {
  width: calc(33.333% - 14px);
  margin: 0 7px 15px;
  background: #fff;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  border-top: 4px solid var(--hds-accent);
}

.hds-icon-card:hover { text-decoration: none; }

.hds-icon-card-icon {
  background: var(--hds-accent);
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.hds-icon-card-body {
  flex: 1;
  padding: 10px 12px;
}

.hds-icon-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #333;
}

.hds-icon-card-sub {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.hds-icon-card-arrow {
  color: var(--hds-accent);
  font-size: 20px;
  padding: 0 14px;
  flex-shrink: 0;
}

.hds-icon-card:hover .hds-icon-card-title { color: var(--hds-accent); }

/* ============================================================
   Entity Listing Cards
   ============================================================ */
.hds-entity-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 15px;
}

.hds-entity-card {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  width: calc(50% - 8px);
  display: flex;
  flex-direction: column;
}

.hds-entity-card-header {
  padding: 16px 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hds-entity-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--hds-ink);
  line-height: 1.2;
}

.hds-entity-card-location {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--hds-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.hds-entity-card-tagline {
  padding: 6px 16px 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  border-bottom: 1px solid #eee;
}

.hds-offering-list {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hds-offering-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hds-offering-emoji {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.3;
}

.hds-offering-body { flex: 1; }

.hds-offering-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hds-ink);
}

.hds-offering-desc {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  line-height: 1.5;
}

.hds-offering-price {
  font-size: 12px;
  color: var(--hds-accent);
  font-weight: 600;
  margin-top: 4px;
}

.hds-entity-card-footer {
  padding: 10px 16px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hds-entity-card-link {
  font-size: 12px;
  color: #005b9a;
  text-decoration: none;
}

.hds-entity-card-link:hover { text-decoration: underline; }

.hds-entity-card-phone {
  font-size: 12px;
  color: #555;
}

.hds-loading {
  text-align: center;
  padding: 60px 20px;
  color: #777;
  font-size: 15px;
  width: 100%;
}

.hds-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 14px;
  width: 100%;
}

/* ============================================================
   Area / Village Cards
   ============================================================ */
.hds-area-card {
  width: calc(33.333% - 14px);
  margin: 0 7px 15px;
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
}

.hds-area-card:hover { text-decoration: none; }

.hds-area-card-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1a3a2a 0%, #2d4a3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hds-area-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hds-area-card-name {
  font-size: 17px;
  font-weight: 700;
  color: #005b9a;
  margin-bottom: 6px;
}

.hds-area-card:hover .hds-area-card-name {
  color: var(--hds-accent);
  text-decoration: underline;
}

.hds-area-card-villages {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
  line-height: 1.5;
}

.hds-area-card-arrow {
  color: var(--hds-accent);
  font-size: 18px;
  margin-top: auto;
}

/* Village profile hero */
.hds-village-hero {
  background: linear-gradient(135deg, #1a3a2a 0%, #232323 100%);
  padding: 48px 0 40px;
}

.hds-village-hero-emoji {
  font-size: 52px;
  margin-bottom: 12px;
}

.hds-village-hero-name {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.hds-village-hero-area {
  font-size: 12px;
  color: var(--hds-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.hds-village-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   Tab Strip (subcategory navigation within a section)
   ============================================================ */
.hds-tab-strip {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  overflow-x: auto;
}

.hds-tab-strip-inner {
  display: flex;
  align-items: stretch;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.hds-tab {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.hds-tab:hover {
  color: var(--hds-accent);
  border-bottom-color: var(--hds-accent);
  text-decoration: none;
}

.hds-tab.active {
  color: var(--hds-accent);
  border-bottom-color: var(--hds-accent);
}

/* ============================================================
   Register / Foretag Form
   ============================================================ */
.hds-form-wrap { max-width: 720px; }

.hds-form-group { margin-bottom: 20px; }

.hds-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.hds-form-label span { color: var(--hds-accent); }

.hds-form-input,
.hds-form-select,
.hds-form-textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--hds-line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--hds-ink);
  border-radius: var(--hds-r-sm);
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}

.hds-form-input:focus,
.hds-form-select:focus,
.hds-form-textarea:focus {
  outline: none;
  border-color: var(--hds-accent);
  box-shadow: 0 0 0 3px var(--hds-accent-tint);
}

.hds-form-textarea { resize: vertical; min-height: 110px; }

.hds-form-row { display: flex; gap: 15px; }
.hds-form-row .hds-form-group { flex: 1; }

.hds-form-hint {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.hds-form-submit {
  background: var(--hds-accent);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--hds-r);
  box-shadow: var(--hds-shadow);
  transition: filter .15s, transform .1s, box-shadow .15s;
}

.hds-form-submit:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--hds-shadow-lg); }
.hds-form-submit:active { transform: translateY(0); }

.hds-info-box {
  background: #fff;
  border-left: 4px solid var(--hds-accent);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.hds-info-box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 8px;
}

.hds-info-box p {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */
.hds-footer {
  background: #232323;
  padding: 40px 0;
  margin-top: 20px;
}

.hds-footer .hds-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.hds-footer-col { flex: 1; }

.hds-footer-heading {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hds-footer-col a {
  display: block;
  color: #b6b6b6;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 6px;
}

.hds-footer-col a:hover { color: #fff; }

.hds-footer-contact {
  background: #2d2d2d;
  padding: 20px;
  position: relative;
  flex: 1.5;
}

.hds-footer-contact::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--hds-accent) transparent transparent;
}

.hds-footer-contact h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hds-footer-contact p {
  color: #b6b6b6;
  font-size: 13px;
  line-height: 1.7;
}

.hds-footer-contact a {
  color: var(--hds-accent);
  text-decoration: none;
}

.hds-footer-contact a:hover { text-decoration: underline; }

.hds-footer-bottom {
  background: var(--hds-ink);
  padding: 12px 0;
  text-align: center;
}

.hds-footer-bottom p {
  color: #666;
  font-size: 12px;
}

/* ============================================================
   Se profil link in entity card footer
   ============================================================ */
.hds-entity-card-profile {
  font-size: 12px;
  color: var(--hds-accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}
.hds-entity-card-profile:hover { text-decoration: underline; }

/* ============================================================
   Map
   ============================================================ */
.hds-map-wrap {
  width: 100%;
  border-bottom: 3px solid var(--hds-accent);
}
.hds-map-wrap .leaflet-container {
  background: var(--hds-surface);
}

/* Map tab strip - matches hds-tab-strip style but uses buttons */
.hds-map-tabs {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  overflow-x: auto;
  display: flex;
  align-items: stretch;
  padding: 0 15px;
}
.hds-map-tabs button {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.hds-map-tabs button:hover {
  color: var(--hds-accent);
  border-bottom-color: var(--hds-accent);
}
.hds-map-tabs button.active {
  color: var(--hds-accent);
  border-bottom-color: var(--hds-accent);
}

/* ============================================================
   Entity Profile Page
   ============================================================ */
.hds-type-badge {
  display: inline-block;
  background: var(--hds-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.hds-profile-hero {
  background: #232323;
  padding: 40px 0 36px;
  border-bottom: 4px solid var(--hds-accent);
}

.hds-profile-hero-inner {
  max-width: 720px;
}

.hds-profile-name {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
  line-height: 1.15;
}

.hds-profile-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  line-height: 1.5;
}

.hds-profile-location {
  font-size: 13px;
  color: var(--hds-accent);
  font-weight: 600;
}

.hds-profile-body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding-top: 28px;
}

.hds-profile-main {
  flex: 1;
  min-width: 0;
}

.hds-profile-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.hds-profile-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hds-accent);
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.hds-profile-about {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  padding: 20px;
  margin-bottom: 20px;
}

.hds-profile-about-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}

.hds-profile-offerings {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  padding: 20px;
}

.hds-profile-cat-section {
  margin-bottom: 20px;
}

.hds-profile-cat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.hds-profile-offering {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.hds-profile-offering:last-child { border-bottom: none; }

.hds-profile-offering-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.hds-profile-offering-emoji {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.3;
}

.hds-profile-offering-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hds-ink);
}

.hds-profile-offering-price {
  font-size: 12px;
  color: var(--hds-accent);
  font-weight: 600;
  margin-top: 2px;
}

.hds-profile-offering-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 6px;
}

.hds-profile-offering-action { margin-top: 6px; }

/* Contact card (sidebar) */
.hds-contact-card {
  background: #fff;
  border-top: 4px solid var(--hds-accent);
  padding: 20px;
}

.hds-contact-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hds-accent);
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.hds-contact-cta {
  display: block;
  background: var(--hds-accent);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background 0.15s;
}
.hds-contact-cta:hover { background: var(--hds-accent); text-decoration: none; color: #fff; }

.hds-contact-item {
  margin-bottom: 12px;
}

.hds-contact-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #999;
  margin-bottom: 3px;
}

.hds-contact-value {
  font-size: 13px;
  color: #005b9a;
  text-decoration: none;
  display: block;
}
.hds-contact-value:hover { text-decoration: underline; }
.hds-contact-value--plain { color: #333; }
.hds-contact-value--plain:hover { text-decoration: none; }

/* ============================================================
   Hamburger toggle button
   ============================================================ */
.hds-nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.hds-nav-toggle:hover { border-color: var(--hds-accent); }
.hds-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
/* Animate to X when open */
.nav-open .hds-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hds-nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .hds-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Inline type badge (inside card header)
   ============================================================ */
.hds-type-badge--inline {
  display: inline-block;
  background: var(--hds-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   Profile place-name links
   ============================================================ */
.hds-profile-place-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}
.hds-profile-place-link:hover {
  text-decoration-color: #fff;
  color: #fff;
}
/* In contact sidebar, place links inherit sidebar link styles */
.hds-contact-value .hds-profile-place-link {
  color: #005b9a;
}
.hds-contact-value .hds-profile-place-link:hover {
  text-decoration: underline;
}

/* ============================================================
   Kommer snart page
   ============================================================ */
.hds-kommer-snart {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.hds-kommer-snart-inner { max-width: 560px; }
.hds-kommer-snart-emoji { font-size: 56px; margin-bottom: 24px; }
.hds-kommer-snart-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 12px;
  font-family: "Gill Sans", "Gill Sans MT", Arial, sans-serif;
}
.hds-kommer-snart-by {
  color: var(--hds-accent);
}
.hds-kommer-snart-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hds-kommer-snart-activities {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hds-kommer-snart-activity {
  font-size: 13px;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hds-kommer-snart-activity::before {
  content: '✓';
  color: var(--hds-accent);
  font-weight: 700;
}
.hds-kommer-snart-back {
  display: inline-block;
  background: var(--hds-accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.hds-kommer-snart-back:hover { background: var(--hds-accent); text-decoration: none; color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  /* Hamburger visible on mobile */
  .hds-nav-toggle { display: flex; }

  /* Header layout on mobile */
  .hds-main-header .hds-container { flex-wrap: nowrap; min-height: 56px; align-items: center; }
  .hds-logo { padding: 0; flex: 1; }

  /* Sub-nav: wrap items onto multiple lines instead of horizontal scroll */
  .hds-sub-nav { overflow: visible; height: auto; }
  .hds-sub-nav-links { flex-wrap: wrap; white-space: normal; padding: 4px 0; }
  .hds-sub-nav-links li + li::before { display: none; }
  .hds-sub-nav-links a { height: auto; padding: 5px 10px; }
  .hds-sub-nav-links li.active::after { display: none; }

  /* Hide "Hitta Din" label in mobile nav dropdown */
  .hds-main-nav li a::before { display: none; }

  /* Main nav hidden by default; shown when .nav-open is on header */
  .hds-main-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--hds-ink);
    z-index: 500;
    border-top: 3px solid var(--hds-accent);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  .hds-main-header.nav-open nav { display: block; }
  .hds-main-nav { flex-direction: column; overflow: visible; width: 100%; }
  .hds-main-nav li { width: 100%; }
  .hds-main-nav li a {
    padding: 14px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-left: none;
  }
  .hds-main-nav li.active a {
    background: rgba(255,255,255,0.14);
    border-bottom-color: rgba(255,255,255,0.9);
    color: #fff;
  }
  .hds-card { width: calc(50% - 14px); }
  .hds-icon-card { width: calc(50% - 14px); }
  .hds-area-card { width: calc(50% - 14px); }
  .hds-entity-card { width: 100%; }
  .hds-hero video, .hds-hero img.hds-hero-img, .hds-hero-fallback { height: 280px; }
  .hds-footer .hds-container { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .hds-footer-col { flex: 1 1 calc(50% - 12px); min-width: 0; }
  .hds-footer-contact { flex: 1 1 100%; }
  .hds-form-row { flex-direction: column; gap: 0; }
  .hds-village-hero-name { font-size: 26px; }
  .hds-profile-body { flex-direction: column; }
  .hds-profile-sidebar { width: 100%; }
  .hds-profile-name { font-size: 24px; }
}

@media (max-width: 480px) {
  .hds-card { width: calc(100% - 14px); }
  .hds-icon-card { width: calc(100% - 14px); }
  .hds-area-card { width: calc(100% - 14px); }
  .hds-page-title { font-size: 22px; }
}

/* ============================================================
   Form success screen
   ============================================================ */
.hds-success-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 40vh;
}

.hds-success-inner { max-width: 520px; width: 100%; }

.hds-success-icon {
  width: 72px;
  height: 72px;
  background: var(--hds-accent);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.hds-success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--hds-ink);
  margin-bottom: 12px;
}

.hds-success-desc {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hds-success-back {
  display: inline-block;
  background: var(--hds-accent);
  color: #fff;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

/* ============================================================
   Social feed section (entity profiles + village pages)
   ============================================================ */
.hds-profile-social {
  margin-top: 32px;
}

.hds-fb-embed {
  background: #f5f5f5;
  border: 1px solid var(--hds-line);
  overflow: hidden;
}

.hds-fb-embed iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: none;
}

/* Placeholder feed (all entities except Koler IF) */
.hds-social-placeholder {
  background: #fafafa;
  border: 1px solid var(--hds-line-2);
  padding: 20px;
}

.hds-social-post-skel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #efefef;
}

.hds-social-post-skel:last-of-type {
  border-bottom: none;
}

.hds-skel-avatar {
  width: 36px;
  height: 36px;
  background: var(--hds-line);
  border-radius: 50%;
  flex-shrink: 0;
}

.hds-skel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
}

.hds-skel-line {
  height: 11px;
  background: #e4e4e4;
  border-radius: 3px;
  animation: hds-skel-pulse 1.6s ease-in-out infinite;
}

@keyframes hds-skel-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hds-social-placeholder-msg {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
  text-align: center;
  padding: 10px 0 4px;
}

.hds-social-follow-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hds-social-follow-btn {
  display: inline-block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}

.hds-social-follow-btn--fb  { background: #1877f2; }
.hds-social-follow-btn--ig  { background: #c13584; }
.hds-social-follow-btn--fb:hover { background: #0f5ec7; color: #fff; text-decoration: none; }
.hds-social-follow-btn--ig:hover { background: #9a1a60; color: #fff; text-decoration: none; }

/* ============================================================
   Cycling route cards and badges
   ============================================================ */
.hds-cycle-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  color: #fff;
  margin-bottom: 4px;
}
.hds-cycle-badge--city { background: var(--hds-accent); }
.hds-cycle-badge--tour { background: #2d7d46; }
.hds-cycle-badge--mtb  { background: #c47a00; }

.hds-cycle-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 2px;
}

.hds-cycle-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 10px;
  font-weight: 500;
}

.hds-route-detail-highlights {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hds-route-detail-highlights li {
  font-size: 14px;
  color: #333;
  padding: 6px 12px;
  background: #f7f7f7;
  border-left: 3px solid var(--hds-accent);
}

.hds-route-see-also {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hds-line-2);
}

.hds-route-see-also-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.hds-route-see-also-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f7f7;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--hds-ink);
  transition: background 0.15s;
}

.hds-route-see-also-card:hover {
  background: #efefef;
  text-decoration: none;
  color: var(--hds-ink);
}

.hds-route-see-also-emoji {
  font-size: 22px;
  flex-shrink: 0;
}

.hds-route-see-also-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--hds-ink);
}

.hds-route-see-also-meta {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* ============================================================
   Map gesture hint (two-finger scroll)
   ============================================================ */
.hds-map-gesture-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.hds-map-gesture-hint.hds-map-hint--visible {
  opacity: 1;
}
.hds-success-back:hover { background: var(--hds-accent); text-decoration: none; color: #fff; }

/* ================================================================
   Dropdown nav + sitewide search + /karta/ engine
   ================================================================ */

.hds-nav-drop { position: relative; }
.hds-nav-drop-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 26px 14px; display: flex; align-items: center; gap: 6px; height: 100%;
}
.hds-nav-drop-btn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.hds-nav-drop:hover > .hds-nav-drop-btn,
.hds-nav-drop.open > .hds-nav-drop-btn,
.hds-nav-drop.active > .hds-nav-drop-btn { color: var(--hds-gold); }

.hds-nav-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--hds-line);
  border-top: 3px solid var(--hds-accent);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px 0; z-index: 600;
}
.hds-nav-drop:hover .hds-nav-menu, .hds-nav-drop.open .hds-nav-menu { display: block; }
.hds-nav-drop[data-nav="upplev"] .hds-nav-menu {
  min-width: 460px; display: none;
  grid-template-columns: 1fr 1fr; column-gap: 4px;
}
.hds-nav-drop[data-nav="upplev"]:hover .hds-nav-menu,
.hds-nav-drop[data-nav="upplev"].open .hds-nav-menu { display: grid; }
.hds-nav-drop[data-nav="upplev"] .hds-nav-menu-sep,
.hds-nav-drop[data-nav="upplev"] .hds-nav-menu-sep ~ a { grid-column: 1 / -1; }
.hds-nav-menu a {
  display: block; padding: 8px 18px; color: var(--hds-ink);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.hds-nav-menu a:hover { background: var(--hds-accent-tint); color: var(--hds-accent); text-decoration: none; }
.hds-nav-menu-sep { border-top: 1px solid var(--hds-line-2); margin: 6px 0; }

.hds-nav-karta a { display: flex; align-items: center; height: 100%; }

/* Sitewide search */
.hds-nav-search { position: relative; margin-left: auto; margin-right: 10px; }
.hds-main-header .hds-container nav { flex: 0 1 auto; }
.hds-nav-search input {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-family: inherit; font-size: 13px;
  padding: 7px 12px; width: 150px; transition: width .2s, background .2s;
}
.hds-nav-search input::placeholder { color: rgba(255,255,255,.6); }
.hds-nav-search input:focus { outline: none; width: 230px; background: rgba(255,255,255,.2); }
.hds-nav-search-sugg {
  position: absolute; top: calc(100% + 6px); right: 0; width: 320px;
  background: #fff; border: 1px solid var(--hds-line);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 700; padding: 6px 0;
}
.hds-nav-search-sugg a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 14px; color: var(--hds-ink); font-size: 13.5px; text-decoration: none;
}
.hds-nav-search-sugg a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hds-nav-search-sugg a span { color: #777; font-size: 12px; white-space: nowrap; }
.hds-nav-search-sugg a:hover { background: var(--hds-accent-tint); }
.hds-nav-search-all { border-top: 1px solid var(--hds-line-2); color: var(--hds-accent) !important; font-weight: 600; }

/* /karta/ page */
.hds-karta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.hds-karta-chip {
  border: 1.5px solid var(--hds-line); background: #fff; color: var(--hds-ink);
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; transition: all .15s;
}
.hds-karta-chip:hover { border-color: var(--hds-accent); color: var(--hds-accent); }
.hds-karta-chip.active { background: var(--hds-accent); border-color: var(--hds-accent); color: #fff; }

.hds-karta-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hds-karta-filters select, .hds-karta-filters input {
  font-family: inherit; font-size: 13.5px; padding: 8px 10px;
  border: 1px solid var(--hds-line); background: var(--hds-surface-2); color: var(--hds-ink);
}
.hds-karta-filters input { flex: 1 1 180px; min-width: 150px; }
.hds-karta-rensa {
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--hds-line); background: #fff; color: #777; padding: 8px 14px;
}
.hds-karta-rensa:hover { color: var(--hds-danger); border-color: var(--hds-danger); }

.hds-karta-map {
  height: 62vh; min-height: 420px; border: 1px solid var(--hds-line);
  background: var(--hds-surface-2); z-index: 1;
}
.hds-karta-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 13px; color: #666;
}
.hds-karta-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.hds-karta-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hds-karta-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.hds-karta-empty {
  display: none; margin-top: 12px; padding: 12px 16px;
  background: var(--hds-accent-tint); font-size: 14px;
}
.hds-karta-popup { font-family: inherit; font-size: 13px; line-height: 1.45; }
.hds-karta-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.hds-karta-result {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border: 1px solid var(--hds-line-2); background: var(--hds-surface-2);
  color: var(--hds-ink); text-decoration: none; font-size: 13.5px;
}
.hds-karta-result:hover { border-color: var(--hds-accent); text-decoration: none; }
.hds-karta-result span { color: #777; font-size: 12px; }

/* Mobile: dropdowns become accordion inside the existing nav-open panel */
@media (max-width: 991px) {
  .hds-nav-search { display: none; }
  .hds-nav-drop { width: 100%; }
  .hds-nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 20px; }
  .hds-nav-menu, .hds-nav-drop[data-nav="upplev"] .hds-nav-menu {
    position: static; display: none; min-width: 0; box-shadow: none;
    border: none; border-top: 2px solid var(--hds-accent); border-radius: 0;
  }
  .hds-nav-drop.open .hds-nav-menu { display: block; }
  .hds-nav-drop[data-nav="upplev"].open .hds-nav-menu { display: grid; }
  .hds-nav-drop:hover .hds-nav-menu { }

  .hds-karta-map { height: 56vh; min-height: 340px; }
}

/* ================================================================
   Route film player: the road scrub bar. Checkered segments are the
   POI clips; the rider (cyclist/snowmobile/hiker) rides the timeline.
   ================================================================ */
.hds-film-road {
  position: relative; height: 36px; border-radius: 18px;
  background: linear-gradient(#46464b, #3a3a3e);
  overflow: hidden; cursor: default;
}
.hds-film-lane {
  position: absolute; top: 50%; left: 2%; right: 2%; height: 0;
  border-top: 3px dashed rgba(255,255,255,.7); transform: translateY(-50%);
}
.hds-film-seg {
  position: absolute; top: 5px; bottom: 5px; border: none; padding: 0;
  border-radius: 6px; cursor: pointer; opacity: .85;
  background: repeating-linear-gradient(45deg,
    var(--hds-gold), var(--hds-gold) 6px, #fff 6px, #fff 12px);
}
.hds-film-seg:hover, .hds-film-seg.active { opacity: 1; box-shadow: 0 0 0 2px #fff inset; }
.hds-film-icon {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -58%); font-size: 22px;
  transition: left .25s linear; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}

/* Vagvisning (turning points) on route pages */
.hds-route-turn { counter-increment: turn; display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid var(--hds-gold); background: var(--hds-surface-2); padding: 12px 16px; margin-bottom: 8px; }
.hds-route-turn .hds-turn-no::before { content: counter(turn); font-weight: 800; color: var(--hds-gold);
  font-size: 15px; min-width: 20px; display: inline-block; }
.hds-route-turn img { width: 110px; border-radius: 4px; flex: none; }
.hds-turn-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--hds-gold); color: #fff; padding: 2px 7px; border-radius: 9px; }

/* 360-photo badge */
.hds-360-badge { font-size: .72rem; font-weight: 800; background: #4a3f78; color: #fff;
  border: none; padding: 2px 8px; border-radius: 10px; cursor: pointer; vertical-align: middle; font-family: inherit; }
.hds-360-badge:hover { filter: brightness(1.25); }

/* Gallery albums (collections) */
.hds-gallery-album { font-size: 1.05rem; font-weight: 700; color: var(--hds-ink);
  margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--hds-line-2); }
.hds-gallery-album:first-child { margin-top: 0; }

/* Add-to-trip buttons in karta popups */
.hds-karta-addtrip { margin-top:5px; background:var(--hds-gold); color:var(--hds-ink); border:none;
  font-family:inherit; font-size:12px; font-weight:700; padding:4px 10px; border-radius:10px; cursor:pointer; }
.hds-karta-addtrip:hover { filter:brightness(1.08); }
.hds-nav-trip:hover { border-color: var(--hds-gold) !important; }

/* Gallery 360 badge anchoring */
.hds-gallery-item { position: relative; }

/* Homepage discovery CTAs (Phase 27) */
.hds-home-cta { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin:6px 0 30px; }
.hds-home-cta-btn { display:inline-block; padding:13px 26px; border-radius:var(--hds-r); font-size:16px; font-weight:700;
  text-decoration:none; transition:filter .15s, transform .1s; }
.hds-home-cta-btn:hover { filter:brightness(1.08); transform:translateY(-1px); text-decoration:none; }
.hds-home-cta-primary { background:var(--hds-accent); color:#fff; }
.hds-home-cta-secondary { background:var(--hds-gold); color:var(--hds-ink); }
@media(max-width:520px){ .hds-home-cta-btn{ flex:1; text-align:center; } }

/* Discovery nav: keep the mobile header from crowding (Phase 27) */
@media (max-width: 768px) {
  .hds-nav-trip .hds-nav-trip-text { display: none; }
  .hds-nav-trip { margin-right: 4px !important; padding: 7px 9px !important; }
}
@media (max-width: 460px) {
  .hds-lang-toggle { display: none; }
}

/* ================================================================
   Phase 28: unified rounded button system. Base geometry + soft hover;
   inline/utility bg (gold, ghost) still overrides colour where set.
   ================================================================ */
.hds-cta-button {
  display: inline-block; background: var(--hds-accent); color: #fff;
  border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: 14px; padding: 11px 22px; text-decoration: none;
  border-radius: var(--hds-r); box-shadow: var(--hds-shadow);
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.hds-cta-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--hds-shadow-lg); text-decoration: none; }
.hds-cta-button:active { transform: translateY(0); }

/* Nav login + karta + trip tray: rounded to match */
.hds-nav-login, .hds-nav-trip { border-radius: var(--hds-r) !important; }

.hds-nav-menu { border-radius: 0 0 var(--hds-r) var(--hds-r); overflow: hidden; }

/* add-to-trip pills */
.hds-karta-addtrip { border-radius: var(--hds-r-pill); }

/* ================================================================
   Phase 28: card polish. Rounded corners, soft shadow, hover lift.
   Appended so it overrides the flat legacy card rules.
   ================================================================ */
.hds-card, .hds-icon-card {
  border-radius: var(--hds-r-lg);
  overflow: hidden;
  box-shadow: var(--hds-shadow);
  border: 1px solid var(--hds-line-2);
  transition: transform .15s, box-shadow .15s;
}
.hds-card:hover, .hds-icon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hds-shadow-lg);
}
/* the accent top-stripe reads better as a rounded inset now */
.hds-icon-card { border-top: none; border-left: 4px solid var(--hds-accent); }

.hds-entity-card {
  border-radius: var(--hds-r-lg);
  overflow: hidden;
  box-shadow: var(--hds-shadow);
  border: 1px solid var(--hds-line-2);
  border-top: 3px solid var(--hds-accent);
  transition: transform .15s, box-shadow .15s;
}
.hds-entity-card:hover { transform: translateY(-3px); box-shadow: var(--hds-shadow-lg); }

/* village/route/community cards + home strips + surface wells */
.hds-vp-route-card, .hds-community-card, .hds-route-card {
  border-radius: var(--hds-r-lg) !important;
  box-shadow: var(--hds-shadow);
  transition: transform .15s, box-shadow .15s;
}
.hds-vp-route-card:hover, .hds-community-card:hover, .hds-route-card:hover {
  transform: translateY(-2px); box-shadow: var(--hds-shadow-lg);
}
.hds-vp-quickfacts, .hds-grow-cta, .hds-info-box, .hds-ep-contact-card, .hds-ep-offer-card {
  border-radius: var(--hds-r-lg);
}

/* ================================================================
   Phase 28: inputs, karta controls, section rhythm.
   ================================================================ */
/* rounded karta filter controls with the same focus ring */
.hds-karta-filters select, .hds-karta-filters input, #hds-karta-service, .hds-karta-rensa {
  border-radius: var(--hds-r-sm);
}
.hds-karta-filters select:focus, .hds-karta-filters input:focus {
  outline: none; border-color: var(--hds-accent); box-shadow: 0 0 0 3px var(--hds-accent-tint);
}
.hds-karta-chip { border-radius: var(--hds-r-pill); }
.hds-karta-map, .hds-ep-map, .hds-vp-map { border-radius: var(--hds-r-lg); }

/* surface bands get gentle rounding + a touch more air */
.hds-strip, .hds-listings-strip, .hds-section-alt { border-radius: var(--hds-r-lg); }
.hds-content { padding-top: 8px; }

/* konto/profile tabs: rounded active pill feel on the rail */
.hds-konto-tab, .hds-ep-tab, .hds-vp-tab { border-radius: var(--hds-r-sm) var(--hds-r-sm) 0 0; }

/* success/error boxes rounded */
.hds-admin-success, .hds-form-error, .hds-ok-box { border-radius: var(--hds-r-sm); }

/* ================================================================
   Phase 28: typography refinement. Confident headings, tighter
   tracking, comfortable intros. Keeps the existing font stack.
   ================================================================ */
.hds-page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.hds-page-intro { font-size: 16px; color: #57605a; }
.hds-section-bar-title, .hds-ep-name, .hds-vp-name { letter-spacing: -0.015em; }
h1, h2, h3 { letter-spacing: -0.01em; }
body { color: #26302a; }
a { color: var(--hds-accent); }

/* ================================================================
   Phase 30: stats strip, persona picker, nav overlay
   ================================================================ */

/* --- Stats strip (homepage) --- */
.hds-stats-strip {
  display: flex;
  margin: 28px 0 0;
  border: 1px solid var(--hds-line);
  border-radius: var(--hds-r-lg);
  overflow: hidden;
  background: var(--hds-surface-2);
}
.hds-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  border-right: 1px solid var(--hds-line);
  text-align: center;
}
.hds-stat-item:last-child { border-right: none; }
.hds-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hds-accent);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.hds-stat-label {
  font-size: .7rem;
  color: #888;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
}
@media (max-width: 480px) {
  .hds-stats-strip { flex-wrap: wrap; }
  .hds-stat-item { min-width: 50%; border-bottom: 1px solid var(--hds-line); }
  .hds-stat-item:nth-child(2n) { border-right: none; }
  .hds-stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* --- Persona section (homepage) --- */
.hds-persona-section {
  background: var(--hds-surface);
  padding: 48px 0 52px;
  margin-top: 40px;
  border-top: 1px solid var(--hds-line-2);
}
.hds-persona-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--hds-ink);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hds-persona-sub {
  color: #68756c;
  font-size: .92rem;
  margin-bottom: 24px;
}
.hds-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hds-persona-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 22px 14px;
  background: var(--hds-surface-2);
  border: 2px solid var(--hds-line);
  border-radius: var(--hds-r-lg);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.hds-persona-btn:hover {
  border-color: var(--hds-accent);
  box-shadow: var(--hds-shadow);
  transform: translateY(-2px);
}
.hds-persona-btn.selected {
  border-color: var(--hds-accent);
  background: var(--hds-accent-tint);
  box-shadow: var(--hds-shadow-lg);
}
.hds-persona-icon { font-size: 2.4rem; line-height: 1; }
.hds-persona-label { font-size: .95rem; font-weight: 700; color: var(--hds-ink); display: block; }
.hds-persona-desc { font-size: .78rem; color: #8a9890; }

.hds-persona-panel {
  margin-top: 26px;
  animation: hds-panel-in .22s ease;
}
@keyframes hds-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hds-persona-panel-intro {
  font-size: .95rem;
  color: var(--hds-ink);
  margin-bottom: 14px;
  max-width: 580px;
  line-height: 1.55;
}
.hds-persona-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hds-persona-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  border-radius: var(--hds-r-pill);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--hds-line);
  color: var(--hds-ink);
  background: var(--hds-surface-2);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.hds-persona-link:hover {
  border-color: var(--hds-accent);
  color: var(--hds-accent);
  text-decoration: none;
}
.hds-persona-link-primary {
  background: var(--hds-accent);
  color: #fff;
  border-color: var(--hds-accent);
}
.hds-persona-link-primary:hover {
  background: #1a5e4e;
  color: #fff;
  border-color: #1a5e4e;
  text-decoration: none;
}

@media (max-width: 768px) {
  .hds-persona-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hds-persona-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hds-persona-btn { padding: 16px 10px; }
  .hds-persona-icon { font-size: 1.9rem; }
  .hds-persona-section { padding: 36px 0 40px; }
}

/* --- Nav Utforska button --- */
.hds-nav-all { display: flex; align-items: stretch; }
.hds-nav-all-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--hds-r);
  white-space: nowrap;
  margin: auto 0 auto 4px;
  transition: border-color .15s, color .15s;
}
.hds-nav-all-btn::after { content: ' ☰'; }
.hds-nav-all-btn:hover { border-color: var(--hds-accent); color: var(--hds-gold); }

/* --- Full-screen nav overlay --- */
.hds-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, visibility .22s;
}
.hds-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}
.hds-nav-ov-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22,36,28,.55);
  cursor: pointer;
}
.hds-nav-ov-panel {
  position: relative;
  width: min(680px, 100vw);
  height: 100vh;
  background: var(--hds-surface-2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
}
.hds-nav-overlay.open .hds-nav-ov-panel { transform: translateX(0); }
.hds-nav-ov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hds-line);
  background: var(--hds-ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
  flex-shrink: 0;
}
.hds-nav-ov-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hds-gold);
}
.hds-nav-ov-close {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.hds-nav-ov-close:hover { background: rgba(255,255,255,.15); }
.hds-nav-ov-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  flex: 1;
}
.hds-nav-ov-col {
  padding: 24px 22px;
  border-right: 1px solid var(--hds-line-2);
}
.hds-nav-ov-col:last-child { border-right: none; }
.hds-nav-ov-group-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--hds-accent);
  margin-bottom: 10px;
}
.hds-nav-ov-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px;
  color: var(--hds-ink);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--hds-r-sm);
  transition: color .12s;
}
.hds-nav-ov-link:hover { color: var(--hds-accent); text-decoration: none; }
.hds-nav-ov-link-all { color: var(--hds-accent); font-weight: 600; font-size: 13px; }
.hds-nav-ov-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; line-height: 1; }

@media (max-width: 640px) {
  .hds-nav-ov-body { grid-template-columns: 1fr; }
  .hds-nav-ov-col { border-right: none; border-bottom: 1px solid var(--hds-line-2); padding: 20px 18px; }
  .hds-nav-ov-col:last-child { border-bottom: none; }
  .hds-nav-ov-panel { width: 100vw; }
}

/* ================================================================
   Phase 31: marker cluster icon tiers — HDP colour palette
   Small (2-9): accent green / Medium (10-49): gold / Large (50+): ink
   ================================================================ */

/* Strip Leaflet's default white box from DivIcon-based pins */
.hds-pin-icon { background: none !important; border: none !important; }

/* Override default cluster palette with HDP tokens */
.marker-cluster-small {
  background-color: rgba(31, 111, 92, 0.18);
  width: 36px !important; height: 36px !important;
  margin-left: -18px !important; margin-top: -18px !important;
}
.marker-cluster-small div {
  background-color: rgba(31, 111, 92, 0.82);
  width: 26px !important; height: 26px !important;
  margin: 5px !important; border-radius: 13px !important;
  color: #fff; font-weight: 700; font-size: 11px;
}

.marker-cluster-medium {
  background-color: rgba(224, 164, 59, 0.22);
  width: 44px !important; height: 44px !important;
  margin-left: -22px !important; margin-top: -22px !important;
}
.marker-cluster-medium div {
  background-color: rgba(224, 164, 59, 0.9);
  width: 32px !important; height: 32px !important;
  margin: 6px !important; border-radius: 16px !important;
  color: #26302a; font-weight: 700; font-size: 12px;
}

.marker-cluster-large {
  background-color: rgba(38, 48, 42, 0.15);
  width: 52px !important; height: 52px !important;
  margin-left: -26px !important; margin-top: -26px !important;
}
.marker-cluster-large div {
  background-color: rgba(38, 48, 42, 0.88);
  width: 38px !important; height: 38px !important;
  margin: 7px !important; border-radius: 19px !important;
  color: #fff; font-weight: 800; font-size: 13px;
}

.marker-cluster { background-clip: padding-box; border-radius: 50%; }
.marker-cluster div { text-align: center; display: flex; align-items: center; justify-content: center; }

/* ================================================================
   Phase 32: /rutta/ consumer route planner
   ================================================================ */

/* App shell: fills viewport below the header */
.rutta-app {
  position: relative;
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* Map: full area */
.rutta-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Sidebar: left panel on desktop */
.rutta-sidebar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 340px;
  z-index: 10;
  pointer-events: none;
}

.rutta-overlay, .rutta-panel {
  position: absolute;
  inset: 0;
  background: var(--hds-surface-2);
  overflow-y: auto;
  pointer-events: all;
  box-shadow: 2px 0 16px rgba(0,0,0,.12);
}

/* Step layout */
.rutta-step-header {
  padding: 20px 20px 0;
}
.rutta-back-btn {
  background: none; border: none; color: var(--hds-accent); font-size: 13px;
  font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 8px;
}
.rutta-step-title {
  font-size: 18px; font-weight: 800; color: var(--hds-ink);
  margin: 0 0 4px; letter-spacing: -0.01em;
}
.rutta-step-sub { font-size: 13px; color: #666; margin: 0 0 16px; }
.rutta-step-body { padding: 12px 20px 24px; }

/* Mode buttons */
.rutta-mode-group { display: flex; gap: 10px; margin-bottom: 20px; }
.rutta-mode-btn {
  flex: 1; padding: 12px 8px; border: 2px solid var(--hds-line);
  background: var(--hds-surface); border-radius: var(--hds-r);
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.rutta-mode-btn.active { border-color: var(--hds-accent); background: var(--hds-accent-tint); }
.rutta-mode-btn:hover { border-color: var(--hds-accent); }

/* Start group */
.rutta-start-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.rutta-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; }
.rutta-geo-btn {
  padding: 11px 16px; background: var(--hds-surface); border: 1.5px solid var(--hds-line);
  border-radius: var(--hds-r); font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; text-align: left; transition: border-color .15s;
}
.rutta-geo-btn:hover { border-color: var(--hds-accent); }
.rutta-or-divider { font-size: 11px; color: #aaa; text-align: center; letter-spacing: .05em; }
.rutta-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--hds-line);
  border-radius: var(--hds-r-sm); background: var(--hds-surface); font-size: 14px;
  font-family: inherit; color: var(--hds-ink);
}
.rutta-select:focus { outline: none; border-color: var(--hds-accent); }
.rutta-start-label { font-size: 13px; color: var(--hds-accent); margin-bottom: 4px; }
.rutta-next-btn { width: 100%; margin-top: 8px; }

/* Interest chips + radius */
.rutta-radius-row { margin: 16px 0 8px; }
.rutta-radius-slider { width: 100%; margin-top: 6px; accent-color: var(--hds-accent); }

/* Panel (step 3) */
.rutta-panel { display: flex; flex-direction: column; }
.rutta-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--hds-line-2);
  flex-shrink: 0;
}
.rutta-panel-title { font-size: 15px; font-weight: 800; color: var(--hds-ink); }
.rutta-stop-list { flex: 1; overflow-y: auto; padding: 10px 12px; min-height: 80px; }
.rutta-empty-stops { font-size: 13px; color: #888; line-height: 1.5; text-align: center; padding: 20px 0; }
.rutta-stop-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 10px; margin-bottom: 6px;
  background: var(--hds-surface); border: 1px solid var(--hds-line-2);
  border-radius: var(--hds-r-sm);
}
.rutta-stop-badge {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--hds-accent); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rutta-stop-name { font-size: 13px; font-weight: 600; flex: 1; line-height: 1.3; }
.rutta-stop-ctrls { display: flex; gap: 2px; flex-shrink: 0; }
.rutta-ctrl {
  width: 26px; height: 26px; border: 1px solid var(--hds-line);
  background: var(--hds-surface); border-radius: 4px;
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .1s;
}
.rutta-ctrl:hover { border-color: var(--hds-accent); }
.rutta-ctrl-rm { border-color: transparent; color: #c0392b; }
.rutta-ctrl-rm:hover { border-color: #c0392b; background: #fdf3f3; }
.rutta-ctrl-ph { visibility: hidden; }
.rutta-leg-dist { font-size: 11px; color: #888; text-align: center; padding: 2px 0; }

.rutta-actions { padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.rutta-btn-ghost {
  background: var(--hds-surface) !important; color: var(--hds-ink) !important;
  border: 1.5px solid var(--hds-line) !important;
}
.rutta-btn-ghost:hover { border-color: var(--hds-accent) !important; color: var(--hds-accent) !important; }
.rutta-stats { background: var(--hds-surface); border-radius: var(--hds-r-sm); padding: 10px 12px; font-size: 13px; }
.rutta-stats-total { font-weight: 700; margin-bottom: 6px; font-size: 14px; color: var(--hds-ink); }
.rutta-stats-leg { color: #666; font-size: 12px; margin-top: 2px; }
.rutta-fallback-notice { color: #8a6d1a; font-size: 12px; font-style: italic; }
.rutta-hint { font-size: 12px; color: var(--hds-accent); text-align: center; min-height: 16px; }

/* Stop pin */
.rutta-stop-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hds-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.rutta-start-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hds-ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* Mobile: sidebar slides up from bottom */
@media (max-width: 768px) {
  .rutta-app { height: calc(100vh - 56px); }
  .rutta-sidebar {
    width: 100%; left: 0; top: auto;
    height: 52vh; bottom: 0;
    border-top: 1px solid var(--hds-line);
    border-radius: var(--hds-r-lg) var(--hds-r-lg) 0 0;
  }
  .rutta-map { bottom: 52vh; }
  .rutta-overlay, .rutta-panel { border-radius: var(--hds-r-lg) var(--hds-r-lg) 0 0; }
}

/* ================================================================
   Phase 86 — Mobile Responsiveness
   Target: 375px+ (phone), 768px+ (tablet for admin)
   ================================================================ */

/* --- Global: form input touch targets & iOS zoom prevention --- */
.hds-form-input,
.hds-form-select,
.hds-form-textarea {
  min-height: 44px;
}

@media (max-width: 768px) {
  /* Prevent iOS Safari auto-zoom on focus (requires font-size >= 16px) */
  input, select, textarea,
  .hds-form-input,
  .hds-form-select,
  .hds-form-textarea {
    font-size: 16px !important;
  }

  /* Form rows go single-column */
  .hds-form-row {
    flex-direction: column;
    gap: 0;
  }

  /* Konto action button rows wrap */
  .hds-konto-actions {
    flex-wrap: wrap;
  }
  .hds-konto-actions button {
    flex: 1 1 auto;
  }
}

/* --- Konto bar stacks on narrow screens --- */
@media (max-width: 640px) {
  .hds-konto-bar .hds-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .hds-konto-bar-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
  }
  /* Notification panel: cap width on small screens */
  #notif-panel {
    width: min(320px, calc(100vw - 16px));
    right: 0;
  }
}

/* --- Konto tab bar: already overflow-x:auto at 640px; bump touch height --- */
@media (max-width: 768px) {
  .hds-konto-tab,
  .hds-ep-tab,
  .hds-vp-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* --- Tables: horizontal scroll wrappers --- */
@media (max-width: 768px) {
  .hds-entity-table,
  .hds-data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .hds-entity-table thead,
  .hds-entity-table tbody,
  .hds-entity-table tr,
  .hds-data-table thead,
  .hds-data-table tbody,
  .hds-data-table tr {
    display: table-row-group; /* keep as rows */
  }
  .hds-entity-table,
  .hds-data-table {
    display: block;
  }
}

/* --- Map page: tighter on very small screens --- */
@media (max-width: 480px) {
  .hds-karta-map {
    height: 50vh;
    min-height: 260px;
  }
  .hds-karta-filters select,
  .hds-karta-filters input {
    flex: 1 1 100%;
  }
}

/* --- Admin panel: tablet (768px) fixes --- */
@media (max-width: 1024px) {
  .hds-admin-search {
    flex-wrap: wrap;
  }
  .hds-admin-search input,
  .hds-admin-search select {
    flex: 1 1 160px;
  }
  .hds-admin-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  .hds-admin-actions button,
  .hds-admin-actions a {
    font-size: 11px;
    padding: 5px 8px;
  }
  .hds-admin-edit-panel {
    width: 100%;
    max-width: 600px;
  }
}

/* --- Entity profile: sidebar contact card on mobile --- */
@media (max-width: 800px) {
  .hds-ep-sidebar {
    width: 100%;
  }
  .hds-ep-contact-card {
    max-width: 480px;
  }
}

/* --- Lightbox (Phase 81 _epLightbox): close area big enough to tap --- */
@media (max-width: 768px) {
  .hds-ep-map {
    height: 200px;
  }
}

/* --- Route listing filter chips: scroll on mobile --- */
@media (max-width: 600px) {
  .rutter-dist-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .rutter-dist-chips::-webkit-scrollbar { display: none; }
  .rutter-dist-chip { flex-shrink: 0; }
}

/* --- Events page: date/category filter bar and category chips --- */
@media (max-width: 600px) {
  .hds-evt-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .hds-evt-filters select,
  .hds-evt-filters input {
    width: 100%;
  }
  .hds-evt-cat-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hds-evt-cat-chips::-webkit-scrollbar { display: none; }
  .hds-cat-chip { flex-shrink: 0; }
}
