:root {
  --saffron: #FF9933;
  --deep-orange: #E65100;
  --green: #138808;
  --navy: #000080;
  --gold: #D4AF37;
  --cream: #FFF8DC;
  --terracotta: #E2725B;
  --indigo: #4B0082;
  --white: #FFFFFF;
  --light-bg: #FFF9F0;
  --shadow: rgba(0, 0, 0, 0.15);
  --text-dark: #2C2416;
}

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

body {
  font-family: 'Crimson Text', serif;
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.mandala-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: 
    radial-gradient(circle at 20% 30%, var(--saffron) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, var(--green) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--terracotta) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* HERO SECTION */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-orange) 50%, var(--terracotta) 100%);
  padding: 8rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(255, 255, 255, 0.03) 50px,
      rgba(255, 255, 255, 0.03) 51px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.title-ornament {
  color: var(--gold);
  font-size: 2rem;
  margin: 0.5rem 0;
  animation: pulse 2s ease-in-out infinite;
}

.site-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-shadow: 
    3px 3px 0 rgba(0, 0, 0, 0.2),
    6px 6px 0 rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cream);
  font-style: italic;
  letter-spacing: 0.03em;
  margin-top: 1rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-pattern {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light-bg);
  clip-path: polygon(0 50%, 5% 0, 10% 50%, 15% 0, 20% 50%, 25% 0, 30% 50%, 35% 0, 40% 50%, 45% 0, 50% 50%, 55% 0, 60% 50%, 65% 0, 70% 50%, 75% 0, 80% 50%, 85% 0, 90% 50%, 95% 0, 100% 50%, 100% 100%, 0 100%);
}

/* NAVIGATION */
.main-nav {
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--saffron);
}

.main-nav .container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.2rem 2rem;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--terracotta));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--deep-orange);
}

.nav-link:hover::after {
  width: 100%;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* SECTION TITLES */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  color: var(--navy);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.title-accent {
  color: var(--saffron);
  font-size: 1.5rem;
  animation: sparkle 3s ease-in-out infinite;
}

/* MAP SECTION */
.map-section {
  padding: 5rem 0;
  background: var(--white);
}

.interactive-map {
  width: 100%;
  height: 600px;
  border: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 40px var(--shadow);
  overflow: hidden;
}

/* DESTINATIONS SECTION */
.destinations-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.destination-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out backwards;
}

.destination-card:nth-child(1) { animation-delay: 0.1s; }
.destination-card:nth-child(2) { animation-delay: 0.2s; }
.destination-card:nth-child(3) { animation-delay: 0.3s; }
.destination-card:nth-child(4) { animation-delay: 0.4s; }
.destination-card:nth-child(5) { animation-delay: 0.5s; }
.destination-card:nth-child(6) { animation-delay: 0.6s; }

.destination-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--saffron), var(--terracotta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--white);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card-description {
  color: var(--text-dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  color: var(--deep-orange);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 1rem;
}

/* ABOUT SECTION */
.about-section {
  padding: 5rem 0;
  background: var(--white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-dark);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text p:first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--saffron);
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  font-family: 'Cinzel', serif;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo) 100%);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--saffron),
    var(--saffron) 10px,
    var(--white) 10px,
    var(--white) 20px,
    var(--green) 20px,
    var(--green) 30px
  );
}

.footer-tagline {
  font-style: italic;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* DESTINATION PAGE */
.destination-page {
  background: var(--white);
}

.page-header {
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--saffron);
}

.site-logo {
  font-family: 'Cinzel', serif;
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.destination-article {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.destination-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.destination-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--navy);
  margin-bottom: 1rem;
  font-weight: 700;
}

.destination-hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow);
  margin: 2rem 0;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.destination-hero-placeholder {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--saffron), var(--terracotta));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--white);
  margin: 2rem 0;
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.destination-body {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.destination-body p {
  margin-bottom: 1.5rem;
}

.destination-map-container {
  margin: 3rem 0;
  animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.destination-map {
  width: 100%;
  height: 400px;
  border: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow);
}

.linked-destinations {
  margin-top: 4rem;
  padding: 3rem;
  background: var(--light-bg);
  border-radius: 12px;
  animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.linked-destinations h3 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 2rem;
  text-align: center;
}

.linked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.linked-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.linked-card:hover {
  transform: translateY(-5px);
}

.linked-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.linked-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--green), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
}

.linked-card-content {
  padding: 1.5rem;
}

.linked-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.linked-card-description {
  font-size: 0.95rem;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* LOADING AND ERROR STATES */
.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--text-dark);
  font-style: italic;
}

.error {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--deep-orange);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 1;
    transform: rotate(0deg);
  }
  50% {
    opacity: 0.6;
    transform: rotate(180deg);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding: 5rem 1rem 4rem;
  }

  .main-nav .container {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .interactive-map,
  .destination-map {
    height: 400px;
  }

  .destination-hero-image,
  .destination-hero-placeholder {
    height: 300px;
  }

  .linked-grid {
    grid-template-columns: 1fr;
  }

  .page-header .container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* LEAFLET MAP CUSTOMIZATION */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 5px 25px var(--shadow);
}

.leaflet-popup-content {
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
}

.leaflet-popup-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
