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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f0f0f0 0%, #f9f8e5 100%);
  color: #000000;
  min-height: 100vh;
}

/* Landing Page Styles */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.header-content {
  text-align: center;
  flex: 1;
}

.header-nav {
  position: absolute;
  right: 20px;
  top: 40px;
}

.login-button {
  display: inline-block;
  padding: 10px 24px;
  background: white;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-button:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

.logo {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.tagline {
  font-size: 18px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.hero-section {
  text-align: center;
  margin-bottom: 80px;
}

.hero-section h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.feature-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

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

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #000000;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.2s;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25) !important;
  border: 2px solid rgba(0,0,0,0.15) !important;
}

.cta-button:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.35) !important;
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.25) !important;
}

.landing-footer {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
  font-size: 14px;
}

/* Share Page Styles */
.share-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.loading-state {
  text-align: center;
  padding: 100px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-state {
  text-align: center;
  padding: 100px 20px;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.share-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.logo-small a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000000;
  text-decoration: none;
}

.category-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-meta {
  font-size: 14px;
  opacity: 0.8;
}

.separator {
  margin: 0 8px;
}

.map-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  height: 400px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

/* Custom Marker Styles */
.custom-marker {
  cursor: pointer;
  width: 27px;
  height: 41px;
}

.custom-marker svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.maplibregl-marker {
  cursor: pointer;
}

.maplibregl-popup {
  z-index: 1000 !important;
  pointer-events: auto !important;
}

.maplibregl-popup-content {
  padding: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  background: white !important;
  max-width: 180px !important;
  min-width: 140px !important;
  pointer-events: auto !important;
}

.maplibregl-popup-close-button {
  font-size: 20px !important;
  line-height: 20px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  color: #999 !important;
  background: white !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  pointer-events: auto !important;
}

.maplibregl-popup-close-button:hover {
  color: #000 !important;
  background: #f5f5f5 !important;
}

.maplibregl-popup-close-button:active {
  background: #e0e0e0 !important;
}

.maplibregl-popup-tip {
  border-top-color: white !important;
}

/* Ensure map stays visible and interactive behind popup */
.maplibregl-canvas-container {
  position: relative;
  z-index: 1;
}

.maplibregl-canvas {
  cursor: grab !important;
}

.maplibregl-canvas:active {
  cursor: grabbing !important;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.location-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.location-number {
  display: inline-block;
  background: rgba(66, 167, 70, 0.1);
  border: 1px solid rgba(66, 167, 70, 0.3);
  color: #42A746;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.location-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.location-details {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.location-date {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.share-footer {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
  font-size: 14px;
}

.share-footer a {
  color: #000000;
  text-decoration: underline;
}

/* Edit Order Button Styles */
.edit-button {
  background: white;
  border: none;
  color: #000000;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.edit-button:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .landing-header {
    flex-direction: column;
    gap: 20px;
  }

  .header-nav {
    position: static;
    width: 100%;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 32px;
  }

  .category-header h1 {
    font-size: 28px;
  }

  .location-list {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 300px;
  }
}
