/* =============================================================
   ENYED — Globe Stage & Map Styles (Responsive)
   ============================================================= */
.stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  touch-action: pan-y pinch-zoom; min-width: 0; overflow: hidden; width: 100%;
}

canvas { display: block; max-width: 100%; }

.breadcrumb {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; font-family: "Space Grotesk", sans-serif;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; z-index: 8;
  flex-wrap: wrap; justify-content: center; padding: 6px 14px;
  background: rgba(0, 0, 0, 0.4); border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.breadcrumb span { color: var(--dim); cursor: pointer; }
.breadcrumb span.active { color: #fff; font-weight: 600; }
.breadcrumb b { color: var(--dim); font-weight: 400; }

.hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim);
  z-index: 8; text-align: center; white-space: nowrap; pointer-events: none;
}

.loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--dim);
}

.school-panel {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%) translateX(20px);
  width: 270px; background: rgba(10, 12, 18, 0.85); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease;
  z-index: 15; box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.school-panel.show { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.school-panel h4 { font-family: "Space Grotesk", sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.school-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.school-item:last-child { border-bottom: none; }
.school-item button {
  background: transparent; border: 1px solid var(--line); color: #fff;
  font-size: 10px; letter-spacing: .5px; text-transform: uppercase; padding: 6px 12px;
  border-radius: 20px; cursor: pointer; white-space: nowrap;
}

/* =============================================================
   RESPONSIVE BREAKPOINTS: Tablet & Mobile (< 900px)
   ============================================================= */
@media (max-width: 900px) {
  .stage {
    height: clamp(320px, 46vh, 440px);
    margin: 0 auto;
  }
  .breadcrumb {
    top: 10px; font-size: 10px; letter-spacing: 1px; gap: 6px; padding: 5px 12px;
  }
  .hint {
    bottom: 12px; font-size: 9.5px; letter-spacing: 1px;
  }
  .school-panel {
    right: 16px; left: 16px; top: auto; bottom: 16px;
    transform: translateY(20px);
    width: auto; max-width: 420px; margin: 0 auto;
  }
  .school-panel.show { transform: translateY(0); }
}

@media (max-width: 500px) {
  .hint {
    font-size: 8.5px;
    letter-spacing: 0.5px;
    white-space: normal;
    width: 90%;
    text-align: center;
  }
}

/* Okul paneli başlık satırı + kapatma düğmesi.
   Panel daha önce hiçbir şekilde kapatılamıyordu: işaretlemede kapatma
   düğmesi yoktu, globe.js'te de bir kapatma işleyicisi bulunmuyordu. */
.school-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.school-panel-head h4 { margin-bottom: 0; }

.school-panel-close {
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.school-panel-close:hover { background: var(--line); }
.school-panel-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
