/* =====================================
   🌍 Grundlayout
===================================== */


.loca-wrapper {
  max-width: 1000px;
  margin: 30px auto;
  padding: 20px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(0,0,0,0.06);
font-family: 'Montserrat', sans-serif;
}

.loca-searchbar{
  display:flex;
  gap:12px;
  align-items:stretch;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

#loca-address {
  flex: 1 1 420px;
  width: 100%;
  padding: 14px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#loca-find {
  flex: 0 0 auto;
  padding: 14px 22px;
  background-color: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

#loca-find:hover {
  background-color: #444;
  transform: scale(1.02);
}

#loca-map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-top: 16px;
  margin-bottom: 18px;
}

/* =====================================
   🔎 Filter
===================================== */
.loca-filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin: 6px 0 10px;
}

.loca-filter{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:#333;
}

.loca-filter-checkbox{
  user-select:none;
}

#filter-route{
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  min-width: 180px;
}

/* =====================================
   📦 Ergebnisbox
===================================== */
.loca-result-box {
  background: #fafafa;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
}

.loca-result-head{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
}

/* 🔥 WICHTIG: Vertikal für Ort über Haltestelle */
.loca-title-line{
  display:flex;
  flex-direction: column;
  gap:6px;
  align-items:flex-start;
}

.loca-title h3{
  margin:0;
  font-size:18px;
  color:#111;
}

.loca-bus{
  font-size:18px;
}

.loca-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.loca-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.loca-badge-primary{
  background:#eef7ff;
  color:#0b63a8;
  border-color:#cfe9ff;
}

.loca-badge-success{
  background:#ecfff1;
  color:#1b7a34;
  border-color:#c8f3d2;
}

.loca-badge-danger{
  background:#fff0f0;
  color:#a12b2b;
  border-color:#f1c5c5;
}

/* =====================================
   🛣️ Route Badge als US-Schild
===================================== */
.loca-badge-route{
  position: relative;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: #111;
  color: #FFD102;
  border: 2px solid #FFD102;
  border-radius: 14px 14px 18px 18px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

/* Shield-Unterteil */


/* Glanz */
.loca-badge-route::before{
  content:"";
  position:absolute;
  inset: 2px 2px auto 2px;
  height: 45%;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events:none;
}

/* =====================================
   📍 Ort über Haltestelle
===================================== */
.loca-place{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:18px;
  font-weight:800;
  color:#111;
  text-transform: uppercase;
font-family: 'Montserrat', sans-serif;

}

.loca-place-icon{
  display:inline-flex;
  width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:none;
  border:none;
}

.loca-stopname{
  display:flex;
  align-items:center;
  gap:8px;
}

/* =====================================
   📏 Entfernung
===================================== */
.loca-distance{
  min-width: 140px;
  text-align:right;
  padding: 10px 12px;
  border-radius: 10px;
  background:#fff;
  border:1px solid #e7e7e7;
}

.loca-distance-label{
  display:block;
  font-size:12px;
  color:#666;
  margin-bottom:4px;
}

.loca-distance-value{
  font-size:16px;
  font-weight:600;
  color:#111;
}

/* =====================================
   📋 Meta Grid
===================================== */
.loca-meta{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top: 14px;
}

.loca-meta-item{
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:10px;
  padding:10px 12px;
}

.loca-meta-full{
  grid-column: 1 / -1;
}

.loca-meta-label{
  display:block;
  font-size:14px;
  color:#666;
  margin-bottom:4px;
}

.loca-meta-value{
  display:block;
  font-size:15px;
  font-weight:700;
  color:#111;
}

/* =====================================
   🎟️ Buttons
===================================== */
.loca-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
}

.loca-ticket-button,
.loca-route-link,
.loca-image-button {
  display: inline-block;
  background: #FFD102 !important;
  color: #111 !important;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.15s ease, background-color 0.2s ease;
  border: none;
  cursor: pointer;
}

.loca-ticket-button:hover,
.loca-route-link:hover,
.loca-image-button:hover {
  background: #e6bf00 !important;
  transform: translateY(-1px);
}

/* =====================================
   📱 Responsive
===================================== */
@media screen and (max-width: 768px) {

  #loca-find { width: 100%; }

  .loca-result-head{
    flex-direction:column;
  }

  .loca-distance{
    text-align:left;
    min-width: unset;
    width: 100%;
  }

  .loca-meta{
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {

  /* 50/50 nur für die ersten zwei Meta-Items */
  .loca-meta{
    grid-template-columns: repeat(2, 1fr);
  }

  /* Alles was full ist bleibt full */
  .loca-meta-full{
    grid-column: 1 / -1;
  }
}

.loca-result-box:first-of-type {
  border: 2px solid #FFD102;
  animation: locaGlow 2.5s ease-in-out infinite;
}

@keyframes locaGlow {
  0% {
    box-shadow: 0 0 8px rgba(255, 209, 2, 0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 209, 2, 0.6);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 209, 2, 0.3);
  }
}



.loca-toggle{
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 12px;

  border: 2px solid #FFD102 !important; /* gleiche Farbe wie Hintergrund */

  background: #FFD102 !important;
  color: white !important;

  font-size: 18px !important;
  font-weight: 900;
  font-family: "EDO SZ";
  letter-spacing: .5px;

  cursor: pointer;
  transition: all 0.2s ease;

  outline: none !important;
  box-shadow: none !important;
}

.loca-toggle:hover{
  background: #e6bf00 !important;
  border-color: #e6bf00 !important;
  transform: translateY(-2px);
}

.loca-toggle:focus,
.loca-toggle:active{
  outline: none !important;
  box-shadow: none !important;
  border-color: #FFD102 !important;
}


.loca-show-more{
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;

  border: 2px solid #FFD102 !important;

  background: #111 !important;   /* dunkler Hintergrund */
  color: #FFD102 !important;     /* gelbe Schrift */

  font-size: 20px !important;
  font-weight: 900;
  font-family: "EDO SZ";
  letter-spacing: .5px;

  cursor: pointer;
  transition: all 0.2s ease;

  outline: none !important;
  box-shadow: none !important;
}

.loca-show-more:hover{
  background: #1a1a1a !important;
  transform: translateY(-2px);
}

.loca-show-more:focus,
.loca-show-more:active{
  outline: none !important;
  box-shadow: none !important;
  border-color: #FFD102 !important;
}