/* ===========================
   SPOTS – PREMIUM LAYOUT
   =========================== */

.spots-page {
  max-width: 1400px;
  margin: 36px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.spots-hero {
  text-align: center;
  margin-bottom: 30px;
}

.spots-hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
}

.spots-subline {
  color: #a8a8a8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

.spots-hinweis {
  margin: 15px 0 25px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 200, 80, 0.08);
  border: 1px solid rgba(255, 200, 80, 0.2);
  color: #f5d28a;
  font-size: 0.95rem;
  text-align: center;
}

/* ===========================
   GRID / SPALTEN
   =========================== */

.spots-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.spots-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spots-sidebar {
  display: flex;
}

.spots-sidebar .spots-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ===========================
   CARDS
   =========================== */

.spots-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  position: relative;
  z-index: 1;
}

.spots-card h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #f2f2f2;
}
.spot-card:hover {
  transform: translateY(-2px);
}

/* ===========================
   FORMULAR
   =========================== */

.spots-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.spots-form-head h2 {
  margin: 0;
}

.spots-cancel-edit {
  color: #80bfff;
  text-decoration: none;
  font-size: 0.95rem;
}

.spots-cancel-edit:hover {
  text-decoration: underline;
}

.spots-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.spots-form input,
.spots-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: #222;
  border: 1px solid #333;
  color: #eee;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.spots-form input:focus,
.spots-form textarea:focus {
  outline: none;
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.spots-form textarea {
  min-height: 140px;
  resize: vertical;
}

.spots-hidden {
  display: none;
}

.spots-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.spots-actions button {
  flex: 1;
  min-width: 140px;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

/* ===========================
   KARTE
   =========================== */

#map {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===========================
   LISTENKOPF / SUCHE
   =========================== */

.spots-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.spots-count {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #dcdcdc;
  font-size: 0.95rem;
}

.spots-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  position: relative;
  z-index: 5;
}

.spots-search-form input {
  width: 100%;
  box-sizing: border-box;
  background: #1f1f1f; /* etwas dunkler als vorher */
  border: 1px solid rgba(255, 255, 255, 0.08); /* softer Rahmen */
  color: #eee;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.98rem;
}

.spots-clear-search {
  color: #80bfff;
  text-decoration: none;
  font-size: 0.92rem;
}

.spots-clear-search:hover {
  text-decoration: underline;
}
.spots-search-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.03); /* schwächer */
}

/* ===========================
   SPOT-LISTE + SCROLLBEREICH
   =========================== */

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: visible;
  min-height: 0;
  padding-top: 6px;
}

.spot-list::-webkit-scrollbar {
  width: 8px;
}

.spot-list::-webkit-scrollbar-track {
  background: transparent;
}

.spot-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.spot-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===========================
   SPOT-CARDS
   =========================== */

.spot-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.25s ease;
}

.spot-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  z-index: 2;
}

.spot-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.spot-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spot-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.spot-date {
  font-size: 0.82rem;
  color: #9c9c9c;
  margin-top: 4px;
}

.spot-description {
  color: #d4d4d4;
  line-height: 1.65;
  margin-bottom: 12px;
  white-space: normal;
  word-break: break-word;
}

.spot-meta {
  margin-bottom: 14px;
}

.spot-gps {
  display: inline-block;
  color: #9ca6b4;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 999px;
}

.spot-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.spot-links a,
.spot-focus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
}

.spot-links a {
  background: rgba(255, 255, 255, 0.05);
  color: #80bfff;
}

.spot-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.spot-focus-btn {
  background: rgba(68, 227, 143, 0.08);
  color: #b7f5d3;
  border: 1px solid rgba(68, 227, 143, 0.15);
}

.spot-focus-btn:hover {
  background: rgba(68, 227, 143, 0.12);
}

.spot-empty {
  text-align: center;
  color: #9a9a9a;
  padding: 20px 10px;
}

/* ===========================
   FAVORITE / TOOLS / DELETE
   =========================== */

.spot-card-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spot-tool-form {
  margin: 0;
}

.spot-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: #bdbdbd;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spot-tool-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.spot-edit-btn:hover {
  color: #80bfff;
}

.spot-delete-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.spot-delete-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ff7373;
}

.spot-delete-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spot-delete-code {
  width: 78px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: #222;
  border: 1px solid #333;
  color: #eee;
  box-sizing: border-box;
}

.spot-favorite-star {
  color: #ffd866;
  font-size: 1rem;
  line-height: 1;
}

.spot-card.is-favorite {
  border-color: rgba(255, 216, 102, 0.22);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 216, 102, 0.06);
}

.spot-card.is-focused {
  border-color: rgba(68, 227, 143, 0.35);
  box-shadow:
    0 0 0 1px rgba(68, 227, 143, 0.1),
    0 8px 26px rgba(0, 0, 0, 0.3);
  background: rgba(68, 227, 143, 0.04);
}

/* ===========================
   TOAST
   =========================== */

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: rgba(68, 227, 143, 0.12);
  color: #44e38f;
  border: 1px solid rgba(68, 227, 143, 0.35);
}

.toast.error {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 80, 80, 0.35);
}

.toast-icon svg {
  display: block;
}

.toast-text {
  white-space: normal;
  text-align: center;
}

/* ===========================
   GOOGLE INFOWINDOW
   =========================== */

.gm-style .gm-style-iw-c {
  background: #17191d !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-d {
  overflow: auto !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #17191d !important;
}

.gm-style .gm-ui-hover-effect {
  top: 6px !important;
  right: 6px !important;
  opacity: 0.85 !important;
  filter: invert(1) grayscale(1) brightness(1.3);
}

.spot-popup {
  min-width: 220px;
  max-width: 260px;
  padding: 14px 14px 12px;
  color: #f2f2f2;
  font-size: 14px;
  line-height: 1.5;
  background: #17191d;
}

.spot-popup-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.spot-popup-text {
  margin-bottom: 12px;
  color: #cfd6dd;
  white-space: normal;
  word-break: break-word;
}

.spot-popup-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(68, 227, 143, 0.12);
  border: 1px solid rgba(68, 227, 143, 0.3);
  color: #44e38f !important;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.spot-popup-link:hover {
  background: rgba(68, 227, 143, 0.18);
  transform: translateY(-1px);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1100px) {
  .spots-grid {
    grid-template-columns: 1fr;
  }

  .spots-main {
    order: 1;
  }

  .spots-sidebar {
    display: block;
  }

  .spots-sidebar .spots-card {
    display: block;
    height: auto;
    max-height: none;
  }

 .spot-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-top: 6px;
  padding-right: 6px;
  }
}

@media (max-width: 700px) {
  .spots-page {
    margin: 28px auto 0;
    padding: 0 14px;
  }

  .spots-hero h1 {
    font-size: 1.7rem;
  }

  .spots-subline {
    font-size: 0.96rem;
  }

  .spots-card {
    padding: 20px 16px;
  }

  .spots-form-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .spots-actions {
    flex-direction: column;
  }

  .spots-actions button {
    min-width: unset;
  }

  #map {
    height: 52vh;
    min-height: 300px;
  }

  .spot-card-head {
    gap: 10px;
    flex-direction: row;
  }

  .spot-card-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .spot-links {
    flex-direction: column;
  }
}

/* ===========================
   SPOTS – PAGINATION
   =========================== */

.spots-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.spots-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8d8d8;
  transition: all 0.2s ease;
}

.spots-page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.spots-page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.spots-page-info {
  font-size: 0.92rem;
  color: #a8a8a8;
  text-align: center;
}

@media (max-width: 700px) {
  .spots-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .spots-page-btn,
  .spots-page-info {
    justify-content: center;
    text-align: center;
  }
}
/* ===========================
   SPOTS – FILTER BAR
   =========================== */

.spots-filter-bar {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.spots-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8d8d8;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spots-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.spots-filter-btn.is-active {
  background: rgba(68, 227, 143, 0.10);
  border-color: rgba(68, 227, 143, 0.30);
  color: #b7f5d3;
}

@media (max-width: 700px) {
  .spots-filter-bar {
    flex-wrap: wrap;
  }

  .spots-filter-btn {
    flex: 1;
  }
  .spots-hinweis {
  margin: 12px 0 18px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.spots-datenschutz {
  margin: 0 0 16px;
  padding: 9px 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 9px;
}
}
/* ============================================
   DATENSCHUTZ BOX
   ============================================ */

.spots-datenschutz {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;

  background: rgba(80, 140, 255, 0.06);
  border: 1px solid rgba(80, 140, 255, 0.14);

  color: #cfdcff;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}
.spots-datenschutz strong {
  color: #ffffff;
  font-weight: 500;
}