/* 
 * Destination Page Styles - Updated to Match Saint Page Framework
 * Now uses the same explorer framework as the Saints page for consistency
 */

/* Import saint-page-matching styles */
@import url('../components/destination/hero.css');
@import url('../components/destination/categories.css');
@import url('../pages/destination/destination-explorer.css');

/* Root variables to distinguish from Saints page while maintaining framework */
:root {
  --primary-color: #1e252b; /* Dark Blue - distinct from Saints */
  --primary-dark: #151a1f; /* Darker shade of Dark Blue */
  --accent-color: #C9A053; /* Antique Gold - same as Saints */
  --accent-glow: rgba(201, 160, 83, 0.3); /* Antique Gold glow */
  --accent-dark: #A88743; /* Darker shade of Antique Gold for hover */
  --secondary-color: #8B3A3A; /* Rust Red */
  --text-light: #FFFFF0; /* Ivory White */
  --text-dark: #4A5A66; /* Adjusted for better contrast */
  --bg-dark: #1e252b; /* Dark Blue */
  --card-bg-light: rgba(30, 37, 43, 0.95); /* Dark Blue with high opacity */
  --radius-md: 12px;
  --transition-normal: 0.3s ease;
  --font-primary: 'Cinzel', Georgia, serif;
  --font-body: 'Lato', Arial, sans-serif;
}

/* Main destination page container - matching Saints page structure */
.destination-page {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  min-height: 100vh;
}

/* Hero section styling - matching Saints exactly */
.destination-hero-section {
  position: relative;
  height: 100vh;
  min-height: 900px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  color: var(--text-light);
  z-index: 1;
  padding: 0;
  margin-bottom: 0;
  background-color: var(--primary-dark);
}

/* Destination portrait container - matching Saints layout */
.destination-portrait-container {
  position: absolute;
  top: 40%;
  left: 30%;
  transform: translate(-50%, -40%);
  height: 75%;
  max-height: 550px;
  width: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 3;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.destination-portrait {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Background styling matching Saints */
.destination-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: -2;
  transform: scale(1.1);
  transition: transform 10s ease;
  animation: subtle-zoom 20s infinite alternate ease-in-out;
}

.destination-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
      rgba(51, 63, 72, 0.85) 0%, 
      rgba(51, 63, 72, 0.75) 50%,
      rgba(51, 63, 72, 0.85) 100%);
  z-index: -1;
}

/* Destination category badge - matching Saints */
.destination-category-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-dark);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(201, 160, 83, 0.3);
  position: relative;
  overflow: hidden;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: fit-content;
}

.destination-category-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shine 3s infinite;
}

/* Hero content container - matching Saints */
.destination-hero-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
  animation: fade-in-up 1s ease-out;
  padding-left: 35%;
  padding-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.destination-name {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.destination-name::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
  transform: translateX(-50%);
}

.destination-tagline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-light);
  opacity: 0.9;
  text-align: center;
  width: 100%;
}

.destination-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

/* Quick facts area - matching Saints */
.destination-hero-quick-facts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  width: 100%;
  background-color: transparent !important;
  border-top: none;
  position: absolute;
  bottom: 60px;
  left: 0;
  z-index: 5;
}

.destination-quick-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.destination-quick-fact i {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.destination-quick-fact span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.destination-quick-fact strong {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Scroll indicator - matching Saints */
.destination-scroll-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0.8;
  transition: var(--transition-normal);
}

.destination-scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.destination-scroll-indicator i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  animation: bounce 2s infinite;
  color: var(--text-light);
}

.destination-scroll-indicator p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* Explorer section - matching Saints exactly */
.destination-explorer-section {
  position: relative;
  padding: 5rem 0;
  background-color: var(--primary-dark);
  color: var(--text-dark);
  overflow: hidden;
  text-align: center;
}

.destination-explorer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 25% 25%, rgba(255, 255, 240, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 240, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 75%, rgba(255, 255, 240, 0.3) 0%, transparent 100%);
  background-size: 200px 200px;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Animations and keyframes - matching Saints */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtle-zoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.05); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Legacy destination styles - updated to match Saints */
.destination-locations {
    margin-bottom: 2rem;
    background: var(--card-bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.location-list li {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-family: var(--font-body);
    padding: 1rem;
    background: rgba(255, 255, 240, 0.1);
    border-radius: 8px;
    transition: background var(--transition-normal);
}

.location-list li:hover {
    background: rgba(255, 255, 240, 0.15);
}

.add-to-journey {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: background var(--transition-normal), transform var(--transition-normal);
}

.add-to-journey:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* Responsive design - matching Saints */
@media (max-width: 1200px) {
  .destination-hero-content {
    padding-left: 2rem;
    padding-top: 15vh;
  }
  
  .destination-portrait-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    height: 300px;
    width: 100%;
    margin: 2rem auto;
  }
  
  .destination-hero-quick-facts {
    position: relative;
    bottom: auto;
    margin-top: 3rem;
  }
  
  .destination-scroll-indicator {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .destination-hero-section {
    min-height: 700px;
  }
  
  .destination-name {
    font-size: 2.5rem;
  }
  
  .destination-tagline {
    font-size: 1rem;
  }
  
  .destination-hero-quick-facts {
    flex-direction: column;
    gap: 1rem;
  }
  
  .destination-quick-fact {
    flex-direction: row;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .destination-name {
    font-size: 2rem;
  }
  
  .destination-tagline {
    font-size: 0.9rem;
  }
  
  .destination-hero-content {
    padding: 0 1rem;
  }
}