/* ===================================================
   Sommargatan AR – Stilmall
   Täcker både landningssidan (index.html) och
   AR-överlägget (ar.html)
   =================================================== */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------
   AR-ÖVERLÄGGET (ar.html)
   -------------------------------------------------- */

#ui-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 100;
}

#status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(26, 26, 46, 0.85);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  text-align: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#station-info {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.88);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  text-align: center;
  pointer-events: auto;
  min-width: 200px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

#station-info h2 {
  margin: 0;
  font-size: 18px;
}

#back-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(26, 26, 46, 0.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Nudge – visas om ingen markör hittas på 15 sek */
#nudge-overlay {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.9);
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  text-align: center;
  pointer-events: auto;
  max-width: 290px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 150;
}

/* Fel-överlägget */
#error-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 30, 0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  z-index: 200;
}

#error-overlay h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #ff6b6b;
}

#error-overlay p {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  max-width: 320px;
}

#error-overlay a {
  color: #4a90d9;
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  text-decoration: none;
}

/* Dölj-klass – används av alla överläggsdelar */
.hidden {
  display: none !important;
}

/* --------------------------------------------------
   LANDNINGSSIDAN (index.html)
   -------------------------------------------------- */

body:has(.landing) {
  overflow-y: auto;
}

.landing {
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 40px;
  overflow-y: auto;
}

.landing h1 {
  font-size: 28px;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: -0.5px;
}

.municipality {
  font-size: 14px;
  color: #9999bb;
  margin: 0 0 36px;
  text-align: center;
}

.steps {
  width: 100%;
  max-width: 380px;
  margin-bottom: 36px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-number {
  background: #4a90d9;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: bold;
  flex-shrink: 0;
}

.step-text h3 {
  margin: 2px 0 4px;
  font-size: 16px;
}

.step-text p {
  margin: 0;
  font-size: 14px;
  color: #9999bb;
  line-height: 1.5;
}

.start-btn {
  display: block;
  background: #4a90d9;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: background 0.15s;
}

.start-btn:active {
  background: #3a7bc8;
}

.browser-note {
  margin-top: 20px;
  font-size: 12px;
  color: #666688;
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
}

.unsupported-msg {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 20px;
  max-width: 320px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #ff9999;
}
