.pg-page-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 22px;
}

.pg-page-top {
  margin-bottom: 18px;
}

.pg-page-title-wrap {
  margin-bottom: 14px;
}

.pg-page-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  color: #111;
}

.pg-page-subtitle {
  margin: 8px 0 0;
  color: #555;
  line-height: 1.6;
}

.pg-alert {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111 0%, #222 100%);
  color: #fff;
  border-left: 4px solid #ff0000;
  line-height: 1.5;
  font-size: .97rem;
}

.pg-toolbar {
  display: grid;
  grid-template-columns: 220px 1fr 180px 160px;
  gap: 12px;
  align-items: end;
}

.pg-filter-wrap,
.pg-search-wrap,
.pg-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-label {
  font-size: .92rem;
  font-weight: 700;
  color: #111;
}

.pg-select,
.pg-search-input {
  height: 48px;
  width: 100%;
  border: 1px solid #d8d8dc;
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: #111;
  outline: none;
}

.pg-select:focus,
.pg-search-input:focus {
  border-color: #ff0000;
  box-shadow: 0 0 0 4px rgba(255,0,0,.08);
}

.pg-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pg-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  max-width: 100%;
}

.pg-pill-red {
  background: #ff0000;
}

.pg-pill-light {
  background: #f4f4f6;
  color: #111;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pg-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 220px;
}

.pg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

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

.pg-card-main {
  min-width: 0;
}

.pg-card-title {
  margin: 0;
  color: #111;
  font-size: 1.08rem;
  line-height: 1.25;
}

.pg-card-city {
  margin-top: 6px;
  color: #666;
  font-size: .95rem;
}

.pg-nearest {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.08);
  color: #ff0000;
  font-size: .78rem;
  font-weight: 800;
}

.pg-card-badge {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.pg-card-badge.is-open {
  background: #0f8c3a;
  color: #fff;
}

.pg-card-badge.is-unknown {
  background: #111;
  color: #fff;
}

.pg-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pg-card-line {
  padding: 7px 0;
  color: #222;
  border-top: 1px dashed rgba(0,0,0,.08);
  line-height: 1.5;
}

.pg-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.pg-btn-primary,
.pg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease;
}

.pg-btn-primary {
  background: #ff0000;
  color: #fff;
}

.pg-btn-secondary {
  background: #111;
  color: #fff;
}

.pg-btn-primary:hover,
.pg-btn-secondary:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.pg-empty {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(0,0,0,.15);
  background: #fafafa;
  color: #444;
}

.pg-loading {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pg-spin .85s linear infinite;
  margin-right: 8px;
}

.pg-map-section {
  margin-top: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  padding: 18px;
}

.pg-map-head {
  margin-bottom: 14px;
}

.pg-map-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #111;
}

.pg-map-head p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.pg-map {
  width: 100%;
  height: 580px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  font-size: .92rem;
  line-height: 1.45;
}

.pg-map-popup-title {
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.pg-map-popup-line {
  color: #444;
  margin-bottom: 4px;
}

.pg-map-popup-link {
  display: inline-flex;
  margin-top: 8px;
  color: #ff0000;
  text-decoration: none;
  font-weight: 700;
}

@keyframes pg-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
  .pg-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .pg-toolbar {
    grid-template-columns: 1fr;
  }

  .pg-card-top {
    flex-direction: column;
  }
}