:root {
  --primary-green: #2D6A4F; 
  --accent-green: #52B788;  
  --primary-blue: #0077B6;  
  --bg-offwhite: #F9F7F2;   
  --bg-panel: #FFFFFF;
  --text-dark: #1B1B1B;
  --text-muted: #4A4A4A;
  --primary-red: #D62828;
  
  --font-header: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --radius-md: 4px;
  --radius-lg: 12px;
  --border-thin: 1px solid rgba(27, 27, 27, 0.1);
  --border-strong: 2px solid var(--text-dark);
  --header-height: 80px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-offwhite);
  color: var(--text-dark);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  color: var(--text-dark);
  font-weight: 700;
}

.view-section {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.view-section.hidden {
  display: none !important;
}

.main-header {
  height: var(--header-height);
  padding: 0 3rem;
  background-color: var(--primary-green);
  border-bottom: var(--border-strong);
  border-color: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: var(--font-header);
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.main-nav { display: flex; gap: 2rem; }

.nav-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0 0.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.nav-btn:hover::after, .nav-btn.active::after { width: 100%; }
.nav-btn:hover, .nav-btn.active { color: white; }

#home-view {
  margin-top: calc(-1 * var(--header-height));
}

.immersive-hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0077B6; 
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75; 
  filter: contrast(1.05) saturate(1.1);
}

.layer-water {
  background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.25) 100%);
  z-index: 2;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-content-wrapper {
  max-width: 800px;
  padding: 3.5rem 5rem;
  background: rgba(27, 27, 27, 0.85); 
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.hero-title-main {
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--bg-offwhite);
  margin-bottom: 3rem;
  font-weight: 400;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 3rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.btn-enter:hover {
  background: var(--accent-green);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid white;
  border-radius: 12px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  animation: scrollMouse 2s infinite;
}

.heritage-preview {
  padding: 8rem 2rem;
  background: white;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.heritage-text h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--primary-green);
  margin-bottom: 2rem;
}

.heritage-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.download-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-link {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-link:hover {
  border-color: var(--primary-green);
  background: rgba(45, 106, 79, 0.03);
  transform: translateX(10px);
}

.download-link strong {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: var(--primary-green);
}

.download-link span {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.floating-artwork {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.top-filter-bar {
  width: 100%;
  background: #FFFFFF;
  border-bottom: var(--border-thin);
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  gap: 4rem;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.horizontal-filter-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.horizontal-filter-group .filter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dark);
  font-weight: 700;
  white-space: nowrap;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 1.2rem;
  background: var(--bg-offwhite);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover, .tag.active {
  background: var(--primary-green);
  color: #FFFFFF;
  border-color: var(--primary-green);
}

.explore-container {
  display: flex;
  flex: 1;
  height: calc(100vh - var(--header-height) - 70px); 
  overflow: hidden;
}

.directory-side {
  width: 420px;
  background: #FFFFFF;
  border-right: var(--border-thin);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.directory-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #FAFAFA;
}

.map-side {
  flex: 1;
  height: 100%;
  position: relative;
  background: #FAFAFA;
}

#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.directory-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.25s ease;
}

.directory-card:hover, .directory-card.highlight-active {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-green);
}

.directory-card.highlight-active {
  background: rgba(82, 183, 136, 0.08) !important;
}

.card-image-wrapper {
  width: 65px; height: 65px; min-width: 65px;
  border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 2px solid #FFFFFF;
}

.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.card-info h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.1rem; }
.card-info p { font-size: 0.8rem; color: var(--text-muted); }
.card-category { display: inline-block; font-size: 0.6rem; text-transform: uppercase; padding: 0.2rem 0.8rem; border-radius: 20px; margin-top: 0.4rem; font-weight: 700; color: white; }
.card-arrow { margin-left: auto; opacity: 0.25; }

.premium-grid-card { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; height: 100%; background: #FFFFFF; }
.grid-card-visual { height: 250px; position: relative; overflow: hidden; }
.grid-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.grid-card-overlay { position: absolute; top: 1rem; right: 1rem; }
.grid-card-category { background: var(--primary-green); color: white; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.premium-grid-card .card-info { padding: 1.5rem; }
.grid-card-location { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; font-weight: 600; color: var(--primary-green) !important; }
.grid-card-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-muted); }
.btn-view-profile { width: 100%; padding: 0.8rem; background: var(--bg-offwhite); border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius-md); font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.3s ease; }
.premium-grid-card:hover .btn-view-profile { background: var(--primary-green); color: white; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: all 0.4s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: white; width: 90%; max-width: 850px; max-height: 85vh; border-radius: var(--radius-lg); overflow: hidden; display: flex; position: relative; }
.modal-visual { flex: 1; }
.modal-visual img { width: 100%; height: 100%; object-fit: cover; }
.modal-details { flex: 1; padding: 3rem; display: flex; flex-direction: column; }
.close-modal { position: absolute; top: 1.5rem; right: 1.5rem; background: white; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.4rem; box-shadow: var(--shadow-md); z-index: 10; }
.modal-title { font-size: 2.2rem; color: var(--primary-green); margin-bottom: 0.5rem; }
.modal-meta { display: flex; gap: 1rem; margin-bottom: 1.5rem; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.modal-desc { font-size: 1rem; margin-bottom: 2rem; color: var(--text-dark); }
.modal-info-item { display: flex; margin-bottom: 0.8rem; font-size: 0.9rem; }
.modal-info-item strong { width: 90px; color: var(--primary-green); }
.card-img-placeholder { width: 65px; height: 65px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-green), var(--accent-green)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: white; }
.btn-primary { padding: 1rem 2rem; background: var(--primary-green); color: white; border: none; font-weight: 700; border-radius: var(--radius-md); cursor: pointer; text-transform: uppercase; }

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  align-items: center;
}

@media (max-width: 1024px) {
  .modal-content { flex-direction: column; max-height: 90vh; }
  .modal-visual { height: 250px; }
  .top-filter-bar { gap: 1.5rem; padding: 1rem; }
}

/* ── COMPLETE MOBILE OVERRIDES ── */
@media (max-width: 768px) {
  .mobile-toggle { 
    display: flex; 
  }
  
  .main-nav { 
    display: none; 
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--primary-green);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-bottom: var(--border-strong);
    border-color: rgba(255, 255, 255, 0.1);
    z-index: 1001;
  }

  .main-nav.mobile-active {
    display: flex;
  }

  .nav-btn {
    width: 100%;
    padding: 1.2rem;
    justify-content: center;
    font-size: 1rem;
  }

  .explore-container { 
    flex-direction: column-reverse; 
    height: auto; 
  }
  
  .directory-side { 
    width: 100%; 
    height: 45vh; 
  }
  
  .map-side { 
    width: 100%; 
    height: 55vh; 
    min-height: 400px; 
  }

  /* FORCE Display for Grids on Mobile */
  #artist-grid, 
  #attractions-grid, 
  #festivals-grid,
  .heritage-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .hero-title-main { 
    font-size: 2.8rem !important; 
    letter-spacing: 2px !important; 
  }
  .hero-tagline { 
    font-size: 1rem !important; 
    margin-bottom: 1.5rem !important; 
  }
  .hero-content-wrapper { 
    padding: 2rem 1rem !important; 
    width: 90%; 
    margin: 0 auto; 
  }
  .heritage-text h2 { 
    font-size: 2.2rem !important; 
  }

  #artists-view h2, 
  #attractions-view h2, 
  #festivals-view h2 {
    font-size: 2rem !important; 
    margin-bottom: 1.5rem !important;
  }
  
  #about-view h1 { 
    font-size: 2.5rem !important; 
  }
  #about-view h2 { 
    font-size: 1.1rem !important; 
  }
  #about-view div[style] { 
    padding: 1.5rem !important; 
  }

  .view-section {
    padding: 2rem 1rem !important;
  }

  .grid-card-visual {
    height: 220px !important;
  }
}
