/* =========================================================
   讃岐うどん巡り記録・評価アプリ - Modern Japanese Washi Design System
   ========================================================= */

:root {
  --bg-main: #FBF8F2;
  --bg-card: #FFFFFF;
  --bg-surface: #F5EFEB;
  --text-main: #2A2421;
  --text-muted: #7A726D;
  --text-light: #A49B93;
  --accent-amber: #D99B26;
  --accent-amber-light: #FDF4E3;
  --accent-amber-border: #F6E3B8;
  --accent-navy: #1E2B37;
  --accent-navy-light: #EBF1F6;
  --accent-red: #C84B31;
  --accent-red-light: #FDF0ED;
  --accent-green: #2E7D5B;
  --accent-green-light: #EDF7F2;
  --border-subtle: rgba(42, 36, 33, 0.08);
  --shadow-sm: 0 2px 8px rgba(42, 36, 33, 0.04);
  --shadow-md: 0 6px 20px rgba(42, 36, 33, 0.08);
  --shadow-lg: 0 12px 32px rgba(42, 36, 33, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  margin: 0;
}

/* App Viewport Container (Clean Native Full-Bleed Layout) */
.app-container {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-main);
  border-radius: 0;
  box-shadow: none;
  border: none;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body {
    background-color: #F0EAE1;
  }
  .app-container {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }
}

/* Top App Header */
.app-header {
  height: 60px;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.header-btn.circle-white {
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-align: center;
  flex: 1;
}

/* Main Content Area */
.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

/* Tab Navigation Bar (Screen 1 Toggle) */
.map-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--bg-main);
  position: relative;
  z-index: 10;
}

.search-pill-btn {
  flex: 1;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
}

.map-mode-badge {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* Interactive Map Section (Screen 1) */
.map-wrapper {
  width: 100%;
  height: 380px;
  position: relative;
  background-color: #DDEBF5;
}

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

.map-locate-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  background-color: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 400;
  color: var(--accent-navy);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.map-locate-btn:hover {
  transform: scale(1.08);
}

/* Custom Leaflet Map Pins */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid #FFFFFF;
}

.custom-map-pin .pin-number {
  transform: rotate(45deg);
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

/* Map Travel Time Tag on Map */
.map-route-label {
  background: var(--accent-navy);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.4);
}

/* Interactive Map Screen Layout (Spacious Map + Compact Scrollable Shop List) */
.map-screen-layout {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 60px - 52px);
  height: calc(100vh - 60px - 52px);
  overflow: hidden;
  position: relative;
  padding: 0 !important;
}

/* Map Top Search Container & Autocomplete */
.map-screen-layout .map-search-container {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 100;
  margin: 0;
}

.map-search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(42, 36, 33, 0.16);
  padding: 4px 12px 4px 14px;
  border: 1.5px solid rgba(217, 155, 38, 0.35);
  transition: all 0.2s ease;
}

.map-search-box:focus-within {
  border-color: var(--accent-amber);
  box-shadow: 0 6px 20px rgba(217, 155, 38, 0.28);
}

.map-search-box .search-icon {
  color: var(--accent-amber);
  flex-shrink: 0;
  margin-right: 8px;
}

.map-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  padding: 6px 0;
}

.map-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn:hover {
  color: var(--text-main);
}

/* Google Maps Places Autocomplete Native Dropdown Styling */
.pac-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(42, 36, 33, 0.22);
  border: 1px solid var(--border-subtle);
  font-family: inherit;
  margin-top: 6px;
  z-index: 99999 !important;
  padding: 4px 0;
}

.pac-item {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--text-main);
  cursor: pointer;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover, .pac-item-selected {
  background-color: var(--bg-main);
}

.pac-item-query {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
}

.pac-icon {
  margin-right: 6px;
}

/* Suggestion Dropdown List */
.map-search-suggestions {
  margin-top: 6px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(42, 36, 33, 0.18);
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  animation: slideDown 0.2s ease;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s ease;
}

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

.suggestion-item:hover, .suggestion-item:active {
  background-color: var(--bg-main);
}

.suggestion-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.suggestion-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(217, 155, 38, 0.15);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.suggestion-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-add-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(217, 155, 38, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-left: 8px;
}

/* Preview Pin Wave / Pulse Animation */
.preview-pin-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-pin-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(217, 155, 38, 0.45);
  animation: pinPulseRing 1.5s infinite ease-out;
  pointer-events: none;
}

@keyframes pinPulseRing {
  0% {
    transform: scale(0.4);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Custom Popup for Map Pin */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 24px rgba(42, 36, 33, 0.22) !important;
  padding: 4px !important;
}

.pin-popup-container {
  padding: 6px 8px;
  font-family: inherit;
  min-width: 180px;
}

.pin-popup-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-amber);
  background: rgba(217, 155, 38, 0.12);
  padding: 2px 6px;
  border-radius: 9999px;
  margin-bottom: 4px;
}

.pin-popup-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.3;
}

.pin-popup-question {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pin-popup-add-btn {
  width: 100%;
  background: var(--accent-amber);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 155, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.pin-popup-add-btn:hover {
  background: #c58a1f;
}

/* Shop Preview / Add Stop Slide-up Card */
.shop-preview-add-card {
  position: absolute;
  bottom: 230px;
  left: 12px;
  right: 12px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(42, 36, 33, 0.24);
  padding: 14px 16px;
  z-index: 90;
  border: 2px solid var(--accent-amber);
  animation: slideUpPreview 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes slideUpPreview {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.preview-shop-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.preview-card-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.preview-shop-address {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.preview-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-add-btn {
  flex: 1;
  background: var(--accent-amber);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(217, 155, 38, 0.35);
  transition: all 0.2s ease;
}

.preview-add-btn:hover {
  background: #c58a1f;
  transform: translateY(-1px);
}

.preview-cancel-btn {
  background: var(--bg-main);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.map-screen-layout .map-wrapper {
  flex: 1 1 0;
  width: 100%;
  height: 100%;
  min-height: 80px;
  position: relative;
}

.map-screen-layout .bottom-sheet-card {
  flex: 0 0 auto;
  height: 220px;
  min-height: 140px;
  max-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  padding: 0 16px 12px;
  margin-top: -12px;
  border-radius: 24px 24px 0 0;
  z-index: 20;
  box-shadow: 0 -8px 24px rgba(42, 36, 33, 0.16);
  overflow: hidden;
  background-color: #FFFFFF;
  transition: height 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  touch-action: pan-y;
}

.map-screen-layout .bottom-sheet-card.is-dragging {
  transition: none !important;
  user-select: none;
}

.map-screen-layout .bottom-sheet-card.is-expanded {
  height: min(68vh, 520px);
}

.map-screen-layout .sheet-drag-area {
  cursor: grab;
  padding: 10px 0 6px;
  touch-action: none;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.map-screen-layout .bottom-sheet-card.is-dragging .sheet-drag-area {
  cursor: grabbing;
}

.map-screen-layout .sheet-handle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 6px;
}

.map-screen-layout .sheet-handle {
  width: 48px;
  height: 5px;
  background-color: #D6CDC5;
  border-radius: 9999px;
  flex-shrink: 0;
  transition: background-color 0.2s ease, width 0.2s ease, transform 0.2s ease;
}

.map-screen-layout .sheet-drag-area:hover .sheet-handle,
.map-screen-layout .bottom-sheet-card.is-dragging .sheet-handle {
  background-color: var(--accent-amber);
  width: 58px;
}

.map-screen-layout .sheet-expand-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s ease;
}

.map-screen-layout .sheet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 2px;
  flex-shrink: 0;
}

.map-screen-layout .shop-order-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding-right: 2px;
  margin-bottom: 6px;
}

.map-screen-layout .shop-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

/* Bottom Sheet / Shop Order List (Screen 1 Fallback) */
.bottom-sheet-card {
  background-color: #FFFFFF;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -6px 24px rgba(42, 36, 33, 0.08);
  padding: 16px 20px 28px;
  flex: 1;
  position: relative;
  margin-top: -16px;
  z-index: 20;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  background-color: #E2DBD4;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.sheet-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sheet-header-status {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.shop-order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: var(--bg-main);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.shop-order-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.shop-order-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-badge-circle {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.shop-order-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-time-pill {
  background-color: var(--accent-amber-light);
  color: #9A6510;
  border: 1px solid var(--accent-amber-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   Screen 2: Shop Detail & 5-Axis Score Breakdown
   ========================================================= */

.shop-hero-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #2A2421;
}

.shop-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Japanese Hanko Stamp Effect */
.hanko-stamp {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 76px;
  height: 76px;
  border: 3.5px solid #C83226;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #C83226;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 2px;
  transform: rotate(8deg);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 12px rgba(200, 50, 38, 0.25);
  user-select: none;
}

.hanko-stamp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 900;
}

.shop-detail-body {
  padding: 18px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shop-detail-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.shop-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-gold {
  color: #E67E22;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.rating-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

/* 5-Axis Score Breakdown Section */
.five-axis-container {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.axis-row {
  display: grid;
  grid-template-columns: 85px 1fr;
  align-items: center;
  gap: 10px;
}

.axis-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.axis-scale-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.axis-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 2px;
}

.axis-numbers span.active {
  color: var(--accent-amber);
  font-weight: 800;
}

.axis-bar-bg {
  height: 6px;
  background-color: #EFE7DD;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.axis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #E67E22, #D99B26);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Member Comments Section */
.member-reviews-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.member-review-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviewer-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #FFFFFF;
  font-weight: 700;
  flex-shrink: 0;
}

.reviewer-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.review-comment-bubble {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =========================================================
   Screen 3: Trip Creation & Drag-and-Drop Management
   ========================================================= */

.trip-form-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #D6CDC5;
  background-color: #F8F5EE;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--accent-amber);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(217, 155, 38, 0.15);
}

.date-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background-color: #F8F5EE;
  border: 1px solid #D6CDC5;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.date-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

/* Members Avatars Row */
.members-avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.member-avatar-item {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border: 2.5px solid #FFFFFF;
  cursor: default;
  transition: transform 0.15s ease;
}

.member-avatar-item img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.member-remove-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: #E74C3C;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 1.5px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  line-height: 1;
  padding: 0;
}

.member-remove-badge:hover {
  transform: scale(1.2);
  background: #C0392B;
}

.member-owner-crown {
  position: absolute;
  top: -6px;
  left: -5px;
  width: 16px;
  height: 16px;
  background: #F1C40F;
  color: #7D5A00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-member-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px dashed #A49B93;
  background: #F8F5EE;
  color: #7A726D;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-member-btn:hover {
  background: #EFE7DD;
  color: var(--text-main);
}

/* Drag and Drop Stop List (Screen 3) */
.dnd-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.dnd-header-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.dnd-header-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dnd-stop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  min-height: 50px;
}

.dnd-stop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.dnd-stop-item:active {
  cursor: grabbing;
}

.dnd-stop-item.dragging {
  opacity: 0.5;
  transform: scale(0.98);
  border-color: var(--accent-amber);
  background-color: #FFFDF9;
}

.dnd-stop-item.drag-over {
  border-top: 3px solid var(--accent-amber);
}

.dnd-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drag-handle-icon {
  color: #C0B7AF;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.dnd-shop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.dnd-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #A49B93;
}

.dnd-action-btn {
  background: transparent;
  border: none;
  color: #A49B93;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.dnd-action-btn:hover {
  color: var(--accent-red);
}

/* Floating Bottom Navigation Bar (Minimal Icon-Only by Default, Reveal Labels on Scroll) */
.bottom-nav-bar {
  height: 52px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  bottom: 0;
  z-index: 100;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease;
}

.bottom-nav-bar.show-labels {
  height: 64px;
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
  transition: all 0.2s ease;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.nav-tab-item.active,
.nav-tab-item:hover {
  color: var(--accent-amber);
}

.nav-tab-item .nav-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-bar.show-labels .nav-tab-item .nav-icon {
  transform: scale(1.0);
}

.nav-tab-item .nav-label {
  max-height: 0;
  opacity: 0;
  transform: translateY(4px);
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.bottom-nav-bar.show-labels .nav-tab-item .nav-label {
  max-height: 18px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 2px;
}

/* Primary Action Button */
.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, #E67E22, #D99B26);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(217, 155, 38, 0.3);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 155, 38, 0.4);
}

/* Toast Messages */
.toast-container {
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background-color: var(--accent-navy);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================================================
   Landscape Orientation Guard (Mobile Portrait Lock)
   ========================================================= */
#landscape-guard {
  display: none;
}

@media screen and (orientation: landscape) and (max-height: 540px) {
  #landscape-guard {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(30, 43, 55, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #FFFFFF;
  }

  .landscape-guard-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    color: var(--accent-amber);
    animation: rotatePhone 2.2s infinite ease-in-out;
  }

  .landscape-guard-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }

  .landscape-guard-desc {
    font-size: 0.88rem;
    color: #BDC3C7;
    max-width: 320px;
    line-height: 1.6;
  }
}

@keyframes rotatePhone {
  0%, 15% {
    transform: rotate(90deg);
  }
  50%, 65% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(90deg);
  }
}

/* ============================================================
   Shop Detail Page (Screen 2 Refreshed Layout)
   ============================================================ */

/* 1. Header & Badges */
.shop-detail-header-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.shop-detail-title-main {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 8px;
}

.shop-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.shop-info-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #F1EFE9;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.shop-app-rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.shop-app-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-app-stars .stars-gold {
  color: var(--accent-amber);
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.shop-app-stars .rating-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
}

.shop-app-stars .review-cnt {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 2. Google Rating Card */
.google-rating-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.google-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #1E293B;
}

.google-score-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.google-score-num {
  color: #E67E22;
  font-size: 1.05rem;
  font-weight: 900;
}

.google-score-cnt {
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
}

/* 3. Square Photo Gallery (1:1 Aspect Ratio Grid) */
.section-headline {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.photo-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #EAE6DF;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.photo-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-gallery-empty {
  background: #F9F8F5;
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-bottom: 20px;
}

/* 4. Google Reviews List */
.google-reviews-section {
  margin-top: 24px;
}

.google-review-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

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

.google-reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #4285F4;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.google-reviewer-meta {
  flex: 1;
  min-width: 0;
}

.google-reviewer-name {
  font-weight: 800;
  font-size: 0.84rem;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-review-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.google-review-text {
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.55;
  word-break: break-word;
}

/* 5. Photo Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Score Parameters in Member Review Card */
.user-score-parameters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 10px;
}

.user-score-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #F4F1EA;
  color: var(--text-main);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.05);
}

.user-score-tag strong {
  color: #D99B26;
  font-weight: 800;
}

.btn-review-delete {
  background: transparent;
  color: #94A3B8;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-review-delete:hover {
  background: #FEE2E2;
  color: #EF4444;
}

