/* =============================================
   LOHAS Store · Components (跨頁通用)
   --------------------------------------------
   依賴：lohas-tokens.css, lohas-base.css, lohas-components.css
   --------------------------------------------
   包含：
   - .store-pin / .store-pin-pulse  地圖大頭針（樹葉滴型）
   - .store-map-preview              假地圖卡片（單店頁右側用）
   - .store-info-row                 資訊列項（地址/電話/時間/捷運）
   - .store-status-dot               ● 營業中 狀態點
   - .booking-cta-card               棕底金按鈕預約 CTA 卡
   ============================================= */

/* === 區域 chip（列表頁 + 過濾用）=== */
.region-pill {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.region-pill:hover { background: var(--bg-warm); }
.region-pill.active { background: var(--lohas-brand); color: #fff; }
.region-pill em { font-style: normal; opacity: 0.6; margin-left: 4px; font-size: 10px; }
.region-pill.active em { opacity: 0.8; }

/* === 狀態 dot === */
.store-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ok);
  font-weight: 600;
  font-size: 11px;
}
.store-status-dot i {
  font-size: 6px;
  color: var(--ok);
}
.store-status-dot.closed { color: var(--text-muted); }
.store-status-dot.closed i { color: var(--text-muted); }

/* === 假地圖卡片（單店頁右側）=== */
.store-map-preview {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #EFE9DD 0%, #DDD3C0 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
}
.store-map-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 66, 45, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 66, 45, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.store-map-road {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
}
.store-map-road.h { height: 8px; width: 100%; top: 50%; transform: translateY(-50%); }
.store-map-road.v { width: 8px; height: 100%; left: 50%; transform: translateX(-50%); }
.store-map-road.d {
  height: 6px;
  width: 130%;
  top: 30%;
  left: -15%;
  transform: rotate(-25deg);
  background: rgba(255, 255, 255, 0.5);
}
.store-map-pin-big {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 36px;
  height: 36px;
}
.store-map-pin-body {
  width: 36px;
  height: 36px;
  background: var(--lohas-brand);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(80, 66, 45, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-map-pin-body i {
  transform: rotate(45deg);
  color: #fff;
  font-size: 14px;
}
.store-map-pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(168, 90, 74, 0.3);
  transform: translate(-50%, -50%);
  animation: store-map-pulse 2s infinite;
}
@keyframes store-map-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.store-map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-sub);
}
.store-map-overlay i { color: var(--lohas-brand); }
.store-map-overlay b { color: var(--lohas-brand); font-weight: 600; }

/* === 資訊列 ===
   單店頁右側 sticky 區的「地址 / 電話 / 時間 / 捷運」用 */
.store-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 12px;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.store-info-row + .store-info-row { margin-top: 4px; }
.store-info-row:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.store-info-row-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-warm);
  color: var(--lohas-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.store-info-row-content { flex: 1; min-width: 0; }
.store-info-row-content b {
  display: block;
  font-size: 13px;
  color: var(--lohas-brand);
  margin-bottom: 2px;
  font-weight: 500;
}
.store-info-row-content span {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.store-info-row-arr {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 8px;
}

/* === 預約 CTA 卡（棕底金按鈕）=== */
.booking-cta-card {
  background: var(--lohas-brand);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.booking-cta-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(212, 176, 104, 0.12);
}
.booking-cta-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 176, 104, 0.2);
  color: var(--collab-gold);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.booking-cta-card h3 {
  font-family: var(--font-tc);
  font-size: 19px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.booking-cta-card p {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}
.booking-cta-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 11px;
  position: relative;
  z-index: 1;
}
.booking-cta-meta-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  flex: 1;
  text-align: center;
}
.booking-cta-meta-item b {
  display: block;
  color: var(--collab-gold);
  font-family: var(--font-tc);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.booking-cta-btn {
  width: 100%;
  padding: 13px;
  background: var(--collab-gold);
  color: var(--lohas-brand);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.booking-cta-btn:hover { background: #fff; }

/* === 預約提示橫條（橙底紅 icon）=== */
.booking-prompt-bar {
  background: linear-gradient(105deg, #FBEFE7 0%, #F5E5D8 100%);
  padding: 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--bg-soft);
}
.booking-prompt-icon {
  width: 42px;
  height: 42px;
  background: var(--lohas-brand);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(80, 66, 45, 0.25);
  flex-shrink: 0;
}
.booking-prompt-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.booking-prompt-text { font-size: 14px; }
.booking-prompt-text b {
  display: block;
  color: var(--lohas-brand);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.booking-prompt-text span {
  color: var(--text-sub);
  font-size: 12px;
}
.booking-prompt-btn {
  padding: 11px 22px;
  background: var(--lohas-brand);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.booking-prompt-btn:hover {
  background: var(--lohas-hover);
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 768px) {
  .booking-prompt-bar { padding: 16px 24px; flex-direction: column; align-items: stretch; }
}

/* === Loading / Empty / Error 共用狀態元件 === */
.store-state {
  padding: 60px 22px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.store-state-icon {
  font-size: 32px;
  color: var(--lohas-light);
  margin-bottom: 12px;
}
.store-state-title {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 6px;
  font-weight: 500;
}
.store-state-msg {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}
.store-state .btn-retry {
  margin-top: 14px;
  padding: 8px 18px;
  background: var(--lohas-brand);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.store-state .btn-retry:hover { background: var(--lohas-hover); }

/* loading spinner */
.store-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--bg-soft);
  border-top-color: var(--lohas-brand);
  border-radius: 50%;
  animation: store-spin 0.7s linear infinite;
}
@keyframes store-spin {
  to { transform: rotate(360deg); }
}
