/* ==========================================================================
   Sandvolleyball Norge -- design tokens ("Dagslys")
   White paper, near-black ink, and a single amber accent taken from the ball
   in the logo. One typeface across every role -- the restraint is the design.

   The token *names* below are historical (they described the old sand/coral
   palette) and are kept only so this restyle didn't have to touch every rule
   in the file. Read them by role, not by name:
     sand-50   = white surfaces, and text sitting on a dark fill
     sand-100  = faintly tinted surface (view toggle, dropzone)
     sand-300  = hairlines and borders
     ocean-900 = ink / ocean-900-60 = muted ink
     sky-500   = interactive ink (links, focus, selected chips)
     coral-500 = amber, fills and marks only -- too light for text on white
     coral-600 = deep amber, the text-safe version of the accent (4.8:1)
   ========================================================================== */
:root {
  --sand-50: #ffffff;
  --sand-100: #f4f5f6;
  --sand-300: #e4e6e9;
  --ocean-900: #111214;
  --ocean-900-60: #737780;
  --sky-500: #111214;
  --coral-500: #f0a202;
  --coral-600: #a06608;
  --moss-600: #2e7d4f;
  --rust-600: #b4432a;

  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;

  --radius: 14px;
  --shadow-card: 0 6px 20px rgba(17, 18, 20, 0.08);
  --shadow-float: 0 2px 10px rgba(17, 18, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-body);
  color: var(--ocean-900);
  background: var(--sand-50);
}

a {
  color: var(--sky-500);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2.5px solid var(--sky-500);
  outline-offset: 2px;
}

/* ==========================================================================
   Map view
   ========================================================================== */
#map-view,
#map {
  height: 100%;
  width: 100%;
}

/* Tiles get a light, slightly desaturated grade so the map sits quietly
   inside a white page and the amber pins stay the loudest thing on it. The
   old warm sepia grade belonged to the sand palette and fought this one. */
.leaflet-tile-pane {
  filter: saturate(0.82) brightness(1.04);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Leaflet's own content margin is replaced with padding so the name doesn't
   sit flush against the rounded wrapper. The wider right side leaves room
   for Leaflet's absolutely-positioned close button in the top corner. */
.leaflet-popup-content {
  margin: 0;
  padding: 12px 26px 12px 18px;
  width: auto !important;
}

/* Custom marker: the logomark itself -- an amber disc with a single seam --
   instead of Leaflet's default pin. Same SVG as .brand-mark, so the pin a
   visitor taps on the map is literally the logo. */
.volley-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f0a202 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 6.4c4.8 1.6 8.2 5.6 9.2 10.9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
  border: 2px solid var(--sand-50);
  box-shadow: var(--shadow-float);
}

.volley-marker.volley-marker--picker {
  width: 30px;
  height: 30px;
  position: relative;
}

.volley-marker--picker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--coral-500);
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .volley-marker--picker::after {
    animation: none;
    opacity: 0.5;
  }
}

/* ---- top bar ------------------------------------------------------------ */
.topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  box-shadow: var(--shadow-float);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f0a202 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 6.4c4.8 1.6 8.2 5.6 9.2 10.9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sand {
  color: var(--ocean-900);
}

.brand-coral {
  color: var(--coral-600);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.stat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ocean-900-60);
  white-space: nowrap;
}

.signup-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-500);
  text-decoration: none;
  white-space: nowrap;
}

.signup-link:hover {
  text-decoration: underline;
}

.login-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-900-60);
  text-decoration: none;
  white-space: nowrap;
}

.login-link:hover {
  text-decoration: underline;
}

.auth-status {
  font-size: 13px;
  color: var(--ocean-900-60);
  white-space: nowrap;
}

.logout-link {
  color: var(--sky-500);
  font-weight: 600;
  text-decoration: none;
}

.logout-link:hover {
  text-decoration: underline;
}

/* ---- floating add-venue button ------------------------------------------ */
.fab {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--ocean-900);
  color: var(--sand-50);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* The `display: flex` above beats the browser's default `[hidden] { display:
   none }` UA rule -- toggling the `hidden` property in app.js (placement
   mode) would otherwise leave the button laid out and visible. */
.fab[hidden] {
  display: none;
}

.fab:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 18, 20, 0.14);
}

.fab-icon {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .fab {
    transition: none;
  }
}

.map-status {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 6px 16px;
  background: var(--sand-50);
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ocean-900-60);
  box-shadow: var(--shadow-float);
}

/* ---- add-venue placement mode: cancel button -----------------------------
   Floats top-right at the same height as the view-toggle (top: 78px, opposite
   corner) -- free real estate now that the locate button moved into a
   Leaflet control (see below). Only shown while placing a new venue's pin. */
.placement-cancel-btn {
  position: absolute;
  top: 78px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--sand-300);
  border-radius: 50%;
  background: var(--sand-50);
  color: var(--ocean-900);
  cursor: pointer;
  box-shadow: var(--shadow-float);
}

.placement-cancel-btn[hidden] {
  display: none;
}

/* ---- locate-me button ----------------------------------------------------
   A Leaflet control (bottom-right, see LocateControl in app.js) rather than
   an absolutely-positioned element -- Leaflet stacks it above its own
   attribution text in that corner automatically. Just appearance here. */
.locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--sand-300);
  border-radius: 50%;
  background: var(--sand-50);
  color: var(--ocean-900);
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.locate-btn:hover {
  transform: translateY(-1px);
  color: var(--sky-500);
}

@media (prefers-reduced-motion: reduce) {
  .locate-btn {
    transition: none;
  }
}

/* ==========================================================================
   Marker popup -- deliberately just the venue name; every other detail
   lives on the /bane/{id} detail page it links to.
   ========================================================================== */
/* Scoped to .leaflet-container to outrank Leaflet's own `.leaflet-container a`
   (0,1,1), which otherwise wins on specificity over a bare `.popup-link`
   (0,1,0) and paints the venue name in its default link blue. */
.leaflet-container .popup-link {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ocean-900);
  text-decoration: none;
  white-space: nowrap;
}

.leaflet-container .popup-link:hover {
  color: var(--coral-600);
}

.quality-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--sand-50);
}

.quality-tag--bra {
  background: var(--moss-600);
}

/* Grey, not ink -- the three ratings need to read as a scale (good / ok /
   poor), and a black pill between the green and red one doesn't. */
.quality-tag--ok {
  background: var(--ocean-900-60);
}

.quality-tag--darlig {
  background: var(--rust-600);
}

.quality-tag--unrated {
  background: transparent;
  border: 1.5px dashed var(--sand-300);
  color: var(--ocean-900-60);
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.amenity-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-300);
  color: var(--ocean-900-60);
}

.amenity-pill--active {
  background: var(--sky-500);
  border-color: var(--sky-500);
  color: var(--sand-50);
}

/* ==========================================================================
   List view (default landing page)
   ========================================================================== */
#list-view {
  min-height: 100%;
  background: var(--sand-50);
  padding-bottom: 100px; /* room for the floating FAB */
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--sand-300);
}

.view-toggle {
  display: inline-flex;
  gap: 2px;
  margin: 20px 24px 0;
  padding: 3px;
  background: var(--sand-100);
  border-radius: 999px;
  width: fit-content;
}

.view-toggle-option {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ocean-900-60);
  text-decoration: none;
  border-radius: 999px;
}

.view-toggle-option--active {
  background: var(--sand-50);
  color: var(--ocean-900);
  box-shadow: 0 1px 3px rgba(17, 18, 20, 0.09);
}

/* Same control, but floats over the map canvas instead of sitting in
   normal document flow. */
#map-view .view-toggle {
  position: absolute;
  top: 78px;
  left: 16px;
  z-index: 999;
  margin: 0;
  box-shadow: var(--shadow-float);
}

#map-view .view-toggle-option--active {
  background: #fff;
}

.list-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.list-heading {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ocean-900);
}

.list-subheading {
  font-style: italic;
  color: var(--ocean-900-60);
  margin: 0 0 24px;
}

.venue-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.venue-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.venue-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.venue-card-distance {
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--coral-600);
  min-width: 4.5em;
}

.venue-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.venue-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ocean-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ocean-900-60);
}

.venue-more-link {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-500);
  text-decoration: none;
}

.venue-more-link:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 32px;
}

.pagination-btn {
  padding: 9px 16px;
  font-size: 13.5px;
}

.pagination-btn--disabled {
  opacity: 0.35;
  pointer-events: none;
}

.pagination-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ocean-900-60);
  white-space: nowrap;
}

.locate-card {
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--sand-300);
  border-radius: var(--radius);
}

.locate-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ocean-900);
}

.locate-body {
  color: var(--ocean-900-60);
  margin: 0 0 18px;
  font-size: 14.5px;
}

.locate-fallback {
  text-align: center;
  color: var(--ocean-900-60);
  font-size: 14px;
  margin-top: 16px;
}

/* ==========================================================================
   Detail view (/bane/{id})
   ========================================================================== */
#detail-view {
  height: 100%;
  overflow-y: auto;
  background: var(--sand-50);
}

.detail-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.detail-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ocean-900);
}

.detail-stat {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ocean-900-60);
  margin: 0 0 16px;
}

.detail-club {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--sky-500);
  margin: 0 0 12px;
}

.detail-opening-hours {
  font-size: 13px;
  color: var(--ocean-900-60);
  margin: 0 0 12px;
}

.detail-admin {
  font-size: 13px;
  color: var(--ocean-900-60);
  margin: 16px 0 0;
}

.detail-claim-admin {
  margin: 16px 0 0;
  width: 100%;
}

.detail-interest {
  margin: 16px 0 0;
}

.detail-interest-count {
  font-size: 13px;
  color: var(--ocean-900-60);
  margin: 0 0 8px;
}

.detail-interest-actions {
  display: flex;
  gap: 12px;
}

.detail-interest-actions .btn {
  flex: 1;
}

.detail-comment {
  font-style: italic;
  font-size: 15px;
  color: var(--ocean-900);
  line-height: 1.5;
  margin: 16px 0;
}

.detail-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.detail-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(17, 18, 20, 0.1);
}

.detail-map {
  height: 220px;
  border-radius: var(--radius);
  margin: 20px 0;
  border: 1px solid var(--sand-300);
}

.detail-edit-link {
  display: inline-flex;
  text-decoration: none;
}

.detail-not-found {
  padding: 40px 24px;
  text-align: center;
  color: var(--ocean-900-60);
}

/* ==========================================================================
   Form view (/skjema)
   ========================================================================== */
#form-view {
  height: 100%;
  overflow-y: auto;
  background: var(--sand-50);
}

.form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--sand-300);
}

.back-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link:hover {
  color: var(--sky-500);
}

.form-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

#form-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ocean-900);
}

.form-hint {
  font-style: italic;
  color: var(--ocean-900-60);
  margin: 0 0 20px;
}

#picker-map {
  height: 260px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--sand-300);
  box-shadow: var(--shadow-card);
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean-900-60);
  margin-bottom: 6px;
}

.field {
  margin-bottom: 22px;
}

.field input[type="text"],
.field input[type="number"],
.field textarea {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ocean-900);
  background: #fff;
  border: 1.5px solid var(--sand-300);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus,
.field textarea:focus {
  border-color: var(--sky-500);
  outline: none;
}

.field textarea {
  resize: vertical;
  font-family: var(--font-body);
}

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

.chip {
  position: relative;
}

.chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip-label {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean-900);
  background: #fff;
  border: 1.5px solid var(--sand-300);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip-input:checked + .chip-label {
  background: var(--sky-500);
  border-color: var(--sky-500);
  color: var(--sand-50);
}

.chip-input:focus-visible + .chip-label {
  outline: 2.5px solid var(--sky-500);
  outline-offset: 2px;
}

.chip--bra .chip-input:checked + .chip-label {
  background: var(--moss-600);
  border-color: var(--moss-600);
}

.chip--darlig .chip-input:checked + .chip-label {
  background: var(--rust-600);
  border-color: var(--rust-600);
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 16px;
  text-align: center;
  border: 2px dashed var(--sand-300);
  border-radius: var(--radius);
  background: var(--sand-100);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dropzone--active {
  border-color: var(--coral-500);
  background: #fff;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-title {
  font-weight: 600;
  font-size: 14.5px;
}

.dropzone-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ocean-900-60);
}

.dropzone-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sky-500);
  min-height: 1em;
}

.form-error {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--rust-600);
  background: #fbe6e0;
  border: 1px solid var(--rust-600);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* Replaces the form once a magic link has been sent (ADR 0005), so the
   page visibly changes state instead of leaving a filled-in form on screen. */
.form-sent {
  font-family: var(--font-body);
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: 14px;
  padding: 24px 26px;
}

.form-sent h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.form-sent p {
  margin: 0 0 10px;
}

.form-sent p:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--sand-300);
  background: #fff;
  color: var(--ocean-900);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Ink, not amber: amber only clears 2.1:1 against white text, so the accent
   never carries a label. It marks things instead (pins, seams, underlines). */
.btn-primary {
  background: var(--ocean-900);
  border-color: var(--ocean-900);
  color: var(--sand-50);
}

.btn-primary:hover {
  box-shadow: var(--shadow-float);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 560px) {
  .topbar {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 14px;
  }

  .stat {
    display: none;
  }

  .signup-suffix {
    display: none;
  }

  .brand-name {
    font-size: 14px;
    max-width: 40vw;
  }

  .signup-link {
    font-size: 12.5px;
  }

  .fab {
    bottom: 18px;
    padding: 13px 20px;
    font-size: 14px;
  }

  .form-panel {
    padding: 24px 16px 48px;
  }

  #form-title {
    font-size: 25px;
  }

  .page-topbar {
    padding: 12px 16px;
  }

  .view-toggle {
    margin: 16px 16px 0;
  }

  #map-view .view-toggle {
    top: 72px;
    left: 10px;
  }

  .placement-cancel-btn {
    top: 72px;
    right: 10px;
  }

  /* The placement-mode hint text ("Trykk der banen ligger.") is longer-lived
     and wider than the original "Henter baner …" loading text this element
     was sized for -- centered at top: 78px it collides with the view-toggle
     pill on narrow phones, so give it its own row underneath instead. */
  .map-status {
    top: 122px;
  }

  .list-content,
  .detail-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .list-heading {
    font-size: 25px;
  }

  .venue-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .venue-card-distance {
    font-size: 17px;
    min-width: 3.8em;
  }

  .detail-header h1 {
    font-size: 23px;
  }

  .detail-photo {
    width: 110px;
    height: 110px;
  }
}
