/* locations.css — Distributors & Pharmacies pages (Granzia brand)
   Navy #1d3d7c headers/hero, gold #c9a227 accents, white rounded cards.
   Inherits the site-wide Cairo font. Works without JS via <details>. */

:root {
  --gz-navy: #1d3d7c;
  --gz-navy-dark: #16305f;
  --gz-gold: #c9a227;
  --gz-gold-soft: #d4af37;
  --gz-ink: #1f2937;
  --gz-muted: #64748b;
  --gz-line: #e6ebf3;
  --gz-bg: #f4f6fb;
}

.city-list-page {
  font-family: inherit;
  color: var(--gz-ink);
  background: var(--gz-bg);
  padding-bottom: 64px;
}

/* ---------- Hero ---------- */
.city-list__hero {
  background: linear-gradient(135deg, var(--gz-navy) 0%, var(--gz-navy-dark) 100%);
  padding: 56px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.city-list__hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gz-gold), var(--gz-gold-soft));
}
.city-list__hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.city-list__hero-title {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ---------- Empty state ---------- */
.city-list__empty {
  text-align: center;
  color: var(--gz-muted);
  padding: 48px 16px;
  font-size: 16px;
}

/* ---------- List / grid ---------- */
.city-list__list {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* ---------- Governorate card ---------- */
.city-list__item {
  background: #fff;
  border: 1px solid var(--gz-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(29, 61, 124, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.city-list__item[open] {
  box-shadow: 0 12px 32px rgba(29, 61, 124, 0.12);
  border-color: #d3ddee;
}
.city-list__item summary::-webkit-details-marker { display: none; }
.city-list__item summary { list-style: none; }

/* ---------- Header row ---------- */
.city-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background 0.15s ease;
}
.city-list__row:hover { background: #fafbfe; }
.city-list__item[open] .city-list__row {
  background: var(--gz-navy);
}
.city-list__item[open] .city-list__gov { color: #fff; }

.city-list__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.city-list__gov {
  font-size: 17px;
  font-weight: 700;
  color: var(--gz-navy);
  transition: color 0.15s ease;
}

/* Count badge */
.city-list__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gz-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.city-list__item[open] .city-list__count {
  background: var(--gz-gold);
  color: #fff;
}

/* Chevron */
.city-list__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(29, 61, 124, 0.08);
  flex: 0 0 auto;
  transition: transform 0.25s ease, background 0.15s ease;
}
.city-list__chevron img { display: block; }
.city-list__item[open] .city-list__chevron {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.18);
}
.city-list__item[open] .city-list__chevron img { filter: brightness(0) invert(1); }

/* ---------- Branches ---------- */
.city-list__branches {
  list-style: none;
  margin: 0;
  padding: 6px 22px 14px;
}
.city-list__branch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gz-line);
}
.city-list__branch:last-child { border-bottom: 0; }

.city-list__branch-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gz-ink);
}
.city-list__branch-addr {
  font-size: 14px;
  color: var(--gz-muted);
  line-height: 1.6;
}

/* Phone link */
.city-list__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(29, 61, 124, 0.06);
  color: var(--gz-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  direction: ltr;
  transition: background 0.15s ease, color 0.15s ease;
}
.city-list__phone:hover {
  background: var(--gz-navy);
  color: #fff;
}
.city-list__phone-ico { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .city-list__list {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
    margin-top: 28px;
  }
  .city-list__hero { padding: 40px 16px; }
  .city-list__hero-title { font-size: 26px; }
  .city-list__row { padding: 16px 18px; }
  .city-list__branches { padding-left: 18px; padding-right: 18px; }
}
