:root {
  --bg-outer: #e9eef3;
  --bg-app: #f5f7f9;
  --surface: #ffffff;
  --text-main: #1a1d1f;
  --text-sub: #5c6470;
  --text-muted: #9aa1ab;
  --border: #eceff3;

  --primary: #00bfa5;        /* TRIPLE Signature Mint-Teal */
  --primary-soft: #e6f9f6;
  --tax-blue: #1e6bff;       /* Instant Tax-Free Blue */
  --tax-blue-soft: #eef4ff;
  --airport: #0284c7;        /* Airport Sky Blue */
  --airport-soft: #e0f2fe;
  --goodprice: #ea580c;      /* Gov-Verified Fair Price Coral-Orange */
  --goodprice-soft: #fff1e6;
  --goodstore: #d97706;      /* Good Store Warm Amber */
  --goodstore-soft: #fef3c7;
  --centennial: #be123c;     /* Centennial Heritage Burgundy */
  --centennial-soft: #ffe4e6;
  --danger: #ef4444;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 12px rgba(26, 29, 31, 0.05);
  --shadow-md: 0 10px 28px rgba(26, 29, 31, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-outer);
  color: var(--text-main);
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

/* Mobile-First Wrapper: centered mobile frame on desktop, full screen on mobile */
.device-wrapper {
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

@media (min-width: 500px) {
  .device-wrapper {
    padding: 16px 0;
    align-items: flex-start;
  }
  .app-shell {
    min-height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
  }
}

/* ================= HEADER ================= */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px 8px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.brand-slogan {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2 Primary Purpose Tabs (TRIPLE Underline Style) */
.purpose-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.purpose-tab {
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 6px 9px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.purpose-tab.active {
  background: transparent;
  color: var(--text-main);
  border-bottom-color: var(--primary);
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
}

.brand-badge {
  background: linear-gradient(135deg, #00c4b4, #009688);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 5px 8px;
  border-radius: 9px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  padding: 6px;
  z-index: 50;
}

.lang-option {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
}

.lang-option:hover,
.lang-option.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* Korean Mode Partner Banner */
.ko-partner-banner {
  background: linear-gradient(90deg, #0f172a, #1e3a8a);
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  margin: 10px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.banner-cta {
  background: #fbbf24;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Search Bar + Dual Location Mode */
.search-row {
  margin-bottom: 8px;
}

.location-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.loc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--primary-soft);
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #00897b;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: all 0.15s ease;
}

.loc-btn-hotel {
  background: #fff7ed;
  border: none;
  color: #c2410c;
  box-shadow: none;
}

.loc-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.loc-btn-hotel.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.active-loc-banner {
  margin-top: 6px;
  background: #0f172a;
  color: #fff;
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.loc-reset-btn {
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
}

.radius-pills {
  display: flex;
  gap: 4px;
}

.rad-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.rad-pill.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.search-box {
  display: flex;
  align-items: center;
  background: #f1f4f7;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  gap: 8px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-main);
}

.clear-btn {
  border: none;
  background: #cbd5e1;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
}

/* Filter Chips */
.chip-scroll,
.area-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chip-scroll::-webkit-scrollbar,
.area-scroll::-webkit-scrollbar {
  display: none;
}

.chip-scroll {
  margin-bottom: 8px;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip.active {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

.chip-instant.active {
  background: var(--tax-blue);
  border-color: var(--tax-blue);
}

.chip-airport.active {
  background: var(--airport);
  border-color: var(--airport);
}

.chip-goodprice.active {
  background: var(--goodprice);
  border-color: var(--goodprice);
}

.chip-goodstore.active {
  background: var(--goodstore);
  border-color: var(--goodstore);
}

.chip-centennial.active {
  background: var(--centennial);
  border-color: var(--centennial);
}

.area-pill {
  flex: 0 0 auto;
  border: none;
  background: var(--bg-app);
  color: var(--text-sub);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.area-pill.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

/* ================= MAIN CONTENT ================= */
.main-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding-bottom: 84px;
}

/* Ocean-Teal Hero Banner (TRIPLE Style) */
.hero-banner {
  position: relative;
  margin: 12px 14px 6px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #00a896 0%, #028090 55%, #05668d 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 128, 144, 0.22);
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.hero-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0f2fe;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 9px;
  max-width: calc(100% - 28px);
}

.hero-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.hero-desc {
  margin: 0 0 11px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-stat-pill {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Featured Carousel */
.featured-section {
  padding: 10px 0 4px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 6px;
}

.section-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.featured-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 14px 6px;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-card {
  flex: 0 0 176px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.featured-thumb {
  height: 74px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 7px;
  position: relative;
  font-size: 28px;
}

.featured-emoji-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  opacity: 0.9;
}

.featured-badge {
  position: relative;
  z-index: 1;
  background: rgba(0, 87, 255, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.featured-info {
  padding: 9px 10px;
}

.featured-info h3 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-info p {
  margin: 0;
  font-size: 11px;
  color: var(--text-sub);
}

/* List Meta Bar */
.list-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.sort-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

/* Store Cards */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.store-card {
  background: var(--surface);
  border: none;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.store-card:active {
  transform: scale(0.99);
}

.card-top {
  display: flex;
  gap: 12px;
}

.card-thumb {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.card-main {
  flex: 1;
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-instant {
  background: var(--tax-blue-soft);
  color: var(--tax-blue);
}

.badge-airport {
  background: var(--airport-soft);
  color: var(--airport);
}

.badge-goodprice {
  background: var(--goodprice-soft);
  color: var(--goodprice);
}

.badge-goodstore {
  background: var(--goodstore-soft);
  color: var(--goodstore);
}

.badge-centennial {
  background: var(--centennial-soft);
  color: var(--centennial);
}

.card-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ko-name {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-open {
  color: var(--goodprice);
  font-weight: 700;
}

.card-footer {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-highlight {
  font-size: 11.5px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mini-btn {
  border: 1px solid var(--border);
  background: var(--bg-app);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

.mini-btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ================= MAP VIEW ================= */
.map-view {
  position: relative;
  z-index: 1;
  height: calc(100dvh - 210px);
  min-height: 440px;
}

@media (min-width: 500px) {
  .map-view {
    height: calc(100dvh - 242px);
  }
}

.leaflet-container-box {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.map-legend {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 400;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-eat { background: var(--goodprice); }
.dot-instant { background: var(--primary); }
.dot-airport { background: var(--airport); }

.map-pick-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 400;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.map-pick-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  animation: pulsePick 1.4s infinite;
}

@keyframes pulsePick {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 87, 255, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(0, 87, 255, 0); }
}

.map-preview-card {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  z-index: 450;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  cursor: pointer;
}

@media (min-width: 500px) {
  .map-preview-card {
    position: absolute;
    bottom: 72px;
  }
}

/* Floating View Toggle Button */
.floating-toggle-btn {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
  cursor: pointer;
}

@media (min-width: 500px) {
  .floating-toggle-btn {
    position: absolute;
    bottom: 16px;
  }
}

/* ================= DRAWERS & MODALS ================= */
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 600;
  touch-action: none;
}

@media (min-width: 500px) {
  .drawer-backdrop,
  .modal-backdrop {
    position: absolute;
  }
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 310px;
  background: var(--surface);
  z-index: 700;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 500px) {
  .nav-drawer {
    position: absolute;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-links {
  flex: 1;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
}

.drawer-item span {
  font-size: 20px;
}

.drawer-item-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
}

.drawer-item-text small {
  font-size: 11.5px;
  color: var(--text-sub);
}

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.drawer-partner-highlight {
  background: linear-gradient(135deg, #eef4ff, #e0f2fe);
  border-color: #93c5fd;
}

.drawer-footer {
  font-size: 11px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.drawer-footer .muted {
  color: var(--text-muted);
  margin-top: 2px;
}

/* Detail Bottom Sheet */
.detail-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88dvh;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  z-index: 700;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 500px) {
  .detail-sheet {
    position: absolute;
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 999px;
  margin: 10px auto 4px;
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg-app);
  cursor: pointer;
  font-size: 14px;
}

.detail-body {
  padding: 8px 18px 24px;
  overflow-y: auto;
}

.detail-hero {
  height: 120px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 12px;
}

.detail-title {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 800;
}

.detail-ko {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.tax-info-box {
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 12px 0;
}

.tax-info-box h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--primary);
}

.tax-info-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-main);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.detail-stat {
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
}

.detail-stat small {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
}

.detail-stat strong {
  font-size: 12.5px;
}

.detail-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.btn-full {
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-taxi {
  background: #fbbf24;
  color: #0f172a;
}

.btn-save {
  grid-column: span 2;
  background: var(--bg-app);
  border: 1px solid var(--border);
  color: var(--text-main);
}

/* Taxi Driver Full-Screen Card */
.taxi-overlay {
  position: fixed;
  inset: 0;
  background: #0f172a;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (min-width: 500px) {
  .taxi-overlay {
    position: absolute;
  }
}

.taxi-card {
  width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
}

.taxi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.taxi-label {
  background: #fbbf24;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.taxi-close {
  border: none;
  background: var(--bg-app);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.taxi-korean-polite {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}

.taxi-shop-ko {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  word-break: keep-all;
}

.taxi-addr-ko {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-sub);
  background: var(--bg-app);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 18px;
  word-break: keep-all;
}

.btn-copy-addr {
  width: 100%;
  background: var(--text-main);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Directions Action Sheet */
.action-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 20px 18px 24px;
  z-index: 800;
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.28);
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#dirBackdrop {
  z-index: 750;
}

@media (min-width: 500px) {
  .action-sheet {
    position: absolute;
  }
}

.action-sheet h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.dir-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.dir-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.dir-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
}

.dir-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.dir-naver .dir-logo { background: #03c75a; }
.dir-google .dir-logo { background: #4285f4; }
.dir-kakao .dir-logo { background: #fee500; color: #191919; }

.dir-info {
  flex: 1;
}

.dir-info strong {
  display: block;
  font-size: 14px;
}

.dir-info small {
  font-size: 11.5px;
  color: var(--text-sub);
}

.dir-rec {
  font-size: 10px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  border-radius: 999px;
}

.btn-cancel {
  width: 100%;
  border: none;
  background: var(--bg-app);
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Info & Partner Modals */
.info-modal,
.partner-modal {
  position: fixed;
  inset: 20px 14px;
  background: var(--surface);
  border-radius: 20px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 500px) {
  .info-modal,
  .partner-modal {
    position: absolute;
    inset: 16px 12px;
  }
}

.info-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.info-modal-body,
.partner-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.guide-box {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.guide-box h4 {
  margin: 0 0 6px;
  font-size: 14px;
}

.guide-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
}

.guide-box p {
  margin: 0;
  font-size: 12.5px;
}

.guide-fair { background: var(--goodprice-soft); }
.guide-goodstore { background: var(--goodstore-soft); }
.guide-instant { background: var(--primary-soft); }
.guide-airport { background: var(--airport-soft); }

.badge-explain-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.badge-explain-item {
  font-size: 12px;
  color: var(--text-sub);
  background: var(--bg-app);
  padding: 7px 10px;
  border-radius: 9px;
}

.badge-explain-item strong {
  color: var(--text-main);
}

/* Hotel Search Sheet */
.hotel-sheet {
  position: fixed;
  inset: 24px 14px;
  background: var(--surface);
  border-radius: 20px;
  z-index: 850;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

@media (min-width: 500px) {
  .hotel-sheet {
    position: absolute;
    inset: 20px 12px;
  }
}

.hotel-sheet-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.hotel-desc {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.hotel-search-box {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.hotel-search-box input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--bg-app);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
}

.hotel-search-go {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hotel-pick-map-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-soft);
  border: 1.5px dashed #93c5fd;
  color: var(--primary);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 14px;
}

.hotel-section-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.hotel-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hotel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.hotel-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.hotel-item small {
  font-size: 11.5px;
  color: var(--text-sub);
}

.hotel-item-area {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Partner Modal */
.partner-header {
  background: #0f172a;
  color: #fff;
}

.partner-header .icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
}

.partner-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: #0057ff;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.partner-hero {
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.partner-hero h4 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.partner-hero p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-sub);
}

.partner-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.benefit-card {
  display: flex;
  gap: 10px;
  background: var(--bg-app);
  border-radius: 12px;
  padding: 10px 12px;
}

.benefit-card span {
  font-size: 20px;
}

.benefit-card strong {
  display: block;
  font-size: 13px;
}

.benefit-card p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-sub);
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-app);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.partner-form h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.partner-form input,
.partner-form select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
}

.btn-partner-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.partner-direct-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.direct-btn {
  text-align: center;
  text-decoration: none;
  padding: 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.direct-call {
  background: var(--text-main);
  color: #fff;
}

.direct-kakao {
  background: #fee500;
  color: #191919;
}

.detail-partner-link {
  margin-top: 14px;
  text-align: center;
}

.detail-partner-link button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.shop-partner-card {
  background: linear-gradient(135deg, #eef4ff, #f8fafc);
  border: 1px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
}

.shop-partner-card strong {
  display: block;
  font-size: 13.5px;
  color: var(--primary);
  margin-bottom: 3px;
}

.shop-partner-card span {
  font-size: 12px;
  color: var(--text-sub);
}

/* Large Thank You Popup */
.thankyou-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (min-width: 500px) {
  .thankyou-overlay {
    position: absolute;
  }
}

.thankyou-card {
  width: 100%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.thankyou-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.thankyou-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.thankyou-msg {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-main);
  word-break: keep-all;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

@media (min-width: 500px) {
  .toast {
    position: absolute;
  }
}
