/* ============================================
   Remote Car Control — Light App Style
   参考: 长安汽车 App 控制面板
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f6f8;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-green: #4caf50;
  --accent-red: #e53935;
  --accent-blue: #2196f3;
  --accent-orange: #ff9800;
  --border-color: #e8eaed;
  --btn-bg: #f0f1f3;
  --btn-active: #e3e5e9;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ====== Top Status Bar ====== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  border-bottom: 1px solid var(--border-color);
  background: var(--card-bg);
}
.top-bar .time {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e8f5e9;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}
.status-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ====== Main Card ====== */
.main-card {
  background: var(--card-bg);
  margin: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: slideUp 0.35s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Warning Badge ====== */
.warning-bar {
  text-align: center;
  padding-top: 16px;
}
.warning-tag {
  display: inline-block;
  background: #ffebee;
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

/* ====== Car Image Area ====== */
.car-area {
  text-align: center;
  padding: 12px 0 8px;
  position: relative;
}
.car-area img {
  width: 85%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}
.car-placeholder {
  width: 280px;
  height: 130px;
  margin: 0 auto;
  background: linear-gradient(180deg, #d0d4da 0%, #b8bec6 50%, #a0a8b0 100%);
  border-radius: 60px 60px 24px 24px;
  position: relative;
  overflow: hidden;
}
/* Simple car silhouette with CSS */
.car-placeholder::before {
  content: '';
  position: absolute;
  top: 30%; left: 15%;
  width: 70%; height: 45%;
  background: linear-gradient(135deg, #c8ced6, #b0b8c0);
  border-radius: 40px 40px 8px 8px;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.08);
}
.car-placeholder::after {
  content: '';
  position: absolute;
  top: 18%; left: 28%;
  width: 44%; height: 28%;
  background: rgba(200,210,220,0.6);
  border-radius: 30px 30px 4px 4px;
}
/* Windows */
.car-window-1 {
  position: absolute;
  top: 38%; left: 26%;
  width: 22%; height: 22%;
  background: rgba(80,120,170,0.25);
  border-radius: 8px 12px 2px 2px;
}
.car-window-2 {
  position: absolute;
  top: 38%; left: 52%;
  width: 20%; height: 22%;
  background: rgba(80,120,170,0.25);
  border-radius: 12px 8px 2px 2px;
}
/* Wheels */
.car-wheel-l, .car-wheel-r {
  position: absolute;
  bottom: 12%;
  width: 36px; height: 36px;
  background: #333;
  border-radius: 50%;
  border: 3px solid #555;
}
.car-wheel-l { left: 22%; }
.car-wheel-r { right: 22%; }

/* ====== Vehicle Info Bar ====== */
.vehicle-info {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px 16px;
  gap: 16px;
  border-top: 1px solid var(--border-color);
}
.info-left {
  flex: 1;
}
.info-left .oil-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.info-left .oil-row .label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.info-left .oil-row .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.info-left .mileage {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.extra-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.extra-item { font-size: 11px; }
.extra-label { color: var(--text-muted); }
.extra-value { color: var(--text-primary); font-weight: 600; }
.info-left .temp-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}
.temp-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.info-right {
  text-align: right;
  flex-shrink: 0;
}
.tire-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}
.tire-icon {
  display: inline-block;
  width: 32px; height: 48px;
  vertical-align: middle;
  margin-left: 4px;
}
.timestamp {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ====== Control Button Grid (with categories) ====== */
.control-section {
  background: var(--card-bg);
  margin: 10px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 10px;
  animation: slideUp 0.4s ease-out 0.1s both;
}
.btn-grid-5 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ctrl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 4px 12px;
  flex: 1 1 0;
  min-width: calc(20% - 4px);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
  flex: 1 1 0;
  min-width: calc(20% - 3px);
}
.ctrl-btn:active {
  background: var(--btn-active);
  transform: scale(0.94);
}
.ctrl-btn .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: #666;
  transition: all 0.15s ease;
}
.ctrl-btn .icon svg { width: 26px; height: 26px; }
.ctrl-btn:active .icon {
  background: var(--btn-active);
}
.ctrl-btn .label {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* 导航按钮（车辆状态/360全景/操作历史） — 与控车按钮统一灰色 */
.nav-action-btn .icon {
  color: #666 !important;
  background: var(--btn-bg) !important;
  border: none !important;
}

/* ====== Bottom Action Row ====== */
.bottom-actions {
  background: var(--card-bg);
  margin: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-around;
  animation: slideUp 0.45s ease-out 0.2s both;
}
.bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-family: inherit;
  -webkit-user-select: none; user-select: none;
}
.bottom-btn:active { background: var(--btn-active); transform: scale(0.96); }
.bottom-btn .big-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  border-radius: 50%;
  background: var(--btn-bg);
  border: 2px solid var(--border-color);
  transition: all 0.15s ease;
}
/* 空调按钮 - 蓝色调 */
.bottom-btn:first-of-type .big-icon {
  background: #e3f2fd;
  border-color: #bbdefb;
}
/* 启动按钮 - 橙色强调 */
.bottom-btn:last-of-type .big-icon {
  background: #fff3e0;
  border-color: #ffe0b2;
}
.bottom-btn.center-lock .big-icon {
  width: 64px; height: 64px;
  font-size: 26px;
  background: #f0fff0;
  border-color: #c8e6c9;
  color: var(--accent-green);
}
.bottom-btn.center-unlock .big-icon {
  width: 64px; height: 64px;
  font-size: 26px;
  background: #e3f2fd;
  border-color: #bbdefb;
  color: var(--accent-blue);
}
.bottom-btn.center-unlock:active .big-icon {
  background: #e8f5e9;
}
.bottom-btn:active .big-icon {
  background: var(--btn-active);
  border-color: #ccc;
}
.bottom-btn.center-lock:active .big-icon {
  background: #e8f5e9;
}
.bottom-btn .bottom-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ====== Install Banner ====== */
.install-banner {
  margin: 8px 16px 0;
  animation: slideUp 0.5s ease-out 0.3s both;
}
.install-btn {
  width: 100%;
  padding: 12px;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--accent-blue);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.install-btn:active {
  background: var(--btn-bg);
  border-style: solid;
}

/* ====== Modal ====== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  justify-content: center; align-items: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 按钮加载旋转动画 */
@keyframes btnSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ctrl-btn.loading .icon,
.bottom-btn.loading .big-icon {
  animation: btnSpin 0.8s linear infinite;
  opacity: 0.5;
}
.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.modal-box .close-btn {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  color: var(--text-muted); font-size: 22px;
  cursor: pointer; line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.modal-box .close-btn:active { background: var(--btn-bg); }
.modal-box .resp-block {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-family: 'Menlo', 'SF Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  display: none;
  line-height: 1.6;
}

/* ====== Login/Register Page Styles ====== */
.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  max-width: 420px;
  margin: 0 auto;
}
.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
  animation: slideUp 0.4s ease-out;
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-header .logo-icon {
  width: 52px; height: 52px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.auth-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.auth-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
.form-group input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}
.form-group input::placeholder { color: var(--text-muted); }
.inline-group {
  display: flex;
  gap: 8px;
}
.inline-group input { flex: 1; }
.inline-group .btn-code {
  flex: 0 0 auto;
  padding: 0 16px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.inline-group .btn-code:active {
  background: var(--btn-active);
}
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}
.btn-primary:active { transform: scale(0.98); box-shadow: 0 2px 6px rgba(33,150,243,0.2); }
.btn-success {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}
.btn-success:active { transform: scale(0.98); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:active { background: var(--btn-bg); }
.link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-color);
}
.alert {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
  animation: slideUp 0.3s ease;
}
.alert.show { display: block; }
.alert-error {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  color: var(--accent-red);
}
.alert-success {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: var(--accent-green);
}
.alert pre {
  margin-top: 8px;
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
}

/* Error page */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.error-box {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 40px 28px;
  box-shadow: var(--shadow-card);
  max-width: 360px;
}
.error-box h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.error-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 380px) {
  .ctrl-btn { padding: 12px 2px 10px; min-width: calc(20% - 4px); }
  .ctrl-btn .icon { width: 44px; height: 44px; font-size: 22px; }
  .ctrl-btn .icon svg { width: 24px; height: 24px; }
  .ctrl-btn .label { font-size: 11px; }
  .vehicle-info { padding: 10px 14px 14px; gap: 10px; }
}

/* ====== Vehicle Status Page ====== */
.status-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}
.status-page-header .back-link {
  font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--btn-bg);
}
.status-card {
  background: var(--card-bg);
  margin: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  animation: slideUp 0.35s ease-out both;
}
.status-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
/* Two column grid for door/window */
.status-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.status-item .item-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.status-item .item-value {
  font-weight: 600;
  color: var(--text-primary);
}
.status-item .val-on {
  color: var(--accent-red);
}
.status-item .val-off {
  color: var(--accent-green);
}
/* Energy grid 3x2 */
.energy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.energy-cell {
  text-align: center;
  padding: 12px 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.energy-cell .e-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.energy-cell .e-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.energy-cell .e-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
/* Voltage bar */
.voltage-bar-wrap {
  margin-top: 6px;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.voltage-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s ease;
}
.voltage-bar-fill.v-low { background: var(--accent-red); }
.voltage-bar-fill.v-mid { background: var(--accent-orange); }
.voltage-bar-fill.v-ok { background: var(--accent-green); }

/* Status refresh button */
.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: var(--btn-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.refresh-btn:active { background: var(--btn-active); transform: scale(0.96); }
.refresh-btn.loading { opacity: 0.6; pointer-events: none; }

/* Quick stats row in user_info */
.quick-stats {
  display: flex;
  gap: 8px;
  padding: 0 20px 14px;
}
.stat-chip {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.stat-chip .stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stat-chip .stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-chip .stat-unit {
  font-size: 10px;
  color: var(--text-muted);
}

/* Nav links section */
.nav-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.nav-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s;
  -webkit-user-select: none;
  user-select: none;
}
.nav-link-btn:active {
  background: var(--btn-active);
  transform: scale(0.96);
}
.nav-link-btn .nav-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  background: var(--btn-bg);
}
.nav-link-btn .nav-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ====== Panorama Page ====== */
.panorama-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
.panorama-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.panorama-header h1 {
  font-size: 17px;
  font-weight: 700;
}
.phone-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--btn-bg);
  padding: 4px 10px;
  border-radius: 12px;
}
.pano-actions {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.pano-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pano-btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.pano-btn-secondary {
  background: var(--card-bg);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}
.pano-btn:active { transform: scale(0.97); }
.pano-btn:disabled { opacity: 0.5; }
.pano-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}
.pano-img-wrap {
  aspect-ratio: 4/3;
  background: var(--btn-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: none;
}
.pano-img-wrap.show { display: block; animation: slideUp 0.3s ease; }
.pano-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.pano-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
/* Fullscreen image modal */
.fs-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 200;
  justify-content: center; align-items: center;
  padding: 20px;
}
.fs-overlay.show { display: flex; }
.fs-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.fs-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
