/* ==========================================================================
   MAISON DU CHOUX (SUS PW) — GOOGLE STREET VIEW REAL-SCALE EXPERIENCE
   Authentic wide-angle distance, real textures, smooth pan & walking navigation
   ========================================================================== */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --orange: #f97316;
  --gold: #f59e0b;
  --surface: rgba(255, 255, 255, 0.95);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0, 0, 0, 0.12);
  --radius-pill: 9999px;
  --radius-card: 18px;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: #0b0f19;
  color: #1e293b;
  user-select: none;
}

/* ── Street View Viewport ────────────────────────────────────────────── */
.sv-viewport {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  perspective: 1100px;
  background: #000;
}
.sv-viewport:active {
  cursor: grabbing;
}

/* Camera Rig — contains the wide real Street View photo */
.sv-camera-rig {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 125vw;
  height: 125vh;
  min-width: 1376px;
  min-height: 768px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

.sv-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sv-pano-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.sv-pano-img.old-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
}
.sv-pano-img.old-view.active {
  opacity: 1;
}

/* ── Ground Navigation Chevron (Ikon Panah Melangkah Google Street View) ── */
.sv-nav-arrow-ground {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 20;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sv-nav-arrow-ground:hover {
  transform: translateX(-50%) scale(1.1);
}
.sv-chevron-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(249, 115, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--orange);
  animation: pulseChevron 1.8s infinite ease-in-out;
}
@keyframes pulseChevron {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 12px 35px rgba(249, 115, 22, 0.5), 0 0 0 5px rgba(249, 115, 22, 0.7); }
}
.sv-chevron-label {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* ── Interactive Hotspots ────────────────────────────────────────────── */
.sv-hotspots-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.sv-hotspot {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}
.sv-hotspot:hover {
  transform: translate(-50%, -60%) scale(1.1);
  z-index: 30;
}
.sv-hotspot-pill {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--orange);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4), var(--shadow);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  animation: floatHotspot 2.5s infinite ease-in-out;
}
@keyframes floatHotspot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.sv-hotspot-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 12px var(--orange);
  margin-top: 4px;
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); opacity: 0.8; }
}

/* Hotspot Coordinates Calibrated to the Real Wide Storefront */
#hotspotPlang {
  top: 44%;
  left: 54%;
}
#hotspotWarkop {
  top: 55%;
  left: 80%;
}

/* ── Top Street View Search Header ───────────────────────────────────── */
.sv-top-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.sv-search-card {
  pointer-events: auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
}
.sv-search-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff7ed;
  border: 1.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sv-search-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.sv-search-text small {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sv-tag-verified {
  color: #2563eb;
  font-weight: 700;
}

.sv-header-actions {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

/* Mode Switcher Tabs */
.sv-tab-group {
  display: flex;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow);
}
.sv-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
}
.sv-tab-btn.active {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}
.sv-tab-btn.active.old-tab {
  background: #475569;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sv-btn-back {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.sv-btn-back:hover {
  transform: translateY(-2px);
}

/* ── Warning Banner for Old Laundry Photo ────────────────────────────── */
.sv-warning-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220, 38, 38, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 7px 22px;
  font-size: 12px;
  font-weight: 700;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}
.sv-warning-banner.visible {
  display: flex;
}

/* ── Compass & Quick Move Controls (Right Side) ──────────────────────── */
.sv-quick-controls {
  position: fixed;
  top: 86px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 45;
}
.sv-ctrl-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: #0f172a;
  transition: transform 0.2s;
}
.sv-ctrl-pill:hover {
  transform: scale(1.12);
}
.sv-ctrl-pill:active {
  transform: scale(0.95);
}
#compassDial {
  font-size: 20px;
  transition: transform 0.1s linear;
}

/* ── Google Maps Mini-Map Radar (Bottom Left) ────────────────────────── */
.sv-mini-radar {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 40;
  background: #0f172a;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.sv-mini-radar:hover {
  transform: scale(1.08);
}
.radar-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) blur(1px);
}
.radar-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}
.radar-cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%) rotate(-35deg);
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.45) 0%, rgba(37, 99, 235, 0) 70%);
  clip-path: polygon(50% 50%, 0 0, 100% 0);
  pointer-events: none;
  transition: transform 0.1s linear;
}
.radar-caption {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 0;
}

/* ── Shop Info Card (Bottom Right) ─────────────────────────────────── */
.sv-shop-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 350px;
  max-width: calc(100vw - 48px);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius-card);
  z-index: 50;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sv-shop-card.minimized {
  transform: translateY(calc(100% - 62px));
}
.card-header-bar {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-brand-title strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.card-brand-title small {
  font-size: 11px;
  color: #92400e;
  font-weight: 700;
}
.card-toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.card-body-content {
  padding: 16px 18px;
}
.status-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.green-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.card-note-text {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}
.card-note-text span.highlight {
  font-weight: 700;
  color: #0f172a;
}

.card-action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-card-action {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease;
}
.btn-card-action:active {
  transform: scale(0.97);
}
.btn-action-maps {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}
.btn-action-menu {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.btn-action-wa {
  grid-column: span 2;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ── Mobile Responsive ───────────────────────────────────────────────── */
@media (max-width: 680px) {
  .sv-top-header {
    top: 10px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .sv-search-card {
    max-width: none;
    padding: 8px 12px;
  }
  .sv-header-actions {
    justify-content: space-between;
  }
  .sv-warning-banner {
    top: 110px;
    font-size: 11px;
    padding: 5px 14px;
    width: calc(100vw - 20px);
    text-align: center;
    justify-content: center;
  }
  .sv-quick-controls {
    top: auto;
    bottom: 220px;
    right: 14px;
  }
  .sv-mini-radar {
    display: none;
  }
  .sv-shop-card {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  #hotspotWarkop {
    display: none;
  }
}
