/* AirBM - Shared Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a365d;
  --primary-dark: #0f2942;
  --accent: #ffd700;
  --light: #f8f9fa;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #dc2626;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

/* Navigation */
.nav {
  position: fixed;
  top: 36px; /* Below Vagibond header */
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 54, 93, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav-title {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 40px 0;
  overflow: hidden;
}

/* Background video/image container */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 40px);
  height: 100%;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 40px);
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 54, 93, 0.75), rgba(26, 54, 93, 0.65));
  z-index: 1;
}

.hero-bg video,
.hero-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 40px);
  height: 100%;
  object-fit: cover;
}

.hero-bg img {
  display: none;
}

/* Mobile video wrapper */
.hero-video-mobile-wrapper {
  display: none;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 24px;
}

.hero-video-mobile {
  width: calc(100% + 40px);
  display: block;
}

.hero-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-video-play-btn:hover {
  background: rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--primary);
  margin-left: 4px;
}

.hero-video-play-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-text {
  padding-bottom: 80px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-text h1 .highlight {
  color: var(--accent);
}

.hero-text h1 .poop {
  color: white;
}

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  max-width: 480px;
}

.app-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.app-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: black;
  color: white;
  padding: 14px 40px 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
}

.app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.app-btn-icon {
  width: 24px;
  height: 24px;
}

.app-btn-text {
  text-align: left;
}

.app-btn-text .small {
  font-size: 10px;
  opacity: 0.8;
}

.app-btn-text .large {
  font-size: 16px;
  font-weight: 600;
}

/* Trust Banner */
.trust-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-faces {
  display: flex;
}

.trust-face {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin-left: -10px;
  object-fit: cover;
}

.trust-face:first-child {
  margin-left: -20px;
}

.trust-text {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

.trust-text strong {
  color: var(--accent);
}

.trust-quotes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

.hero-mobile {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.phone-mockup {
  width: 570px;
  max-width: calc(100% + 40px);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.5));
  transform: translateY(80px);
  margin-top: -100px;
}

/* Stats Bar */
.stats-bar {
  background: var(--primary);
  padding: 40px;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
}

.stat-item p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-top: 8px;
}

/* Features Section */
.features {
  padding: 100px 40px;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--gray);
  font-size: 18px;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  background: var(--light);
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
}

/* Pricing Section */
.pricing {
  padding: 100px 40px;
  background: var(--light);
}

.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 16px 48px rgba(255, 215, 0, 0.2);
}

.pricing-card .tier {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.pricing-card.featured .tier {
  color: var(--accent);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-card .price span {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray);
}

.pricing-card .price-note {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: var(--dark);
}

.pricing-card ul li:before {
  content: "\2713";
  color: var(--accent);
  font-weight: bold;
  margin-right: 10px;
}

.pricing-btn {
  display: block;
  width: calc(100% + 40px);
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pricing-card .pricing-btn {
  background: var(--primary);
  color: white;
}

.pricing-card.featured .pricing-btn {
  background: var(--accent);
  color: var(--primary);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 40px;
  background: var(--primary);
}

.testimonials .section-header h2 {
  color: white;
}

.testimonials .section-header p {
  color: rgba(255,255,255,0.7);
}

.testimonials-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  color: white;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  overflow: hidden;
}

.testimonial-avatar img {
  width: calc(100% + 40px);
  height: 100%;
  object-fit: cover;
}

.testimonial-author h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.testimonial-author p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

/* CTA Section */
.cta {
  padding: 100px 40px;
  background: linear-gradient(135deg, var(--accent), #ffed4a);
  text-align: center;
}

.cta h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.cta p {
  color: var(--primary);
  opacity: 0.8;
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta .app-buttons {
  justify-content: center;
}

.disclaimer {
  font-size: 12px;
  margin-top: 16px;
  opacity: 0.7;
}

/* Footer */
.footer {
  background: var(--dark);
  padding: 60px 40px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  max-width: 280px;
}

.footer-links h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

/* ============================================
   TOILETS PAGE STYLES
   ============================================ */

/* Map Page Layout */
.map-page {
  min-height: 100vh;
  background: var(--light);
  padding-top: 92px; /* nav height */
}

.map-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px 24px;
  text-align: center;
}

.map-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.map-header h1 span {
  color: var(--accent);
}

.map-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Layout */
.main-container {
  display: flex;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Sidebar - Toilet List */
.sidebar {
  width: 420px;
  background: white;
  overflow-y: auto;
  border-left: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.sidebar-header p {
  font-size: 13px;
  color: var(--gray);
}

.filter-bar {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.toilet-list {
  padding: 12px;
}

/* Toilet Card */
.toilet-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.toilet-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.toilet-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.toilet-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #f0f0f0;
}

.toilet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toilet-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-diamond {
  background: linear-gradient(135deg, var(--accent), #ffa500);
  color: var(--primary);
}

.badge-bronze {
  background: #cd7f32;
  color: white;
}

.badge-emergency {
  background: var(--danger);
  color: white;
}

.badge-available {
  background: var(--success);
  color: white;
}

.badge-busy {
  background: var(--warning);
  color: white;
}

.toilet-details {
  padding: 16px;
}

.toilet-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.toilet-address {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
}

.toilet-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 12px;
}

.toilet-meta strong {
  font-weight: 600;
}

.toilet-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 4px 8px;
  background: var(--light);
  border-radius: 4px;
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
}

.feature-tag.highlight {
  background: #dcfce7;
  color: #166534;
}

.toilet-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
}

.toilet-price .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.toilet-price .price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
}

.toilet-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.toilet-rating .stars {
  color: var(--accent);
}

.toilet-rating .count {
  color: var(--gray);
  font-size: 12px;
}

/* Map Container */
.map-container {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom Map Markers */
.toilet-marker {
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toilet-marker::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary);
}

.toilet-marker.diamond {
  background: linear-gradient(135deg, var(--accent), #ffa500);
  color: var(--primary);
}

.toilet-marker.diamond::after {
  border-top-color: var(--accent);
}

.toilet-marker.selected {
  background: var(--dark);
  transform: scale(1.1);
}

.toilet-marker.selected::after {
  border-top-color: var(--dark);
}

.toilet-marker .marker-icon {
  font-size: 16px;
}

/* Powered by badge */
.powered-by-badge {
  position: absolute;
  bottom: 24px;
  right: 16px;
  z-index: 1000;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.powered-by-badge:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.powered-by-badge-icon {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ea4335 25%, #fbbc04 25%, #fbbc04 50%, #34a853 50%, #34a853 75%, #1a73e8 75%);
  border-radius: 3px;
}

.powered-by-badge-text {
  font-size: 10px;
  color: #5f6368;
  font-weight: 500;
}

.powered-by-badge-text span {
  color: #202124;
  font-weight: 600;
}

/* Map Controls */
.map-controls {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-control-btn {
  width: 44px;
  height: 44px;
  background: white;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

.map-control-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.map-control-btn svg {
  width: 20px;
  height: 20px;
  color: var(--dark);
}

/* Toilet Details Modal */
.toilet-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2500;
  display: none;
  overflow-y: auto;
}

.toilet-modal-overlay.active {
  display: block;
}

.toilet-modal {
  background: white;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.toilet-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toilet-modal-gallery {
  position: relative;
  height: 400px;
  background: #f0f0f0;
}

.toilet-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toilet-modal-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
}

.toilet-modal-content {
  padding: 32px;
}

.toilet-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.toilet-modal-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.toilet-modal-address {
  font-size: 16px;
  color: var(--gray);
  margin-top: 4px;
}

.toilet-modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 16px;
}

.toilet-modal-rating .stars {
  color: var(--accent);
  font-size: 20px;
}

.toilet-modal-cta {
  text-align: right;
}

.toilet-modal-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.toilet-modal-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray);
}

.toilet-modal-cta-btn {
  padding: 16px 32px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.toilet-modal-cta-btn:hover {
  background: #e6c200;
}

.toilet-modal-section {
  margin-bottom: 32px;
}

.toilet-modal-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.toilet-modal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.toilet-modal-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--light);
  border-radius: 8px;
  font-size: 14px;
}

.toilet-modal-feature.highlight {
  background: #dcfce7;
  color: #166534;
}

.toilet-modal-feature-icon {
  font-size: 18px;
}

.toilet-modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark);
}

/* Map Popup */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0;
  width: 280px !important;
}

.popup-content {
  padding: 0;
}

.popup-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.popup-details {
  padding: 16px;
}

.popup-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.popup-address {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.popup-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.popup-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.popup-rating {
  font-size: 13px;
  color: var(--gray);
}

.popup-rating .stars {
  color: var(--accent);
}

.popup-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--primary) !important;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
}

.popup-btn:hover {
  background: #e6c200;
  color: var(--primary) !important;
}

/* Mobile View Toggle */
.mobile-view-toggle {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: white;
  border-radius: 30px;
  padding: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.mobile-view-toggle .toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  background: transparent;
  border-radius: 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-view-toggle .toggle-btn.active {
  background: var(--primary);
  color: white;
}

.mobile-view-toggle .toggle-btn svg {
  stroke: currentColor;
}

/* Loading State */
.loading-overlay {
  position: absolute;
  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: 500;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hobo Sign Markers */
.hobo-sign-marker {
  width: 28px;
  height: 28px;
  background: #f5f0e6;
  border: 2px solid #8b7355;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.hobo-sign-marker:hover {
  transform: scale(1.15);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.hobo-sign-marker svg {
  width: 18px;
  height: 18px;
  stroke: var(--icon-color, #4a4a4a);
}

/* Hobo Sign Popup */
.hobo-popup {
  text-align: center;
  padding: 8px;
  min-width: 180px;
}

.hobo-popup-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  background: #f5f0e6;
  border: 2px solid #8b7355;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hobo-popup-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--icon-color, #4a4a4a);
}

.hobo-popup-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.hobo-popup-meaning {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

.hobo-popup-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 10px;
  color: #a0a0a0;
  font-style: italic;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    padding-bottom: 40px;
  }

  .hero-text h1 {
    max-width: calc(100% + 40px);
  }

  .hero-text p {
    max-width: calc(100% + 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .app-buttons {
    justify-content: center;
  }

  .trust-banner {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-mobile {
    order: 2;
  }

  .phone-mockup {
    width: 400px;
    transform: none;
    margin-top: 0;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Hide sidebar footer on desktop (uses body footer instead) */
.sidebar-footer-wrapper {
  display: none;
}

/* Toilets page responsive */
@media (max-width: 1023px) {
  .mobile-view-toggle {
    display: flex;
  }

  .main-container {
    flex-direction: column;
  }

  .map-container {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
  }

  .sidebar {
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    border-left: none;
    display: none;
  }

  .main-container.view-map .map-container {
    display: block;
  }

  .main-container.view-map .sidebar {
    display: none;
  }

  .main-container.view-list .map-container {
    display: none;
  }

  .main-container.view-list .sidebar {
    display: block;
    position: static;
    width: 100%;
    padding-bottom: 80px;
    overflow-y: visible;
  }

  /* Show footer inside sidebar on mobile list view */
  .sidebar-footer-wrapper {
    display: block;
    margin-top: 24px;
    padding: 0 16px 100px;
  }

  .toilet-card {
    display: flex;
    flex-direction: row;
  }

  .toilet-image {
    width: 140px;
    aspect-ratio: 1 / 1;
    min-height: 140px;
  }

  .toilet-details {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .sidebar {
    width: 400px;
  }

  .toilet-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .toilet-card {
    margin-bottom: 0;
  }
}

@media (min-width: 1280px) {
  .sidebar {
    width: 780px;
    flex-shrink: 0;
  }

  .toilet-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .toilet-card {
    margin-bottom: 0;
  }

  .map-container {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-logo {
    height: 32px;
  }

  .nav-title {
    font-size: 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 70px 0 40px;
    min-height: 0;
  }

  .hero-bg video {
    display: none;
  }

  .hero-bg img {
    display: block;
    opacity: 0.35;
  }

  .hero-video-mobile-wrapper {
    display: block;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .hero-text p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-btn {
    min-width: 220px;
    padding: 12px 24px 12px 16px;
  }

  .trust-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .trust-faces {
    justify-content: center;
  }

  .phone-mockup {
    width: 280px;
  }

  .stats-bar {
    padding: 30px 20px;
  }

  .stat-item h3 {
    font-size: 32px;
  }

  .stat-item p {
    font-size: 12px;
  }

  .features {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .feature-icon {
    font-size: 40px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .pricing {
    padding: 60px 20px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card .price {
    font-size: 40px;
  }

  .testimonials {
    padding: 60px 20px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-card blockquote {
    font-size: 15px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .cta p {
    font-size: 16px;
  }

  .footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: calc(100% + 40px);
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .footer-links ul li {
    margin-bottom: 0;
  }

  /* Toilet modal responsive */
  .toilet-modal {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .toilet-modal-gallery {
    height: 250px;
  }

  .toilet-modal-content {
    padding: 20px;
  }

  .toilet-modal-header {
    flex-direction: column;
    gap: 16px;
  }

  .toilet-modal-cta {
    text-align: left;
    width: 100%;
  }

  .toilet-modal-cta-btn {
    width: 100%;
    text-align: center;
  }

  .toilet-modal-features {
    grid-template-columns: 1fr;
  }

  .map-header h1 {
    font-size: 1.75rem;
  }

  .map-header p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 12px 16px;
  }

  .nav-title {
    font-size: 18px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 28px;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-item h3 {
    font-size: 28px;
  }

  .pricing-card .price {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .cta h2 {
    font-size: 24px;
  }
}

/* Leaflet overrides */
.leaflet-top.leaflet-right {
  top: 12px;
  right: 12px;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
}

@media (max-width: 600px) {
  .leaflet-control-attribution {
    display: none;
  }
}

/* Geocoder styling */
.leaflet-control-geocoder {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: none;
  margin: 16px !important;
}

.leaflet-control-geocoder-form input {
  padding: 12px 16px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  width: 280px;
  font-family: 'Inter', sans-serif;
}

.leaflet-control-geocoder-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.leaflet-control-geocoder-alternatives {
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 300px;
  overflow-y: auto;
}

.leaflet-control-geocoder-alternatives li {
  padding: 10px 16px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
}

.leaflet-control-geocoder-alternatives li:hover {
  background: var(--light);
}

.leaflet-control-geocoder-alternatives li:last-child {
  border-bottom: none;
}
