.portal-home {
  --accent: var(--red);
  --map-bg: #191916;
  --map-land: #302a23;
  --map-outline: #746253;
  --map-charter: #a9362a;
  --map-district: #e59a63;
  --map-representative: #578982;
  --map-forming: #766290;
}

.map-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--map-bg);
}

.map-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.turkiye-map {
  display: block;
  width: 100%;
  min-width: 56rem;
}

.map-province, .map-district {
  fill: var(--map-land);
  stroke: var(--map-outline);
  stroke-width: 1;
  stroke-linejoin: round;
}

.map-link {
  cursor: pointer;
}

.map-link .map-province {
  fill: var(--map-charter);
}

.map-link .map-district {
  fill: var(--map-district);
  stroke: #251910;
  stroke-width: 1.35;
}

.map-link:focus-visible {
  outline: none;
}

.map-hover {
  pointer-events: none;
}

.map-hover path {
  fill: #f9bf8f;
  stroke: #fff0da;
  stroke-width: 1.75;
  stroke-linejoin: round;
  fill-rule: evenodd;
  transform: scale(1.14);
  transform-box: fill-box;
  transform-origin: center;
}

.map-hover text {
  fill: #fff7e8;
  stroke: #191613;
  stroke-width: 4;
  stroke-linejoin: round;
  paint-order: stroke;
  font-size: 17px;
  font-weight: 850;
}

.map-link.status-temsilcilik .map-province { fill: var(--map-representative); }
.map-link.status-kurulum .map-province { fill: var(--map-forming); }

.map-credit {
  color: var(--soft);
  font-size: 0.75rem;
  margin: 0.5rem 0 0;
  text-align: right;
}

.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  color: var(--soft);
  font-size: 0.875rem;
}

.map-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.map-key span::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--map-outline);
  background: var(--map-land);
}

.map-key .key-province::before { background: var(--map-charter); }
.map-key .key-district::before { background: var(--map-district); }
.map-key .key-representative::before { background: var(--map-representative); }
.map-key .key-forming::before { background: var(--map-forming); }

.back-link {
  color: var(--muted);
  margin-bottom: 2rem;
  text-underline-offset: 0.25em;
}

.elazig-page {
  --accent: #f47b78;
  --line: #4f2728;
  --muted: #d0c0b8;
  background: radial-gradient(ellipse at 95% 20%, #421a22, transparent 50%), #181215;
}

:is(.elazig-main, .city-main) {
  flex: 1;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

:is(.elazig-hero, .city-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.elazig-copy h1 {
  font-size: clamp(3.75rem, 11vw, 9rem);
}

:is(.elazig-tagline, .city-tagline) {
  margin: 0.75rem 0;
  color: var(--accent);
  font-size: clamp(1.4rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

:is(.elazig-intro, .city-intro) {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

:is(.elazig-copy, .city-copy) .action { display: inline-block; margin-top: 0.5rem; }

.elazig-art {
  background: radial-gradient(ellipse at 55% 40%, #55232a, #21161a 70%);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.elazig-art svg { display: block; width: 100%; height: auto; }
.elazig-ring { fill: none; stroke: #c25859; stroke-width: 2; }
.elazig-ring-inner { stroke: #874148; stroke-width: 1; }
.elazig-number { fill: #f7b0a5; font-size: 90px; font-weight: 900; letter-spacing: -0.055em; }
.elazig-ridge { fill: #22171b; stroke: #b86563; stroke-width: 1.5; }
.elazig-fort { fill: #b67267; }
.elazig-water { fill: none; stroke: #a97a78; stroke-width: 1.25; opacity: 0.68; }

.elazig-art p {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  color: #f7b0a5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.elazig-art p span { color: #b26566; margin-inline: 0.3rem; }

:is(.elazig-local, .city-local) { margin-top: clamp(2.5rem, 7vw, 5rem); }
:is(.elazig-local, .city-local) h2 { margin: 0 0 1.25rem; font-size: clamp(1.6rem, 4vw, 2.5rem); }

:is(.elazig-grid, .city-grid) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

:is(.elazig-grid, .city-grid) article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: #24171b;
}

:is(.elazig-grid, .city-grid) article span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

:is(.elazig-grid, .city-grid) h3 { margin: 0.45rem 0; }
:is(.elazig-grid, .city-grid) p { margin: 0; color: var(--muted); line-height: 1.5; }

@media (max-width: 46rem) {
  :is(.elazig-hero, .city-hero), :is(.elazig-grid, .city-grid) { grid-template-columns: 1fr; }
}

.city-page {
  --line: color-mix(in srgb, var(--accent) 28%, #211a1b);
  background: radial-gradient(ellipse at 95% 20%, var(--city-backdrop), transparent 54%), #181613;
}

.city-copy h1 {
  font-size: clamp(2.5rem, 6.2vw, 6.75rem);
}

.city-kahramanmaras .city-copy h1 {
  font-size: clamp(2rem, 4.8vw, 5.25rem);
}

.city-copy .city-social {
  color: var(--profile-accent);
  border-color: var(--profile-accent);
}

.city-copy .city-social:hover {
  color: #181613;
  background: var(--profile-accent);
}

.city-art {
  margin: 0;
  background: radial-gradient(ellipse at 50% 38%, var(--city-backdrop), #211a1b 76%);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.city-art svg { display: block; width: 100%; height: auto; }
.city-art-ring { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.38; }
.city-art-ring-inner { stroke-width: 1; opacity: 0.2; }
.city-art-plate { fill: var(--accent); font-size: 42px; font-weight: 850; opacity: 0.75; }
.city-art-horizon { fill: #1d191a; stroke: var(--accent); stroke-width: 1; stroke-opacity: 0.45; }
.city-art-silhouette { fill: var(--accent); }
.city-art-lines { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.38; }

.city-art figcaption {
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.city-art figcaption span { color: var(--muted); margin-inline: 0.3rem; }
.city-grid article { background: color-mix(in srgb, var(--city-backdrop) 40%, #211a1b); }
.city-grid .city-social-card span { color: var(--profile-accent); }

@media (min-width: 46.001rem) {
  .city-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.city-gallery {
  margin-top: clamp(2.5rem, 7vw, 5rem);
  scroll-margin-top: 1rem;
}

.city-gallery h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.85rem;
}

.gallery-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: #24171b;
}

.gallery-photo a {
  display: block;
  overflow: hidden;
}

.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 160ms ease-out;
}

.gallery-photo a:hover img,
.gallery-photo a:focus-visible img { transform: scale(1.04); }

.gallery-photo figcaption { padding: 0.85rem 1rem 1rem; }

.gallery-photo figcaption span,
.gallery-ride summary > span:first-child {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.gallery-photo figcaption strong { display: block; margin-top: 0.25rem; }

.gallery-ride {
  margin-top: 0.85rem;
  border: 1px solid var(--line);
  background: #24171b;
}

.gallery-ride summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
}

.gallery-ride summary > span:first-child { grid-column: 1 / -1; }
.gallery-ride summary strong { font-size: 1.125rem; }
.gallery-ride-cta { color: var(--accent); font-size: 0.875rem; }
.gallery-ride[open] .gallery-ride-cta { visibility: hidden; }
.gallery-ride summary:focus-visible, .gallery-credits summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-ride-content {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

.gallery-ride-content p { margin: 0.25rem 0 1rem; }

.gallery-ride iframe {
  display: block;
  width: min(100%, 34rem);
  height: 41rem;
  border: 0;
  border-radius: 0.4rem;
  background: #fff;
}

.gallery-credits {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.gallery-credits summary { cursor: pointer; width: fit-content; }
.gallery-credits ul { padding-left: 1.25rem; }

.charter-actions .city-gallery-jump {
  display: inline-block;
  color: var(--muted);
  padding-block: 0.55rem;
}

@media (max-width: 46rem) {
  .gallery-photos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-photo img { transition: none; }
}

.city-page .gallery-photo, .city-page .gallery-ride {
  background: color-mix(in srgb, var(--city-backdrop) 40%, #211a1b);
}

.charter-patch {
  display: block;
  width: clamp(12rem, 22vw, 16rem);
  max-width: 100%;
  margin: 0 0 1.15rem;
}

.charter-patch img { display: block; width: 100%; height: auto; }

.charter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.85rem;
}

.charter-actions .action { margin-top: 0; }
