/* Container aligned to your theme max width */
.gl-cities-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Controls */
.gl-cities-grid-controls {
  display: grid;
  grid-template-columns: 1fr 260px auto;
  gap: 16px;
  align-items: end;
  margin: 24px 0 16px;
}

@media (max-width: 900px) {
  .gl-cities-grid-controls {
    grid-template-columns: 1fr;
  }
}

.gl-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gl-label {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.85;
}

.gl-input,
.gl-select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  outline: none;
  font-size: 14px;
}

.gl-input:focus,
.gl-select:focus {
  border-color: rgba(0, 183, 116, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 183, 116, 0.12);
}

.gl-reset {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.gl-reset:hover {
  background: rgba(15, 23, 42, 0.03);
}

/* Grid */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(var(--gl-cols, 5), minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}

@media (max-width: 1100px) {
  .gl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .gl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 450px) {
  .gl-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.gl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: white;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.gl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Image area (NO inner padding) */
.gl-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gl-card-media-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gl-card-media-text {
  font-weight: 800;
  font-size: 1.15rem;
  opacity: 0.85;
  padding: 0 12px;
}

.gl-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text area padding (10px left/right) */
.gl-card-title {
  padding: 10px 10px 6px; /* ← 10px L/R, smaller vertical padding */
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
  text-align: center;
}

/* Meta wrapper (10px left/right, NOT the image) */
.gl-card-meta {
  width: 100%;
  padding: 0 10px 27px; /* ✅ was 12px, now +15px bottom space */
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

/* Pill rows */
.gl-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px; /* ← tighter spacing between pills */
}

/* Pills (smaller) */
.gl-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem; /* smaller text */
  line-height: 1;
  font-weight: 800;
  padding: 4px 8px; /* tighter inner padding */
  background: rgba(0, 183, 116, 0.12);
  color: #0b1220;
  border: 1px solid rgba(0, 183, 116, 0.18);
}

.gl-pill-muted {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.8);
}

/* Pager */
.gl-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 30px;
}

.gl-page-btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.gl-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gl-page-meta {
  font-weight: 600;
  opacity: 0.8;
  padding-bottom: 10px;
}

.gl-empty {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  opacity: 0.9;
}

.gl-cities-grid-status {
  font-weight: 800;
  opacity: 0.75;
  margin: 0 0 6px;
}

.gl-card {
  padding-bottom: 15px;
}

.gl-card-pills-row2 {
  padding-bottom: 15px;
}
.gl-card-pills-row1 {
  padding-bottom: 15px;
}
