/* Nefes Ultra alt sayfalar (ana sayfa stillerini değiştirmez) */
.page-hero { padding: 128px 0 56px; background: linear-gradient(180deg, #1b2b39 0%, var(--navy) 100%); border-bottom: 1px solid rgba(255,255,255,.06); }
.page-hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 8px 0 16px; color: var(--white); }
.page-hero__title span { font-family: var(--font-accent); font-weight: 800; color: var(--teal); }
.page-hero__lead { max-width: 560px; color: var(--text-muted); font-size: 16px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-family: var(--font-ui); font-size: 16px; color: var(--text-muted); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current] { color: var(--white); }

/* Alt sayfalarda page-hero ve race-hero altındaki section: Temiz Beyaz Arka Plan */
.section {
  padding: 64px 0;
  background: #ffffff;
  color: #1e293b;
}
.section--alt {
  background: #f8fafc;
}

.narrow { max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.two-col--portrait { grid-template-columns: 320px 1fr; }

/* Tipografi & İçerik Metinleri (Beyaza göre net ve kontrastlı) */
.block-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #0f172a;
}
.sub-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  margin: 24px 0 8px;
  color: #0f172a;
}
.muted {
  color: #64748b;
  font-size: 16px;
  margin-bottom: 8px;
}
.rules-lead {
  margin-bottom: 24px;
  color: #334155;
  font-size: 1.05rem;
}

.prose {
  color: #334155;
}
.prose p {
  color: #334155;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #0f172a;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.prose strong, .prose b {
  color: #0f172a;
}
.prose ul, .prose ol {
  color: #334155;
  margin-bottom: 16px;
  padding-left: 20px;
}
.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.prose a {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 600;
}
.prose a:hover {
  color: #115e59;
}
.prose .notice { margin-top: 24px; }

/* Editörden gelen tüm tablolar için genel ve responsive stiller */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  table-layout: auto;
}

.prose table thead th,
.prose table th {
  background: #f1f5f9;
  color: #0f172a;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  white-space: normal;
}

.prose table thead th:last-child,
.prose table th:last-child {
  border-right: none;
}

.prose table tr.sub-th th {
  background: #f8fafc;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid #cbd5e1;
}

.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 14px;
  vertical-align: top;
}

.prose table td:last-child {
  border-right: none;
}

.prose table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.prose table tbody tr:hover {
  background-color: #f1f5f9;
}

.prose table td strong,
.prose table td b {
  color: #0f172a;
  font-weight: 600;
}

/* Tablo sarmalayıcısı (.table-wrap) içindeyken uyum */
.table-wrap > table {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-width: 600px;
}

@media (max-width: 768px) {
  .prose table:not(.table-wrap table) {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Bilgilendirme / Notice Kutusu */
.notice {
  margin: 32px 0;
  padding: 16px 24px;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-left: 4px solid var(--teal, #6bb5b0);
  border-radius: var(--radius);
}
.notice b {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 4px;
}
.notice p {
  margin: 0;
  color: #1e293b;
  font-size: 16px;
}

/* Kontrol Listeleri */
.check-list { display: grid; gap: 8px; margin-top: 16px; }
.check-list li {
  position: relative;
  padding: 12px 16px 12px 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 16px;
  color: #1e293b;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--teal, #6bb5b0);
}

.bullet-list { display: grid; gap: 8px; margin: 8px 0; }
.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  color: #334155;
  line-height: 1.6;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal, #6bb5b0);
}

/* Pillars / Değer Kartları */
.pillars { display: grid; gap: 16px; }
.pillars li {
  padding: 16px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.pillars h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
  color: #0f172a;
}
.pillars p:last-child {
  font-size: 16px;
  color: #64748b;
}

.stats--page .stat { background: #f1f5f9; color: #0f172a; border: 1px solid #e2e8f0; }
.stats--page .stat--dark { background: #0f172a; color: var(--white); border: 1px solid #1e293b; }

.portrait { aspect-ratio: 1 / 1.15; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, #5aa7c9 0%, #4a6a59 55%, #2b3a2a 100%); font-family: var(--font-accent); font-weight: 800; font-size: 80px; color: rgba(255,255,255,.35); }
img.portrait { width: 100%; height: auto; aspect-ratio: 1 / 1.15; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.08); background: #f1f5f9; }

/* Parkur sayfası Hero */
.race-hero { --route-color: var(--teal); padding: 128px 0 56px; background: linear-gradient(180deg, #1b2b39 0%, var(--navy) 100%); border-bottom: 4px solid var(--route-color); }
.race-hero--6k { --route-color: var(--c6); }
.race-hero--15k { --route-color: var(--c15); }
.race-hero--30k { --route-color: var(--c30); }
.race-hero--50k { --route-color: var(--c50); }
.race-hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 8px 0; color: var(--white); }
.race-hero__km { font-family: var(--font-accent); font-weight: 800; font-style: italic; color: var(--route-color); margin-right: 8px; }
.race-hero__km small { font-size: .6em; }
.race-hero__elev { font-family: var(--font-ui); font-weight: 700; font-size: 18px; color: var(--route-color); margin-bottom: 16px; }
.race-hero__desc { max-width: 520px; color: #cdd7df; margin-bottom: 24px; }
.race-hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.race-hero__badges { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.race-hero__badges img {
  height: 24px;
  width: auto;
  background: var(--teal, #6bb5b0);
  padding: 8px 14px;
  border-radius: var(--radius, 8px);
  box-sizing: content-box;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Parkur belge indirme butonları (Muvafakatname / Veli İzin Belgesi) */
.track-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}
.page-hero .track-docs {
  margin: 20px 0 0;
}
.track-docs__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(107, 181, 176, 0.14);
  border: 1px solid rgba(107, 181, 176, 0.45);
  color: #e6f6f5;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.track-docs__btn:hover,
.track-docs__btn:focus-visible {
  background: rgba(107, 181, 176, 0.28);
  border-color: var(--teal, #6bb5b0);
  color: #ffffff;
}
.track-docs__btn svg {
  flex-shrink: 0;
}

/* Sekmeler (Tabs) */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid #e2e8f0; margin-bottom: 32px; }
.tabs__tab {
  padding: 12px 24px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.tabs__tab:hover { color: #0f172a; }
.tabs__tab.is-active { color: #0f172a; border-bottom-color: var(--teal, #6bb5b0); }

.placeholder {
  padding: 64px 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.placeholder b {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
  color: #0f172a;
}
.placeholder p { color: #64748b; font-size: 16px; }

/* Facts Grid */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts div {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.facts dt {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 8px;
}
.facts dd {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #0f172a;
}

.mini-races { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.mini-race {
  display: block;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  --rc: var(--teal);
}
.mini-race:hover {
  transform: translateY(-4px);
  border-color: var(--rc);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.mini-race--6k { --rc: var(--c6); }
.mini-race--15k { --rc: var(--c15); }
.mini-race--30k { --rc: var(--c30); }
.mini-race--50k { --rc: var(--c50); }
.mini-race b {
  display: block;
  font-family: var(--font-accent);
  font-weight: 800;
  font-style: italic;
  font-size: 36px;
  line-height: 1.1;
  color: var(--rc);
}
.mini-race small { font-size: .6em; }
.mini-race span { font-family: var(--font-ui); font-size: 15px; color: #64748b; }

.cta-band { background: var(--teal); color: var(--navy); padding: 40px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, 3vw, 32px); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: #0e1720; }

/* İletişim, Bilgi & Konaklama Kartları */
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  color: #1e293b;
}
.contact-card h3 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 8px;
}
.contact-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-card .eyebrow {
  color: #0f766e;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-card b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: #0f172a;
}
.contact-card a:hover b { color: #0f766e; }

.contact-form {
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.field { margin-bottom: 16px; }
.field--recaptcha { display: flex; justify-content: flex-start; overflow-x: auto; max-width: 100%; margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--teal, #6bb5b0);
  outline-offset: 1px;
  border-color: var(--teal, #6bb5b0);
}
.field.has-error input, .field.has-error textarea { border-color: #e5604a; }
.form-note { margin-top: 12px; font-size: 14px; color: #64748b; text-align: center; }
.form-note.is-error { color: #dc2626; }

/* Harita ve Akordeonlar */
.facts--top { margin-bottom: 32px; grid-template-columns: repeat(7, 1fr); }
.facts--top div { padding: 16px 12px; }
.facts--top dd { font-size: 14.5px; }
.facts--two { grid-template-columns: 1fr 1fr; margin-top: 24px; }

.map-embed {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.map-embed iframe { display: block; width: 100%; height: 800px; border: 0; }
.map-note { margin-top: 16px; font-size: 15px; color: #64748b; }
.map-note a { color: #0f766e; text-decoration: underline; }
.info-cols { display: grid; gap: 40px; }
.block-title--mt { margin-top: 48px; }

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 800;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}
.data-table td {
  padding: 14px 18px;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
}
.data-table tbody tr:hover { background: #f8fafc; }

.accordion {
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.accordion summary {
  padding: 16px 24px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: #0f172a;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: background .15s;
}
.accordion summary:hover { background: #f8fafc; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: #0f766e; font-size: 22px; line-height: 1; }
.accordion[open] summary::after { content: "–"; }
.accordion .bullet-list { padding: 0 24px 24px; }

.map-card {
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #1e293b;
}
.map-card .block-title { color: #0f172a; }
.map-card .muted { max-width: 480px; margin: 0 auto 24px; color: #64748b; }

/* ==========================================================================
   LIGHTBOX / GÖRSEL ÖNİZLEME MODALI
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox:not([hidden]) .lightbox__content {
  transform: scale(1);
}

.lightbox__img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: block;
}

.lightbox__caption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
  max-width: 600px;
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
  outline: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* Lightbox Trigger Stili */
.lightbox-trigger {
  position: relative;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}

.lightbox-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.lightbox-trigger:hover::after {
  opacity: 1;
}

.lightbox-trigger img {
  transition: transform 0.35s ease;
}

.lightbox-trigger:hover img {
  transform: scale(1.03);
}

.lightbox-trigger__badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 1;
}

@media (max-width: 1080px) {
  .facts--top { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .two-col, .two-col--portrait { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .portrait { max-width: 280px; }
  .facts--top { grid-template-columns: 1fr 1fr 1fr; }
  .map-embed iframe { height: 600px; }
}
@media (max-width: 640px) {
  .page-hero, .race-hero { padding: 104px 0 40px; }
  .facts { grid-template-columns: 1fr; }
  .tabs__tab { padding: 8px 16px; }
  .facts--top, .facts--two { grid-template-columns: 1fr 1fr; }
  .facts--top div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .data-table th, .data-table td { padding: 10px 12px; }
}
