/* Map / List toggle bar */
.map-view-container {
  display: flex;
  flex-direction: column;
}

.map-list-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 6px 0;
  font-size: 14px;
}

.map-list-toggle a {
  color: #666;
  text-decoration: none;
  padding: 4px 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.map-list-toggle a:hover {
  color: #333;
}

.map-list-toggle a.active {
  color: #C61F36;
  font-weight: 600;
  border-bottom: 2px solid #C61F36;
}

.map-list-toggle .toggle-sep {
  color: #ccc;
}

/* Panel list view table */
.panel-list-view {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-list-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}

.panel-list-table th:nth-child(1),
.panel-list-table td:nth-child(1) { width: 120px; }  /* Standort */
.panel-list-table th:nth-child(2),
.panel-list-table td:nth-child(2) { width: auto; }   /* Bezeichnung */
.panel-list-table th:nth-child(3),
.panel-list-table td:nth-child(3) { width: 110px; }  /* Ort */
.panel-list-table th:nth-child(4),
.panel-list-table td:nth-child(4) { width: 70px; }   /* PLZ */
.panel-list-table th:nth-child(5),
.panel-list-table td:nth-child(5) { width: 70px; }   /* Format */

.panel-list-table th,
.panel-list-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.panel-list-table td.panel-list-bezeichnung {
  display: table-cell !important;
  white-space: normal !important;
  word-break: normal;
  min-width: 160px;
  line-height: 1.5;
}

.panel-list-table thead th {
  background: #f5f5f5;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.panel-list-table tbody tr:hover {
  background: #fafafa;
}

.panel-list-thumb img {
  width: 105px;
  height: 70px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .panel-list-thumb img {
    width: 75px;
    height: 50px;
  }
}

.btn-list-detail {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  background: #C61F36;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}

.btn-list-detail:hover {
  background: #a51a2e;
}
