/* Dependency-free WebGL globe presentation and controls. */
.hero-section {
  min-height: 370px;
}

.hero-copy {
  width: 64%;
}

.hero-location {
  right: 0;
  width: 360px;
  gap: 5px;
  opacity: 1;
}

.hero-globe-stage {
  position: relative;
  width: 320px;
  height: 320px;
  flex: none;
  pointer-events: auto;
}

.hero-globe {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.hero-globe:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

.hero-globe:hover {
  transform: scale(1.012);
}

.hero-globe[data-pending="true"] {
  cursor: wait;
}

.hero-globe-stage.is-dragging .hero-globe {
  cursor: grabbing;
}

.hero-globe-canvas,
.hero-globe-stage .hero-globe svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero-globe-canvas {
  display: none;
  pointer-events: auto;
}

.hero-globe-stage.webgl-ready .hero-globe-canvas {
  display: block;
}

.hero-globe-stage.webgl-ready .hero-globe svg {
  display: none;
}

.hero-globe-zoom-controls {
  position: absolute;
  right: 10px;
  bottom: 18px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}

.hero-globe-stage.webgl-ready .hero-globe-zoom-controls {
  display: flex;
}

.hero-globe-zoom-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #d9efff8c;
  border-radius: 50%;
  background: #0b1e2bd9;
  color: #f4fbff;
  font: 600 19px/1 var(--sans, Arial, sans-serif);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 120ms ease, transform 120ms ease;
}

.hero-globe-zoom-controls button:hover {
  background: #163b50f2;
  transform: scale(1.06);
}

.hero-globe-zoom-controls button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.hero-globe-instructions {
  display: none;
  color: #a9b7bb;
  font-size: 9px;
  line-height: 1.4;
}

.hero-globe-details {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.hero-location-copy-content {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.hero-globe-info-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d6f36a52;
  border-radius: 999px;
  background: linear-gradient(135deg, #d6f36a1c, #ffffff08);
  color: var(--text);
  font: 600 9px/1.35 var(--sans, Arial, sans-serif);
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hero-globe-info-toggle:hover {
  border-color: var(--lime);
  background: linear-gradient(135deg, #d6f36a30, #ffffff0c);
  color: var(--text);
  box-shadow: 0 6px 18px #0005;
  transform: translateY(-1px);
}

.hero-globe-info-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.hero-globe-info-symbol {
  flex: none;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #151710;
  font: 800 12px/1 var(--sans, Arial, sans-serif);
}

.hero-globe-info-chevron {
  flex: none;
  margin-left: auto;
  color: var(--lime);
  font-size: 16px;
  line-height: 1;
  transition: transform 140ms ease;
}

.hero-globe-info-label {
  font-size: 9px;
  line-height: 1.2;
}

.hero-globe-info-toggle[aria-expanded="true"] .hero-globe-info-chevron {
  transform: rotate(180deg);
}

.hero-globe-instructions {
  display: none !important;
  position: absolute;
  right: 0;
  bottom: 52px;
  z-index: 5;
  max-width: 230px;
  width: max-content;
  padding: 8px 10px;
  border: 1px solid #d6f36a52;
  border-radius: 7px;
  background: #111b18f2;
  color: #dbe8df;
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
}
.hero-globe-instructions.is-visible {
  display: block !important;
}

.hero-globe-zoom-controls button {
  flex: 0 0 42px;
}

@media (min-width: 900px) {
  .hero-globe-info-toggle {
    display: flex;
  }

  .hero-location-copy {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: 8px;
    padding: 10px;
    border: 1px solid #343a30;
    border-left: 2px solid var(--lime);
    border-radius: 8px;
    background: linear-gradient(145deg, #1a1e18f2, #11130ff2);
    box-shadow: 0 12px 30px #0005;
    text-align: left;
    pointer-events: auto;
  }

  .hero-location-copy-content {
    display: none;
  }

  .hero-location-copy.is-info-open .hero-location-copy-content {
    display: grid;
  }

  .hero-location > .hero-globe-stage {
    grid-area: globe;
  }

  .hero-location > .hero-location-copy {
    grid-area: copy;
  }
}

.hero-section.webgl-ready .hero-globe-instructions:not(.is-visible) {
  display: none !important;
}

@media (min-width: 761px) {
  .hero-copy > .hero-location-copy {
    width: min(100%, 320px);
    max-width: 320px;
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .hero-copy > .hero-location-copy {
    width: 100%;
    max-width: min(100%, 420px);
    margin-top: 14px;
    padding: 0;
    text-align: left;
  }
}

.hero-globe-credit {
  max-width: 340px;
  color: #77878c;
  font-size: 7.5px;
  line-height: 1.4;
  text-align: center;
  pointer-events: auto;
}

.hero-globe-credit a {
  color: #9aafb5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-globe-credit a:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .hero-section {
    min-height: 320px;
  }

  .hero-copy {
    width: 60%;
    max-width: 610px;
  }

  .hero-location {
    right: -4px;
    width: 300px;
  }

  .hero-globe-stage {
    width: 276px;
    height: 276px;
  }

  .hero-location-copy {
    max-width: 300px;
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: 0;
    padding: 20px 0 18px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-location {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    margin-top: 14px;
    transform: none;
  }

  .hero-globe-stage {
    width: min(240px, 70vw);
    height: min(240px, 70vw);
  }

  .hero-globe {
    filter: drop-shadow(0 11px 24px #0008);
  }

  .hero-globe:not(:disabled):hover {
    transform: none;
  }

  .hero-globe-zoom-controls {
    right: 7px;
    bottom: 12px;
    gap: 4px;
  }

  .hero-globe-zoom-controls button {
    width: 40px;
    height: 40px;
  }

  .hero-location-copy {
    width: 100%;
    max-width: 100%;
    gap: 4px;
    padding: 0 8px;
    text-align: center;
  }

  .hero-globe-credit {
    max-width: 100%;
    padding: 0 6px;
  }
}

@media (max-width: 390px) {
  .hero-globe-stage {
    width: min(220px, 68vw);
    height: min(220px, 68vw);
  }
}

@media (hover: none) and (pointer: coarse) {
  .hero-globe:hover,
  .hero-globe-zoom-controls button:hover {
    transform: none;
  }
}

.hero-globe-tooltip {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 5;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid #bfe9ff70;
  border-radius: 999px;
  background: #071a28e8;
  box-shadow: 0 5px 18px #0007;
  color: #f3fbff;
  font: 600 11px/1.2 var(--sans, Arial, sans-serif);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.hero-globe-stage.has-tooltip .hero-globe-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Keep the desktop globe and its supporting copy inside the hero frame. */
@media (min-width: 761px) {
  .hero-section {
    min-height: 450px;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .hero-section {
    min-height: 410px;
  }
}

/* The globe owns both drag axes; ordinary page scrolling remains available outside it. */
.hero-globe {
  touch-action: none;
}

@media (max-width: 760px) {
  .hero-globe-stage {
    width: min(300px, 82vw);
    height: min(300px, 82vw);
  }
}

@media (max-width: 390px) {
  .hero-globe-stage {
    width: min(270px, 84vw);
    height: min(270px, 84vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-globe,
  .hero-globe-zoom-controls button,
  .hero-globe-tooltip {
    transition: none;
  }

  .hero-globe:hover,
  .hero-globe-zoom-controls button:hover {
    transform: none;
  }
}

/* On wide desktop, place globe status and controls beside the sphere instead of below it. */
@media (min-width: 1200px) {
  .hero-copy {
    width: calc(100% - 500px);
    max-width: 720px;
  }

  .hero-location {
    right: 0;
    display: grid;
    width: 470px;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .hero-globe-stage {
    width: 280px;
    height: 280px;
  }

  .hero-location-copy {
    width: auto;
    max-width: none;
    gap: 7px;
    padding: 14px 12px;
    border: 1px solid #343a30;
    border-left: 2px solid var(--lime);
    border-radius: 8px;
    background: linear-gradient(145deg, #1a1e18f2, #11130ff2);
    box-shadow: 0 12px 30px #0005;
    text-align: left;
  }

  .hero-location-label {
    font-size: 8px;
  }

  .hero-location-station {
    font-size: 13px;
    white-space: normal;
  }

  .hero-location-country {
    font-size: 10px;
    white-space: normal;
  }

  .hero-location-hint {
    font-size: 9px;
    line-height: 1.45;
  }

  .hero-location-copy .hero-globe-instructions {
    font-size: 8px;
    line-height: 1.5;
  }

  .hero-location-copy-content {
    gap: 6px;
  }
}

/* Grow the mobile sphere while clamping it to the hero's usable viewport width. */
@media (max-width: 760px) {
  .hero-globe-stage {
    width: min(340px, calc(100vw - 40px));
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* Desktop layout: reserve a real grid column for the globe so it never sits behind hero copy. */
@media (min-width: 1200px) {
  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, min(54%, 620px));
    align-items: center;
    column-gap: 24px;
  }

  .hero-copy {
    width: auto;
    min-width: 0;
    max-width: 720px;
  }

  .hero-location {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(155px, 0.8fr) minmax(210px, 1.2fr);
    grid-template-areas: "copy globe";
    align-items: center;
    gap: 8px;
    transform: none;
  }

  .hero-globe-stage {
    grid-area: globe;
    width: min(340px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .hero-location-copy {
    grid-area: copy;
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 40%);
    align-items: center;
    column-gap: clamp(14px, 2vw, 24px);
    min-height: 410px;
  }

  .hero-copy {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .hero-location {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(130px, 0.7fr) minmax(180px, 1fr);
    grid-template-areas: "copy globe";
    justify-items: stretch;
    align-items: center;
    gap: 8px;
    transform: none;
  }

  .hero-globe-stage {
    width: min(320px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .hero-location-copy {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

@media (min-width: 761px) and (max-width: 899px) {
  .hero-section {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    padding: 22px 0;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-location {
    position: relative;
    top: auto;
    right: auto;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    transform: none;
  }

  .hero-globe-stage {
    width: min(360px, 100%);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .hero-location-copy {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }
}

/* Final copy policy: station details stay visible in the hero's left column. */
@media (min-width: 761px) {
  .hero-location-copy {
    display: grid !important;
    align-content: start;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 6px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    pointer-events: none;
  }

  .hero-location-copy-content {
    display: grid !important;
    min-width: 0;
    gap: 4px;
  }

  .hero-globe-instructions {
    display: block !important;
  }
}

/* Masaüstü görünümünde küreyi yaklaşık %20 büyüt; tablet ve mobil ölçüler korunur. */
@media (min-width: 1101px) {
  .hero-globe-stage {
    width: 384px;
    height: 384px;
  }
  .hero-location {
    width: 420px;
  }
}

/* Küre ve çizim yüzeyi masaüstünde ovalleşmesin; tüm katmanlar kare kalır. */
@media (min-width: 1101px) {
  .hero-globe-stage,
  .hero-globe-stage > .hero-globe,
  .hero-globe-stage .hero-globe-canvas,
  .hero-globe-stage .hero-globe svg {
    width: 384px;
    height: 384px;
    min-width: 384px;
    max-width: 384px;
    min-height: 384px;
    max-height: 384px;
    aspect-ratio: 1 / 1;
  }
}

/* Hero içindeki sonraki popüler radyo kontrolü, masaüstü bilgi katmanı pointer-events dışında kalsa da tıklanabilir kalır. */
.hero-location-copy .hero-play-button-secondary {
  width: max-content;
  max-width: 100%;
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.hero-location-copy .hero-play-actions {
  display: flex;
  justify-content: center;
}
.hero-location-copy .hero-play-button-secondary {
  align-self: center;
  margin: 0;
}
.hero-play-actions-between {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 10px;
}
.hero-play-actions-between .hero-play-button-secondary {
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-color: #4c5540;
  background: transparent;
  color: #aab395;
  font-size: 10px;
  font-weight: 500;
}
.hero-copy .hero-play-actions-between {
  position: relative;
  left: auto;
  bottom: auto;
  margin: 12px 0 0;
}

/* Hero istasyon özeti: daha güçlü ve okunaklı tipografik hiyerarşi. */
.hero-location-label {
  font-size: 10px;
  letter-spacing: 1.2px;
}
.hero-location-copy-content {
  row-gap: 10px;
}
.hero-location-station {
  font-size: clamp(14px, 1.25vw, 19px) !important;
  line-height: 1.22;
}
.hero-location-country {
  font-size: 13px !important;
  line-height: 1.45;
}
.hero-location-hint {
  color: #aeb99b;
  font-size: 11px !important;
  line-height: 1.45;
}
