/* === Zakładki + wiele cech w zakładce === */

.popup-tabs-container {
  font-size: 13.5px;
  line-height: 1.45;
  padding-top: 8px;
}

.popup-tabs-header {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

.popup-tab {
  padding: 7px 14px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
  font-size: 13px;
}

.popup-tab.active {
  background: white;
  font-weight: 600;
  border-bottom-color: white;
  position: relative;
  top: 1px;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
}

.feature-count {
  font-size: 0.82em;
  color: #555;
  background: #e0e0e0;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Zawartość pojedynczej zakładki */
.popup-tab-panel {
  display: none;
  padding: 0 4px 8px;
}

.popup-tab-panel.active {
  display: block;
}

/* Pojedynczy obiekt (gdy wiele w warstwie) */
.feature-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #bbb;
}

.feature-block:last-child {
  border-bottom: none;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.feature-block > div:first-child {
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

/* Przyciski w bloku działki */
.external-link-button,
.status-btn,
.show-plans-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  margin: 4px 0;
}

.external-link-button {
  background: #e8f4fd;
  color: #0066cc;
  border: 1px solid #a0d0ff;
}

.status-btn {
  background: white;
  color: #c62828;
  border: 2px solid #c62828;
  font-weight: bold;
}

.show-plans-btn {
  background: #c62828;
  color: white;
  border: none;
  cursor: pointer;
}

/* Mobilne - trochę więcej miejsca na klikanie */
@media (max-width: 480px) {
  .popup-tab {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  
  .feature-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
}