﻿:root {
  --gnb-height: 62px;
  --left-panel-width: 360px;
  --left-panel-peek-width: 36px;
  --mobile-sheet-peek-height: 108px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #eef3f9 0%, var(--c-blue-025-2) 100%);
}

body.map-page {
  overflow: hidden;
  overscroll-behavior: none;
}

.gnb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--gnb-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-brown-500);
  color: var(--c-white);
  padding: 0 20px;
  border-bottom: 2px solid var(--c-brown-600-3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1100;
}

.is-hidden {
  display: none !important;
}

.gnb-left {
  display: flex;
  align-items: center;
  gap: 54px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #c9a46c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--c-white);
}

.brand-name {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.gnb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 10px;
}

.gnb-link {
  text-decoration: none;
  color: var(--c-white);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
}

.gnb-link:hover {
  background: rgba(255,255,255,0.25);
}

.gnb-link.active {
  background: rgba(255,255,255,0.3);
}

.gnb-login {
  text-decoration: none;
  color: #5c3a1e;
  border: none;
  background: var(--color-surface-alt);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.gnb-login:hover,
.gnb-login.active {
  background: var(--c-white);
}

.gnb-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gnb-logout-btn {
  cursor: pointer;
}

#app {
  position: relative;
  height: calc(100vh - var(--gnb-height));
  margin-top: var(--gnb-height);
  overflow: hidden;
}

.panel.left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--left-panel-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  overflow: auto;
  box-shadow: 6px 0 18px rgba(20, 34, 53, 0.12);
  transform: translateX(0);
  transition: transform 280ms ease;
  z-index: 40;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#app.panel-collapsed .panel.left {
  transform: translateX(calc(-1 * (var(--left-panel-width) - var(--left-panel-peek-width))));
}

.panel-slide-toggle {
  position: absolute;
  top: 50%;
  left: calc(var(--left-panel-width) - 15px);
  transform: translateY(-50%);
  width: 30px;
  height: 74px;
  border: 1px solid var(--c-blue-150);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #2f4868;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(16, 32, 52, 0.2);
  z-index: 60;
  transition: left 280ms ease, background 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.panel-slide-toggle:hover {
  background: var(--c-white);
}

.panel-slide-toggle-icon {
  width: 16px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M11.5 5 5.5 14l6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 5l-6 9 6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

#app.panel-collapsed .panel-slide-toggle {
  left: calc(var(--left-panel-peek-width) - 15px);
}

#app.panel-collapsed .panel-slide-toggle-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='m8.5 5 6 9-6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m3 5 6 9-6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@keyframes panel-toggle-attention {
  0%,
  100% {
    border-color: var(--c-blue-150);
    box-shadow:
      0 8px 16px rgba(16, 32, 52, 0.2),
      0 0 0 0 rgba(214, 157, 96, 0);
    filter: saturate(1);
  }
  50% {
    border-color: #d8ae7f;
    box-shadow:
      0 10px 22px rgba(16, 32, 52, 0.28),
      0 0 0 2px rgba(214, 157, 96, 0.3),
      0 0 14px rgba(214, 157, 96, 0.42);
    filter: saturate(1.05);
  }
}

#app.panel-collapsed .panel-slide-toggle {
  animation: panel-toggle-attention 1.15s ease-in-out infinite;
}

.panel-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  z-index: 5;
}

.panel-header h1,
.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.list-filters {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.search-input {
  width: 100%;
  border: 1px solid #d5dde8;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.search-input:focus {
  border-color: #a8c7ef;
  box-shadow: 0 0 0 3px rgba(0, 120, 255, 0.12);
}

.search-scope-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 28px;
  color: var(--c-blue-550);
  cursor: pointer;
  user-select: none;
}

.search-scope-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color 140ms ease;
}

.search-scope-label.is-active {
  color: #1f3856;
}

.search-scope-input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.search-scope-track {
  position: relative;
  width: 46px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #cbd7e5;
  border-radius: 999px;
  background: #edf3f9;
  box-shadow: inset 0 1px 2px rgba(26, 43, 62, 0.12);
  transition: background 140ms ease, border-color 140ms ease;
}

.search-scope-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 0 2px 5px rgba(26, 43, 62, 0.24);
  transition: transform 160ms ease;
}

.search-scope-input:checked + .search-scope-track {
  border-color: #97b9e8;
  background: #dcecff;
}

.search-scope-input:checked + .search-scope-track .search-scope-thumb {
  transform: translateX(22px);
}

.search-scope-input:focus-visible + .search-scope-track {
  outline: 3px solid rgba(0, 120, 255, 0.18);
  outline-offset: 2px;
}

.type-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.type-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.type-filter-item input {
  margin: 0;
}

#mapWrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

.place-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.place-item {
  border-bottom: 1px solid #edf1f6;
  padding: 10px 12px;
  cursor: pointer;
}

.place-item:hover {
  background: #f7fafe;
}

.place-item.active {
  background: var(--color-border-soft);
}

.place-item-copy {
  min-width: 0;
}

.place-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.place-meta {
  margin: 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.my-place-favorite-btn {
  border: 1px solid #d6dde8;
  background: var(--c-white);
  color: #8a97a8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.my-place-favorite-btn:hover {
  border-color: #e695a5;
  color: #d83355;
  transform: translateY(-1px);
}

.my-place-favorite-btn.is-favorite {
  border-color: #f1b0bd;
  background: #fff2f5;
  color: var(--c-red-500);
}

.favorite-heart {
  width: 17px;
  height: 17px;
  background: currentColor;
  display: inline-block;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.6c-.3 0-.6-.1-.8-.3C5.6 15.2 3 12.4 3 8.8 3 6 5.2 3.8 8 3.8c1.6 0 3.1.7 4 1.9 1-1.2 2.4-1.9 4-1.9 2.8 0 5 2.2 5 5 0 3.6-2.6 6.4-8.2 11.5-.2.2-.5.3-.8.3Z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.6c-.3 0-.6-.1-.8-.3C5.6 15.2 3 12.4 3 8.8 3 6 5.2 3.8 8 3.8c1.6 0 3.1.7 4 1.9 1-1.2 2.4-1.9 4-1.9 2.8 0 5 2.2 5 5 0 3.6-2.6 6.4-8.2 11.5-.2.2-.5.3-.8.3Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.empty {
  padding: 20px 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.detail-overlay {
  position: absolute;
  left: var(--left-panel-width);
  top: 0;
  width: min(500px, calc(100% - var(--left-panel-width)));
  max-height: 100%;
  height: 100%;
  overflow: visible;
  background: var(--c-blue-050-3);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  box-shadow: 8px 0 18px rgba(22, 36, 55, 0.14);
  z-index: 20;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

.detail-scroll {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#app.panel-collapsed .detail-overlay {
  left: var(--left-panel-peek-width);
  width: min(500px, calc(100% - var(--left-panel-peek-width)));
}

#app.detail-collapsed .detail-overlay {
  transform: translateX(-80%);
  box-shadow: 3px 0 10px rgba(22, 36, 55, 0.16);
}

.detail-overlay.hidden {
  display: none;
}

.detail-panel-toggle {
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 74px;
  border: 1px solid var(--c-blue-150);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(16, 32, 52, 0.2);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-panel-toggle:hover {
  background: var(--c-white);
}

.detail-panel-toggle-icon {
  width: 16px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='M11.5 5 5.5 14l6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M17 5l-6 9 6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

#app.detail-collapsed .detail-panel-toggle-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 28'%3E%3Cpath d='m8.5 5 6 9-6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m3 5 6 9-6 9' fill='none' stroke='%232f4868' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#app.detail-collapsed .detail-panel-toggle {
  animation: panel-toggle-attention 1.15s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  #app.panel-collapsed .panel-slide-toggle,
  #app.detail-collapsed .detail-panel-toggle {
    animation: none;
  }
}

.detail-head {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--c-blue-100-2);
  padding: 12px 14px;
  z-index: 2;
}

.detail-head h2,
.detail-title-wrap {
  margin: 0;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#detailTitle {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-title-favorite-btn {
  border: none;
  background: transparent;
  color: var(--c-red-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 30px;
  padding: 2px 4px;
}

.detail-title-favorite-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.detail-title-favorite-btn:not(:disabled):hover .detail-title-favorite-heart {
  transform: translateY(-1px) scale(1.04);
}

.detail-title-favorite-heart {
  width: 26px;
  height: 26px;
  color: var(--c-red-500);
  display: block;
  fill: var(--c-white);
  stroke: currentColor;
  stroke-width: 1.9px;
  stroke-linejoin: round;
  transition: fill 140ms ease, transform 140ms ease, stroke-width 140ms ease;
}

.detail-title-favorite-btn.is-favorite .detail-title-favorite-heart {
  fill: currentColor;
  stroke-width: 1.4px;
}

.detail-title-favorite-count {
  min-width: 10px;
  color: #a31733;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.favorite-feedback {
  margin: 12px 0;
  color: #4d6038;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.favorite-feedback[hidden] { display: none; }
.favorite-feedback.is-error { color: var(--color-danger); }
.favorite-feedback a { margin-left: 8px; color: inherit; font-weight: 700; text-decoration: underline; }
.detail-favorite-feedback { margin: 10px 20px 0; }

.place-type-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--c-white) no-repeat center / 22px 22px;
  border: 1px solid #d4dde8;
  flex-shrink: 0;
}

.place-type-title-icon-default {
  background-image: url("/images/place-types/default.svg");
}

.place-type-title-icon-museum {
  background-image: url("/images/place-types/museum.svg");
}

.place-type-title-icon-theme_park {
  background-image: url("/images/place-types/theme_park.svg");
}

.place-type-title-icon-zoo {
  background-image: url("/images/place-types/zoo.svg");
}

.place-type-title-icon-aquarium {
  background-image: url("/images/place-types/aquarium.svg");
}

.place-type-title-icon-eco_park {
  background-image: url("/images/place-types/eco_park.svg");
}

.place-type-title-icon-library {
  background-image: url("/images/place-types/library.svg");
}

.place-type-title-icon-memorial {
  background-image: url("/images/place-types/memorial.svg");
}

.place-type-title-icon-experience_center {
  background-image: url("/images/place-types/experience_center.svg");
}

.place-type-title-icon-historic_site {
  background-image: url("/images/place-types/historic_site.svg");
}

.place-type-title-icon-kids_cafe {
  background-image: url("/images/place-types/kids_cafe.svg");
}

.place-type-title-icon-market_street {
  background-image: url("/images/place-types/market_street.svg");
}

.detail-close {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--c-white);
  padding: 6px 10px;
  cursor: pointer;
}

.detail-close-x {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-close-icon {
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%233a4f68' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.detail-address {
  margin: 10px 14px 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.place-address-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  line-height: 1.6;
}

.place-address-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.place-map-links {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  vertical-align: middle;
}

.place-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-decoration: none;
}

.place-map-link svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.place-map-link img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  pointer-events: none;
}

.place-map-link-naver { background: var(--c-white); }
.place-map-link-kakao { background: #fee500; color: #1769ed; }
.place-map-link:hover { filter: brightness(0.94); }
.place-map-link:focus-visible { outline: 3px solid #584a35; outline-offset: 3px; }

.detail-body {
  margin: 12px 14px 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #e3edf9;
  border-radius: 10px;
}

.stat-summary-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d8e4f2;
  background: var(--c-white);
  color: #324861;
  font-size: 12px;
  line-height: 1.2;
}

.stat-chip strong {
  color: #1859af;
}

.visit-stats-note,
.visit-stat-activities {
  margin: 8px 0 0;
  color: #655b49;
  font-size: 12px;
  line-height: 1.65;
}

.visit-stat-activities {
  padding-left: 20px;
}

.type-tag {
  --tag-bg: #eceff1;
  --tag-fg: #37474f;
  --tag-border: #cfd8dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tag-fg);
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
}

.place-description {
  margin-top: 8px;
  border: 1px solid #e4ebf5;
  background: var(--c-white);
  border-radius: 8px;
  padding: 10px 12px;
}

.place-description-paragraph {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #344154;
}

.place-description-paragraph + .place-description-paragraph {
  margin-top: 8px;
}

.roadview-wrap {
  margin-top: 12px;
  padding: 0 14px 14px;
}

.roadview-stage {
  position: relative;
}

#roadview {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.roadview-fallback {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #102038;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roadview-fallback.hidden {
  display: none;
}

.roadview-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: pixelated;
}

.roadview-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.region-picker-anchor {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.region-picker-toggle {
  border: 1px solid #bf8d62;
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-surface-sunken) 100%);
  color: #542b1d;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(42, 23, 15, 0.26),
    inset 0 1px 0 rgba(255, 249, 239, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.region-picker-toggle:hover {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-sunken) 100%);
}

.region-picker-toggle-icon {
  width: 22px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0z' fill='%23EA4335'/%3E%3Ccircle cx='12' cy='11' r='5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  position: relative;
  flex-shrink: 0;
}

.region-picker-toggle-icon::after {
  display: none;
}

.region-picker-panel {
  width: min(760px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d2deeb;
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(20, 40, 64, 0.24);
  padding: 12px;
}

.region-picker-panel.hidden {
  display: none;
}

.region-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.region-picker-head h3 {
  margin: 0;
  font-size: 16px;
}

.region-picker-path {
  margin: 8px 0;
  color: #355b89;
  font-size: 13px;
  font-weight: 600;
}

.region-picker-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.region-picker-column label {
  display: block;
  font-size: 12px;
  color: var(--c-blue-550);
  margin-bottom: 6px;
  font-weight: 700;
}

.region-picker-column select {
  width: 100%;
  border: 1px solid #ccd9e8;
  border-radius: 8px;
  font-size: 13px;
  background: var(--c-white);
  padding: 6px;
}

.region-picker-status {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #4f6784;
}

.region-move-btn {
  margin-top: 6px;
  width: 100%;
  border: 1px solid var(--c-blue-500);
  background: var(--c-blue-500);
  color: var(--c-white);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.region-move-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.placeholder-page {
  background: linear-gradient(180deg, #f3f7fc 0%, #f9fbff 100%);
}

.placeholder-main {
  margin-top: var(--gnb-height);
  min-height: calc(100vh - var(--gnb-height));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.placeholder-main h1 {
  margin: 0;
  font-size: 36px;
}

.placeholder-main p {
  margin: 0;
  color: var(--c-blue-550);
}

.my-places-page {
  min-height: 100%;
  background: var(--c-blue-050-3);
}

.my-places-main {
  margin-top: var(--gnb-height);
  min-height: calc(100vh - var(--gnb-height));
  padding: 28px clamp(16px, 4vw, 42px) 42px;
}

.my-places-head {
  max-width: 980px;
  margin: 0 auto 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.my-places-head h1 {
  margin: 0;
  font-size: 30px;
}

.my-places-head p {
  margin: 6px 0 0;
  color: var(--c-blue-550);
  font-size: 14px;
}

.my-places-map-link {
  text-decoration: none;
  border: 1px solid var(--c-blue-500);
  background: var(--c-blue-500);
  color: var(--c-white);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.my-places-map-link:hover {
  background: #1768d4;
}

.my-places-year-filter {
  max-width: 980px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
}

.my-places-year-shell {
  display: grid;
  grid-template-columns: 42px minmax(120px, auto) 42px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--c-blue-100);
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 0 8px 18px rgba(28, 43, 63, 0.06);
}

.my-places-year-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #d4deeb;
  border-radius: 999px;
  background: #f8fbff;
  color: #1f3856;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.my-places-year-btn:hover:not(:disabled) {
  border-color: var(--c-blue-250);
  background: var(--c-blue-050-2);
  color: var(--c-blue-500);
  transform: translateY(-1px);
}

.my-places-year-btn:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.my-places-year-value {
  min-width: 120px;
  text-align: center;
  color: #10233f;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.my-places-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.my-place-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--c-blue-100);
  border-radius: 8px;
  background: var(--c-white);
  box-shadow: 0 8px 18px rgba(28, 43, 63, 0.08);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.my-place-card:hover {
  border-color: var(--c-blue-250);
  box-shadow: 0 12px 24px rgba(28, 43, 63, 0.12);
  transform: translateY(-1px);
}

.my-place-card:focus-visible {
  outline: 3px solid rgba(31, 116, 230, 0.22);
  outline-offset: 3px;
}

.my-place-card-main {
  min-width: 0;
}

.my-place-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.my-place-card-title-row h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

/* 가고 싶은 곳(T5-4): 방문 여부 필터와 카드의 방문 상태·보상 */
.my-places-visit-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.my-places-visit-filter:empty { display: none; }
.my-places-visit-btn { padding: 7px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 14px; cursor: pointer; }
.my-places-visit-btn:hover { border-color: var(--color-border-strong); }
.my-places-visit-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.my-places-visit-btn.is-active { background: var(--color-surface-dark); border-color: var(--color-surface-dark); color: var(--color-on-dark); }
.my-places-visit-count { margin-left: 4px; font-weight: 700; }
.my-place-card-visit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; }
.my-place-visit-badge { padding: 1px 8px; border: 1px dashed var(--color-border-strong); border-radius: 4px; background: var(--color-surface-alt); color: var(--color-text-muted); font-weight: 600; }
.my-place-visit-badge.is-visited { border-style: solid; border-color: var(--color-border); color: var(--color-positive); }
.my-place-reward-label { margin-left: 4px; color: var(--color-text-muted); }
.my-place-reward-tag { padding: 2px 8px; border-radius: 4px; background: var(--color-surface-alt); color: var(--color-link); font-weight: 600; }

/* 카드 제목은 실제 링크(키보드 접근). 모양은 제목 그대로 둔다. */
.my-place-card-link { color: inherit; text-decoration: none; }
.my-place-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.my-place-card-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }

.my-place-card-meta,
.my-place-card-address,
.my-place-card-saved {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.my-place-card-meta {
  color: #355b89;
  font-weight: 800;
}

.my-place-card-address {
  color: #526276;
}

.my-place-card-saved {
  color: #7a8796;
}

.my-place-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.my-place-favorite-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.my-places-empty {
  padding: 34px 18px;
  border: 1px dashed #cad6e4;
  border-radius: 8px;
  background: var(--c-white);
  text-align: center;
}

.my-places-empty h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.my-places-paging {
  max-width: 980px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.my-places-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d4deeb;
  border-radius: 999px;
  background: var(--c-white);
  color: #243a56;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
}

.my-places-page-btn:hover:not(:disabled) {
  border-color: var(--c-blue-250);
  background: var(--c-blue-050-2);
  color: #1f65b7;
  transform: translateY(-1px);
}

.my-places-page-btn.active {
  border-color: var(--c-blue-500);
  background: var(--c-blue-500);
  color: var(--c-white);
}

.my-places-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.my-places-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #8a97a8;
  font-weight: 800;
}

.auth-card {
  width: min(520px, calc(100vw - 28px));
  background: var(--c-white);
  border: 1px solid #ddc5ad;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 14px 28px rgba(62, 35, 22, 0.2);
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
}

.auth-subtitle {
  margin-top: 8px;
  color: var(--c-blue-550);
  font-size: 14px;
}

.auth-message {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #bfd1e7;
  background: #edf4ff;
  color: #2a4c77;
  font-size: 13px;
}

.auth-message.error {
  border-color: #f1b6b6;
  background: #fff1f1;
  color: #8f2121;
}

.auth-message.hidden {
  display: none;
}

.auth-buttons {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.oauth-btn {
  text-decoration: none;
  border: 1px solid #d6dce6;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: #1f2f44;
  background: var(--c-white);
}

.oauth-btn:hover {
  transform: translateY(-1px);
}

.oauth-btn.oauth-naver {
  border-color: #18b257;
  background: #03c75a;
  color: var(--c-white);
}

.oauth-btn.oauth-kakao {
  border-color: #dccb2f;
  background: #fee500;
  color: #2a2512;
}

.oauth-btn.oauth-google {
  border-color: #d3d8e2;
  background: var(--c-white);
  color: #203042;
}

.oauth-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

.auth-user-box {
  margin-top: 14px;
  border: 1px solid #dde7f1;
  border-radius: 10px;
  padding: 12px;
  background: #f7fbff;
}

.auth-user-box.hidden {
  display: none;
}

.auth-user-text {
  margin: 0;
  font-size: 14px;
  color: #2a3950;
}

.auth-logout-btn {
  margin-top: 10px;
  border: 1px solid #d0d8e5;
  border-radius: 8px;
  background: var(--c-white);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1200px) {
  :root {
    --left-panel-width: 320px;
    --left-panel-peek-width: 32px;
  }
}

@media (max-width: 900px) {
  :root {
    --gnb-height: 56px;
    --mobile-sheet-peek-height: 108px;
  }

  .gnb {
    padding: 0 8px;
  }

  .gnb-left {
    gap: 8px;
  }

  .brand-logo {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .gnb-nav {
    gap: 4px;
  }

  .gnb-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  .gnb-login {
    padding: 7px 10px;
    font-size: 12px;
  }

  .my-places-main {
    padding: 18px 12px 28px;
  }

  .my-places-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .my-places-head h1 {
    font-size: 24px;
  }

  .my-places-year-filter {
    justify-content: stretch;
  }

  .my-places-year-shell {
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .my-place-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .my-place-card-title-row h2 {
    font-size: 18px;
  }

  .my-place-card-actions {
    justify-content: flex-end;
  }

  #app {
    display: block;
    height: calc(100dvh - var(--gnb-height));
    min-height: calc(100vh - var(--gnb-height));
    overflow: hidden;
  }

  #mapWrap {
    position: absolute;
    inset: 0;
  }

  .panel.left {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: min(52dvh, 480px);
    max-height: calc(100% - 76px);
    transform: translateY(0);
    border-right: none;
    border-top: 1px solid #d9e3ef;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 24px rgba(16, 30, 48, 0.24);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 70;
  }

  #app.panel-collapsed .panel.left {
    transform: translateY(calc(100% - var(--mobile-sheet-peek-height)));
  }

  .panel-header {
    padding: 10px 12px 8px;
  }

  .panel-slide-toggle {
    display: inline-flex;
    left: 50%;
    top: calc(100% - min(52dvh, 480px) - 14px);
    transform: translateX(-50%);
    width: 48px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #c8d5e4;
    box-shadow: 0 6px 14px rgba(16, 32, 52, 0.25);
    z-index: 80;
    transition: top 300ms cubic-bezier(0.22, 1, 0.36, 1), background 150ms ease;
  }

  .panel-slide-toggle-icon {
    transform: rotate(-90deg);
  }

  #app.panel-collapsed .panel-slide-toggle {
    left: 50%;
    top: calc(100% - var(--mobile-sheet-peek-height) - 14px);
  }

  #app.panel-collapsed .panel-slide-toggle .panel-slide-toggle-icon {
    transform: rotate(90deg);
  }

  #app.detail-mode .panel-slide-toggle {
    display: none;
  }

  .place-item {
    padding: 10px 12px;
  }

  .place-title {
    font-size: 16px;
  }

  .place-meta {
    font-size: 12px;
  }

  .type-filter-list {
    gap: 5px;
  }

  .type-tag {
    padding: 4px 8px;
    font-size: 11px;
  }

  .detail-overlay {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: min(78dvh, 680px);
    max-height: calc(100% - 48px);
    border-left: none;
    border-right: none;
    border-top: 1px solid #d5deea;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -10px 24px rgba(16, 30, 48, 0.28);
    z-index: 90;
  }

  #app.panel-collapsed .detail-overlay {
    left: 0;
    width: 100%;
  }

  #app.detail-collapsed .detail-overlay {
    transform: translateY(80%);
    box-shadow: 0 -6px 14px rgba(16, 30, 48, 0.2);
  }

  .detail-panel-toggle {
    right: auto;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    width: 56px;
    height: 22px;
    border-radius: 999px;
  }

  .detail-panel-toggle-icon {
    width: 18px;
    height: 10px;
    transform: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M4 3.5 12 9l8-5.5' fill='none' stroke='%232f4868' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  #app.detail-collapsed .detail-panel-toggle-icon {
    transform: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M4 8.5 12 3l8 5.5' fill='none' stroke='%232f4868' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }

  .detail-head {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  .detail-title-wrap {
    font-size: 18px;
  }

  .place-type-title-icon {
    width: 30px;
    height: 30px;
    background-size: 19px 19px;
  }

  .region-picker-anchor {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: calc(var(--gnb-height) + 10px);
    bottom: auto;
    z-index: 95;
    align-items: center;
  }

  .region-picker-toggle {
    padding: 7px 12px;
    font-size: 12px;
    gap: 6px;
    border-radius: 999px;
    box-shadow:
      0 6px 14px rgba(42, 23, 15, 0.2),
      inset 0 1px 0 rgba(255, 249, 239, 0.9);
    max-width: min(88vw, 340px);
  }

  .region-picker-toggle-icon {
    width: 14px;
    height: 18px;
  }

  #regionPickerToggleLabel {
    display: inline-block;
    max-width: calc(min(88vw, 340px) - 34px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .region-picker-panel {
    width: min(97vw, 540px);
    max-height: calc(100dvh - var(--gnb-height) - 72px);
    padding: 6px 7px;
    overflow: hidden;
  }

  .region-picker-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .region-picker-head h3 {
    font-size: 13px;
  }

  .region-picker-path {
    margin: 4px 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .region-picker-column label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .region-picker-column select {
    height: min(24dvh, 150px);
    padding: 3px;
    font-size: 11px;
  }

  .region-picker-column select option {
    font-size: 11px;
  }

  .region-picker-status {
    margin: 4px 0 0;
    min-height: 12px;
    font-size: 10px;
  }

  .region-move-btn {
    margin-top: 4px;
    padding: 8px 8px;
    font-size: 12px;
  }
}
