/* RAIDEN 오시는 길 — 로드뷰 걷기 모달 */
.rdx-lock { overflow: hidden; }
.rdx-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: #e8f4ff; }
.rdx-modal:not([open]) { display: none; }
.rdx-modal::backdrop { background: transparent; }
.rdx-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 16, .72); }
.rdx-panel { position: relative; width: min(1180px, 96vw); max-height: 94vh; display: flex; flex-direction: column;
  background: #061525; border: 1px solid rgba(39, 195, 255, .28); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.rdx-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(39, 195, 255, .18); }
.rdx-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rdx-close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #e8f4ff; font-size: 26px; line-height: 1; cursor: pointer; }
.rdx-close:hover, .rdx-close:focus-visible { background: rgba(39, 195, 255, .14); outline: none; }

.rdx-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 0; flex: 1; }
.rdx-stage { position: relative; aspect-ratio: 16 / 10; min-height: 320px; background: #020a14; }
.rdx-roadview { position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; background: #020a14; }
/* 로드뷰 레이어: 위 레이어가 서서히 나타나고 아래 레이어는 끝까지 불투명 (투명도만 변경, 확대 없음) */
.rdx-rv-layer { position: absolute; inset: 0; opacity: 0; z-index: 1; pointer-events: none; transition: opacity var(--rdx-fade, 800ms) cubic-bezier(.45, 0, .25, 1); }
.rdx-rv-layer.is-under { opacity: 1; z-index: 2; transition: none; }
.rdx-rv-layer.is-top { opacity: 1; z-index: 3; pointer-events: auto; }
.rdx-rv-layer.no-fade { transition: none; }
.rdx-roadview[hidden] { display: none; }

/* HUD: 상단 좌측에만 배치 — 하단의 Kakao 로고/저작권 표시는 가리지 않음 */
.rdx-hud { position: absolute; top: 12px; left: 12px; z-index: 4; min-width: 200px; padding: 10px 12px; border-radius: 10px;
  background: rgba(6, 21, 37, .78); border: 1px solid rgba(39, 195, 255, .35); pointer-events: none; }
.rdx-hud[hidden] { display: none; }
.rdx-hud-label { font-size: 13px; font-weight: 700; color: #27c3ff; }
.rdx-bar { height: 4px; margin: 7px 0 5px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.rdx-bar-fill { height: 100%; width: 0; background: #27c3ff; transition: width .25s linear; }
.rdx-hud-dist { font-size: 13px; font-variant-numeric: tabular-nums; }

.rdx-banner, .rdx-arrive { position: absolute; left: 50%; top: 38%; z-index: 4; transform: translate(-50%, -50%) scale(.98);
  padding: 14px 22px; border-radius: 12px; background: rgba(6, 21, 37, .86); border: 1px solid rgba(39, 195, 255, .5);
  text-align: center; opacity: 0; transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.rdx-banner { font-size: 20px; font-weight: 700; }
.rdx-banner.is-on, .rdx-arrive.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rdx-arrive strong { display: block; font-size: 21px; color: #27c3ff; }
.rdx-arrive span { display: block; margin-top: 4px; font-size: 15px; }

.rdx-status { position: absolute; inset: auto 0 0 0; top: 50%; z-index: 3; transform: translateY(-50%); text-align: center; font-size: 14px; color: #9fc7e6; }
.rdx-status[hidden] { display: none; }

.rdx-fallback { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; background: #020a14; z-index: 6; }
.rdx-fallback[hidden] { display: none; }
.rdx-fallback img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.rdx-fallback figcaption { padding: 8px 12px; font-size: 12px; color: #9fc7e6; }

.rdx-side { display: flex; flex-direction: column; border-left: 1px solid rgba(39, 195, 255, .18); min-height: 0; }
.rdx-minimap { height: 260px; background: #0b2238; }
.rdx-minimap[hidden] { display: none; }
.rdx-info { padding: 14px 16px; font-size: 13px; line-height: 1.55; overflow: auto; }
.rdx-info p { margin: 0 0 8px; }
.rdx-addr { font-weight: 700; }
.rdx-note, .rdx-credit { color: #9fc7e6; font-size: 12px; }
.rdx-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.rdx-link { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #27c3ff; color: #061525; font-weight: 700; text-decoration: none; font-size: 13px; }
.rdx-link-ghost { background: transparent; color: #27c3ff; border: 1px solid #27c3ff; }

.rdx-controls { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid rgba(39, 195, 255, .18); flex-wrap: wrap; }
.rdx-controls.is-fallback .rdx-btn, .rdx-controls.is-fallback .rdx-hint { display: none; }
.rdx-btn { min-width: 84px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(39, 195, 255, .6);
  background: transparent; color: #e8f4ff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rdx-btn-primary { background: #27c3ff; color: #061525; border-color: #27c3ff; }
.rdx-btn:disabled { opacity: .4; cursor: default; }
.rdx-btn:focus-visible, .rdx-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rdx-hint { margin-left: auto; font-size: 12px; color: #9fc7e6; }

/* 미니맵 마커 */
.rdx-walker { width: 14px; height: 14px; border-radius: 50%; background: #27c3ff; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(39, 195, 255, .35); }
.rdx-tag { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; font-family: 'Noto Sans KR', sans-serif; }
.rdx-tag-start { background: #fff; color: #061525; }
.rdx-tag-dest { background: #27c3ff; color: #061525; }

/* 모바일: 로드뷰 위, 미니맵/정보 아래 */
@media (max-width: 820px) {
  .rdx-panel { width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; }
  .rdx-body { grid-template-columns: 1fr; overflow: auto; }
  .rdx-stage { aspect-ratio: auto; height: 56vh; min-height: 280px; }
  .rdx-side { border-left: 0; border-top: 1px solid rgba(39, 195, 255, .18); }
  .rdx-minimap { height: 200px; }
  .rdx-hint { display: none; }
  .rdx-btn { flex: 1; }
  .rdx-banner { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .rdx-rv-layer { transition: none; }
  .rdx-banner, .rdx-arrive, .rdx-bar-fill { transition: none; }
}
.rdx-is-fallback .rdx-credit { display: none; }

/* 오시는 길(#contact) 페이지 '항공사진' 버튼 */
.cover-page.rdx-surface { position: relative; }
.rdx-btn-row { position: absolute; z-index: 5; transform: translateY(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: .55em; }
.rdx-btn-row.is-above { transform: translateY(-50%); }
.rdx-open-btn { position: relative; display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em .5em .6em; border: 0; border-radius: 999px; background: #27c3ff; color: #061525; font-family: 'Noto Sans KR', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  box-shadow: 0 6px 18px rgba(6, 21, 37, .35), 0 0 0 0 rgba(39, 195, 255, .55); animation: rdx-pulse 2.6s ease-out infinite; }
.rdx-open-btn:hover { background: #5ad3ff; }
.rdx-open-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rdx-open-ico { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; line-height: 1; border-radius: 50%; background: #061525; color: #27c3ff; font-size: .7em; }
@keyframes rdx-pulse { 0% { box-shadow: 0 6px 18px rgba(6, 21, 37, .35), 0 0 0 0 rgba(39, 195, 255, .55); } 70%, 100% { box-shadow: 0 6px 18px rgba(6, 21, 37, .35), 0 0 0 12px rgba(39, 195, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .rdx-open-btn { animation: none; } }

/* 오시는 길 표지 — 실사 지도(Kakao 스카이뷰+지명 실시간). 지도는 고정, 페이지 확대(핀치)와 충돌하지 않도록 포인터 이벤트 없음 */
.rdx-cmap { position: absolute; z-index: 4; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .7s ease;
  background: #0b1a2a; border-radius: 2px; box-shadow: 0 0 0 1px rgba(6, 21, 37, .12), 0 8px 24px rgba(6, 21, 37, .18);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.rdx-cmap.is-ready { opacity: 1; }
.rdx-cmap-map { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rdx-cmap-map * { pointer-events: none !important; }
.rdx-cmap-route { position: absolute; left: 0; top: 0; z-index: 2; overflow: visible; }
.rdx-cmap-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rdx-cr-case { stroke: #fff; stroke-opacity: .96; }
.rdx-cr-line { stroke: #ee5a24; }
.rdx-cr-glow { stroke: #ffe3a3; stroke-opacity: .75; }
.rdx-cr-flow { stroke: #fffbea; }
.rdx-cmap.no-flow .rdx-cr-glow, .rdx-cmap.no-flow .rdx-cr-flow { display: none; }
.rdx-pin { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - .45em)); padding: .34em .62em; border-radius: 1em;
  color: #fff; font-size: 1em; font-weight: 800; line-height: 1.1; white-space: nowrap; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.rdx-pin::after { content: ''; position: absolute; left: 50%; bottom: -.5em; transform: translateX(-50%); border: .32em solid transparent; border-top: .5em solid; border-bottom: 0; }
.rdx-pin::before { content: ''; position: absolute; left: 50%; bottom: calc(-.5em - .42em); width: .5em; height: .5em; transform: translateX(-50%); border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 .16em currentColor; }
.rdx-pin-start { background: #1f6fe5; }
.rdx-pin-start::after { border-top-color: #1f6fe5; }
.rdx-pin-start::before { color: #1f6fe5; }
.rdx-pin-dest { background: #e8413b; }
.rdx-pin-dest::after { border-top-color: #e8413b; }
.rdx-pin-dest::before { color: #e8413b; }
.rdx-cmap-label { position: absolute; z-index: 3; padding: .62em 1.05em .66em; background: rgba(11, 45, 77, .94); border-left: 3px solid #27c3ff;
  color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); white-space: nowrap; }
.rdx-cmap-label strong { display: block; font-size: 1.22em; font-weight: 800; letter-spacing: -.01em; }
.rdx-cmap-label span { display: block; margin-top: .25em; font-size: 1em; color: #7fd6ff; }
@media (prefers-reduced-motion: reduce) { .rdx-cmap { transition: none; } }

/* 버튼 2개: '항공사진'은 남색 테두리형, '로드뷰로 걸어오기'는 하늘색 강조형 (사이트 버튼 스타일) */
.rdx-open-btn.rdx-btn-aerial { background: #0b2d4d; color: #fff; box-shadow: 0 6px 18px rgba(6, 21, 37, .3), inset 0 0 0 1.5px #27c3ff; animation: none; }
.rdx-open-btn.rdx-btn-aerial:hover { background: #12406a; }
.rdx-btn-aerial .rdx-open-ico { background: #27c3ff; color: #061525; font-size: .8em; }

/* '항공사진' 모달 */
.rdx-apanel { width: min(1180px, 96vw); }
.rdx-astage { position: relative; height: min(68vh, 660px); min-height: 260px; background: #020a14; overflow: hidden; }
.rdx-afallback { position: absolute; inset: 0; margin: 0; }
.rdx-afallback img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rdx-afallback figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(6, 21, 37, .72); font-size: 11px; color: #cfe7ff; }
.rdx-astage.is-live .rdx-afallback { visibility: hidden; }
.rdx-cmap.rdx-cmap-modal { inset: 0; border-radius: 0; box-shadow: none; }
.rdx-afoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid rgba(39, 195, 255, .18); }
.rdx-ainfo strong { display: block; font-size: 16px; font-weight: 800; }
.rdx-ainfo span { display: block; margin-top: 2px; font-size: 13px; color: #9fc3e0; }
.rdx-afoot .rdx-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rdx-afoot button.rdx-link { font-family: inherit; cursor: pointer; border: 0; }
@media (max-width: 640px) {
  .rdx-astage { height: auto; flex: 1 1 auto; }
  .rdx-afoot { padding: 10px 12px; }
  .rdx-ainfo strong { font-size: 14px; }
}
