/* Global reset */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  /* JPEG fallback; WebP laddas nedan om webbläsaren stödjer det (~40 KB vs 5 MB PNG) */
  background-image: url("../background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Fredoka", "Nunito", "Ubuntu", "Comic Sans MS", "Chalkboard SE", sans-serif;
  color: #3d3d3d;
  -webkit-font-smoothing: antialiased;
}

@supports (background-image: url("data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+QBGBAQAAD3D+QBAB")) {
  body {
    background-image: url("../background.webp");
  }
}

/* ─── Claymorphism: delade variabler ─── */
:root {
  --clay-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --clay-transition: transform 0.3s var(--clay-bounce), box-shadow 0.3s ease, filter 0.25s ease;
}

/* Bakgrundslager (behålls för ev. framtida effekter) */
.scene-sky {
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(6px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes drift-bubble {
  0% { transform: translateY(0) scale(1); opacity: 0.55; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 0.75; }
  100% { transform: translateY(-40px) scale(0.95); opacity: 0.4; }
}

@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 6s ease-in-out infinite; }
.animate-bob { animation: bob 3s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 2.5s ease-in-out infinite; }
.animate-drift { animation: drift-bubble 5s ease-in-out infinite; }
.animate-sparkle { animation: sparkle 2s ease-in-out infinite; }

.bg-bubble {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.15) 40%, rgba(173,216,230,0.25) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  pointer-events: none;
}

.pop-bubble {
  position: fixed;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(186,230,253,0.5) 60%, rgba(147,197,253,0.2) 100%);
  border: 2px solid rgba(255,255,255,0.8);
  animation: pop 0.5s ease-out forwards;
}

/* ─── Lekplats-kort (Claymorphism) ─── */
.playground-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 1.35rem 1.5rem;
  border-radius: 32px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 55%, #eef2f8 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 1),
    inset 0 -6px 16px rgba(120, 140, 170, 0.07),
    0 14px 36px rgba(70, 90, 130, 0.13),
    0 4px 10px rgba(70, 90, 130, 0.08);
  transition: var(--clay-transition);
  overflow: visible;
}

.playground-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8%;
  right: 8%;
  height: 28%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.playground-card:hover {
  transform: scale(1.05);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 1),
    inset 0 -6px 16px rgba(120, 140, 170, 0.06),
    0 20px 48px rgba(70, 90, 130, 0.16),
    0 8px 16px rgba(70, 90, 130, 0.1);
}

.playground-card--featured {
  background: linear-gradient(160deg, #fffef8 0%, #fff6e8 50%, #ffefd5 100%);
  border-color: rgba(255, 220, 180, 0.9);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 1),
    inset 0 -6px 16px rgba(200, 150, 80, 0.08),
    0 14px 36px rgba(180, 120, 60, 0.14),
    0 4px 10px rgba(180, 120, 60, 0.08);
}

.playground-card__title {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.35;
  margin: 0;
}

.playground-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e53e7a;
  margin: 0.35rem 0 0.75rem;
}

.playground-card__desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4a5568;
  margin: 0 0 0.85rem;
}

/* ─── Filterknappar (Claymorphism-bubblor) ─── */
.filter-btn,
.jelly-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
  padding: 0.85rem 0.6rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: var(--clay-transition);
  user-select: none;
  font-family: inherit;
  font-weight: 700;
}

.filter-btn::before,
.jelly-btn::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 10%;
  right: 10%;
  height: 38%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.filter-btn:hover,
.jelly-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.04);
  opacity: 1;
}

.filter-btn:active,
.jelly-btn:active {
  transform: scale(0.97);
}

/* Inaktiv knapp – tydligt nedtonad */
.filter-btn:not(.is-active),
.jelly-btn:not(.is-active) {
  opacity: 0.62;
}

/* Aktiv knapp – nedtryckt, mörk ram, hög kontrast */
.filter-btn.is-active,
.jelly-btn.is-active {
  opacity: 1;
  transform: translateY(2px) scale(0.98);
  border: 2px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 2px 6px rgba(0, 0, 0, 0.10),
    0 1px 3px rgba(0, 0, 0, 0.10);
  filter: brightness(0.92) saturate(1.3);
}

/* Dölj glansreflexen på aktiva knappar så de inte ser uppspringande ut */
.filter-btn.is-active::before,
.jelly-btn.is-active::before {
  opacity: 0;
}

.filter-btn input,
.jelly-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Pastellblå – Inhägnat */
.filter-btn--blue,
.jelly-blue {
  background: linear-gradient(165deg, #d4ecff 0%, #a2d2ff 45%, #7eb8f5 100%);
  color: #1a4a7a;
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.85),
    inset 0 -5px 12px rgba(50, 100, 160, 0.12),
    0 8px 22px rgba(100, 160, 220, 0.35);
}

/* Pastellgrön – Toalett */
.filter-btn--green,
.jelly-green {
  background: linear-gradient(165deg, #d8f8e0 0%, #b2f2bb 45%, #7dd99a 100%);
  color: #1a5c32;
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.85),
    inset 0 -5px 12px rgba(40, 120, 70, 0.1),
    0 8px 22px rgba(80, 180, 120, 0.32);
}

/* Pastellgul – Fika */
.filter-btn--yellow,
.jelly-yellow {
  background: linear-gradient(165deg, #fff0cc 0%, #ffd8a8 45%, #f5c26b 100%);
  color: #7a4a10;
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.9),
    inset 0 -5px 12px rgba(160, 110, 30, 0.1),
    0 8px 22px rgba(220, 170, 60, 0.35);
}

/* Pastelllila – Parkering */
.filter-btn--purple,
.jelly-purple {
  background: linear-gradient(165deg, #f0e0ff 0%, #e0c3fc 45%, #c9a0f0 100%);
  color: #4a2870;
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.85),
    inset 0 -5px 12px rgba(100, 50, 140, 0.1),
    0 8px 22px rgba(160, 100, 210, 0.32);
}

/* ─── Amenity-taggar (mini clay-pills) ─── */
.chip-clay {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.05),
    0 3px 8px rgba(0, 0, 0, 0.08);
}

.chip-inhagnat { background: linear-gradient(165deg, #d4ecff, #a2d2ff); color: #1a4a7a; }
.chip-toalett  { background: linear-gradient(165deg, #d8f8e0, #b2f2bb); color: #1a5c32; }
.chip-fika     { background: linear-gradient(165deg, #fff0cc, #ffd8a8); color: #7a4a10; }
.chip-parkering { background: linear-gradient(165deg, #f0e0ff, #e0c3fc); color: #4a2870; }

/* ─── Kart-knappar på korten ─── */
.btn-fun {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: var(--clay-transition);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.35),
    inset 0 -4px 8px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-fun:hover {
  transform: scale(1.05);
  filter: brightness(1.06);
}

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

.btn-adventure {
  background: linear-gradient(165deg, #ffb088 0%, #ff7043 50%, #e64a19 100%);
}

.btn-teal {
  background: linear-gradient(165deg, #6ee7de 0%, #4da1a9 50%, #2d8a8f 100%);
}

.btn-orange {
  background: linear-gradient(165deg, #ffc978 0%, #d9773e 50%, #c45a1a 100%);
}

/* ─── Betyg & recensioner ─── */
.rating-clay {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  background: linear-gradient(165deg, #fff8e1, #ffe082);
  color: #b8860b;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.9),
    0 3px 8px rgba(200, 160, 40, 0.2);
  white-space: nowrap;
}

.rating-clay__count {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: -0.01em;
}

.review-bubble {
  background: linear-gradient(160deg, #ffffff, #f5f7fa);
  border-radius: 16px 16px 16px 4px;
  font-style: italic;
  font-size: 0.75rem;
  color: #5a6578;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 4px rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(80, 100, 140, 0.08);
}

/* Filterfält – transparent så bakgrunden syns */
#filter-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Välkomst-/info-paneler i clay-stil */
.panel-clay {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(247, 249, 252, 0.9));
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 12px rgba(120, 140, 170, 0.06),
    0 12px 32px rgba(70, 90, 130, 0.12);
  transition: var(--clay-transition);
}

.panel-clay:hover {
  transform: scale(1.02);
}

/* ─── Välkomstkortets lekfulla badges ─── */
.welcome-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px rgba(0, 0, 0, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s var(--clay-bounce), box-shadow 0.25s ease;
  white-space: nowrap;
}

.welcome-badge:hover {
  transform: rotate(0deg) scale(1.07) !important;
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 1),
    inset 0 -3px 8px rgba(0, 0, 0, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.14);
}

/* Gyllene stjärnbadge – lite bakåtlutad */
.welcome-badge--star {
  background: linear-gradient(165deg, #fffde7 0%, #fff59d 45%, #fdd835 100%);
  color: #6d4c00;
  transform: rotate(-2.5deg);
}

/* Varm kaffebruna badge – lite framåtlutad */
.welcome-badge--coffee {
  background: linear-gradient(165deg, #fff8e1 0%, #ffcc80 45%, #ffa726 100%);
  color: #5d2d00;
  transform: rotate(1.8deg);
}

/* Lila bilbadge – svagt bakåtlutad */
.welcome-badge--car {
  background: linear-gradient(165deg, #f3e5f5 0%, #e1bee7 45%, #ce93d8 100%);
  color: #4a1070;
  transform: rotate(-1.2deg);
}

/* Varm uppmaningsruta längst ned i välkomstkortet */
.welcome-cta {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border-radius: 20px;
  border: 2px solid rgba(255, 200, 120, 0.5);
  padding: 1rem 1.25rem;
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.9),
    0 4px 16px rgba(200, 140, 40, 0.12);
  color: #92400e;
}

.interactive-pop {
  position: relative;
}

.title-gradient span:nth-child(1) { color: #ec407a; }
.title-gradient span:nth-child(2) { color: #66bb6a; }
.title-gradient span:nth-child(3) { color: #42a5f5; }

.select-cute {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

@media (max-width: 640px) {
  .filter-btn,
  .jelly-btn {
    padding: 0.65rem 0.4rem;
    border-radius: 20px;
  }
  .filter-btn .jelly-icon,
  .jelly-btn .jelly-icon {
    font-size: 1.25rem;
  }
  .playground-card {
    padding: 1.1rem 1.15rem;
    border-radius: 28px;
  }
}

/* GPS "Hitta nära mig"-knapp */
.btn-gps {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  background: linear-gradient(180deg, #ffd6e7 0%, #ff85b3 50%, #ff4d8d 100%);
  box-shadow:
    inset 0 3px 8px rgba(255,255,255,0.65),
    inset 0 -4px 8px rgba(180,0,90,0.15),
    0 5px 16px rgba(255,77,141,0.4);
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  text-shadow: 0 1px 2px rgba(150,0,60,0.2);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

.btn-gps::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 38%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.btn-gps:hover:not(:disabled) {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.btn-gps:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
}

.btn-gps:focus-visible {
  outline: 3px solid rgba(255,77,141,0.5);
  outline-offset: 3px;
}

.btn-gps.is-active {
  background: linear-gradient(180deg, #c8ffe6 0%, #4dd08f 50%, #29a86a 100%);
  box-shadow:
    inset 0 3px 8px rgba(255,255,255,0.65),
    inset 0 -4px 8px rgba(0,100,50,0.15),
    0 5px 16px rgba(41,168,106,0.45);
  text-shadow: 0 1px 2px rgba(0,60,20,0.2);
}

.btn-gps:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Avståndstagg på lekplatskorten */
.distance-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #1b5e20;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.7rem;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  border: 1px solid rgba(76,175,80,0.3);
  white-space: nowrap;
}

/* ─── Sökhero: sökfält + GPS-knapp ─── */
.search-hero {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 560px;
}

/* Clay-pill som omsluter input-fältet */
.search-input-clay {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(160deg, #ffffff 0%, #f5f7fc 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 1),
    inset 0 -4px 10px rgba(120, 140, 170, 0.08),
    0 8px 28px rgba(70, 90, 130, 0.15);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

/* Glasreflexion längst upp */
.search-input-clay::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 12%;
  right: 12%;
  height: 34%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.search-input-clay:focus-within {
  transform: translateY(-1px);
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 1),
    inset 0 -4px 10px rgba(120, 140, 170, 0.06),
    0 10px 36px rgba(70, 120, 220, 0.22),
    0 0 0 3px rgba(100, 160, 255, 0.22);
}

.search-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  user-select: none;
}

.search-field {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
  min-width: 0;
  caret-color: #5a9ef5;
}

.search-field::placeholder {
  color: #b8c7d9;
  font-weight: 500;
}

.search-clear {
  background: rgba(144, 164, 174, 0.18);
  border: none;
  padding: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.72rem;
  color: #90a4ae;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-clear:hover {
  background: rgba(144, 164, 174, 0.35);
  color: #546e7a;
}

/* ─── Autocomplete-dropdown ─── */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 300;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 1),
    0 20px 48px rgba(70, 90, 130, 0.18),
    0 6px 16px rgba(70, 90, 130, 0.1);
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d6e5 transparent;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.1s ease, transform 0.1s var(--clay-bounce);
  user-select: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.is-highlighted {
  background: linear-gradient(135deg, #eef4ff 0%, #e8f0fe 100%);
  transform: translateX(3px);
}

.search-dropdown-item__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.search-dropdown-item__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.search-dropdown-item__sub {
  font-size: 0.72rem;
  color: #718096;
  font-weight: 500;
  line-height: 1.3;
}

.search-dropdown-empty {
  padding: 0.85rem 0.8rem;
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
  font-weight: 500;
}

.search-dropdown-empty em {
  font-style: normal;
  color: #718096;
}

/* Mobil: stapla vertikalt */
@media (max-width: 640px) {
  .search-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .search-wrapper {
    max-width: 100%;
  }
  #gps-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── GPS-äventyrsknappars footer ─── */
.gps-actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.gps-action-btn {
  max-width: 320px;
  width: 100%;
}

/* GPS-felmodal */
@keyframes gps-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gps-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: gps-fade-in 0.2s ease;
}


.modal-card {
  background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%);
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 1),
    inset 0 -4px 12px rgba(120, 140, 170, 0.06),
    0 24px 64px rgba(70, 90, 130, 0.18);
  animation: gps-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── "Bjud på en fika"-knapp ─── */
.btn-fika {
  position: fixed;
  top: 1.1rem;
  right: 1.5rem;
  z-index: 400;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;

  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #5c2d00;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);

  background: linear-gradient(165deg, #fff8e1 0%, #ffd580 45%, #c8940a 100%);
  box-shadow:
    inset 0 3px 10px rgba(255, 255, 255, 0.85),
    inset 0 -5px 12px rgba(160, 100, 10, 0.15),
    0 8px 24px rgba(200, 148, 10, 0.45);

  transition: transform 0.25s var(--clay-bounce), box-shadow 0.2s ease, filter 0.2s ease;
}

/* Glasreflexion */
.btn-fika::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 12%;
  right: 12%;
  height: 38%;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.btn-fika:hover {
  transform: scale(1.07);
  filter: brightness(1.05);
}

.btn-fika:active {
  transform: scale(0.96) translateY(1px);
}

/* Mobil: klistrad i botten, centrerad */
@media (max-width: 640px) {
  body {
    padding-bottom: 100px;
  }

  .btn-fika {
    top: auto;
    right: auto;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    padding: 0.75rem 1.6rem;
    box-shadow:
      inset 0 3px 10px rgba(255, 255, 255, 0.85),
      inset 0 -5px 12px rgba(160, 100, 10, 0.15),
      0 6px 20px rgba(200, 148, 10, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .btn-fika:hover {
    transform: translateX(-50%) scale(1.05);
  }

  .btn-fika:active {
    transform: translateX(-50%) scale(0.96) translateY(1px);
  }
}
