/* Clubes deportivos y plazas: fichas compartidas */
.ciudad-page {
  background: #f3f6fb;
  color: #16325c;
  font-family: "Maven Pro", sans-serif;
}

.ciudad-hero {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 10px auto 0;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0b2a5c center / cover no-repeat;
  box-shadow: 0 18px 40px rgba(11, 42, 92, 0.16);
}

.ciudad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 42, 0.15) 0%, rgba(6, 18, 42, 0.82) 72%),
    linear-gradient(90deg, rgba(6, 18, 42, 0.55), transparent 70%);
}

.ciudad-page--plazas .ciudad-hero::before {
  background:
    linear-gradient(180deg, rgba(8, 36, 24, 0.12) 0%, rgba(8, 36, 24, 0.82) 74%),
    linear-gradient(90deg, rgba(8, 36, 24, 0.5), transparent 70%);
}

.ciudad-hero__inner {
  position: relative;
  z-index: 1;
  padding: 36px 36px 30px;
  max-width: 760px;
}

.ciudad-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ciudad-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  font-weight: 800;
}

.ciudad-hero__lead {
  margin: 12px 0 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.5;
}

.ciudad-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ciudad-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ciudad-switch a.is-current {
  background: #fff;
  color: #0b2a5c;
  border-color: #fff;
}

.ciudad-page--plazas .ciudad-switch a.is-current {
  color: #0f5c3a;
}

.ciudad-wrap {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.ciudad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 22px 0 16px;
}

.ciudad-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ciudad-chip {
  border: 1px solid #d5e0ef;
  background: #fff;
  color: #16325c;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.ciudad-chip.is-active {
  background: #0b2a5c;
  border-color: #0b2a5c;
  color: #fff;
}

.ciudad-page--plazas .ciudad-chip.is-active {
  background: #0f6b45;
  border-color: #0f6b45;
}

.ciudad-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(320px, 100%);
  background: #fff;
  border: 1px solid #d5e0ef;
  border-radius: 999px;
  padding: 8px 14px;
  color: #5b7294;
}

.ciudad-search input {
  border: 0;
  outline: none;
  width: 100%;
  font: inherit;
  color: #16325c;
  background: transparent;
}

.ciudad-count {
  margin: 0 0 14px;
  color: #5b7294;
  font-weight: 600;
}

.ciudad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 28px;
}

.ciudad-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(11, 42, 92, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ciudad-card.is-hidden {
  display: none;
}

.ciudad-card__media {
  position: relative;
  height: 190px;
  background: #d7e3f2;
}

.ciudad-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ciudad-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.ciudad-tags {
  margin: 0;
  color: #1f6fe0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ciudad-page--plazas .ciudad-tags {
  color: #0f6b45;
}

.ciudad-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  color: #0b2a5c;
}

.ciudad-card p {
  margin: 0;
  color: #3d5270;
  line-height: 1.5;
  font-size: 0.96rem;
}

.ciudad-card__more {
  display: none;
}

.ciudad-card.is-open .ciudad-card__more {
  display: block;
}

.ciudad-more {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: #1f6fe0;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.ciudad-loc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  color: #16325c !important;
  font-weight: 700;
}

.ciudad-loc i {
  margin-top: 3px;
  color: #1f6fe0;
}

.ciudad-page--plazas .ciudad-loc i {
  color: #0f6b45;
}

.ciudad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.ciudad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  border: 0;
}

.ciudad-btn--phone {
  background: #0b2a5c;
  color: #fff;
}

.ciudad-btn--map {
  background: #e8f1ff;
  color: #0b2a5c;
}

.ciudad-page--plazas .ciudad-btn--map {
  background: #e7f6ee;
  color: #0f5c3a;
}

.ciudad-btn--social {
  width: 36px;
  padding: 0;
  background: #f3f6fb;
  color: #0b2a5c;
}

.ciudad-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px auto 48px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(11, 42, 92, 0.06);
}

.ciudad-note p {
  margin: 0;
  color: #3d5270;
}

.ciudad-note strong {
  color: #0b2a5c;
}

.ciudad-note a {
  color: #0b2a5c;
  font-weight: 800;
}

.ciudad-empty {
  display: none;
  margin: 8px 0 40px;
  padding: 28px 16px;
  text-align: center;
  color: #5b7294;
  background: #fff;
  border-radius: 20px;
}

.ciudad-empty.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .ciudad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ciudad-hero,
  .ciudad-wrap {
    width: calc(100% - 16px);
  }

  .ciudad-hero {
    min-height: 280px;
    border-radius: 22px;
  }

  .ciudad-hero__inner {
    padding: 24px 18px 20px;
  }

  .ciudad-search {
    margin-left: 0;
    width: 100%;
  }

  .ciudad-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ciudad-chips {
    width: 100%;
  }
}
