:root {
  --bottom-nav-height: 64px;
  --green-primary: #1b6b3a;
  --green-dark: #13502b;
  --green-mint: #e6f4ea;
  --green-mint-border: #b8e0c4;
  --green-text: #166534;

  --bg-outer: #eaeeec;
  --bg-page: #f7f9f8;
  --bg-white: #ffffff;
  --bg-gray-pill: #f1f4f2;

  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border-light: #e5e9e7;
  --border-mid: #d1d8d4;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-outer);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* Mobile-First Centered Frame */
.app-frame {
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-page);
  position: relative;
  padding-bottom: calc(var(--bottom-nav-height) + 10px);
  box-shadow: 0 0 40px rgba(17, 24, 39, 0.08);
}

.screen-view {
  display: none;
}

.screen-view.active {
  display: block;
}

/* ==================== TOP BRAND HEADER ==================== */
.top-brand-bar {
  background: var(--bg-white);
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fuji-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1.15;
}

.brand-sub {
  display: block;
  margin: 3px 0 0;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-report-store {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--green-mint-border);
  background: var(--green-mint);
  color: var(--green-primary);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-report-store:hover {
  background: var(--green-primary);
  color: #ffffff;
  border-color: var(--green-primary);
}

.icon-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.icon-circle-btn:hover {
  background: var(--green-mint);
  color: var(--green-primary);
}

/* Search & Area Select Row */
.browser-open-notice {
  position: relative;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--green-mint-border);
  border-radius: var(--radius-sm);
  background: var(--green-mint);
  color: var(--text-body);
  font-size: .875rem;
  line-height: 1.6;
  max-height: 40dvh;
  overflow-y: auto;
}
.browser-open-notice[hidden], .browser-open-notice [hidden] { display: none; }
.browser-open-notice summary { margin-right: 32px; min-height: 28px; cursor: pointer; font-size: .9375rem; font-weight: 700; color: var(--green-dark); }
.browser-open-notice summary small { font-size: .75rem; font-weight: 500; white-space: nowrap; }
.browser-open-notice p { margin: 4px 0; }
.browser-open-dismiss { position: absolute; top: 6px; right: 6px; background: transparent; border: 0; font-size: 24px; }
.browser-open-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.browser-open-actions a, .browser-open-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; font-size: .875rem; text-decoration: none; }
#browser-open-status { margin-top: 8px; }
#browser-open-manual { margin-top: 8px; }
#browser-open-url { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px; font: inherit; border: 1px solid var(--border-mid); border-radius: 6px; }

.search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-svg {
  position: absolute;
  left: 12px;
  color: var(--text-light);
  pointer-events: none;
}

#store-search-input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text-dark);
}

#store-search-input:focus {
  outline: none;
  border-color: var(--green-primary);
  background: var(--bg-white);
}

.area-select {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  max-width: 145px;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-body);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.filter-toggle-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

.filter-toggle-icon {
  color: var(--green-primary);
  flex-shrink: 0;
}

.filter-toggle-chevron {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.15s;
}

.filter-toggle-btn[aria-expanded="true"] {
  background: var(--green-mint);
  border-color: var(--green-mint-border);
  color: var(--green-primary);
}

.filter-toggle-btn[aria-expanded="true"] .filter-toggle-chevron {
  transform: rotate(180deg);
  color: var(--green-primary);
}

.filter-toggle-btn.has-active-filter {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #ffffff;
}

.filter-toggle-btn.has-active-filter .filter-toggle-icon,
.filter-toggle-btn.has-active-filter .filter-toggle-chevron {
  color: #ffffff;
}

/* Filter Pills Row */
.filter-pills-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-top: 6px;
}
.filter-pills-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-body);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill.active {
  background: var(--green-mint);
  border-color: var(--green-primary);
  color: var(--green-primary);
  font-weight: 700;
}

/* ==================== MAP SECTION ==================== */
.map-box-wrap {
  position: relative;
  height: clamp(300px, 44svh, 460px);
  background: #e5ece8;
  border-bottom: 1px solid var(--border-light);
}

.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Green Teardrop / Bag Pin Marker (Matching Image 1 & 4) */
.jtm-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: var(--green-primary);
  border: 2px solid #ffffff;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(27, 107, 58, 0.35);
}

.jtm-pin.pin-secondary {
  background: #3b7a57;
}

.jtm-pin svg {
  transform: rotate(45deg);
  width: 14px;
  height: 14px;
  stroke: #ffffff;
}
.jtm-pin {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, background-color 0.18s ease;
}
.jtm-pin.is-active {
  transform: rotate(-45deg) scale(1.22);
  background: var(--green-dark);
  box-shadow: 0 0 0 4px rgba(27, 107, 58, 0.22), 0 6px 16px rgba(17, 24, 39, 0.35);
}

/* Map Marker Preview Popup Card */
.jtm-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.16);
}
.jtm-map-popup .leaflet-popup-content {
  margin: 0;
  width: auto !important;
  font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.45;
}
.jtm-map-popup .leaflet-popup-tip {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}
.jtm-map-popup a.leaflet-popup-close-button {
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.jtm-map-popup a.leaflet-popup-close-button:hover {
  background: var(--green-mint);
  color: var(--green-primary);
}
.jtm-popup-card {
  padding: 13px 14px 12px;
  min-width: 230px;
  max-width: 268px;
}
.jtm-popup-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 22px;
  margin-bottom: 9px;
}
.jtm-popup-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}
.jtm-popup-titles {
  min-width: 0;
  flex: 1;
}
.jtm-popup-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.jtm-popup-meta {
  margin: 3px 0 0;
  font-size: .75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jtm-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 11px;
}
.jtm-popup-badges span {
  font-size: .75rem;
  padding: 2px 8px;
}
.jtm-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--border-light);
}
.jtm-popup-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  color: var(--text-body) !important;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.jtm-popup-nav-btn:hover {
  background: var(--bg-page);
}
.jtm-popup-detail-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  border: 0;
  background: var(--green-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.jtm-popup-detail-btn:hover {
  background: var(--green-dark);
}

/* ==================== NEARBY STORES LIST (Minimalist, No Refund Clutter) ==================== */
.app-frame:has(#view-map.active) { padding-bottom: var(--bottom-nav-height); }
#view-map.active {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--bottom-nav-height));
  min-height: 360px;
  overflow: hidden;
}
#view-map > .top-brand-bar, #view-map > .catalog-toolbar { flex-shrink: 0; }
#view-map > .fee-directory { min-height: 0; overflow-y: auto; }
.map-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
  overflow: hidden;
  --drawer-height: 234px;
}
.map-stage .map-box-wrap { position: absolute; inset: 0; height: 100%; }
.nearby-section {
  background: var(--bg-white);
  border-radius: 24px 24px 0 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--drawer-height);
  max-height: calc(100% - 12px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  box-shadow: 0 -4px 20px rgba(17, 24, 39, .12);
  transition: height 240ms cubic-bezier(.2, .7, .2, 1);
}
.drawer-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: transparent;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.drawer-handle span { width: 40px; height: 5px; border-radius: 99px; background: #c6cac8; }
.drawer-handle:active { cursor: grabbing; }
.nearby-section > .section-title-row { flex-shrink: 0; min-height: 28px; margin-bottom: 8px; }
.drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
  padding-bottom: 16px;
}
.map-stage .leaflet-bottom { bottom: calc(var(--drawer-height) + 2px); transition: bottom 240ms cubic-bezier(.2, .7, .2, 1); }
.map-stage.is-dragging .nearby-section,
.map-stage.is-dragging .leaflet-bottom { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .nearby-section, .map-stage .leaflet-bottom { transition: none; }
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
}

.count-tag {
  font-size: .9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.clean-store-list { display: flex; flex-direction: column; }
.nearby-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 959px) {
  /* Plan B: Floating search card + floating filter pills + compact mode toggle */
  #view-map.active { position: relative; }
  #view-map:has(#map-stage:not([hidden])) > .top-brand-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: transparent;
    border-bottom: 0;
    padding: 8px 12px 0;
    pointer-events: none;
  }
  #view-map:has(#map-stage:not([hidden])) > .top-brand-bar > * {
    pointer-events: auto;
  }
  .top-brand-bar .catalog-toolbar {
    position: relative;
    z-index: 5;
    padding: 6px 0 0;
    background: transparent;
  }
  #view-map:has(#map-stage:not([hidden])) .catalog-toolbar .seg-toggle-bar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.08);
    border-color: rgba(229, 234, 230, 0.95);
  }
  .catalog-toolbar .seg-toggle-bar { padding: 3px; border-radius: 10px; }
  .catalog-toolbar .seg-toggle-btn { padding: 6px 8px; font-size: .8125rem; border-radius: 7px; }
  .top-brand-bar .brand-sub { display: none; }
  .top-brand-bar .fuji-logo { width: 28px; height: 28px; }
  .top-brand-bar .brand-title { font-size: 1.02rem; }
  .top-brand-bar .brand-row {
    position: relative;
    z-index: 30;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.96);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.08);
    border: 1px solid rgba(229, 234, 230, 0.9);
  }
  .top-brand-bar .btn-report-store { height: 30px; padding: 0 9px; font-size: .78rem; border-radius: 8px; }
  .top-brand-bar .icon-circle-btn { width: 30px; height: 30px; border-radius: 8px; }
  .top-brand-bar .search-row { position: relative; z-index: 20; margin-bottom: 0; }
  .top-brand-bar #store-search-input {
    padding: 7px 12px 7px 34px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 11px;
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.09);
    border: 1px solid rgba(229, 234, 230, 0.95);
    font-size: .875rem;
  }
  .top-brand-bar .filter-toggle-btn {
    padding: 7px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 234, 230, 0.95);
    box-shadow: 0 3px 10px rgba(17, 24, 39, 0.09);
    font-size: .8125rem;
  }
  .top-brand-bar .filter-toggle-btn[aria-expanded="true"]:not(.has-active-filter) {
    background: #eef8f1;
    border-color: var(--green-primary);
    color: var(--green-primary);
  }
  .top-brand-bar .filter-toggle-btn.has-active-filter {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #ffffff;
  }
  .top-brand-bar .filter-pills-scroll { position: relative; z-index: 10; margin-top: 6px; }
  .top-brand-bar .filter-pill {
    padding: 4px 10px;
    font-size: .8125rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
  }
  .top-brand-bar .filter-pill.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: #ffffff;
  }
  .map-stage .leaflet-top { top: 138px; transition: top 0.18s ease; }
  #view-map:has(#fee-filter-group:not([hidden])) .map-stage .leaflet-top { top: 172px; }
  .map-stage .nearby-section[data-drawer-state="expanded"] { z-index: 600; }
  .in-app-browser .in-app-menu-host { top: 14px; right: max(18px, calc((100vw - 480px) / 2 + 18px)); }
  .in-app-browser .in-app-menu-host .icon-circle-btn { width: 32px; height: 32px; border-radius: 8px; }
  .in-app-browser .header-right-actions { padding-right: 38px; }
}

.nearby-empty {
  margin: 0;
  padding: 16px 4px;
  color: var(--text-muted);
  font-size: .9375rem;
  line-height: 1.6;
}

.nearby-section .store-item-row { padding: 10px 2px; gap: 10px; }
.nearby-section .bag-icon-box { width: 34px; height: 34px; border-radius: 9px; }
.nearby-section .store-item-title { font-size: 1.0625rem; }
.nearby-section .store-item-operator {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nearby-section .store-item-badges { gap: 4px; }
.nearby-section .store-item-badges span { font-size: .875rem; padding: 3px 7px; }

.store-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}

.store-item-row:last-child {
  border-bottom: none;
}

.store-item-row:hover {
  background: #fafcfb;
}

.compare-check-wrap {
  display: flex;
  align-items: center;
}

.compare-checkbox {
  width: 17px;
  height: 17px;
  accent-color: var(--green-primary);
  cursor: pointer;
}

/* Mint Rounded Square with Green Shopping Bag Icon (Exact match to Image 4) */
.bag-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--green-mint);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.bag-icon-box.has-brand-logo,
.detail-bag-lg.has-brand-logo {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.brand-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.store-item-title {
  margin: 0 0 2px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-item-operator {
  margin: 0 0 6px;
  font-size: .9375rem;
  color: var(--text-muted);
}

.store-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-green {
  background: var(--green-mint);
  color: var(--green-text);
  font-size: .9375rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-neutral {
  background: var(--bg-gray-pill);
  color: var(--text-body);
  font-size: .9375rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.store-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: .9375rem;
  flex-shrink: 0;
}

/* ==================== COMPARE BAR & TABLE (Matching Image 1) ==================== */
.compare-bar {
  margin-top: 14px;
  background: var(--bg-page);
  border: 1px solid var(--green-mint-border);
  border-radius: var(--radius-md);
  padding: 12px;
}

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

.compare-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--green-primary);
}

.text-link-btn {
  border: none;
  background: none;
  font-size: .9375rem;
  color: var(--text-muted);
  cursor: pointer;
}

.compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cmp-chip {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: .9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: .9375rem;
}

.cmp-table th,
.cmp-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.cmp-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 78px;
  background: #fafcfb;
}

/* Ads stay in normal page flow, outside map and calculator controls. */
.google-ad-slot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  min-width: 0;
}

.google-ad-slot[hidden] { display: none; }

.ad-badge {
  display: block;
  margin-bottom: 8px;
  font-size: .9375rem;
  color: var(--text-muted);
}

/* ==================== VIEW 2: STORE DETAIL PAGE (Matching Image 2 & Image 4 Middle) ==================== */
.detail-top-nav {
  background: var(--bg-white);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.detail-nav-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.nav-icon-btn {
  border: none;
  background: transparent;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon-btn.bookmarked {
  color: var(--green-primary);
}

.detail-content {
  padding: 16px;
}

.detail-hero-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-white);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.detail-bag-lg {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--green-mint);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.detail-store-name {
  margin: 0 0 2px;
  font-size: 1.1rem;
  font-weight: 800;
}

.detail-store-sub {
  margin: 0 0 8px;
  font-size: .9375rem;
  color: var(--text-muted);
}

/* Sub-Tabs inside Detail View */
.detail-subtabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 0 12px;
}

.d-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 6px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
}

.d-tab-btn.active {
  color: var(--green-primary);
  border-bottom-color: var(--green-primary);
  font-weight: 700;
}

.detail-info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 6px 16px;
  margin-bottom: 14px;
}

.info-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .9375rem;
}

.info-kv-row:last-child {
  border-bottom: none;
}

.kv-label {
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kv-val {
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.detail-notice-card {
  background: #f1f4f2;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.detail-notice-card h4 {
  margin: 0 0 8px;
  font-size: .9375rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-notice-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: .9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.detail-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.btn-outline-clean {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-green-solid {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--green-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn-green-solid:hover {
  background: var(--green-dark);
}

/* ==================== VIEW 3: DEDICATED CALCULATOR (Exact match to Image 4 Right) ==================== */
.simple-top-header {
  background: var(--bg-white);
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.simple-top-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.header-sub {
  margin: 4px 0 0;
  font-size: .9375rem;
  color: var(--text-muted);
}

.calc-page-body,
.page-pad-body {
  padding: 16px;
}

.seg-toggle-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 18px;
}

.seg-toggle-btn {
  border: none;
  background: transparent;
  padding: 9px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.seg-toggle-btn.active {
  background: var(--green-primary);
  color: #ffffff;
}

.calc-field-block {
  margin-bottom: 18px;
}

.calc-label {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
}

.jpy-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.jpy-symbol {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 8px;
}

#calc-taxed-input {
  width: 100%;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-dark);
}

#calc-taxed-input:focus {
  outline: none;
}

.quick-jpy-pills {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.jpy-pill {
  flex: 1;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}

.jpy-pill.active {
  background: var(--green-mint);
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* Custom Green Radio Buttons */
.radio-inline-group {
  display: flex;
  gap: 20px;
}

.radio-stack-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.clean-radio,
.clean-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
}

.clean-radio input,
.clean-radio-row input {
  accent-color: var(--green-primary);
  width: 17px;
  height: 17px;
  margin: 0;
}

/* Mint Result Card */
.calc-result-card {
  background: var(--green-mint);
  border: 1px solid var(--green-mint-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.res-line {
  display: flex;
  justify-content: space-between;
  font-size: .9375rem;
  color: var(--text-body);
  margin-bottom: 8px;
}

.res-divider {
  height: 1px;
  background: var(--green-mint-border);
  margin: 10px 0;
}

.res-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.res-big-green {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--green-primary);
}

.calc-footnote {
  margin-top: 12px;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== VIEW 4 & 5: OPERATORS & AIRPORT PANELS ==================== */
.white-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.panel-subtitle {
  margin: 0 0 12px;
  font-size: .9375rem;
  font-weight: 700;
}

.clean-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.terminal-diagram {
  background: var(--bg-page);
  border: 1px dashed var(--green-mint-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.diagram-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 10px;
  text-align: center;
}

.diagram-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.d-node {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--green-mint-border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}

.d-node.muted {
  border-color: var(--border-light);
}

.d-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.d-node strong {
  display: block;
  font-size: .9375rem;
}

.d-node small {
  font-size: .9375rem;
  color: var(--text-muted);
}

.d-arrow {
  color: var(--green-primary);
  font-weight: 700;
  font-size: .9375rem;
}

.airport-meta-box {
  font-size: .9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

.green-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.green-step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.green-step-list strong {
  font-size: .9375rem;
  display: block;
}

.green-step-list p {
  margin: 2px 0 0;
  font-size: .9375rem;
  color: var(--text-muted);
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clean-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  color: var(--text-body);
  cursor: pointer;
}

.clean-check-item input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-primary);
}

/* ==================== BOTTOM NAVIGATION BAR (5 SVG Tabs) ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--bottom-nav-height);
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 200;
}

.bnav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.bnav-item.active {
  color: var(--green-primary);
  font-weight: 700;
}

.bnav-item.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-primary);
}

/* ==================== MODAL DIALOG: 回報 / 新增店家 ==================== */
dialog.jtm-dialog:modal {
  overscroll-behavior: contain;
  max-width: 440px;
  width: calc(100% - 28px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18);
}

dialog.jtm-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(3px);
}

.jtm-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.jtm-dialog-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.jtm-dialog-sub {
  margin: 3px 0 0;
  font-size: .9375rem;
  color: var(--text-muted);
}

.jtm-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  font-size: .9375rem;
}

.jtm-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jtm-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.jtm-field label {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 5px;
}

.jtm-field input,
.jtm-field select {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text-dark);
}

.jtm-field input:focus,
.jtm-field select:focus {
  outline: none;
  border-color: var(--green-primary);
}

.jtm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}


/* Cloud catalog, fee directory and report feedback */
[hidden] { display: none !important; }
.catalog-toolbar { padding: 12px 16px; background: var(--bg-white); }
.catalog-toolbar .seg-toggle-bar { margin-bottom: 0; }
.data-notice { font-size: .9375rem; line-height: 1.6; color: var(--text-muted); margin: 8px 0; overflow-wrap: anywhere; }
.data-notice a { color: var(--green-primary); }
.fee-directory { padding: 16px; }
.fee-directory h2 { font-size: 1rem; margin: 0; }
.fee-directory .btn-outline-clean { padding: 8px 10px; font-size: .9375rem; }
.directory-scroll { overflow-x: auto; border: 1px solid var(--border-light); border-radius: 12px; background: white; }
.directory-table { border-collapse: collapse; min-width: 0; width: 100%; table-layout: fixed; font-size: .9375rem; }
.directory-table tbody tr[data-store-row] { cursor: pointer; transition: background 0.12s; }
.directory-table tbody tr[data-store-row]:hover { background: #f4faf6; }
.directory-table th { text-align: left; background: var(--green-mint); color: var(--green-text); white-space: nowrap; }
.directory-table th, .directory-table td { padding: 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.directory-table td:first-child { overflow-wrap: anywhere; }
.directory-table small { display: block; color: var(--text-muted); margin-top: 5px; }
.directory-table a { color: var(--green-primary); }
.directory-table .text-link-btn { display: block; white-space: nowrap; margin-bottom: 8px; }
.detail-data-notice { margin: 12px 16px; }
.detail-report-btn { margin: 8px 16px; width: calc(100% - 32px); }
.form-status { font-size: .9375rem; line-height: 1.6; color: var(--green-dark); overflow-wrap: anywhere; }
.app-toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); max-width: min(430px, 90vw); width: max-content; padding: 12px 16px; border-radius: 12px; background: #173c27; color: white; box-shadow: 0 4px 20px #0002; font-size: .9375rem; z-index: 9999; }
.map-box-wrap { position: relative; }
.map-status { position: absolute; top: 4px; left: 8px; right: 8px; z-index: 500; padding: 8px; background: #fffefa; border: 1px solid #ebdba8; border-radius: 8px; font-size: .9375rem; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #4383cb; outline-offset: 2px; }
.jtm-form input, .jtm-form select { min-width: 0; max-width: 100%; }
@media (max-width: 360px) {
  .brand-title { font-size: 1rem; }
  .brand-sub { font-size: .62rem; }
  .btn-report-store { font-size: .75rem; padding: 6px; }
  .fuji-logo { width: 32px; height: 32px; }
  .logo-lockup { gap: 5px; }
  .jtm-row-2 { grid-template-columns: 1fr; }
}

.directory-table th, .directory-table td { padding: 12px 8px; overflow-wrap: anywhere; }
.directory-table th:nth-child(1) { width: 36%; }
.directory-table th:nth-child(2) { width: 24%; }
.directory-table th:nth-child(3) { width: 24%; }
.directory-table th:nth-child(4) { width: 16%; }
.directory-table .text-link-btn { font-size: .9375rem; padding: 0; }

.report-thanks-dialog { max-width: 320px; padding: 28px 24px 24px; text-align: center; }
.report-thanks-dialog h3 { margin: 0 0 24px; color: var(--green-primary); font-size: 1.15rem; }
.report-thanks-dialog button { width: 100%; }

/* Optimized Report Dialog Controls */
.jtm-header-btns { display: flex; align-items: center; gap: 10px; }
.report-type-tabs { margin-bottom: 2px; background: var(--bg-page); }
.fee-type-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fee-mode-pill {
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}
.fee-mode-pill.active {
  background: var(--green-mint);
  border-color: var(--green-primary);
  color: var(--green-primary);
  font-weight: 700;
}
.quick-fee-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fee-preset-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}
.fee-preset-chip.active {
  background: var(--green-mint);
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.report-advanced-details {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  padding: 10px 12px;
}
.report-advanced-details summary {
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-body);
  user-select: none;
}
.report-advanced-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* Header disclosure for site information and location. */
.site-menu-wrap { position: relative; }
.site-menu-hamburger, .in-app-nav-items, .in-app-menu-host { display: none; }
.site-info-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-white);
  box-shadow: 0 8px 30px rgba(17, 24, 39, .14);
  z-index: 110;
}
.site-info-menu a, .site-info-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-body);
  font-family: inherit;
  font-size: .9375rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.site-info-menu a:hover, .site-info-menu button:hover { background: var(--green-mint); color: var(--green-primary); }
.site-info-menu .site-menu-locate { margin-top: 4px; border-top: 1px solid var(--border-light); border-radius: 0 0 8px 8px; color: var(--green-primary); }
#site-menu-btn[aria-expanded="true"] { background: var(--green-mint); color: var(--green-primary); }
.report-privacy-note { margin: 0; color: var(--text-muted); font-size: .9375rem; line-height: 1.7; }
.report-privacy-note a { color: var(--green-primary); }

/* Readable main-app text; standalone site-information pages use info.css. */
.screen-view { line-height: 1.6; }
.store-item-title { font-size: 1.0625rem; }
.nearby-section .store-item-title { white-space: normal; overflow-wrap: anywhere; }
.store-item-row { flex-shrink: 0; }
.badge-green, .badge-neutral { font-size: .875rem; }
.drawer-content { -webkit-overflow-scrolling: touch; }
.nearby-section { user-select: none; }
.nearby-section .section-title-row { touch-action: pan-y; }
.bnav-item { font-size: .8125rem; }
.brand-row { gap: 6px; }
.btn-report-store { font-size: .8125rem; padding-inline: 8px; }
.site-info-menu a, .site-info-menu button { font-size: .85rem; }
.report-privacy-note { font-size: .72rem; }
@media (max-width: 360px) {
  .btn-report-store { font-size: .75rem; padding-inline: 6px; }
  .logo-lockup { gap: 4px; }
}

.nearby-section:not([data-drawer-state="expanded"]) .drawer-content { overflow-y: hidden; }
.nearby-section[data-drawer-state="preview"] .store-item-row:not(:first-child),
.nearby-section[data-drawer-state="preview"] .google-ad-slot { display: none; }

/* Travel guides */
.desktop-brand { display: none; }
.guide-page-header { text-align: left; padding: 26px 20px 22px; }
.guide-page-header h2 { font-size: 1.45rem; line-height: 1.4; }
.page-eyebrow { margin: 0 0 8px; color: var(--green-primary); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.guide-page-body { padding: 20px 16px 28px; }
.official-service-card p, .guide-section-heading p { margin: 6px 0 0; color: var(--text-muted); font-size: .9375rem; }
.official-service-card { padding: 22px; background: white; border: 1px solid var(--border-light); border-radius: 16px; margin-bottom: 26px; }
.official-service-card h3 { margin: 0; font-size: 1.3rem; }
.official-service-card .page-eyebrow { color: var(--green-primary); margin-bottom: 8px; }
.official-service-card .btn-green-solid { margin-top: 18px; }
.guide-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.guide-section-heading h3, .airport-layout h3 { margin: 0; font-size: 1.12rem; }
.guide-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-filter button { padding: 8px 12px; border: 1px solid var(--border-light); border-radius: 9px; background: white; font-family: inherit; font-size: .875rem; color: var(--text-body); cursor: pointer; }
.guide-filter button.active { color: var(--green-primary); background: var(--green-mint); border-color: var(--green-mint-border); font-weight: 700; }
.operator-grid { display: grid; gap: 16px; }
.operator-card { min-width: 0; padding: 20px; border: 1px solid var(--border-light); border-radius: 16px; background: white; display: flex; flex-direction: column; }
.operator-card-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.operator-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #e6f4ea; color: var(--green-primary); flex-shrink: 0; font-weight: 800; }
.operator-card-heading > div { min-width: 0; flex: 1; }
.operator-card-heading h3 { margin: 0; font-size: 1.08rem; }
.operator-card-heading p { margin: 2px 0 0; font-size: .8rem; color: var(--text-muted); }
.operator-card-heading .badge-neutral { font-size: .75rem; }
.operator-link { margin-top: auto; text-align: center; }
.guide-source-note a, .airport-reminder a { color: var(--green-primary); text-underline-offset: 3px; }
.airport-layout .white-panel { padding: 20px; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: none; }
.airport-main-column, .airport-side-column { min-width: 0; }
.airport-identity { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.airport-identity p { margin: 2px 0 0; color: var(--text-muted); font-size: .875rem; }
.airport-code { display: grid; place-items: center; width: 64px; height: 56px; border: 1px solid var(--green-mint-border); border-radius: 12px; background: var(--green-mint); color: var(--green-primary); font-size: 1.2rem; font-weight: 800; }
.terminal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.terminal-tags span { padding: 4px 10px; border-radius: 6px; background: var(--bg-gray-pill); font-size: .875rem; }
.airport-methods { padding: 14px; background: #f6f9f7; border-radius: 10px; margin-bottom: 18px; font-size: .9375rem; }
.airport-methods p { margin: 6px 0 0; }
.airport-official-link { width: 100%; text-align: center; }
.departure-steps { margin-top: 20px; }
.departure-steps strong { font-size: 1rem; }
.departure-steps p { font-size: .9375rem; line-height: 1.8; }
.airport-faq details { border-top: 1px solid var(--border-light); margin-top: 14px; padding-top: 14px; }
.airport-faq summary { cursor: pointer; font-weight: 600; font-size: .9375rem; }
.airport-faq details p { margin: 10px 0 0; color: var(--text-muted); font-size: .9375rem; }
.checklist-progress { margin: 10px 0 8px; color: var(--green-primary); font-size: .9rem; }
.departure-checklist progress { width: 100%; height: 7px; accent-color: var(--green-primary); margin-bottom: 20px; border: 0; border-radius: 99px; overflow: hidden; }
.departure-checklist progress::-webkit-progress-bar { background: #edf1ee; }
.departure-checklist progress::-webkit-progress-value { background: var(--green-primary); }
.departure-checklist .check-group { gap: 0; }
.departure-checklist .clean-check-item { align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-light); line-height: 1.7; font-size: .9375rem; cursor: pointer; }
.departure-checklist input { flex-shrink: 0; margin-top: 5px; width: 19px; height: 19px; }
.checklist-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 16px; color: var(--text-muted); font-size: .75rem; }
.checklist-footer button { font-size: .875rem; }
.airport-reminder p { font-size: .9375rem; color: var(--text-muted); line-height: 1.8; }
.airport-reminder a { font-size: .875rem; }
@media (min-width: 960px) {
  :root { --desktop-nav-height: 80px; }
  body { background: #eef2ef; }
  .app-frame { max-width: 1440px; padding-top: var(--desktop-nav-height); padding-bottom: 0; box-shadow: 0 0 40px #10271908; }
  .app-frame:has(#view-map.active) { padding-bottom: 0; }
  .bottom-nav { top: 0; bottom: auto; max-width: 1440px; height: var(--desktop-nav-height); padding: 0 28px; border-top: 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 6px; }
  .desktop-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text-dark); text-decoration: none; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
  .desktop-brand small { display: block; margin-top: 4px; font-size: .72rem; font-weight: 500; color: var(--text-muted); }
  .bnav-item { width: 100px; height: 60px; flex-direction: row; gap: 10px; font-size: .9375rem; border-radius: 10px; }
  .bnav-item:hover { background: #f4f8f5; }
  .bnav-item.active { background: var(--green-mint); }
  .bnav-item.active::after { display: none; }
  #view-map.active { height: calc(100dvh - var(--desktop-nav-height)); min-height: 560px; }
  .top-brand-bar { position: relative; top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; padding: 20px 24px 16px; }
  .top-brand-bar .logo-lockup { display: none; }
  .brand-row { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .search-row { grid-column: 1; grid-row: 1; max-width: 600px; margin: 0; }
  .filter-pills-scroll { grid-column: 1; grid-row: 2; }
  #store-search-input { font-size: 1rem; padding-block: 11px; }
  .btn-report-store { height: 42px; padding-inline: 14px; font-size: .9375rem; }
  .icon-circle-btn { width: 42px; height: 42px; }
  .catalog-toolbar { grid-column: 1 / -1; grid-row: 3; padding: 4px 0 0; }
  .catalog-toolbar .seg-toggle-bar { width: 360px; }
  .map-stage { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: 370px minmax(0, 1fr); gap: 20px; padding: 20px 24px 24px; background: #f1f5f2; }
  .map-stage .map-box-wrap { position: relative; inset: auto; grid-column: 2; grid-row: 1; height: 100%; min-height: 0; border: 1px solid var(--border-light); border-radius: 18px; overflow: hidden; }
  .nearby-section { position: relative; inset: auto; grid-column: 1; grid-row: 1; width: auto; height: 100%; max-height: none; min-height: 0; padding: 18px 16px 0; border: 1px solid var(--border-light); border-radius: 18px; box-shadow: 0 4px 16px #10271906; transition: none; user-select: text; }
  .drawer-handle { display: none; }
  .nearby-section > .section-title-row { margin-bottom: 12px; }
  .drawer-content { overflow-y: auto !important; }
  .nearby-section .store-item-row:not(:first-child) { display: flex; }
  .nearby-section .store-item-title { font-size: 1rem; }
  .nearby-section .store-item-operator { font-size: .875rem; }
  .map-stage .leaflet-bottom { bottom: 0; transition: none; }
  .fee-directory { flex: 1; padding: 20px 24px 32px; }
  .directory-table { font-size: 1rem; }
  .directory-table th, .directory-table td { padding: 18px 20px; }
  .directory-table .text-link-btn { font-size: 1rem; }
  .simple-top-header { padding: 28px 36px; text-align: left; }
  .simple-top-header h2 { font-size: 1.6rem; }
  .guide-page-header { padding: 34px 36px 26px; }
  .guide-page-body { padding: 28px 36px 40px; }
  .operator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .operator-card { padding: 24px; }
  .official-service-card { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 24px; }
  .official-service-card .btn-green-solid { flex-shrink: 0; margin: 0; }
  .official-service-card > div { max-width: 680px; }
  .airport-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
  .airport-side-column { position: sticky; top: calc(var(--desktop-nav-height) + 24px); }
  .airport-layout .white-panel { padding: 24px; margin-bottom: 24px; }
  .calc-page-body { max-width: 780px; margin: 0 auto; padding: 32px 36px 48px; }
  .detail-top-nav { top: var(--desktop-nav-height); justify-content: flex-start; gap: 16px; padding-inline: 32px; }
  .detail-content { max-width: 900px; margin: 0 auto; padding-bottom: 36px; }
  .app-toast { bottom: 24px; }
}
@media (min-width: 1200px) {
  .map-stage { grid-template-columns: 390px minmax(0, 1fr); }
  .airport-layout { grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); }
}

/* Compact operator directory: name, access method and a single action. */
.operator-page-header { padding-bottom: 22px; }
.operator-page-body .operator-card { padding: 18px 20px; }
.operator-page-body .operator-card-heading { flex-wrap: nowrap; }
.operator-page-body .operator-card-heading h3 { font-size: 1.0625rem; }
.operator-page-body .operator-card-heading .badge-neutral { flex-shrink: 0; font-size: .8125rem; }
.operator-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.operator-card-footer > span { color: var(--text-muted); font-size: .875rem; }
.operator-card-footer .operator-link { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 0 6px 8px; margin: 0; color: var(--green-primary); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.operator-page-body .official-service-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin: 20px 0 0; border-color: var(--green-mint-border); background: #f0f8f2; }
.operator-official .operator-card-heading { flex: 1; min-width: 0; }
.operator-page-body .official-service-card h3 { font-size: 1.0625rem; }
.operator-page-body .official-service-card p { margin-top: 3px; font-size: .8125rem; }
.operator-page-body .official-service-card .btn-green-solid { flex-shrink: 0; margin: 0; padding: 10px 12px; font-size: .875rem; }
.guide-source-note { font-size: .8rem; color: var(--text-muted); line-height: 1.7; margin: 14px 0 0; }
@media (max-width: 360px) {
  .operator-page-body .operator-card, .operator-page-body .official-service-card { padding: 16px 14px; }
  .operator-page-body .operator-card-heading { gap: 8px; }
  .operator-mark { width: 36px; height: 38px; }
  .operator-card-footer { gap: 8px; }
}

/* Agreed operator content: short introduction, refund method and service actions. */
.operator-introduction { margin: 16px 0 12px; font-size: .9375rem; line-height: 1.7; }
.operator-refund { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: .875rem; }
.operator-refund > span { color: var(--text-muted); }
.operator-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; border-top: 1px solid var(--border-light); padding-top: 6px; }
.operator-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-primary); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.operator-actions .operator-link { margin: 0; }
.operator-page-body .operator-official { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 20px; }
.operator-page-body .operator-official .official-brief { grid-column: 1 / -1; grid-row: 2; font-size: .9375rem; margin: 0; }
.operator-official .btn-green-solid { grid-column: 2; grid-row: 1; }
@media (max-width: 420px) {
  .operator-page-body .operator-official { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .operator-official .btn-green-solid { grid-column: 1; grid-row: 3; justify-self: start; }
}

/* Airport details: locations and refund collection stay separate. */
.airport-before-bags { padding: 12px 14px; margin: 18px 0; background: #edf7ef; color: var(--green-primary); border-radius: 10px; font-weight: 700; }
.airport-subheading, .airport-cash h4 { margin: 20px 0 12px; font-size: 1.0625rem; }
.airport-locations { display: grid; gap: 12px; }
.airport-location { border: 1px solid var(--border-light); border-radius: 12px; padding: 16px; }
.airport-location-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.airport-location-title h4 { margin: 0; font-size: 1rem; }
.airport-location-title strong { color: var(--green-primary); font-size: 1.4rem; }
.airport-location p, .airport-cash p, .airport-tips, .airport-wifi p, .departure-illustrated figcaption p { font-size: 1rem; line-height: 1.8; margin: 10px 0; }
.airport-location a, .airport-cash a, .airport-official-link { color: var(--green-primary); font-weight: 600; font-size: .9375rem; }
.airport-hours { color: #486051; }
.airport-cash { margin-top: 24px; padding-top: 2px; border-top: 1px solid var(--border-light); }
.airport-tips { padding-left: 20px; color: var(--text-muted); }
.departure-illustrated figure { margin: 24px 0; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.departure-illustrated img { display: block; width: 100%; height: auto; border-radius: 10px; margin-bottom: 16px; }
.departure-illustrated figcaption b { font-size: 1.0625rem; }
.airport-wifi dl { padding: 14px; background: #f3f7f4; border-radius: 10px; }
.airport-wifi dt { font-size: .875rem; color: var(--text-muted); margin: 10px 0 5px; }
.airport-wifi dd { margin: 0; overflow-wrap: anywhere; font-size: 1rem; font-family: monospace; }
.operator-page-body { display: flex; flex-direction: column; }

/* Threads/Instagram (iOS) close the in-app browser when a downward drag starts
   while the WebView's own scroll view is at its top edge. A fixed html/body
   keeps that scroll view permanently at the top, so every pull-down to scroll
   the content was read as "close". Instead the document scrolls natively and
   is always 1px taller than the visible area; browser-open.js parks it at
   scrollY = 1 so the host never sees the top edge while the user browses. */
@media (max-width: 959px) {
  html.in-app-browser { overscroll-behavior-y: none; }
  .in-app-browser body { overscroll-behavior-y: none; }
  .in-app-browser .app-frame { min-height: calc(var(--visible-height, 100dvh) + 1px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .in-app-browser .app-frame:has(#view-map.active) { height: calc(var(--visible-height, 100dvh) + 1px); min-height: 0; padding-bottom: 0; overflow: hidden; }
  .in-app-browser #view-map.active { display: flex; height: var(--visible-height, 100dvh); min-height: 0; overflow: hidden; }
  .in-app-browser .top-brand-bar { position: relative; top: auto; }
  .in-app-browser .browser-open-notice { padding-block: 8px; }
  .in-app-browser .drawer-content { overscroll-behavior-y: none; }
  .in-app-browser #map-stage[hidden], .in-app-browser #map-panel[hidden] { display: none; }
  .in-app-browser #view-map > .fee-directory { overscroll-behavior-y: none; }
  .in-app-browser .bottom-nav { display: none; }
  .in-app-browser .in-app-menu-host { display: block; position: fixed; top: 12px; right: max(12px, calc((100vw - 480px) / 2 + 12px)); z-index: 1200; }
  .in-app-browser .in-app-menu-host .icon-circle-btn { width: 44px; height: 44px; background: white; box-shadow: 0 2px 8px #0001; }
  .in-app-browser .site-menu-dots { display: none; }
  .in-app-browser .site-menu-hamburger { display: block; }
  .in-app-browser .in-app-nav-items { display: block; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--border-light); }
  .in-app-browser .in-app-nav-items [aria-current="page"] { color: var(--green-dark); background: var(--green-mint); font-weight: 700; }
  .in-app-browser .site-info-menu { max-height: calc(var(--visible-height, 100dvh) - 80px); overflow-y: auto; overscroll-behavior: none; }
  .in-app-browser .header-right-actions { padding-right: 48px; }
  .in-app-browser .simple-top-header, .in-app-browser .detail-top-nav { padding-right: 64px; }
  .in-app-browser dialog.jtm-dialog:modal { max-height: calc(var(--visible-height, 100dvh) - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .in-app-browser input, .in-app-browser select, .in-app-browser textarea { font-size: max(16px, 1em); }
}
.operator-page-body > .operator-official { order: -1; }

.airport-layout > .airport-faq { grid-column: 1 / -1; }

.operator-actions { flex-wrap: wrap; }
.detail-app-links { display: flex; flex-wrap: wrap; gap: 8px 16px; width: 100%; justify-content: flex-end; }
.detail-app-links a { color: var(--green-primary); font-size: .9375rem; min-height: 44px; display: inline-flex; align-items: center; }

.registration-row { flex-wrap: wrap; gap: 10px; }

.fee-source-label { display: block; color: var(--text-muted); font-size: .875rem; font-weight: 400; margin-top: 4px; }
.fee-source-note { margin: 16px 0; font-size: .9375rem; line-height: 1.7; color: var(--text-muted); }
.fee-source-note a { color: var(--green-primary); }
