/* ================================================================
   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. */
  --hdp-ink:          #16241c;   /* deep pine, headings + dark surfaces */
  --hdp-accent:       #1f6f5c;   /* teal-pine, primary CTAs + active states */
  --hdp-accent-tint:  #e7f2ee;   /* accent hover wash */
  --hdp-accent-deep:  #17564760; /* accent shadow tint (rgba-ish) */
  --hdp-gold:         #e0a43b;   /* warm amber, highlights + featured */
  --hdp-gold-tint:    #fbf1dd;   /* amber wash */
  --hdp-surface:      #f5f3ee;   /* warm off-white, section alternates */
  --hdp-surface-2:    #fbfaf7;   /* cards, panels */
  --hdp-line:         #e6e2d9;   /* borders */
  --hdp-line-2:       #eeebe3;   /* softer borders, tab rails */
  --hdp-danger:       #c0392b;   /* form errors */
  --hdp-danger-2:     #c0392b;   /* destructive actions */
  --hdp-ok-bg:        #e6f4ec;   /* success background */
  --hdp-ok-ink:       #1f6f5c;   /* success text */
  /* radius + shadow scale (Phase 28) */
  --hdp-r-sm:  6px;
  --hdp-r:     10px;
  --hdp-r-lg:  16px;
  --hdp-r-pill:999px;
  --hdp-shadow:    0 2px 8px rgba(22,36,28,.06);
  --hdp-shadow-lg: 0 10px 30px rgba(22,36,28,.11);
}

/* ============================================================
   Hitta Din Piteå - 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
   ============================================================ */
.hdp-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
   ============================================================ */
.hdp-main-header {
  background: #232323;
  position: relative; /* needed for mobile nav dropdown */
}

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

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

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

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

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

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

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

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

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

.hdp-main-nav li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #ccc;
  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;
}

/* "Hitta Din" label - appears above nav text on hover/active */
.hdp-main-nav li a::before {
  content: "Hitta Din";
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hdp-accent);
  line-height: 1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: max-height 0.2s ease, opacity 0.15s ease, margin-bottom 0.2s ease;
}

.hdp-main-nav li a:hover::before {
  max-height: 14px;
  opacity: 1;
  margin-bottom: 3px;
}

.hdp-main-nav li.active a::before {
  max-height: 14px;
  opacity: 1;
  margin-bottom: 3px;
  color: rgba(255,255,255,0.75);
}

.hdp-main-nav li a:hover {
  color: #fff;
  border-bottom-color: var(--hdp-accent);
  text-decoration: none;
}

.hdp-main-nav li.active a {
  color: #fff;
  background: var(--hdp-accent);
  border-bottom-color: var(--hdp-accent); /* visually connects to the pink sub-nav below */
}

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

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

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

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

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

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

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

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

.hdp-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(--hdp-accent);
  pointer-events: none;
  z-index: 201;
}

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

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

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

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

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

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

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

.hdp-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%);
}

.hdp-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);
}

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

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

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

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hdp-route-stop-num {
  width: 28px;
  height: 28px;
  background: var(--hdp-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;
}

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================
   Icon Link Cards
   ============================================================ */
.hdp-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(--hdp-accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

.hdp-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)
   ============================================================ */
.hdp-tab-strip {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  overflow-x: auto;
}

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.hdp-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(--hdp-accent) transparent transparent;
}

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

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

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

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

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

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

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

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

/* Map tab strip - matches hdp-tab-strip style but uses buttons */
.hdp-map-tabs {
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  overflow-x: auto;
  display: flex;
  align-items: stretch;
  padding: 0 15px;
}
.hdp-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;
}
.hdp-map-tabs button:hover {
  color: var(--hdp-accent);
  border-bottom-color: var(--hdp-accent);
}
.hdp-map-tabs button.active {
  color: var(--hdp-accent);
  border-bottom-color: var(--hdp-accent);
}

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

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

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

.hdp-contact-cta {
  display: block;
  background: var(--hdp-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;
}
.hdp-contact-cta:hover { background: var(--hdp-accent); text-decoration: none; color: #fff; }

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

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

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

/* ============================================================
   Hamburger toggle button
   ============================================================ */
.hdp-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;
}
.hdp-nav-toggle:hover { border-color: var(--hdp-accent); }
.hdp-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 .hdp-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hdp-nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .hdp-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Inline type badge (inside card header)
   ============================================================ */
.hdp-type-badge--inline {
  display: inline-block;
  background: var(--hdp-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
   ============================================================ */
.hdp-profile-place-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}
.hdp-profile-place-link:hover {
  text-decoration-color: #fff;
  color: #fff;
}
/* In contact sidebar, place links inherit sidebar link styles */
.hdp-contact-value .hdp-profile-place-link {
  color: #005b9a;
}
.hdp-contact-value .hdp-profile-place-link:hover {
  text-decoration: underline;
}

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

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

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

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

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

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

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

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

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

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

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

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

.hdp-success-back {
  display: inline-block;
  background: var(--hdp-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)
   ============================================================ */
.hdp-profile-social {
  margin-top: 32px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================
   Cycling route cards and badges
   ============================================================ */
.hdp-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;
}
.hdp-cycle-badge--city { background: var(--hdp-accent); }
.hdp-cycle-badge--tour { background: #2d7d46; }
.hdp-cycle-badge--mtb  { background: #c47a00; }

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

.hdp-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;
}

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

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

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

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

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

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

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

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

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

/* ============================================================
   Map gesture hint (two-finger scroll)
   ============================================================ */
.hdp-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;
}

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

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

.hdp-nav-drop { position: relative; }
.hdp-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%;
}
.hdp-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;
}
.hdp-nav-drop:hover > .hdp-nav-drop-btn,
.hdp-nav-drop.open > .hdp-nav-drop-btn,
.hdp-nav-drop.active > .hdp-nav-drop-btn { color: var(--hdp-gold); }

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

.hdp-nav-karta a {
  display: flex; align-items: center; height: 100%;
  background: var(--hdp-accent); color: #fff !important;
  font-size: 14px; font-weight: 700; padding: 0 18px !important;
}
.hdp-nav-karta a:hover { filter: brightness(1.15); text-decoration: none; }
.hdp-nav-karta a::before { display: none !important; }

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

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

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

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

/* Mobile: dropdowns become accordion inside the existing nav-open panel */
@media (max-width: 991px) {
  .hdp-nav-search { display: none; }
  .hdp-nav-drop { width: 100%; }
  .hdp-nav-drop-btn { width: 100%; justify-content: space-between; padding: 14px 20px; }
  .hdp-nav-menu, .hdp-nav-drop[data-nav="upplev"] .hdp-nav-menu {
    position: static; display: none; min-width: 0; box-shadow: none;
    border: none; border-top: 2px solid var(--hdp-accent); border-radius: 0;
  }
  .hdp-nav-drop.open .hdp-nav-menu { display: block; }
  .hdp-nav-drop[data-nav="upplev"].open .hdp-nav-menu { display: grid; }
  .hdp-nav-drop:hover .hdp-nav-menu { }
  .hdp-nav-karta a { padding: 14px 20px !important; height: auto; }
  .hdp-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.
   ================================================================ */
.hdp-film-road {
  position: relative; height: 36px; border-radius: 18px;
  background: linear-gradient(#46464b, #3a3a3e);
  overflow: hidden; cursor: default;
}
.hdp-film-lane {
  position: absolute; top: 50%; left: 2%; right: 2%; height: 0;
  border-top: 3px dashed rgba(255,255,255,.7); transform: translateY(-50%);
}
.hdp-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(--hdp-gold), var(--hdp-gold) 6px, #fff 6px, #fff 12px);
}
.hdp-film-seg:hover, .hdp-film-seg.active { opacity: 1; box-shadow: 0 0 0 2px #fff inset; }
.hdp-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 */
.hdp-route-turn { counter-increment: turn; display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid var(--hdp-gold); background: var(--hdp-surface-2); padding: 12px 16px; margin-bottom: 8px; }
.hdp-route-turn .hdp-turn-no::before { content: counter(turn); font-weight: 800; color: var(--hdp-gold);
  font-size: 15px; min-width: 20px; display: inline-block; }
.hdp-route-turn img { width: 110px; border-radius: 4px; flex: none; }
.hdp-turn-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--hdp-gold); color: #fff; padding: 2px 7px; border-radius: 9px; }

/* 360-photo badge */
.hdp-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; }
.hdp-360-badge:hover { filter: brightness(1.25); }

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

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

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

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

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

/* ================================================================
   Phase 28: unified rounded button system. Base geometry + soft hover;
   inline/utility bg (gold, ghost) still overrides colour where set.
   ================================================================ */
.hdp-cta-button {
  display: inline-block; background: var(--hdp-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(--hdp-r); box-shadow: var(--hdp-shadow);
  transition: filter .15s, transform .1s, box-shadow .15s;
}
.hdp-cta-button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: var(--hdp-shadow-lg); text-decoration: none; }
.hdp-cta-button:active { transform: translateY(0); }

/* Nav login + karta + trip tray: rounded to match */
.hdp-nav-login, .hdp-nav-trip { border-radius: var(--hdp-r) !important; }
.hdp-nav-karta a { border-radius: var(--hdp-r); }
.hdp-nav-menu { border-radius: 0 0 var(--hdp-r) var(--hdp-r); overflow: hidden; }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --- Nav Utforska button --- */
.hdp-nav-all { display: flex; align-items: stretch; }
.hdp-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(--hdp-r);
  white-space: nowrap;
  margin: auto 0 auto 4px;
  transition: border-color .15s, color .15s;
}
.hdp-nav-all-btn::after { content: ' ☰'; }
.hdp-nav-all-btn:hover { border-color: var(--hdp-accent); color: var(--hdp-gold); }

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

@media (max-width: 640px) {
  .hdp-nav-ov-body { grid-template-columns: 1fr; }
  .hdp-nav-ov-col { border-right: none; border-bottom: 1px solid var(--hdp-line-2); padding: 20px 18px; }
  .hdp-nav-ov-col:last-child { border-bottom: none; }
  .hdp-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 */
.hdp-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(--hdp-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(--hdp-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(--hdp-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(--hdp-line);
  background: var(--hdp-surface); border-radius: var(--hdp-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(--hdp-accent); background: var(--hdp-accent-tint); }
.rutta-mode-btn:hover { border-color: var(--hdp-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(--hdp-surface); border: 1.5px solid var(--hdp-line);
  border-radius: var(--hdp-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(--hdp-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(--hdp-line);
  border-radius: var(--hdp-r-sm); background: var(--hdp-surface); font-size: 14px;
  font-family: inherit; color: var(--hdp-ink);
}
.rutta-select:focus { outline: none; border-color: var(--hdp-accent); }
.rutta-start-label { font-size: 13px; color: var(--hdp-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(--hdp-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(--hdp-line-2);
  flex-shrink: 0;
}
.rutta-panel-title { font-size: 15px; font-weight: 800; color: var(--hdp-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(--hdp-surface); border: 1px solid var(--hdp-line-2);
  border-radius: var(--hdp-r-sm);
}
.rutta-stop-badge {
  min-width: 24px; height: 24px; border-radius: 50%;
  background: var(--hdp-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(--hdp-line);
  background: var(--hdp-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(--hdp-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(--hdp-surface) !important; color: var(--hdp-ink) !important;
  border: 1.5px solid var(--hdp-line) !important;
}
.rutta-btn-ghost:hover { border-color: var(--hdp-accent) !important; color: var(--hdp-accent) !important; }
.rutta-stats { background: var(--hdp-surface); border-radius: var(--hdp-r-sm); padding: 10px 12px; font-size: 13px; }
.rutta-stats-total { font-weight: 700; margin-bottom: 6px; font-size: 14px; color: var(--hdp-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(--hdp-accent); text-align: center; min-height: 16px; }

/* Stop pin */
.rutta-stop-pin {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hdp-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(--hdp-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(--hdp-line);
    border-radius: var(--hdp-r-lg) var(--hdp-r-lg) 0 0;
  }
  .rutta-map { bottom: 52vh; }
  .rutta-overlay, .rutta-panel { border-radius: var(--hdp-r-lg) var(--hdp-r-lg) 0 0; }
}

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

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

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

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

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

/* --- Konto bar stacks on narrow screens --- */
@media (max-width: 640px) {
  .hdp-konto-bar .hdp-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .hdp-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) {
  .hdp-konto-tab,
  .hdp-ep-tab,
  .hdp-vp-tab {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

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

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

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

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

/* --- Lightbox (Phase 81 _epLightbox): close area big enough to tap --- */
@media (max-width: 768px) {
  .hdp-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) {
  .hdp-evt-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .hdp-evt-filters select,
  .hdp-evt-filters input {
    width: 100%;
  }
  .hdp-evt-cat-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hdp-evt-cat-chips::-webkit-scrollbar { display: none; }
  .hdp-cat-chip { flex-shrink: 0; }
}
