/* ============================================================================
   ESL1on1 Classroom CF1.0 — Walkable Voxel Places HUD, World Map & Inspector CSS
   ============================================================================ */

.places-glass {
  background: rgba(20, 24, 38, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(238, 224, 203, 0.18);
  box-shadow: 0 18px 44px -14px rgba(8, 10, 20, 0.78);
}

#places-hud button,
#modal-world-map-teleport button,
#places-quiz-img-wrap,
#places-details-img-wrap {
  cursor: var(--cursor-roblox-point) !important;
}

#places-hud .places-scroll,
#modal-world-map-teleport .places-scroll {
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

#places-hud .places-scroll::-webkit-scrollbar,
#modal-world-map-teleport .places-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#places-hud .places-scroll::-webkit-scrollbar-thumb,
#modal-world-map-teleport .places-scroll::-webkit-scrollbar-thumb {
  background: rgba(230, 184, 138, 0.36);
  border-radius: 9999px;
}

@keyframes placesWrongShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.places-animate-shake {
  animation: placesWrongShake 0.36s ease-in-out;
}

#places-location-list {
  max-height: min(56vh, 420px);
}

#places-checklist-items {
  max-height: min(48vh, 360px);
}

#places-inspector-card:not(.hidden) {
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 88px);
}

#places-quiz-section:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#places-details-section:not(.hidden) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#places-quiz-options-grid {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(40vh, 320px);
}

#places-lightbox-card {
  width: min(88%, 1040px);
  max-height: 82%;
}

.world-map-loc-card {
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.world-map-loc-card:hover {
  transform: translateY(-2px);
}

/* Compact / mobile-landscape responsiveness inside rotated or short #classroom-wrapper */
@media (max-height: 540px) {
  #places-top-bar {
    padding-top: 6px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  #places-return-classroom-btn,
  #places-location-btn,
  #places-toggle-checklist-btn {
    padding: 5px 10px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
  }
  #places-current-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
  }
  #places-current-title {
    font-size: 12px !important;
  }
  #places-guide-open-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 11px !important;
    font-size: 14px !important;
  }
  #places-inspector-card:not(.hidden) {
    top: 46px !important;
    right: 8px !important;
    width: min(420px, 56%) !important;
    max-width: none !important;
    max-height: calc(100% - 54px) !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
  }
  #places-quiz-img-wrap,
  #places-details-img-wrap {
    max-height: 105px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
  #places-quiz-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-height: none !important;
    gap: 5px !important;
  }
  #places-checklist-drawer {
    top: 46px !important;
    left: 8px !important;
    width: min(310px, 50%) !important;
    padding: 10px !important;
    max-height: calc(100% - 54px) !important;
  }
  #places-checklist-items {
    max-height: calc(100vh - 130px) !important;
  }
  #places-location-dropdown {
    width: min(350px, 58vw) !important;
    padding: 10px !important;
  }
  #places-location-list {
    max-height: 220px !important;
  }
  #places-proximity-prompt {
    bottom: 14px !important;
  }
}

@media (max-width: 560px) {
  #places-return-classroom-btn .places-btn-label {
    display: none;
  }
}
