/* Map Section */
.map-section{
  background: #0f0f0f;
  color: #fff;
  padding: 180px 0;
}

.map__inner{
  width: min(1420px, 92vw);
  margin: 0 auto;
}

.map__head{
  text-align: center;
  margin-bottom: 26px;
}

.map__title{
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.map__sub{
  margin-top: 10px;
  font-size: clamp(0.85rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
}

.map__grid{
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 16px;
  align-items: stretch;
}

/* Left list */
.map__list {
    display: flex;
    border-radius: 18px;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
}

.mapItem {
    width: 100%;
    padding: 16px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, transform 0.25s ease;
    align-items: center;
}

.mapItem:not(:last-child){
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mapItem__name{
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.mapItem__meta{
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.mapItem:hover{
  background: rgb(101 101 101 / 14%);
  transform: translateX(3px);
}

.mapItem.is-active {
  background: rgb(189 189 189 / 14%);
}

.mapItem.is-active .mapItem__name{
  color: var(--accent);
}

/* Right: map */
.map__frameWrap{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map__frame{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  min-height: 420px;
}

.map__frame iframe{
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.map__open{
  align-self: flex-end;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.map__open:hover{
  color: var(--accent);
  transform: translateY(-1px);
}

/* Reveal animation (reversible) */
.map-section [data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  will-change: opacity, transform;
}

.map-section.is-inview [data-reveal="title"]{ opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.map-section.is-inview [data-reveal="sub"]{ opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.map-section.is-inview [data-reveal="grid"]{ opacity: 1; transform: translateY(0); transition-delay: 0.22s; }

@media (max-width: 900px){
  .map__grid{
    grid-template-columns: 1fr;
  }
  .map__frame{ min-height: 360px; }
  .map__frame iframe{ min-height: 360px; }
}

/* Accent underline (grows in) */
.map__title::after{
  content:"";
  display:block;
  width: 0px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.9s ease;
  transition-delay: 0.18s;
}

.map-section.is-inview .map__title::after{
  width: 150px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .map__title::after{
    width: 74px !important;
    transition: none !important;
  }
}
