/* =============================================
   TELJES ÚJ DESIGN + ANIMÁCIÓK + TUDÁSTÁR LOGÓ
   2026-os frissített verzió – élénk, színes, visszafogott
   Minden oldalra vonatkozik (index + telepules/*.html)
   ============================================= */

:root {
  --primary: #00b4d8;
  --secondary: #f4a261;
  --accent: #e76f51;
  --dark: #1d3557;
  --light: #f8f9fa;
  --gray: #f1f3f5;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video,
canvas {
  height: auto;
}

main,
section,
article,
aside {
  min-width: 0;
}

a {
  overflow-wrap: anywhere;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  background: linear-gradient(180deg, #f0f7fa 0%, #f8f9fa 100%);
  color: var(--dark);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ====================== ANIMÁLT FEJLÉC + LOGÓ ====================== */
header {
  background: linear-gradient(90deg, #1d3557, #264653);
  color: white;
  padding: 1.1rem 1.8rem;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 25px rgba(29, 53, 87, 0.25);
  margin-bottom: 2.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  animation: headerSlide 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes headerSlide {
  from { transform: translateY(-120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

header .logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

header .brand-home-link {
  display: flex;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

header .brand-home-link:hover {
  color: inherit;
}

header .brand-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

.site-brand {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

header img#logo {
  height: 64px;
  width: auto;
  filter: drop-shadow(3px 4px 8px rgba(0, 0, 0, 0.25));
  transition: all 0.45s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

header img#logo:hover {
  transform: scale(1.15) rotate(12deg);
  filter: drop-shadow(4px 6px 12px rgba(0, 180, 216, 0.4));
}

header h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 0;
  background: linear-gradient(90deg, #00b4d8, #f4a261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
  min-width: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

header nav a:hover {
  color: #f4a261;
  transform: translateY(-2px);
}

header nav a.is-active {
  color: #f4a261;
}

header .site-primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.1rem;
}

header .site-primary-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
}

header .site-utility-nav {
  margin: 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  text-align: right;
}

header .site-utility-nav a {
  color: #9ddff0;
  text-decoration: none;
  font-weight: 600;
}

header .site-utility-nav a:hover {
  color: #f4a261;
}

#telepules-cim {
  width: 100%;
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.08;
}

#telepules-leiras {
  width: 100%;
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.03rem;
  max-width: 74ch;
}

header > #telepules-leiras + nav {
  width: 100%;
  justify-content: flex-start;
}

header > #telepules-leiras + nav + .page-note {
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

header > #telepules-leiras + nav + .page-note a {
  color: #9ddff0;
}

header:has(#telepules-cim) {
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.7rem 1rem;
}

#telepules-cim {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  font-size: clamp(2.15rem, 3vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: 0;
  color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  text-shadow: none;
  word-break: break-word;
}

#telepules-leiras {
  flex: 0 0 100%;
  line-height: 1.65;
}

/* ====================== FŐ TARTALOM ====================== */
main {
  width: min(1100px, 100%);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.1);
  padding: 2.2rem 2.4rem;
  margin-bottom: 2.2rem;
  border-top: 7px solid var(--primary);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.9s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:nth-child(1) { animation-delay: 100ms; }
section:nth-child(2) { animation-delay: 250ms; }
section:nth-child(3) { animation-delay: 400ms; }

section h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 1.3rem;
  position: relative;
  overflow-wrap: anywhere;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 70px;
  height: 4px;
  background: linear-gradient(to right, var(--secondary), var(--accent));
  border-radius: 4px;
}

/* ====================== KÁRTYÁK ÉS LISTÁK ====================== */
.kozszolgaltatas-kartya,
.telepules-search-list li,
#telepules-lista li {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.kozszolgaltatas-kartya:hover,
.telepules-search-list li:hover,
#telepules-lista li:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 15px 25px rgba(0, 180, 216, 0.2);
}

.telepules-search-list,
#telepules-lista {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  list-style: none;
  margin: 0;
  padding-right: 10px;
  padding-left: 0;
}

.telepules-search-list li,
#telepules-lista li {
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.6rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  animation: listPop 0.6s backwards;
  overflow: hidden;
  transform-origin: center;
}

.telepules-search-list a,
#telepules-lista a {
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  display: block;
  width: 100%;
}

.telepules-search-list li:hover,
#telepules-lista li:hover {
  background: linear-gradient(90deg, var(--primary), #48cae4);
}

.telepules-search-list li:hover a,
#telepules-lista li:hover a {
  color: white;
}

/* ====================== KERESŐ ====================== */
.telepules-search-form {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.telepules-search-form-centered {
  margin-bottom: 2rem;
  text-align: center;
}

.telepules-search-input,
#kereso {
  width: 100%;
  max-width: 520px;
  padding: 0.9rem 1.2rem;
  font-size: 1.1rem;
  border: 2px solid #e0e0e0;
  border-radius: 9999px;
  transition: all 0.4s ease;
}

.telepules-search-input:focus,
#kereso:focus {
  transform: scale(1.03);
  box-shadow: 0 0 0 6px rgba(0, 180, 216, 0.25);
  outline: none;
}

.search-submit-button {
  border: 0;
  border-radius: 9999px;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(90deg, var(--primary), #48cae4);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 180, 216, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 180, 216, 0.25);
}

.telepules-search-counter {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ====================== GRAFIKONOK ====================== */
canvas {
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  animation: chartFade 1.2s ease forwards;
}

@keyframes chartFade {
  from { opacity: 0; filter: blur(4px); }
  to   { opacity: 1; filter: blur(0); }
}

/* ====================== ALAPADATOK ====================== */
.alapadatok {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin: 1.8rem 0;
}

.alapadatok div {
  background: var(--gray);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.alapadatok div:hover {
  transform: scale(1.05);
}

/* ====================== ÁLTALÁNOS ====================== */
a {
  color: var(--primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

a[href*="Vissza"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 180, 216, 0.1);
}

a[href*="Vissza"]:hover {
  background: var(--primary);
  color: white;
}

/* ====================== MOBIL ====================== */
@media (max-width: 640px) {
  header {
    padding: 0.9rem 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  header h1 { font-size: 1.2rem; }
  header img#logo { height: 52px; }
  section { padding: 1.6rem 1.3rem; }
  main { padding: 0 0.75rem; }

  #telepules-cim {
    font-size: 1.7rem;
  }

  #telepules-leiras {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

.site-footer {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.98), rgba(38, 70, 83, 0.98));
  color: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(29, 53, 87, 0.22);
  overflow: hidden;
}

.site-footer__inner {
  display: grid;
  gap: 1.2rem;
  padding: 1.5rem 1.6rem;
}

.site-footer__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(157, 223, 240, 0.9);
}

.site-footer__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #ffffff;
}

.site-footer__text,
.site-footer__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer__links a {
  color: #9ddff0;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #f4a261;
}

.site-footer__meta {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-footer__meta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.site-footer__meta-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

@media (max-width: 720px) {
  .site-footer {
    width: min(100%, calc(100% - 1rem));
    margin-bottom: 1.25rem;
  }

  .site-footer__inner {
    padding: 1.2rem 1rem;
  }
}

.page-hero {
  text-align: center;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: #4f6177;
}

.stats-grid,
.megye-grid,
.map-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.stat-card,
.megye-card,
.map-card,
.insight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.08);
}

.stat-card strong,
.megye-card strong,
.map-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--dark);
}

.stat-card span,
.megye-card span,
.map-card span {
  color: #5e7186;
  font-size: 0.95rem;
}

.megye-card h3,
.map-card h3,
.insight-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.megye-card p,
.map-card p,
.insight-card p {
  margin-bottom: 0;
  color: #53657b;
}

.megye-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.megye-meta span {
  background: rgba(0, 180, 216, 0.1);
  color: var(--dark);
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.page-note {
  font-size: 0.95rem;
  color: #66788d;
}

.crime-insight-grid {
  margin-top: 1rem;
}

.crime-source-note {
  margin-top: 1rem;
  line-height: 1.65;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.region-pill {
  padding: 0.65rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.12), rgba(244, 162, 97, 0.16));
  color: var(--dark);
  font-weight: 600;
}

.region-button {
  border: 1px solid rgba(0, 180, 216, 0.14);
  cursor: pointer;
  font: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.region-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 53, 87, 0.12);
}

.region-button.is-active {
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.22), rgba(244, 162, 97, 0.24));
  border-color: rgba(0, 180, 216, 0.35);
  color: #163756;
}

.region-button-list {
  align-items: center;
}

.county-town-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.weather-map-shell {
  border-top-color: var(--dark);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 180, 216, 0.14), transparent 24%),
    radial-gradient(circle at 87% 12%, rgba(244, 162, 97, 0.18), transparent 22%),
    linear-gradient(135deg, #ffffff 0%, #f7fcfd 100%);
}

.weather-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.35rem;
  align-items: stretch;
}

.weather-map-stage {
  min-width: 0;
}

.weather-map-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.11), rgba(244, 162, 97, 0.14));
  color: #305065;
}

.weather-map-caption strong {
  color: var(--dark);
}

#weather-map {
  width: 100%;
  height: 640px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: 0 18px 42px rgba(29, 53, 87, 0.12);
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 180, 216, 0.14), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(244, 162, 97, 0.16), transparent 22%),
    linear-gradient(180deg, #f3fbfd 0%, #fff8ef 100%);
}

#weather-map.is-illustrated-mode {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 180, 216, 0.14), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(244, 162, 97, 0.16), transparent 22%),
    linear-gradient(180deg, #f3fbfd 0%, #fff8ef 100%);
}

.weather-map-illustration {
  filter: drop-shadow(0 20px 22px rgba(29, 53, 87, 0.12));
}

#weather-map .leaflet-pane,
#weather-map .leaflet-top,
#weather-map .leaflet-bottom {
  z-index: 10;
}

#weather-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 14px 28px rgba(29, 53, 87, 0.16);
}

#weather-map .leaflet-control-zoom a {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.92);
}

.weather-map-fallback {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 1.2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.12), rgba(244, 162, 97, 0.14));
  color: var(--dark);
  font-weight: 700;
}

.weather-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.weather-side-panel h2 {
  margin: 0;
}

.weather-status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(0, 180, 216, 0.08);
  color: #32546a;
  font-weight: 600;
}

.weather-status.is-error {
  background: rgba(231, 111, 81, 0.12);
  color: #8d3d2d;
}

.weather-panel-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  box-shadow: 0 12px 28px rgba(29, 53, 87, 0.08);
}

.weather-panel-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.weather-panel-headline {
  margin-bottom: 0.9rem;
}

.weather-panel-headline h3 {
  margin-bottom: 0.35rem;
}

.weather-text {
  margin: 0;
  color: #50647a;
  line-height: 1.72;
}

.weather-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.forecast-day-card {
  position: relative;
  overflow: hidden;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(29, 53, 87, 0.08);
}

.forecast-day-card::after {
  content: '';
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(244, 162, 97, 0.18));
}

.forecast-day-card__weekday {
  position: relative;
  z-index: 1;
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #51708c;
}

.forecast-day-card strong,
.forecast-day-card span,
.forecast-day-card p,
.forecast-day-card__meta {
  position: relative;
  z-index: 1;
}

.forecast-day-card strong {
  display: block;
  font-size: 1.2rem;
  color: var(--dark);
}

.forecast-day-card span {
  display: block;
  margin-top: 0.2rem;
  color: #637589;
  font-size: 0.9rem;
}

.forecast-day-card p {
  margin: 0.6rem 0 0.7rem;
  color: #53657b;
}

.forecast-day-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.forecast-day-card__meta span {
  display: inline-flex;
  margin-top: 0;
  padding: 0.28rem 0.56rem;
  border-radius: 9999px;
  background: rgba(0, 180, 216, 0.08);
  color: #35536b;
  font-size: 0.82rem;
  font-weight: 600;
}

.leaflet-container {
  font: inherit;
}

.county-map-tooltip {
  border: 0;
  border-radius: 9999px;
  background: rgba(29, 53, 87, 0.92);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.18);
  font-weight: 700;
}

.county-map-tooltip::before {
  display: none;
}

.county-map-popup .leaflet-popup-content-wrapper {
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(29, 53, 87, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.county-map-popup .leaflet-popup-content {
  margin: 0;
}

.county-popup-card {
  padding: 1rem 1.05rem;
  min-width: 190px;
}

.county-popup-card__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b7186;
  font-weight: 800;
}

.county-popup-card strong {
  display: block;
  color: var(--dark);
  font-size: 1.25rem;
}

.county-popup-card span {
  display: block;
  margin-top: 0.18rem;
  color: #5b7186;
}

.county-popup-card p {
  margin: 0.7rem 0 0;
  color: #53657b;
}

.top-search-panel {
  border-top-color: var(--secondary);
  background:
    radial-gradient(circle at top left, rgba(244, 162, 97, 0.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(0, 180, 216, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f4fbfd 100%);
  margin-top: -0.6rem;
}

.home-hero-panel {
  padding-top: clamp(2rem, 5vw, 3.4rem);
  padding-bottom: clamp(2rem, 5vw, 3.4rem);
}

.top-search-copy {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 1.25rem;
}

.top-search-copy h2 {
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.top-search-copy h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.top-search-results {
  max-width: 760px;
  margin: 0 auto;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.quick-navigation-panel {
  border-top-color: var(--dark);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 180, 216, 0.16), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(244, 162, 97, 0.2), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fcfd 100%);
}

.quick-navigation-headline {
  margin-bottom: 1.4rem;
}

.quick-navigation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.35fr);
  gap: 1.35rem;
  align-items: stretch;
}

.hungary-map-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(29, 53, 87, 0.1);
  box-shadow: 0 16px 36px rgba(29, 53, 87, 0.12);
}

.hungary-map-media {
  position: relative;
  padding: 0.85rem;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.14), rgba(244, 162, 97, 0.14));
}

.hungary-map-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hungary-map-copy {
  padding: 1.15rem 1.25rem 1.3rem;
}

.hungary-map-copy h3 {
  margin: 0 0 0.55rem;
  color: var(--dark);
}

.hungary-map-copy p {
  margin: 0;
  color: #52657a;
}

.quick-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-category-card {
  position: relative;
  display: block;
  min-height: 154px;
  padding: 1.05rem 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quick-category-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.12), rgba(244, 162, 97, 0.2));
}

.quick-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 16px 32px rgba(29, 53, 87, 0.13);
}

.quick-category-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  border-radius: 9999px;
  background: rgba(0, 180, 216, 0.11);
  color: #116477;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quick-category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0.75rem 0 0.45rem;
  color: var(--dark);
  line-height: 1.22;
}

.quick-category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #53657b;
  line-height: 1.55;
}

.homepage-stat-panel {
  border-top-color: #2a9d8f;
  background:
    radial-gradient(circle at 10% 18%, rgba(42, 157, 143, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fcfb 100%);
}

.homepage-stats-grid {
  margin-top: 0.8rem;
}

.stat-link-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat-link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42, 157, 143, 0.26);
  box-shadow: 0 16px 32px rgba(29, 53, 87, 0.13);
}

.homepage-tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(29, 53, 87, 0.08);
}

.homepage-tool-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  border-radius: 9999px;
  background: rgba(29, 53, 87, 0.06);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.homepage-tool-links a:hover {
  background: rgba(0, 180, 216, 0.14);
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kicker a {
  text-decoration: none;
}

.hero-copy h2 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-top: 0;
}

.hero-text {
  font-size: 1.08rem;
  color: #52657a;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.primary-action,
.secondary-action,
.text-link-cta {
  text-decoration: none;
  font-weight: 700;
}

.primary-action,
.secondary-action {
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
}

.primary-action {
  background: linear-gradient(90deg, var(--primary), #48cae4);
  color: white;
}

.secondary-action {
  background: rgba(29, 53, 87, 0.08);
  color: var(--dark);
}

.primary-action:hover,
.secondary-action:hover,
.text-link-cta:hover {
  color: inherit;
}

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-headline > div {
  min-width: 0;
}

.featured-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
}

.featured-city-card,
.card-link,
.portal-card {
  text-decoration: none;
  color: inherit;
}

.featured-city-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: 0 12px 28px rgba(29, 53, 87, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-city-card:hover,
.card-link:hover,
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(29, 53, 87, 0.14);
}

.portal-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: 0 12px 28px rgba(29, 53, 87, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portal-art {
  height: 220px;
  background: linear-gradient(135deg, #dff4fb, #fff0e0);
}

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

.portal-body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.portal-body h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.portal-body p {
  color: #54677c;
  margin-bottom: 0;
}

.featured-city-media {
  height: 210px;
  background: linear-gradient(135deg, #dff4fb, #fdf0e4);
}

.featured-city-media img,
.featured-city-fallback {
  width: 100%;
  height: 100%;
}

.featured-city-media img {
  object-fit: cover;
  display: block;
}

.featured-city-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.featured-city-body {
  padding: 1.1rem 1.1rem 1.2rem;
}

.featured-city-body h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.featured-city-body p {
  color: #54677c;
  margin-bottom: 0.9rem;
}

.featured-city-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.featured-city-meta span {
  background: rgba(0, 180, 216, 0.1);
  color: var(--dark);
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.88rem;
}

.stat-link-card {
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: 18px;
  padding: 1.1rem;
  color: inherit;
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.08);
}

.stat-link-card strong {
  display: block;
  font-size: 1.65rem;
  color: var(--dark);
}

.stat-link-card span {
  color: #5e7186;
  font-size: 0.95rem;
}

.illustration-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid rgba(0, 180, 216, 0.12);
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(29, 53, 87, 0.08);
}

.illustration-panel img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  header {
    position: static;
    align-items: flex-start;
    gap: 1rem;
  }

  header nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .quick-navigation-layout {
    grid-template-columns: 1fr;
  }

  .weather-map-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-text {
    max-width: none;
  }

  .section-headline {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  header .brand-home-link {
    width: 100%;
  }

  header .logo-container {
    width: 100%;
    align-items: flex-start;
  }

  header nav {
    gap: 0.45rem 0.8rem;
  }

  header nav a {
    font-size: 0.95rem;
    white-space: normal;
    flex: 0 0 auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  section {
    border-radius: 18px;
    margin-bottom: 1.4rem;
  }

  section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .hero-copy h2 {
    font-size: 1.65rem;
  }

  .hero-text,
  .page-note,
  .seo-leiras {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    text-align: center;
  }

  .stats-grid,
  .megye-grid,
  .map-grid,
  .insight-grid,
  .featured-city-grid,
  .portal-grid,
  .quick-category-grid,
  .telepules-gallery-grid,
  .seo-stats {
    grid-template-columns: 1fr;
  }

  .quick-category-card {
    min-height: auto;
  }

  .featured-city-media,
  .portal-art {
    height: 180px;
  }

  .telepules-gallery {
    padding: 0;
    overflow: hidden;
  }

  .telepules-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .telepules-gallery-item {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
  }

  .telepules-gallery-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .telepules-gallery-item figcaption {
    font-size: 0.86rem;
    padding: 0.75rem 0.85rem 0.9rem;
    overflow-wrap: anywhere;
  }

  .telepules-search-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .search-submit-button {
    width: 100%;
  }

  .top-search-panel {
    margin-top: -0.3rem;
  }

  .top-search-copy h2 {
    font-size: clamp(1.58rem, 7.2vw, 2.05rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-hero-actions,
  .homepage-tool-links {
    flex-direction: column;
    align-items: stretch;
  }

  .homepage-tool-links a {
    justify-content: center;
    text-align: center;
  }

  .weather-map-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .telepules-search-input,
  #kereso {
    max-width: none;
    min-width: 0;
    font-size: 16px;
    padding: 0.85rem 1rem;
  }

  .telepules-search-input:focus,
  #kereso:focus {
    transform: none;
  }

  .telepules-search-list li,
  #telepules-lista li {
    padding: 0.8rem 1rem;
  }

  .weather-week-grid {
    grid-template-columns: 1fr;
  }

  .stat-link-card strong,
  .stat-card strong,
  .megye-card strong,
  .map-card strong {
    font-size: 1.35rem;
  }

  .featured-city-meta,
  .megye-meta,
  .county-town-links,
  .region-list {
    gap: 0.5rem;
  }

  #weather-map {
    height: 420px;
    border-radius: 20px;
  }

  .weather-panel-card,
  .weather-status,
  .weather-map-caption {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

@media (max-width: 420px) {
  header {
    padding: 0.8rem 1rem;
    border-radius: 0 0 18px 18px;
  }

  header img#logo {
    height: 46px;
  }

  .site-brand {
    font-size: 0.72rem;
  }

  header h1 {
    font-size: clamp(0.95rem, 4.8vw, 1.05rem);
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  #telepules-cim {
    font-size: 1.45rem;
  }

  #telepules-leiras {
    font-size: 0.94rem;
  }

  main {
    padding: 0 0.55rem;
  }

  section {
    padding: 1.2rem 1rem;
  }

  .hero-copy h2 {
    font-size: 1.45rem;
  }

  #weather-map {
    height: 360px;
  }

  .forecast-day-card {
    padding: 0.85rem 0.85rem 0.95rem;
  }

  .telepules-gallery-item {
    border-radius: 14px;
  }

  .telepules-gallery-item img {
    aspect-ratio: 5 / 4;
  }

  .featured-city-body,
  .portal-body,
  .stat-link-card,
  .illustration-panel {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }
}

/* ===== SEO STATIKUS TARTALOM ===== */
.seo-content {
  padding: 1.2rem 1.6rem 0.5rem;
  margin: 0 0 1rem;
}
.seo-h1 {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0 0 0.8rem;
  font-weight: 700;
}
.seo-leiras {
  color: #444;
  line-height: 1.7;
  margin: 0 0 0.8rem;
}
.seo-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.4rem 1.2rem;
}
.seo-stats li {
  font-size: 0.9rem;
  color: #555;
}

.seo-meta-box {
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-top: 7px solid var(--secondary);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.86), rgba(255, 255, 255, 1));
}

.hub-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1.6rem 1.1rem;
}

.hub-link-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: #fff;
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(29, 53, 87, 0.10);
  box-shadow: 0 8px 18px rgba(29, 53, 87, 0.07);
}

.hub-link-strip a:hover {
  color: var(--primary);
  border-color: rgba(0, 180, 216, 0.35);
}

.hub-place-card p {
  min-height: 4.6rem;
}

.telepules-gallery {
  padding: 0 1.6rem 0.6rem;
}

.telepules-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.telepules-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(29, 53, 87, 0.08);
  box-shadow: 0 12px 28px rgba(29, 53, 87, 0.10);
}

.telepules-gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: linear-gradient(135deg, #dff4fb, #fdf0e4);
}

.telepules-gallery-item figcaption {
  padding: 0.85rem 1rem 1rem;
  color: #55687d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.telepules-gallery-item figcaption a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.telepules-gallery-item figcaption a:hover {
  text-decoration: underline;
}

.telepules-gallery-sep {
  color: #9aa9b8;
  margin: 0 0.35rem;
}

.video-embed-box,
.wiki-background-box {
  border: 1px solid rgba(29, 53, 87, 0.08);
  border-top: 7px solid var(--secondary);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.08);
}

.editorial-depth-box {
  border: 1px solid rgba(10, 86, 134, 0.14);
  border-top: 7px solid #0f7aa7;
  background: linear-gradient(180deg, rgba(244, 251, 255, 0.98), rgba(232, 245, 252, 0.98));
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 122, 167, 0.12);
}

.editorial-depth-box h2 {
  color: #0d5777;
}

.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 16px;
  background: #08121f;
  box-shadow: 0 14px 32px rgba(8, 18, 31, 0.2);
  margin: 1rem 0 0.9rem;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wiki-background-copy {
  display: grid;
  gap: 0.85rem;
}

@media (max-width: 900px) {
  header .site-primary-nav,
  header .site-utility-nav {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ===== AFFILIATE BOX ===== */
.affiliate-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}
.affiliate-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.4rem;
}
.affiliate-desc {
  color: #555;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.affiliate-btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.affiliate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.affiliate-btn--primary { background: var(--primary); color: white; }
.affiliate-btn--secondary { background: var(--secondary); color: white; }
.affiliate-btn--tertiary { background: var(--accent); color: white; }
.affiliate-disclaimer {
  font-size: 0.75rem;
  color: #888;
  margin: 0;
}

/* ===== MAGAZIN ÉS KIEMELT TARTALOM ===== */
.magazine-hero {
  border-top-color: #e76f51;
  background:
    radial-gradient(circle at 85% 20%, rgba(231, 111, 81, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff8f5 100%);
}

.magazine-hero h2 {
  max-width: 18ch;
}

.magazine-hero > p:last-of-type,
.magazine-hero .page-note {
  max-width: 70ch;
  color: #52657a;
}

.magazine-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.magazine-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: rgba(29, 53, 87, 0.08);
  color: #264653;
  font-size: 0.9rem;
  font-weight: 700;
}

.magazine-grid-section {
  border-top-color: #f4a261;
}

.magazine-card-grid,
.homepage-magazine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.magazine-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 20px;
  border: 1px solid rgba(29, 53, 87, 0.08);
  background:
    radial-gradient(circle at 90% 12%, rgba(244, 162, 97, 0.15), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  box-shadow: 0 12px 28px rgba(29, 53, 87, 0.08);
}

.magazine-card h3 {
  margin: 0;
  line-height: 1.24;
}

.magazine-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.magazine-card p {
  margin: 0;
  color: #52657a;
}

.magazine-card__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 31px;
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  background: rgba(231, 111, 81, 0.12);
  color: #a54b35;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.magazine-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  margin-top: auto;
  padding: 0.68rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #1d3557, #24617b);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.magazine-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 53, 87, 0.18);
  color: #fff;
}

.homepage-magazine-panel {
  border-top-color: #e76f51;
  background:
    radial-gradient(circle at 15% 10%, rgba(231, 111, 81, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}

.homepage-magazine-panel .section-headline {
  margin-bottom: 1.4rem;
}

.magazine-ranking-item {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(29, 53, 87, 0.04);
  border: 1px solid rgba(29, 53, 87, 0.08);
  margin-bottom: 1rem;
}

.magazine-ranking-item:last-child {
  margin-bottom: 0;
}

.magazine-ranking-item h3 {
  margin-top: 0;
}

.magazine-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.magazine-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.58rem 0.88rem;
  border-radius: 9999px;
  background: rgba(0, 180, 216, 0.08);
  color: #0f6274;
  text-decoration: none;
  font-weight: 700;
}

.magazine-inline-link:hover {
  background: rgba(0, 180, 216, 0.16);
}

.internal-link-hub {
  border-top-color: #2a9d8f;
}

.internal-link-grid,
.related-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.internal-link-card,
.related-article-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(29, 53, 87, 0.09);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.07);
}

.internal-link-card h3,
.related-article-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.internal-link-card p,
.related-article-card p {
  margin: 0;
  color: #52657a;
  line-height: 1.55;
}

.related-article-card h3 a {
  color: var(--dark);
  text-decoration: none;
}

.internal-link-card:hover,
.related-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(29, 53, 87, 0.11);
}

.featured-settlement-manual {
  border-top-color: #0f7aa7;
}

.featured-settlement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.featured-settlement-detail {
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 122, 167, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.featured-settlement-detail h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0d5777;
}

.featured-settlement-detail p {
  margin: 0;
  color: #4b6175;
}

.featured-settlement-detail--wide {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(232, 245, 252, 0.88));
}

@media (max-width: 900px) {
  .magazine-card-grid,
  .homepage-magazine-grid,
  .featured-settlement-grid {
    grid-template-columns: 1fr;
  }

  .magazine-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0 1.6rem 1.2rem;
}

.contact-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
  border: 1px solid rgba(29, 53, 87, 0.09);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(29, 53, 87, 0.08);
  padding: 1.2rem 1.15rem;
}

.contact-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  color: var(--dark);
}

.contact-card p {
  margin: 0;
  color: #506173;
  line-height: 1.65;
}

.contact-card__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.contact-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}
