/* Wonders of Street View – Vintage Travel Aesthetic Styling */
:root {
  --bg-parchment: #ffefd5;
  --bg-card: #fff9f0;
  --text-espresso: #472f19;
  --text-muted: #7c5e42;
  --border-espresso: #472f19;
  --btn-espresso: #472f19;
  --btn-text: #ffefd5;
  --accent-gold: #d97706;
  --accent-heart: #e11d48;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", "Georgia", serif;
  background: #000000;
  color: var(--text-espresso);
}

.app-wrapper {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* 1. Stacked Dual-Iframes for Seamless Crossfade */
.iframe-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111111;
  z-index: 1;
}

.street-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.street-frame.frame-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* 2. Vintage Parchment Top Navigation Bar */
.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 64px;
  background: var(--bg-parchment);
  border-bottom: 2px solid var(--border-espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(71, 47, 25, 0.12);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-espresso);
  color: var(--text-espresso);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(71, 47, 25, 0.08);
  transition: all 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(71, 47, 25, 0.15);
}

.nav-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-espresso);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-random {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--btn-espresso);
  color: var(--btn-text);
  border: 1.5px solid var(--border-espresso);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(71, 47, 25, 0.2);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-random:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(71, 47, 25, 0.3);
}

.btn-random:active {
  transform: scale(0.96);
}

.random-icon {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.btn-random.spinning .random-icon {
  transform: rotate(360deg);
}

/* 3. Top-Right Floating Location Badge */
.location-badge {
  position: absolute;
  top: 80px;
  right: 24px;
  background: var(--bg-parchment);
  border: 2px solid var(--border-espresso);
  border-radius: 18px;
  padding: 14px 20px;
  max-width: 380px;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(71, 47, 25, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.location-badge.sliding {
  transform: translateY(-20px);
  opacity: 0;
}

.info-title {
  font-family: "Georgia", serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-espresso);
  line-height: 1.2;
}

.info-location {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 4. Bottom-Right Floating Like & Share Actions */
.bottom-actions {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-pill-btn {
  background: var(--bg-parchment);
  border: 2px solid var(--border-espresso);
  color: var(--text-espresso);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(71, 47, 25, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.action-pill-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.action-pill-btn.liked {
  color: var(--accent-heart);
  border-color: var(--accent-heart);
}

.action-pill-btn.liked .heart-icon {
  transform: scale(1.2);
}

.heart-icon {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loading Spinner Overlay */
.loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-parchment);
  border: 2px solid var(--border-espresso);
  padding: 12px 24px;
  border-radius: 50px;
  font-family: "Georgia", serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-espresso);
  box-shadow: 0 8px 24px rgba(71, 47, 25, 0.2);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.loading-indicator.active {
  opacity: 1;
}

.spinner-circle {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(71, 47, 25, 0.2);
  border-top-color: var(--border-espresso);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hidden SEO Article */
.seo-article {
  position: absolute;
  top: 100000px;
  left: 0;
  width: 100%;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .top-nav {
    padding: 0 12px;
  }
  .nav-title {
    font-size: 1.05rem;
  }
  .btn-random {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  .location-badge {
    top: 72px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
  .bottom-actions {
    bottom: 16px;
    right: 12px;
  }
}
