/* ════════════════════════════════════════
   STÍLUSOK A TARTALOM OLDALAKHOZ
   (city.php – /budapest, /budapest/pharmacy stb.)
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a6fc4;
  --blue-dk: #145499;
  --accent:  #e8502a;
  --bg:      #f4f7fb;
  --card:    #ffffff;
  --text:    #1e2a3a;
  --muted:   #6b7a8d;
  --border:  #e4ecf6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.page-header {
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--blue);
  color: #fff !important;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s;
}
.map-btn:hover { background: var(--blue-dk); }

/* ── Main content ── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--muted); opacity: .6; }

/* ── Headings ── */
h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 720px;
}

/* ── Kategória rács (város főoldal) ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 2rem 0;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  transition: all .18s;
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,111,196,.12);
  text-decoration: none;
}

.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cat-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
}

/* ── POI lista (kategória oldal) ── */
.poi-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.poi-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color .15s;
}
.poi-item:hover { border-color: var(--blue); }

.poi-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.poi-item .addr {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.poi-item .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.poi-item .meta a { color: var(--blue); }

.empty {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

/* ── Más városok ── */
.more-cities {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.city-list a {
  padding: 0.4rem 0.85rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}
.city-list a:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
}

/* ── Footer ── */
.page-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.page-footer a { color: var(--muted); }
.page-footer a:hover { color: var(--blue); }

/* ── Reszponzív ── */
@media (max-width: 600px) {
  .page-header { padding: 0.7rem 1rem; }
  .logo { font-size: 1.1rem; }
  .map-btn { padding: 0.45rem 0.85rem; font-size: 0.82rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }

  main { padding: 1.5rem 1rem 3rem; }

  .category-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .category-card { padding: 0.75rem 0.85rem; gap: 0.6rem; }
  .cat-icon { width: 36px; height: 36px; font-size: 1.15rem; }
  .cat-label { font-size: 0.82rem; }

  .poi-list { grid-template-columns: 1fr; }
}
