/* ===================================================
   低碳生態旅遊媒合平台 - 完整樣式表
   ECO-TRAVEL LINK Platform Stylesheet
   =================================================== */

/* --- CSS Variables (設計系統) - Animal Crossing 風格 --- */
:root {
  /* 主色系 - 動物森友會薄荷綠 */
  --primary-gradient: linear-gradient(135deg, #7dd3c0 0%, #5fb8a0 100%);
  --primary-color: #5fb8a0;
  --primary-light: #88dfc7;
  --primary-dark: #4a9e87;

  /* 輔助色 - 溫暖柔和 */
  --success-color: #7dcea0;
  --warning-color: #f8d978;
  --error-color: #f5a6a6;
  --info-color: #89cff0;

  /* 背景色系 - 奶油綠/米色 */
  --bg-color: #f5f9f7;
  --bg-gradient: linear-gradient(135deg, #e8f5f0 0%, #faf8f0 50%, #f0f8f2 100%);

  /* 文字色系 - 加強對比 */
  --text-main: #1e3a29;
  --text-secondary: #3d5a47;
  --text-muted: #6b8e7a;

  /* 玻璃擬態 */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(125, 211, 192, 0.3);
  --glass-shadow: 0 8px 32px rgba(93, 147, 128, 0.12);
  --glass-shadow-hover: 0 12px 40px rgba(93, 147, 128, 0.18);
  --blur-strength: 20px;

  /* 圓角 */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* 間距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* 字體 */
  --font-main: "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Orbitron", sans-serif;

  /* 動畫 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 全域重置與效能優化 --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* GPU 加速優化 */
.modal-overlay,
.modal,
.glass-panel,
.lodging-card,
.route-card,
.stat-card,
.menu-item,
.bottom-nav button,
.onboarding-step {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 減少動畫對低端設備的影響 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  padding-bottom: 100px;
}

/* --- 動態背景光暈 --- */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.5;
  animation: floatOrb 15s infinite alternate ease-in-out;
  pointer-events: none;
}

body::before {
  background: linear-gradient(135deg, #b5ead7 0%, #a0d9c1 100%);
  top: -150px;
  left: -150px;
}

body::after {
  background: linear-gradient(135deg, #ffeaa7 0%, #f8d978 100%);
  bottom: -100px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(40px, 60px) scale(1.05);
  }
  100% {
    transform: translate(20px, 30px) scale(0.95);
  }
}

/* --- 玻璃擬態工具類 --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-strength));
  -webkit-backdrop-filter: blur(var(--blur-strength));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.glass-panel:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* --- 頂部導覽列 Header --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-normal);
  margin-bottom: 20px;
}

header.scrolled {
  background: var(--glass-bg-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.logo:hover {
  transform: scale(1.05);
}

.app-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  display: none;
}

@media (min-width: 480px) {
  .app-title {
    display: block;
  }
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-wrapper {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.notification-wrapper:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: var(--error-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  overflow: hidden;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* --- 主要內容區 --- */
main {
  padding: 0 16px 20px;
  max-width: 640px;
  margin: 0 auto;
}

/* --- 角色切換器 --- */
.role-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.role-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.role-btn:hover {
  color: var(--text-main);
}

.role-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.role-btn i {
  flex-shrink: 0;
}

/* --- 區塊視圖 --- */
.view-section {
  display: none;
  animation: slideUp 0.4s ease forwards;
}

.view-section.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 歡迎文字 --- */
.welcome-text {
  margin-bottom: 24px;
}

.welcome-text h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    var(--text-main) 0%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- 表單容器 --- */
.form-container {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.9rem;
}

.form-group label i {
  color: var(--primary-color);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  font-size: 16px;
  color: var(--text-main);
  transition: all var(--transition-fast);
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: white;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(5, 117, 230, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 44px;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.people-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-label {
  position: relative;
}

.input-with-label span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.input-with-label input {
  padding-right: 50px;
}

/* --- 按鈕樣式 --- */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5, 117, 230, 0.3);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(5, 117, 230, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--error-color);
  color: var(--error-color);
  background: rgba(248, 113, 113, 0.08);
}

.btn-success {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--success-color);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-success:hover {
  background: #22c55e;
  transform: translateY(-1px);
}

.btn-outline {
  padding: 12px 24px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-outline:hover {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary-color);
}

.btn-google {
  width: 100%;
  padding: 14px 24px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
}

.btn-google:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- 地圖容器 --- */
#map-container {
  height: 220px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  z-index: 1;
  overflow: hidden;
  border: 2px solid var(--glass-border);
}

/* --- 熱門路線滑動區 --- */
.section-block {
  margin-top: 32px;
}

.section-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--text-main);
}

.section-block h3 i {
  color: var(--primary-color);
}

.routes-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.routes-slider::-webkit-scrollbar {
  height: 6px;
}

.routes-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.routes-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.route-card {
  min-width: 200px;
  height: 130px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  cursor: pointer;
  transition: transform var(--transition-normal);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.route-card:hover {
  transform: scale(1.03);
}

.route-info {
  color: white;
}

.route-info .route-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.route-info .route-duration {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* --- 請求卡片 --- */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal),
    opacity var(--transition-normal);
}

.request-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: var(--primary-gradient);
  border-radius: 5px 0 0 5px;
}

.request-card.accepted::before {
  background: var(--success-color);
}

.request-card:hover {
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.card-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-badge.new {
  background: linear-gradient(
    135deg,
    rgba(0, 210, 106, 0.15) 0%,
    rgba(5, 117, 230, 0.15) 100%
  );
  color: var(--primary-color);
}

.card-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

.card-badge.success {
  background: rgba(74, 222, 128, 0.15);
  color: #15803d;
}

.card-badge.completed {
  background: rgba(96, 165, 250, 0.15);
  color: #1d4ed8;
}

.card-badge.cancelled {
  background: rgba(248, 113, 113, 0.15);
  color: #dc2626;
}

.card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-item i {
  color: var(--text-muted);
}

.request-note {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.guide-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--success-color);
  margin-bottom: 12px;
  font-weight: 500;
}

.customer-info {
  margin-bottom: 12px;
}

.customer-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- 空狀態 --- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state i {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state span {
  font-size: 0.9rem;
}

/* --- 標籤頁 --- */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50px;
}

.tab-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
}

.tab-btn.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.tab-btn i {
  width: 16px;
  height: 16px;
}

/* --- 通知列表 --- */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notification-item:hover {
  background: white;
}

.notification-item.unread {
  background: rgba(5, 117, 230, 0.05);
  border-left: 3px solid var(--primary-color);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.request_accepted {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success-color);
}

.notification-icon.request_completed {
  background: rgba(96, 165, 250, 0.15);
  color: var(--info-color);
}

.notification-icon.request_cancelled {
  background: rgba(248, 113, 113, 0.15);
  color: var(--error-color);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.notification-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- 個人資料頁 --- */
.profile-container {
  text-align: center;
}

.profile-header {
  padding: 32px 20px;
  background: var(--glass-bg);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: white;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(5, 117, 230, 0.3);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.profile-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.role-badge.approved {
  background: rgba(74, 222, 128, 0.15);
  color: #15803d;
}

.role-badge.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #d97706;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- 導覽員註冊表單 --- */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-weight: 400;
  margin: 0;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* --- 照片上傳 --- */
.photo-upload-container {
  text-align: center;
}

.photo-preview {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 3px dashed var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

.photo-preview:hover {
  border-color: var(--primary-light);
  background: rgba(5, 117, 230, 0.05);
}

.photo-preview i {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.photo-preview span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-preview.has-image {
  border-style: solid;
  border-color: var(--success-color);
}

.photo-preview.has-image i,
.photo-preview.has-image span {
  display: none;
}

.photo-preview.uploading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview.uploading::before {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.photo-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- 底部導航 --- */
.bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  display: flex;
  justify-content: space-around;
  padding: 10px 8px;
  border-radius: 50px;
  z-index: 99;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 16px;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.nav-btn i {
  width: 22px;
  height: 22px;
}

.nav-btn:hover {
  color: var(--text-secondary);
}

.nav-btn.active {
  color: var(--primary-color);
  background: rgba(5, 117, 230, 0.1);
}

/* --- 頁尾 --- */
footer {
  text-align: center;
  padding: 24px 20px 100px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Toast 提示 --- */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 35, 45, 0.95);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-bounce),
    opacity var(--transition-normal);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Modal 彈窗 --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--text-main);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.modal-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Loading Overlay --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(5, 117, 230, 0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- 旋轉動畫 (用於按鈕 loading) --- */
.spin {
  animation: spin 1s linear infinite;
}

/* --- 響應式調整 --- */
@media (max-width: 480px) {
  .welcome-text h2 {
    font-size: 1.5rem;
  }

  .role-btn span {
    font-size: 0.85rem;
  }

  main {
    padding: 0 12px 20px;
  }

  .form-container {
    padding: 20px;
  }

  .bottom-nav {
    width: calc(100% - 24px);
  }

  .nav-btn {
    padding: 8px 12px;
  }

  .nav-btn span {
    font-size: 0.65rem;
  }
}

@media (min-width: 768px) {
  main {
    padding: 0 24px 20px;
  }

  .role-switcher {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .bottom-nav {
    max-width: 420px;
  }
}

/* --- 印刷樣式 --- */
@media print {
  body::before,
  body::after,
  header,
  .bottom-nav,
  .toast,
  .modal-overlay,
  .loading-overlay {
    display: none !important;
  }

  body {
    background: white;
    padding: 0;
  }

  .glass-panel {
    background: white;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }
}

/* ====== Region Highlight Style ====== */
.region-highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #0575e6 0%, #00d4aa 50%, #764ba2 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: regionGradient 3s ease infinite;
}

.region-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0575e6, #00d4aa, #764ba2);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: regionUnderline 2s ease infinite;
}

@keyframes regionGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes regionUnderline {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 0%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* ====== Route Toast/Popup Style ====== */
.route-toast {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.route-toast.show {
  opacity: 1;
}

.route-toast-content {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.route-toast.show .route-toast-content {
  transform: translateY(0) scale(1);
}

.route-toast-image {
  display: block;
  width: 100%;
  height: 180px;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  flex-shrink: 0;
}

.route-toast-body {
  padding: 24px;
}

.route-toast-body h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.route-toast-body .duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.route-toast-body .duration i {
  width: 16px;
  height: 16px;
}

.route-toast-body .desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.route-toast-body button {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.route-toast-body button i {
  width: 18px;
  height: 18px;
}

.route-toast-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 117, 230, 0.4);
}

/* Route card hover effect */
.route-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* ====== User Location Marker ====== */
.user-location-marker {
  background: transparent !important;
  border: none !important;
}

.user-location-dot {
  width: 16px;
  height: 16px;
  background: #0575e6;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(5, 117, 230, 0.5);
  position: relative;
}

.user-location-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(5, 117, 230, 0.25);
  border-radius: 50%;
  animation: locationPulse 2s ease-out infinite;
}

@keyframes locationPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ====== Form Hint Style ====== */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ====== Contact Info in Request Card ====== */
.contact-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  border-left: 3px solid var(--primary-color);
}

.contact-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-title i {
  width: 14px;
  height: 14px;
}

.contact-item {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 4px;
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ====== Region Badge in Card ====== */
.card-region {
  background: linear-gradient(135deg, #00d4aa 0%, #0575e6 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* Badges Row */
.badges-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.role-badge.admin-badge {
  background: #e2e8f0;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.role-badge.tourist-badge {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Switch Role Hint */
.switch-role-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  color: #1e40af;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  border: 1px solid #dbeafe;
}

.switch-role-hint i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ====== Profile Dashboard Styles ====== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.stat-icon.eco {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success-color);
}

.stat-icon.trips {
  background: rgba(96, 165, 250, 0.15);
  color: var(--info-color);
}

.stat-icon.rating {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning-color);
}

.stat-icon.wallet {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Menu List */
.menu-list {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
  cursor: pointer;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: #f8fafc;
}

.menu-item i {
  width: 20px;
  height: 20px;
  margin-right: 16px;
  color: var(--text-secondary);
}

.menu-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
}

.menu-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-main);
  padding-left: 8px;
  border-left: 4px solid var(--primary-color);
}

/* ====== Lodging Frontend Styles ====== */

/* Lodging Filter Bar */
.lodging-filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.lodging-filter-bar select {
  flex: 1;
  padding: 14px 40px 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lodging-filter-bar select:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lodging-filter-bar select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.lodging-filter-bar select option {
  padding: 12px 16px;
  background: white;
  color: var(--text-main);
  font-weight: 400;
}

/* Lodgings Grid */
.lodgings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 4px;
}

@media (min-width: 768px) {
  .lodgings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Lodging Card */
.lodging-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.lodging-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.lodging-card-image {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.lodging-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-color);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.lodging-card-body {
  padding: 12px;
}

.lodging-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lodging-card-region {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.lodging-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.lodging-card-facilities {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.lodging-card-facilities span {
  background: #f1f5f9;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
}

/* Lodging Detail Modal */
.lodging-modal-content {
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.lodging-detail-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.lodging-detail-body {
  padding: 20px;
}

.lodging-detail-header {
  margin-bottom: 16px;
}

.lodging-detail-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.lodging-detail-region {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lodging-detail-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 16px 0;
}

.lodging-detail-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.lodging-detail-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.facility-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  color: #0284c7;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.facility-tag i {
  width: 14px;
  height: 14px;
}

/* Lodging Booking Form */
.lodging-booking-form {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

.lodging-booking-form h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.lodging-booking-form .form-row {
  display: flex;
  gap: 12px;
}

.lodging-booking-form .form-group {
  flex: 1;
  margin-bottom: 12px;
}

.lodging-booking-form label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

.lodging-booking-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
}

.lodging-contact-info {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.lodging-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.lodging-contact-btn.phone {
  background: #dcfce7;
  color: #166534;
}

.lodging-contact-btn.line {
  background: #d1fae5;
  color: #047857;
}

.lodging-contact-btn i {
  width: 18px;
  height: 18px;
}

/* ====== Frontend Modal Styles ====== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  animation: modalSlideIn 0.3s ease;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(61, 90, 71, 0.25);
}

.modal.modal-lg {
  max-width: 500px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-close i {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.modal-body {
  padding: 20px;
}

/* Frontend Form Styles */
.modal .form-group {
  margin-bottom: 16px;
}

.modal .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal .form-group input,
.modal .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Booking List in Modal */
.booking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid var(--primary-color);
}

.booking-item.confirmed {
  border-left-color: #10b981;
}

.booking-item.cancelled {
  border-left-color: #ef4444;
  opacity: 0.7;
}

.booking-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.booking-item-name {
  font-weight: 600;
  color: var(--text-main);
}

.booking-item-status {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.booking-item-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.booking-item-status.confirmed {
  background: #d1fae5;
  color: #065f46;
}

.booking-item-status.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.booking-item-status.completed {
  background: #e0e7ff;
  color: #3730a3;
}

.booking-item-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-item-details span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.booking-item-details i {
  width: 14px;
  height: 14px;
}

.booking-item-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.booking-item-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.booking-item-actions .btn-cancel {
  background: #fee2e2;
  color: #991b1b;
  border: none;
}

.booking-item-actions .btn-cancel:hover {
  background: #fecaca;
}

/* ====== Schedule Settings Styles ====== */
.schedule-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: #f0f9ff;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.2s;
}

.schedule-day:has(input[type="checkbox"]:checked) {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.schedule-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
  min-width: 80px;
}

.schedule-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.schedule-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-time input[type="time"] {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  width: 100px;
}

.schedule-time span {
  color: var(--text-secondary);
}

/* Vacation List */
.vacation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.vacation-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 20px;
  font-size: 0.85rem;
}

.vacation-tag button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vacation-tag button:hover {
  opacity: 1;
}

.vacation-tag button i {
  width: 14px;
  height: 14px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.85rem;
  border: 1px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm:hover {
  background: var(--primary-color);
  color: white;
}

.btn-sm i {
  width: 14px;
  height: 14px;
}

/* ====== Onboarding Modal Styles ====== */
.onboarding-modal {
  max-width: 420px;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.onboarding-step {
  display: none;
  padding: 32px 24px 20px;
  animation: fadeInUp 0.4s ease;
}

.onboarding-step.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.onboarding-step h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.onboarding-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Feature Grid */
.onboarding-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  min-width: 90px;
  transition: all 0.2s;
}

.feature-item:hover {
  transform: translateY(-4px);
  background: #f0f9ff;
}

.feature-item i {
  width: 28px;
  height: 28px;
  color: var(--primary-color);
}

.feature-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Steps List */
.onboarding-steps-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s;
}

.step-item:hover {
  background: #f0f9ff;
  transform: translateX(4px);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.step-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Tip Box */
.onboarding-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #fffbeb;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  text-align: left;
  margin-top: 16px;
}

.onboarding-tip i {
  width: 20px;
  height: 20px;
  color: #f59e0b;
  flex-shrink: 0;
}

.onboarding-tip span {
  font-size: 0.85rem;
  color: #92400e;
}

/* Footer */
.onboarding-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.onboarding-dots {
  display: flex;
  gap: 8px;
}

.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s;
  cursor: pointer;
}

.onboarding-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary-color);
}

.onboarding-buttons {
  display: flex;
  gap: 10px;
}

.btn-skip {
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-skip:hover {
  color: var(--text-main);
}

.onboarding-buttons .btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
}

.onboarding-buttons .btn-primary i {
  width: 16px;
  height: 16px;
}

/* ====== Location Search Box ====== */
.location-search-box {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.location-search-box input {
  flex: 1;
}

.location-search-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-color);
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.location-search-btn i {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.location-search-btn:hover {
  background: var(--primary-color);
}

.location-search-btn:hover i {
  color: white;
}

.location-search-btn:active {
  transform: scale(0.95);
}

/* ====== Support Modal Styles ====== */
.support-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

#support-modal .modal-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#support-modal .modal-header h3 i {
  width: 22px;
  height: 22px;
  color: var(--primary-color);
}

#support-type {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

#support-type:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* ====== Form Intro & Action Buttons ====== */
.form-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.action-buttons .btn-outline,
.action-buttons .btn-primary {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.action-buttons .btn-outline i,
.action-buttons .btn-primary i {
  width: 18px;
  height: 18px;
}

/* Form row for side-by-side inputs */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

@media (max-width: 500px) {
  .form-row {
    flex-direction: column;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn-outline,
  .action-buttons .btn-primary {
    width: 100%;
  }
}

/* ====== Owner Actions Section ====== */
.owner-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.owner-actions h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.owner-actions h4 i {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

/* ====== Modal Toolbar ====== */
.modal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

/* ====== Large Modal ====== */
.modal.modal-lg {
  max-width: 700px;
  width: 95%;
}

/* ====== Lodging Card Mini (for owner management) ====== */
.lodging-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lodging-card-mini {
  display: flex;
  gap: 12px;
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lodging-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.lodging-info {
  flex: 1;
  min-width: 0;
}

.lodging-info h4 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.lodging-info p {
  font-size: 0.85rem;
  margin: 2px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lodging-info p i {
  width: 14px;
  height: 14px;
}

.lodging-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lodging-actions .btn-sm {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: var(--glass-bg);
  cursor: pointer;
  transition: all 0.2s;
}

.lodging-actions .btn-sm:hover {
  background: var(--primary-color);
  color: white;
}

.lodging-actions .btn-sm.danger:hover {
  background: #ef4444;
}

/* ====== Request Item (for viewing lodging requests) ====== */
.request-item {
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.request-dates {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.request-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.request-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.request-details span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.request-details i {
  width: 16px;
  height: 16px;
}

.request-notes {
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.03);
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}

.request-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.request-contact span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
}

.request-contact .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.request-contact .btn-sm:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.request-contact .btn-sm i {
  width: 14px;
  height: 14px;
}

/* ====== Empty State ====== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.95rem;
}

/* ====== Global Select/Dropdown Styling ====== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 12px 40px 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
}

select:hover {
  border-color: var(--primary-color);
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 117, 230, 0.15);
}

/* Modal Select */
.modal select {
  width: 100%;
}

/* ====== Tours Styles ====== */
.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: -8px 0 16px 0;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tour-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.tour-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.tour-card-image {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #0575e6 0%, #00d4aa 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.tour-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.tour-card-badge.active {
  background: var(--success-color);
}

.tour-card-badge.full {
  background: var(--warning-color);
}

.tour-card-badge.pending {
  background: var(--text-secondary);
}

.tour-card-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tour-card-body {
  padding: 16px;
}

.tour-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-card-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tour-card-guide i {
  width: 14px;
  height: 14px;
}

.tour-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tour-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tour-card-meta i {
  width: 14px;
  height: 14px;
}

.tour-card-spots {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spots-bar {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 10px;
}

.spots-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 3px;
  transition: width 0.3s;
}

.spots-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Tour Detail Modal */
.tour-detail-header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.tour-detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.tour-detail-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.tour-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.tour-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
}

.tour-info-item i {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
}

.tour-info-item .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tour-info-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.tour-detail-desc {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

.tour-booking-form {
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 16px;
  border: 2px solid #bbf7d0;
}

.tour-booking-form h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-booking-form h4 i {
  color: var(--success-color);
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-actions .btn-primary {
  width: auto;
  padding: 12px 24px;
}

/* ===================================================
   星級評分系統 (Star Rating System)
   =================================================== */

/* --- 星級顯示元件 (只讀) --- */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating .star {
  color: #e0e0e0;
  font-size: 1rem;
  line-height: 1;
}

.star-rating .star.filled {
  color: #ffc107;
}

.star-rating .star.half {
  position: relative;
  color: #e0e0e0;
}

.star-rating .star.half::before {
  content: "★";
  position: absolute;
  left: 0;
  color: #ffc107;
  width: 50%;
  overflow: hidden;
}

/* 評分數值 */
.rating-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-left: 6px;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 4px;
}

/* --- 卡片上的評分徽章 --- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(255, 193, 7, 0.15);
  border-radius: 6px;
  font-size: 0.85rem;
}

.rating-badge .star {
  color: #ffc107;
  font-size: 0.85rem;
}

.rating-badge .value {
  font-weight: 600;
  color: var(--text-main);
}

.rating-badge .count {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --- 互動式星級輸入 --- */
.star-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  font-size: 1.8rem;
  color: #e0e0e0;
  transition: color 0.15s ease, transform 0.15s ease;
  margin: 0;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: #ffc107;
}

.star-rating-input label:hover {
  transform: scale(1.15);
}

/* --- 評論列表 --- */
.reviews-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.reviews-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.reviews-section-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0;
}

.reviews-section-header h4 i {
  color: #ffc107;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  flex-shrink: 0;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-rating {
  margin-left: auto;
}

.review-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reviews-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
}

.reviews-empty i {
  display: block;
  margin-bottom: 8px;
  opacity: 0.5;
}

/* --- 評論表單 --- */
.review-form {
  padding: 20px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.review-form-header {
  margin-bottom: 16px;
}

.review-form-header h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 8px 0;
}

.review-form .rating-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.review-form .rating-select label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.review-form textarea {
  min-height: 80px;
  margin-bottom: 12px;
}

.review-form .btn-submit-review {
  width: auto;
  padding: 10px 20px;
}

/* --- 評分 Modal --- */
.review-modal-content {
  text-align: center;
}

.review-modal-content .star-rating-input {
  justify-content: center;
  margin: 20px 0;
}

.review-modal-content .star-rating-input label {
  font-size: 2.5rem;
}

/* --- 民宿/遊程卡片評分整合 --- */
.lodging-card-rating,
.tour-card-rating,
.guide-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.85rem;
}

.lodging-card-rating .star,
.tour-card-rating .star,
.guide-card-rating .star {
  color: #ffc107;
  font-size: 0.9rem;
}

.lodging-card-rating .no-rating,
.tour-card-rating .no-rating,
.guide-card-rating .no-rating {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- 評論按鈕 --- */
.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe4a0 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #856404;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-write-review:hover {
  background: linear-gradient(135deg, #ffe4a0 0%, #ffd86b 100%);
  transform: translateY(-1px);
}

.btn-write-review i {
  font-size: 0.9rem;
}

/* --- 響應式調整 --- */
@media (max-width: 480px) {
  .star-rating-input label {
    font-size: 1.5rem;
  }

  .review-modal-content .star-rating-input label {
    font-size: 2rem;
  }

  .review-header {
    flex-wrap: wrap;
  }

  .review-rating {
    margin-left: 52px;
    margin-top: -4px;
  }
}

/* ====== Map Location Controls ====== */
.map-location-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-control-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  background: white !important;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.map-control-btn:hover {
  background: #f0f0f0 !important;
  transform: scale(1.05);
}

.map-control-btn:active {
  transform: scale(0.95);
}
