/* SPA 화면 전환 핵심 로직 */
.page {
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* active 클래스가 붙은 section만 화면에 보임 */
.page.active {
  display: block;
}

/* ------------------------------------------- */
/* 아래부터 기존 페이지들의 CSS 코드를 모두 붙여넣기 하세요 */
/* ------------------------------------------- */

/* 공통 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard", sans-serif;
}

/* 하단 공통 네비게이션 (중복 코드 제거 후 통합) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
  width: 100%;
  height: 72px;
  background-color: #1a3350;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.nav-item {
  background: none;
  border: none;
  cursor: pointer;
  color: #8fa6c1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.nav-item.active {
  color: white;
}
.nav-item .icon {
  font-size: 24px;
}
.nav-item .label {
  font-size: 12px;
  font-weight: 500;
}
.nav-item img {
  width: 24px;
  height: 24px;
} /* 커스텀 아이콘 사용 시 */

/* 공통 - 추후 통일 작업 필요*/
/* 초기화면용 css */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: "Noto Sans KR", sans-serif;
  background: #1679bb;
  margin: 0;
  overscroll-behavior: none;
}

/* 기본 링크 스타일 */
a {
  color: white;
  text-decoration: none;
}
a:visited {
  color: white;
}

.mobile-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100dvh;
  background-color: #99caf2; /* 지도 로드 전 임시 바다색 배경 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 모바일 화면 */
.mobile {
  position: relative;
  width: 390px;
  height: 844px;
  overflow: hidden;
  border-radius: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ── 하늘 배경 ── */
.sky {
  position: absolute;
  inset: 0;
  background-image: url("../img/main-bg-port-2400.jpg");
  background-size: cover;
  background-position: center bottom;
}
@media (min-width: 768px) {
  .sky { 
    background-image: url('../img/main-bg.jpg'); 
    background-position: center; 
  }
}

/* ── 마스코트 캐릭터 ── */
.mascot {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  animation:
    mascotFloat 3.2s ease-in-out infinite;
  animation-delay: 0s, 0.3s;
  transform-origin: center bottom;
  z-index: 10;
}
.mascot-inner {
  width: 100%;
  animation: mascotSway 5.6s ease-in-out infinite 0.6s;
  transform-origin: center bottom;
}
.mascot-inner img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}

@keyframes mascotAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.6) translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

/* ── 타이틀 이미지 ── */
.title-container {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 78vw);
  text-align: center;
  z-index: 20;
  animation: titleDrop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.1s;
}
.title-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.2));
}
@keyframes titleDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}


/* ── 버튼 ── */
.btn {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.btn-start {
  display: inline-block;
  width: 120vw;           
  padding: 0;
  aspect-ratio: 400 / 110;
  background-image: url("../img/start-button-400.png");
  background-size: contain;      /* cover 대신 contain을 써야 잘리지 않습니다 */
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent; /* 배경색 투명하게 */
  
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── 여권 발급 팝업(모달) ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  /* animation: fadeIn 0.3s ease;  */
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #ffffff;
  border-radius: 20px;
  width: 80%;
  max-width: 340px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: none !important;
  transform: none !important;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e8e8e8;
  border: none;
  color: #555;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-header {
  font-size: 18px;
  font-weight: 900;
  color: #1a8fdc;
  margin-bottom: 15px;
}

/* 캡처를 위해 여권 번호와 안내 문구를 감싸는 영역 */
#captureArea {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
}

.warning-text {
  font-size: 13px;
  color: #e74c3c;
  margin-bottom: 15px;
  line-height: 1.4;
  word-break: keep-all;
}

.passport-id-box {
  background-color: #f0f4f8;
  border: 2px dashed #1a8fdc;
  color: #111;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-family: "Courier New", Courier, monospace;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-copy {
  flex: 1;
  background: none;
  border: 1px solid #aaa;
  color: #555;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
}
.btn-copy:active {
  background: #eee;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  font-size: 12px;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.divider span {
  padding: 0 10px;
}

.input-passport {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
  font-family: "Courier New", Courier, monospace;
}

.btn-action {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
.btn-coral {
  background: linear-gradient(135deg, #ff7e5f, #feb47b);
}
.btn-blue {
  background: linear-gradient(135deg, #1e9fe8, #1a8fdc);
}

/* 초기 표시 Map */

/* 지도가 들어가는 부모 영역과 지도 컨테이너 모두 화면에 꽉 차도록 설정 */
#page-map {
  width: 100vw;
  height: 100vh;
  display: none; /* SPA 기본 숨김 처리 */
}

#map {
  width: 100%;
  height: 100%; /* 부모 높이를 100% 따라가도록 설정 */
}

/* 1. 헤더 스타일 */

.header {
  background-color: rgba(255, 255, 255, 0.75);
  color: #1e385b;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  text-align: center;
  z-index: 10;
  padding: 20px 0 0 0;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.header-top button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.header-top button img {
  width: 35px; /* 아이콘 크기 */
  height: 35px;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.map-title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.spacer {
  width: 24px;
}
/* 타이틀 중앙 정렬용 */
.map-subtitle {
  color: #1e385b;
  font-size: 14px;
  margin-top: 5px;
}
.header-icon {
  margin-top: 10px;
  font-size: 20px;
}

/* 2. 지도 영역 */
.map-area {
  top: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}
#map {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #dcece2; /* 지도 API 로딩 전 배경색 */
}
.map-placeholder-text {
  color: #888;
  font-weight: bold;
}

/* 1. 커스텀 마커(이벤트 핀) CSS 애니메이션 */
.stamp-pin {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-position: center;
  animation: floating 1.5s ease-in-out infinite alternate;
  cursor: pointer;
}
.comp-pin {
  width: 30px;
  height: 30px;
  background-size: cover;
  background-position: left;
  animation: floating 1.5s ease-in-out infinite alternate;
  cursor: pointer;
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* 내 위치 확인 버튼 UI */
.btn-my-location {
  position: absolute;
  top: 22%;
  right: 20px;
  z-index: 100;
  padding: 12px 20px;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-my-location:active {
  background-color: #f0f0f0;
}

/* 내 현재 위치를 표시할 파란색 점 핀 */
.my-loc-pin {
  width: 40px;
  height: 40px;
  /*           border: 3px solid #ffffff;
            border-radius: 50%;
            box-shadow: 0 2px 5px rgba(0,0,0,0.3);  */
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* 3. 스탬프 인증 현황 카드 전체 틀 */
.progress-card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  border-radius: 15px 15px 0 0;
  padding: 15px 20px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 30;
  transition: all 0.3s ease;
}
.progress-card.expanded {
  background-color: rgba(255, 255, 255, 0.98);
}

/* 헤더 부분 (클릭 영역) */
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.progress-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-title {
  font-weight: 700;
  color: #1a3350;
  display: flex;
  align-items: center;
  gap: 5px;
}
.progress-count .current {
  color: #1e826b;
  font-weight: 700;
  font-size: 16px;
}
.progress-count .total {
  color: #888;
  font-size: 14px;
}
.expand-btn {
  background: none;
  border: none;
  color: #1a3350;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.progress-card.expanded .expand-btn {
  transform: rotate(180deg);
}

/* 🌟 펼쳐지는 영역 애니메이션 설정 */
.expandable-area {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    margin-top 0.4s ease;
}
.progress-card.expanded .expandable-area {
  max-height: 60vh; /* 화면 높이의 최대 60%까지만 확장 */
  margin-top: 15px;
}

/* 부활한 프로그레스 바 스타일 */
.progress-bar-container {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.progress-track {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 10px;
  position: relative;
}
.progress-fill {
  height: 100%;
  background-color: #1a3350;
  border-radius: 10px;
  width: 10%;
  transition: width 0.5s;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  left: 10%;
  transition: left 0.5s;
}

/* 🌟 스크롤 가능한 등대 리스트 영역 */
.lighthouse-list {
  list-style: none;
  max-height: calc(60vh - 60px); /* 전체 60vh 중 프로그레스바 높이 제외 */
  overflow-y: auto; /* 리스트가 길면 이 안에서만 스크롤됨 */
  border-top: 1px solid #eee;
}

/* 리스트 아이템 (줄 단위) */
.yw-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.yw-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 스탬프 이미지 테두리 처리 */
.yw-stamp-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #f0f0f0;
  border: 2px solid #ddd;
  padding: 2px;
}
.yw-item.acquired .yw-stamp-img {
  border-color: #1e826b;
  background: white;
}

/* 텍스트 영역 */
.yw-name {
  font-weight: 700;
  color: #333;
  font-size: 15px;
  margin-bottom: 3px;
}
.yw-dist {
  font-size: 12px;
  color: #888;
}

/* 우측 뱃지 (스탬프존 진입 등) */
.stamp-zone-text {
  font-size: 12px;
  font-weight: 700;
  color: #ff5722;
  background: #ffeee8;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(255, 87, 34, 0.2);
}
.stamp-done-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e826b;
  padding-right: 5px;
}

/* 팝업 오버레이 (배경 어둡게 및 중앙 정렬) */
.popup-overlay {
  display: none; /* 기본 숨김 */
  position: fixed;
  inset: 0;
  background: rgba(20, 60, 90, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 팝업 카드 메인 */
.popup-card {
  position: relative;
  width: calc(100% - 40px);
  max-width: 360px;
  box-sizing: border-box;
  background: rgba(176, 209, 226, 0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow:
    0 8px 32px rgba(30, 80, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 내부 요소들 */
.card-header {
  padding: 18px 20px 10px;
  text-align: center;
}
.card-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: 13px;
  color: #2a5070;
  opacity: 0.85;
}
.top-actions {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 10;
}
.action-btn {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 80, 120, 0.18);
  transition: 0.2s;
}
.action-btn:hover,
.action-btn.playing {
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1.08);
}
.action-btn svg {
  width: 24px;
  height: 24px;
  fill: #1a3a5c;
}
.action-btn.playing svg {
  fill: #e84040;
}

/* 오디오 애니메이션 */
.wave-bars {
  display: none;
  align-items: center;
  gap: 2px;
  height: 20px;
}
.action-btn.playing .wave-bars {
  display: flex;
}
.action-btn.playing .sound-icon {
  display: none;
}
.wave-bar {
  width: 3px;
  border-radius: 2px;
  background: #e84040;
  animation: waveAnim 0.6s ease-in-out infinite alternate;
}
.wave-bar:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}
.wave-bar:nth-child(2) {
  height: 14px;
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  height: 10px;
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  height: 18px;
  animation-delay: 0.05s;
}
.wave-bar:nth-child(5) {
  height: 8px;
  animation-delay: 0.15s;
}
@keyframes waveAnim {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1);
  }
}

/* 이미지 및 텍스트 */
.circle-image-wrap {
  position: relative;
  width: 65%;
  aspect-ratio: 1;
  margin: 8px auto 0;
}
.circle-image-wrap::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5bbfdf 0%, #88d4ef 50%, #3a9fc5 100%);
  z-index: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.5),
    0 8px 28px rgba(30, 100, 160, 0.25);
}
.circle-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    transparent 60%
  );
  z-index: 1; /* circle-image(z:1) 위, label(z:2) 아래 */
}
.circle-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(255, 255, 255, 0.7);
}
.circle-image-label {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: "Black Han Sans", sans-serif;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}
.card-desc {
  padding: 20px 24px 10px;
  text-align: center;
  font-family: "Black Han Sans", sans-serif;
  font-size: 16px;
  color: #1a3a5c;
  line-height: 1.5;
}
.divider {
  margin: 12px 20px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(91, 191, 223, 0.5),
    transparent
  );
}

/* 새로 추가된 주소 영역 */
.card-address {
  text-align: center;
  padding: 5px 24px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #2a5070;
}

/* 앱 연결 모달 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 60, 90, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: rgba(200, 230, 245, 0.9);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 28px 24px 22px;
  width: min(340px, 90vw);
  text-align: center;
}
.modal-title {
  font-family: "Black Han Sans", sans-serif;
  font-size: 17px;
  color: #1a3a5c;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 12px;
  color: #2a5070;
  margin-bottom: 20px;
  opacity: 0.8;
}
.app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration: none;
  text-align: left;
  transition: 0.2s;
}
.app-item:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(3px);
}
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.app-name {
  font-family: "Black Han Sans", sans-serif;
  font-size: 14px;
  color: #1a3a5c;
}
.app-desc {
  font-size: 11px;
  color: #2a5070;
  margin-top: 2px;
}
.app-arrow {
  margin-left: auto;
  font-size: 16px;
  color: #4a9fc8;
}
.appmodal-close {
  margin-top: 16px;
  width: 100%;
  padding: 11px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  font-family: "Black Han Sans", sans-serif;
  font-size: 14px;
  color: #2a5070;
  cursor: pointer;
}

/* 패스포트 */

/* 배경 이미지 */
.bg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background-image: url("../img/passport-title.jpg");
    background-size: cover; 
    background-position: center top; 
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .bg {
        background-image: url("../img/passport-title-mobile.jpg");      
        background-size: cover; /* 모바일에서는 전체 표시 */
        background-position: center center;
    }
}

.backBtn {
  position: fixed;
  top: 3%;
  left: 5%;
  z-index: 99999;
}
.backBtn button {
  background: none;
  border: none;
  padding: 0;
}
.backBtn img {
  width: 50px;
  height: 50px;
  display: block;
  background-color: transparent;
}

/* 🌟 여권 페이지 최상단 고정 뒤로가기 버튼 */
.passport-back-btn {
    position: fixed;
    top: 25px;
    left: 20px;
    z-index: 999999 !important; /* 어떤 요소보다 무조건 위에 띄움 */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto !important; /* 다른 레이어가 덮어도 터치를 강제로 활성화 */
}
.passport-back-btn img {
    width: 45px;
    height: 45px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
/* 안내 영역 */
.swipe-guide {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  width: 100%;
}

/* 아이콘 */
.swipe-icon {
  width: 45px; /* 아이콘 크기 조절 */
  height: auto;
  margin-bottom: 12px;
  opacity: 0.9;
  /* 좌우로 부드럽게 움직이는 애니메이션 추가 */
  animation: swipeMove 2.5s ease-in-out infinite;
}

/* 안내문구 */
.guide-text {
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  /* 텍스트가 배경에 묻히지 않도록 그림자 효과 추가 */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.3px;
}
/* 빔 회전 애니메이션 */
@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* 중심 광원 깜빡임 애니메이션 */
@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 스와이프 애니메이션 */
@keyframes swipeMove {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  } /* 왼쪽으로 약간 이동 */
  80% {
    transform: translateX(8px);
  } /* 오른쪽으로 약간 이동 */
}

/* 등장 효과 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 상단 중앙 로고 스타일 */
.passport-logo {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  max-width: 250px;
  z-index: 20;
}

/* 등대 광원 위치 (중심점 잡기) */
.light-center {
  position: absolute;
  top: 40.6%; /* 광원 Y축 위치 */
  left: 50%;
  width: 0;
  height: 0;
  z-index: 10;
}

/* 360도 회전하는 빔 (Beam) */
.rotating-beam {
  position: absolute;
  top: 50%;
  left: 0;
  width: 150vw;
  height: 120px;
  background: linear-gradient(
    90deg,
    rgba(255, 246, 179, 0.8) 0%,
    rgba(255, 246, 179, 0) 70%
  );
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  transform-origin: 0% 50%;
  mix-blend-mode: screen;
  animation: spin 8s linear infinite;
}

/* 광원 중심부 반짝임 효과 */
.center-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: #fffac2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px 8px rgba(255, 242, 168, 0.9);
  animation: pulse 2s ease-in-out infinite alternate;
}

/* =========================================
   [SPA] 지도 페이지 레이아웃 크기 강제 지정
========================================= */

/* 1. 지도 페이지(page-map)가 켜졌을 때 flex 모드로 화면을 꽉 채우게 함 */
#page-map.active {
  display: flex !important;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* 2. 상단 헤더, 인증 현황 바 등을 제외한 나머지 '모든 빈 공간'을 지도가 차지하게 함 */

.top-map-area {
  flex: 1; /* 남은 높이를 모두 가져감 */
  position: relative;
  width: 100%;
  min-height: 300px; /* 지도가 찌그러지는 것 방지 최소 높이 */
}

/* 3. 최종적으로 네이버 지도 컨테이너가 부모(map-area)의 100%를 쓰게 함 */
#top-map {
  width: 100%;
  height: 100%;
}

/* 게임 Process */
/* 미션 경로 */
.mission-path {
  flex: 1;
  overflow: hidden;
  padding: 10px 20px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* 상단 정렬로 변경 */
  gap: 60px;
}

/* 지그재그 */
.step-container {
  width: 100%;
  display: flex;
  margin-bottom: 0;
}

.step-container:nth-child(odd) {
  padding-left: 10%;
  justify-content: flex-start;
}

.step-container:nth-child(even) {
  padding-right: 15%;
  justify-content: flex-end;
}

.round-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: none;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s;
}

.round-btn:active {
  transform: scale(0.95);
}

.round-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(255, 115, 139, 0.4);
}

/* --- 방법 2: 각 버튼의 개별 위치 정밀 조정 --- */

/* 1. 상단: 축하 파티 버튼 (왼쪽 정렬) */
#step-complete {
  justify-content: flex-start; /* 왼쪽 정렬 */
  padding-left: 27%;           /* 왼쪽 여백 조절 (원하는 만큼 수정) */
  margin-top: 16rem;       /* 세로 위치를 조금 내리고 싶을 때 사용 */
}

/* 2. 중간: 인증샷 버튼 (오른쪽 정렬) */
#step-photo {
  justify-content: flex-end;   /* 오른쪽 정렬 */
  padding-right: 55%;          /* 오른쪽 아이콘과 안 겹치게 여백 조절 */
  margin-top: 3rem;       /* 세로 위치 조절 */
}

/* 3. 하단: 게임 버튼 (왼쪽 -> 오른쪽으로 변경!) */
#step-game {
  justify-content: flex-end;   /* 오른쪽 정렬로 변경 */
  padding-right: 10%;          /* 오른쪽 여백 지정 (우측 아이콘과 겹치지 않게) */
  padding-left: 0;             /* 기존 홀수 규칙(왼쪽 여백) 초기화 */
  margin-top: -3rem;           /* 버튼을 위로 끌어올리기 (음수 값을 주면 위로 올라갑니다) */
}

/* 현재 미션 파동효과 애니메이션 */
@keyframes wave {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.step-container.active .round-btn::before,
.step-container.active .round-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #7fd2ff;
  animation: wave 2s infinite;
}

.step-container.active .round-btn::after {
  animation-delay: 1s;
}

/* 팝업 모달창 디자인 */
.mission-modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.mission-modal-content {
  background: white;
  width: 80%;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
}

.mission-action-btn {
  background-color: #ff738b;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 115, 139, 0.3);
}

/* 우측 네비게이션 */
.header-trans {
  color: #1e385b;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  text-align: center;
  z-index: 10;
  padding: 20px 0 0 0;
}
.right-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  bottom: 280px;
  right: 20px;
  gap: 10px;
  z-index: 30;
}
.right-item {
  background: none;
  border: none;
  color: #8fa6c1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
  height: 100%;
  justify-content: center;
}
.right-item.active {
  color: black;
}
.right-item .label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: white;
  margin-top: 2px;
}
.right-item img {
  width: 54px;
  height: 54px;
}

/* --- 탭 공통 스타일 --- */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  width: 100%;
  max-height: 100%;
}

.tab-content.active {
  display: flex;
}

#tab-mission {
  flex-direction: column;
}

/* --- 사진 후기 UI 스타일 --- */
.review-list {
  flex-direction: column;
  background-color: #f2f2f5;
  padding: 15px 10px;
  gap: 15px;
}

.review-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.user-profile {
  width: 24px;
  height: 24px;
  background-color: #c4c4c4;
  border-radius: 50%;
}

.user-info {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}

.review-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* 스마트폰 기본 세로 사진 비율 (인스타 느낌을 원하시면 4 / 5) */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: #f0f0f0; /* 사진이 로딩되기 전 깔끔한 배경색 */
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 비율이 약간 달라도 찌그러지지 않고 영역을 꽉 채움 */
  display: block;
}

.image-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
}

.review-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.tag.pink {
  background-color: #fce4ec;
  color: #ad1457;
}
.tag.blue {
  background-color: #e3f2fd;
  color: #1565c0;
}

.review-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* --- 지도 스타일 수정 --- */
#tab-smap {
  background-color: #fff;
  position: relative;
}
#smap {
  width: 100%;
  height: 100%; /* 화면 스크롤이 생기지 않도록 100%로 최적화 */
}

.mission-bg {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100%;
  overflow-y: auto;
  overflow: hidden;
  position: relative;
  background-image: url("../img/process-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  isolation: isolate;
}

/* 패스포트 내부 페이지 */
.app-container {
  width: 100%;
  max-width: 420px;
  height: 100%;
  overflow-y: auto;
  background-color: #fbf9f4; /* 앱 전체 배경색 */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

/* 1. 상단 여권 배경 및 스탬프 영역 */
.header-section {
  height: 35vh;
  position: relative;
  width: 100%;
  /* 배경 이미지 비율 유지를 위한 설정 */
  display: flex;
  flex-direction: column;
}
.header-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
}

/* 상단 타이틀 영역 */
.title-area {
  text-align: center;
  padding-top: 15px;
  color: #ffffff;
}
.title-area h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.title-area h2 {
  font-size: 12px;
  font-weight: 500;
  color: #8ed6ba; /* 민트색 */
  letter-spacing: 2px;
}

/* 티켓(스탬프) 영역 */
.ticket-area {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stamp-img {
  width: 50%; /* 스탬프 이미지 크기 조절 */
  max-width: 220px;
  object-fit: contain;
}
.stamp-time {
  position: absolute;
  bottom: 7%;
  right: 10%;
  font-size: 11px;
  color: #999;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 1px;
}

/* 2. 중간 스탬프 기록 통계 영역 */
.record-section {
  /*         position: absolute;
            top: 35%;  */
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 24px 5px;
}
.record-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #173357; /* 짙은 남색 */
  gap: 6px;
}
.record-count {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}
.record-count .current {
  color: #173357;
  font-weight: 700;
  text-decoration: underline;
  text-underline-position: under;
  font-size: 16px;
}

/* 3. 하단 인증샷 및 정보 카드 영역 */
.cards-section {
  margin-top: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  padding: 0 15px;
  flex: 1;
  flex-shrink: 0; /* 🔥 공간이 부족해도 카드가 위아래로 찌그러지지 않게 방어 */
}

/* 좌측 인증샷 카드 */
.photo-card {
  flex: 3;
  background-color: #e8e8e8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 0 30px 0;
  color: #777;
  overflow: hidden;
}
.photo-card img {
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: contain; /* ← cover 는 비율 유지하며 카드를 꽉 채움 (넘치는 부분은 잘림) */
  border-radius: 12px; /* ← photo-card의 border-radius와 동일하게 */
  background-color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.photo-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  fill: #999;
}
.photo-card p {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

/* 우측 등대 정보 카드 */
.info-card {
  flex: 2;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.info-card img {
  width: 100%;
  object-fit: contain; /* ← cover 는 비율 유지하며 카드를 꽉 채움 (넘치는 부분은 잘림) */
  border-radius: 12px; /* ← photo-card의 border-radius와 동일하게 */
  background-color: transparent; /* 투명하게 설정 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-badge {
  display: inline-block;
  border: 1px solid #173357;
  color: #173357;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  width: fit-content;
}
.info-title {
  font-size: 16px;
  font-weight: 700;
  color: #173357;
  margin-bottom: 4px;
}
.info-subtitle {
  font-size: 11px;
  color: #999;
  margin-bottom: 16px;
}
.info-divider {
  height: 1px;
  background-color: #f0f0f0;
  border: none;
  margin-bottom: 16px;
}
.review-space {
  flex-grow: 1;
  /* 후기가 들어갈 빈 공간 확보 */
  min-height: 40px;
}
.info-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #999;
  font-family: "Courier New", Courier, monospace;
}
.info-date svg {
  width: 14px;
  height: 14px;
  fill: #173357;
}

/* 해시태그 스타일 */
.hashtag {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  margin-top: 6px;
  border-radius: 12px; /* 둥근 모서리 */
  font-weight: bold;
  color: #fff; /* 글자색 흰색 */
  font-size: 14px;
}

/* 색상별 클래스 */
.hashtag.pink {
  background-color: #ff6fae; /* 분홍색 */
}

.hashtag.blue {
  background-color: #5bc0de; /* 하늘색 */
}

/* 아래 텍스트 */
.subtitle {
  margin-top: 12px;
  margin-left: 3px;
  margin-right: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

/* 팝업(모달) 배경 딤(Dim) 처리 */
.info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* 기본적으로 숨김 상태 */
  justify-content: center;
  align-items: center;
  z-index: 100;
}

/* 팝업 컨텐츠 박스 */
.info-modal-content {
  background-image: url("../img/popup-std.png");
  background-size: cover;
  background-position: center; /* 이미지가 항상 중앙을 기준으로 잘리도록 추가 */
  width: 100%;
  max-width: 354px;
  height: 50%; 
  border-radius: 15px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden; 
  
  /* 내부 영역(body, footer)을 관리하기 위해 flex 적용 */
  display: flex; 
  flex-direction: column;
}

/* 우측 상단 X 버튼 */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.2rem;
  background-color: #3B2A1E;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* 텍스트 정보 영역 */
.modal-body {
  padding: 3.5rem 1.5rem 0rem 3rem; /* 스크롤바가 생길 것을 대비해 우측 패딩을 조금 줍니다 */
  flex: 1; /* 상단 X버튼과 하단 풋터를 제외한 남은 공간을 모두 차지함 */
  overflow-y: auto; /* 💡핵심: 텍스트가 고정된 높이를 넘어가면 세로 스크롤바가 생김 */
}
.info-group {
  margin-bottom: 12px;
}
.info-label {
  font-size: 14px;
  color: #111;
  margin-bottom: 4px;
}
.info-value {
  font-size: 16px;
  color: #1c5e32; /* 올려주신 이미지의 진한 녹색 텍스트 */
  font-weight: 500;
  word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

/* 하단 영역 (물결무늬 배경 대체 및 버튼) */
.modal-footer {
  height: 90px;
  flex-shrink: 0; /* 💡핵심: 텍스트가 아무리 길어져도 하단 버튼 영역의 90px 높이가 찌그러지지 않게 방어 */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* OK 버튼 */
.btn-ok {
  background: linear-gradient(to right, #2C3E50 0%, #1C2833 50%, #0B0C10);
  color: #fff;
  border: none;
  padding: 10px 0;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 60%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 현재 해야 할 미션 버튼 강조 (반짝임 및 테두리 효과) */
@keyframes highlightBlink {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    transform: scale(1);
  }
}
.step-active .round-btn {
  animation: highlightBlink 1.5s infinite;
  border: 3px solid #ffd700; /* 황금색 테두리 */
}
/* 아직 비활성화된(접근 불가) 버튼 흐리게 처리 */
.step-locked {
  opacity: 0.5;
  filter: grayscale(80%);
}

/* 1. 페이지 전체 높이 강제 확보 */
#page-passport {
    position: fixed; /* absolute보다 fixed가 모바일 전체화면 고정에 더 안정적입니다 */
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100dvh; /* 100dvh를 사용하여 모바일 브라우저 주소창 높이 변화에 완벽 대응 */
    overflow: hidden;
    display: none;
    z-index: 100;
}

/* active 클래스가 붙었을 때만 화면에 flex로 활성화 */
#page-passport.active {
    display: flex !important;
    flex-direction: column;
}

/* 2. 스와이프 컨테이너 (남은 공간 모두 차지) */
.passport-book-container {
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* 3. 실제 스와이프되는 래퍼 (가로 스크롤) */
.passport-book-wrapper {
    width: 100%;
    height: 100%; 
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* scroll-behavior: smooth; <-- 🚨 아이폰에서 반쪽 멈춤을 유발하는 주범이므로 반드시 삭제/주석 처리합니다! */
    -webkit-overflow-scrolling: touch;
}
.passport-book-wrapper::-webkit-scrollbar {
    display: none; /* 스크롤바 숨김 */
}

/* 4. 11개 페이지 각각의 틀 (가로 100% 유지) */
.passport-sheet {
    flex: 0 0 100%;
    width: 100%; /* 100vw 대신 100%를 써서 오차 범위를 없앱니다 */
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always; /* 🚨 핵심: 아무리 세게 넘겨도 무조건 딱 1장씩만 멈추게 브레이크를 겁니다 */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
    position: relative;
    contain: paint;
}

/* [표지] 파란 화면에 글자가 중앙에 오도록 세팅 */
.passport-sheet.cover-page {
    background-color: #1a365d;
    color: white;
    text-align: center;
}

/* 4. 안의 속지 컨테이너 (여백 0, 100% 꽉 차게 복구) */
.passport-sheet .app-container {
    width: 100%; /* 좌우 꽉 차게 */
    max-width: 420px; /* PC 접속 시에만 최대 너비 제한 */
    height: 100%; /* 위아래 꽉 차게 */
    background-color: #fbf9f4;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-radius: 0; /* 둥근 모서리 제거 */
    box-shadow: none; /* 떠있는 그림자 효과 제거 */
    padding-bottom: 0;
}

/* 5. 하단 인디케이터 고정 */
.passport-indicator {
    height: 60px;
    flex-shrink: 0; /* 높이 축소 방지 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    background-color: #f3ede4;
    border-top: 1px solid #e2dacd;
    font-size: 15px;
    font-weight: bold;
    color: #554433;
    z-index: 10;
}
/* 💡 여권 표지 중앙 로고 하단의 내 여권 번호 표시 스타일 */
.passport-id-display {
    width: 70%;
    position: absolute;
    top: 35%; /* 로고 바로 아래 위치하도록 조절 (필요시 수치 변경) */
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 20;
    font-family: "Black Han Sans", sans-serif;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* 배경에 묻히지 않도록 그림자 처리 */
    background: rgba(255, 255, 255, 0.15); /* 살짝 투명한 배경을 깔아 가독성 높임 */
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* =========================================
   [SPA] 메인 이용 안내 팝업 (민트 테마)
========================================= */

.guide-modal-content {
    /* 기존 민트색 변수들을 이 팝업 안에서만 작동하도록 세팅 */
    --primary-dark: #245752;
    --primary-main: #419c92;
    --text-dark: #2c3e3b;
    --text-gray: #556e6a;
    --bg-color: #edf6f5;
    
    background-color: var(--bg-color);
    width: 90%;
    max-width: 400px;
    max-height: 85vh; /* 화면이 작아도 넘치지 않게 */
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 팝업 상단 헤더 */
.guide-header {
    background-color: var(--primary-main);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}
.guide-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}
.guide-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* 팝업 스크롤 본문 */
.guide-body {
    padding: 20px 15px;
    overflow-y: auto; /* 내용이 길면 안에서 스크롤 됨 */
}

/* 카드 디자인 */
.main-info-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 24px 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(65, 156, 146, 0.08);
    border: 1px solid #e1f0ee;
}
.main-info-card:last-child {
    margin-bottom: 0;
}

/* 카드 텍스트 스타일 */
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 14px;
    word-break: keep-all;
}
.card-text {
    font-size: 14.5px;
    color: var(--text-gray);
    word-break: keep-all;
    line-height: 1.5;
}

/* 리스트 스타일 */
.info-list {
    padding-left: 18px;
    margin-top: 10px;
}
.info-list li {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
    word-break: keep-all;
}
.info-list li:last-child {
    margin-bottom: 0;
}

/* 강조 효과 */
.highlight {
    font-weight: 700;
    background: linear-gradient(to right, #419c92, #6cb875);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 불릿 없는 리스트 */
.bullet-none {
    list-style-type: none; 
    padding-left: 0;
}
.bullet-none li {
    position: relative; 
    padding-left: 14px;
}
.bullet-none li .dash {
    position: absolute; 
    left: 0; 
    top: 0;
    color: var(--primary-main);
    font-weight: bold;
}