/* 
 * Nakhon Phanom Sacred Temples - Warm Minimalist & Earth Tones Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFEA;
  --bg-card: #FFFFFF;
  --text-primary: #2C2623;
  --text-muted: #726860;
  --earth-clay: #A2583E;
  --earth-clay-light: #F7EFEA;
  --earth-sage: #4E654C;
  --earth-sage-light: #EEF3ED;
  --champagne-gold: #C99738;
  --champagne-light: #FBF6EC;
  --border-subtle: #EAE3D9;
}

body {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-heading {
  font-family: 'Plus Jakarta Sans', 'Prompt', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F3EFEA;
}

::-webkit-scrollbar-thumb {
  background: #D9CFC4;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B8ADA0;
}

/* Glassmorphism & Soft Shadows */
.glass-nav {
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 227, 217, 0.8);
}

.soft-card-shadow {
  box-shadow: 0 4px 20px -2px rgba(44, 38, 35, 0.04), 0 2px 6px -1px rgba(44, 38, 35, 0.02);
}

.soft-card-shadow:hover {
  box-shadow: 0 16px 32px -4px rgba(44, 38, 35, 0.08), 0 4px 12px -2px rgba(44, 38, 35, 0.03);
}

/* Gentle Ripple & Transitions */
.card-transition {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Leaflet Custom Marker & Popup Styles */
.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 2px solid var(--earth-clay);
  color: var(--earth-clay);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 4px 12px rgba(44, 38, 35, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.custom-map-marker:hover {
  transform: scale(1.15) translateY(-3px);
  background: var(--earth-clay);
  color: #FFFFFF;
}

.custom-map-marker.active {
  background: var(--earth-clay);
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(162, 88, 62, 0.35);
}

.leaflet-popup-content-wrapper {
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(44, 38, 35, 0.12);
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

.leaflet-popup-content {
  margin: 0;
  line-height: 1.5;
  font-family: 'Prompt', sans-serif;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  color: #FFFFFF;
  background: rgba(44, 38, 35, 0.6);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 0;
  border: none;
  z-index: 10;
  transition: background 0.2s;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  background: rgba(44, 38, 35, 0.9);
}

/* Soften map tiles to fit the warm minimalist theme */
.leaflet-tile-pane {
  filter: saturate(0.9) contrast(0.95);
}

/* Sound Wave Animation for Ambient Audio */
@keyframes soundwave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

.sound-bar {
  animation: soundwave 1.2s infinite ease-in-out;
  display: inline-block;
  width: 3px;
  background-color: currentColor;
  border-radius: 2px;
}

.sound-bar:nth-child(2) { animation-delay: 0.2s; }
.sound-bar:nth-child(3) { animation-delay: 0.4s; }
.sound-bar:nth-child(4) { animation-delay: 0.1s; }

/* Subtle decorative grain background */
.bg-earth-pattern {
  background-color: #FAF8F5;
  background-image: radial-gradient(#E8DFC9 0.75px, transparent 0.75px), radial-gradient(#E8DFC9 0.75px, #FAF8F5 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* Text clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
