﻿@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");
@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap");
/* Klassiek donkergroen */
html, body {
  font-family: "EB Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-color: #fcf5ed;
}

#app .page {
  position: relative;
  display: flex;
  flex-direction: column;
}
#app main {
  flex: 1;
  background-color: #fcf5ed;
  color: #5A4028;
}
#app main .content .magical-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background-color: #fcf5ed; /* Default content background */
  justify-content: space-between;
  align-items: center;
}
#app main .content .magical-layout header.magical-hero {
  position: relative;
  height: 60vh; /* Adjust height of the hero section */
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content to bottom */
  background-color: #fcf5ed;
}
#app main .content .magical-layout header.magical-hero .magical-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fcf5ed;
  /* Default background image - replace with your preferred image */
  background-image: url("../Images/pagina/droomvlucht.jpg");
  background-size: cover;
  background-position: center bottom;
  z-index: 1;
}
#app main .content .magical-layout header.magical-hero .magical-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%; /* Fade out towards top */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
  z-index: 2;
}
#app main .content .magical-layout header.magical-hero .magical-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-bottom: 8rem; /* Space for the arch */
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
#app main .content .magical-layout header.magical-hero .magical-hero-content h1 {
  font-size: 4rem;
}
#app main .content .magical-layout header.magical-hero .magical-arch-divider {
  position: absolute;
  bottom: -1px; /* Fix potential pixel gap */
  left: 0;
  width: 100%;
  line-height: 0; /* Remove extra space for inline elements */
  z-index: 10;
  /* Allow clicking through the empty parts of SVG if needed */
  pointer-events: none;
}
#app main .content .magical-layout header.magical-hero .magical-arch-divider .arch-svg {
  width: 100%;
  height: 200px; /* Height of the curve */
  display: block;
}
#app main .content .magical-layout header.magical-hero .magical-arch-divider .arch-svg .arch-fill {
  fill: #fcf5ed; /* Must match the background of .magical-content */
}
#app main .content .magical-layout main {
  max-width: 1200px;
}
#app main .content .magical-layout .content-container .map-container {
  position: relative; /* Zorgt dat pinnen zich positioneren t.o.v. dit blok */
  width: 1200px;
  height: 1200px;
  max-width: 100vw;
  max-height: 100vw;
  margin: 0 auto;
  -webkit-box-shadow: inset 0px 0px 50px 30px #fcf5ed;
  box-shadow: inset 0px 0px 50px 30px #fcf5ed;
}
#app main .content .magical-layout .content-container .map-container:before {
  content: "";
  background: #2A7B9B;
  background: radial-gradient(circle, rgba(42, 123, 155, 0) 55%, rgb(252, 245, 237) 70%);
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  position: absolute;
}
#app main .content .magical-layout .content-container .map-container.EftelingMap {
  background: url(/Images/kaarten/Efteling-kaart.jpg) no-repeat left top;
  background-size: cover;
}
#app main .content .magical-layout .content-container .map-container .map-object {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s ease;
}
#app main .content .magical-layout .content-container .map-container .map-object.vaandel {
  width: 30px;
  height: 30px;
  max-width: 6vw;
  max-height: 6vw;
  background-color: #d60000;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
#app main .content .magical-layout .content-container .map-container .map-object.vaandel:not(:hover) {
  background-image: none !important;
}
#app main .content .magical-layout .content-container .map-container .map-object.vaandel .label-text {
  display: none;
}
#app main .content .magical-layout .content-container .map-container .map-object:hover {
  z-index: 100;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  max-width: 30vw;
  max-height: 30vw;
}
#app main .content .magical-layout .content-container .map-container .map-object:hover.vaandel {
  position: relative;
  border: 14px solid white;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
#app main .content .magical-layout .content-container .map-container .map-object:hover.vaandel .label-text {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 80px;
  padding: 15px 20px;
  border: none;
  border-top: 2px solid #3e2723;
  border-radius: 0 0 150px 150px;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  color: #3e2723;
  font-family: "Georgia", serif;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
#app main .content .magical-layout .content-container .map-container .map-object.hover-state {
  /* Dezelfde stijlen als de normale :hover state */
  /* Voorbeeld: */
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
}
#app main .content .topics-list {
  max-width: 1000px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}
#app main .content .topics-list .topic-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #FCFCFC;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 250px;
}
#app main .content .topics-list .topic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
#app main .content .topics-list .topic-card .topic-card-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#app main .content .topics-list .topic-card .topic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
#app main .content .topics-list .topic-card:hover .topic-card-image img {
  transform: scale(1.05);
}
#app main .content .topics-list .topic-card .topic-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #FCFCFC 0%, #f8f8f8 100%);
}
#app main .content .topics-list .topic-card .topic-card-content h3 {
  color: #5A4028;
  font-size: 1.8rem;
  margin: 0 0 1rem 0;
  font-weight: bold;
}
#app main .content .topics-list .topic-card .topic-card-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1rem;
}
#app main .content .topics-list .topic-card .topic-card-content .read-more {
  color: #d60000;
  font-weight: bold;
  font-size: 1rem;
  transition: transform 0.2s ease;
  display: inline-block;
}
#app main .content .topics-list .topic-card:hover .topic-card-content .read-more {
  transform: translateX(5px);
}
#app main .content .topics-list .topic-card:nth-child(even) .topic-card-image {
  order: 1;
}
#app main .content .topics-list .topic-card:nth-child(even) .topic-card-content {
  order: 2;
}
#app main .content .topics-list .topic-card:nth-child(odd) .topic-card-image {
  order: 2;
}
#app main .content .topics-list .topic-card:nth-child(odd) .topic-card-content {
  order: 1;
}
@media (max-width: 768px) {
  #app main .content .topics-list .topic-card {
    grid-template-columns: 1fr;
  }
  #app main .content .topics-list .topic-card:nth-child(even) .topic-card-image, #app main .content .topics-list .topic-card:nth-child(odd) .topic-card-image {
    order: 1;
    height: 200px;
  }
  #app main .content .topics-list .topic-card:nth-child(even) .topic-card-content, #app main .content .topics-list .topic-card:nth-child(odd) .topic-card-content {
    order: 2;
  }
}
#app .navbar-brand {
  font-size: 1.1rem;
}
#app footer {
  width: 100%;
  position: relative;
  background: url("/Images/pagina/efteling-skyline.png") repeat-x center bottom;
  background-size: contain;
  height: 7vw;
}
@media (min-width: 641px) {
  #app .page {
    flex-direction: row;
  }
  #app .sidebar {
    width: 250px;
    height: 100vh;
    position: sticky;
    top: 0;
  }
}
@media (max-width: 640.98px) {
  #app .navbar-toggler {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    z-index: 1000;
  }
  #app .nav-scrollable {
    display: none;
  }
  #app .navbar-toggler:checked ~ .nav-scrollable {
    display: block;
  }
}

#blazor-error-ui {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  color: #fff;
  font-size: 16px;
  text-align: center;
  padding: 20px;
  gap: 15px;
  /* Toon de error UI ALLEEN wanneer er een fout is */
}
#blazor-error-ui.show {
  display: flex !important;
}
#blazor-error-ui a {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 1px solid white;
  margin: 0 5px;
}
#blazor-error-ui a:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Topic Navigation - Vereenvoudigd */
.topic-navigation {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 2px solid #d60000;
  margin-bottom: 2rem;
}
.topic-navigation .nav-button {
  width: 50px;
  height: 50px;
  border: 2px solid #d60000;
  background-color: white;
  color: #d60000;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  /* Vaandel vorm */
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}
.topic-navigation .nav-button:hover {
  background-color: #d60000;
  color: white;
  transform: scale(1.05);
}
.topic-navigation .nav-button:active {
  transform: scale(0.95);
}
.topic-navigation .nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.topic-navigation .nav-arrows {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.topic-navigation .nav-arrows .nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid #d60000;
  background-color: white;
  color: #d60000;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
.topic-navigation .nav-arrows .nav-arrow:hover {
  background-color: #d60000;
  color: white;
  transform: scale(1.1);
}
.topic-navigation .nav-arrows .nav-arrow:active {
  transform: scale(0.9);
}
.topic-navigation .nav-arrows .nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .topic-navigation {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .topic-navigation .nav-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .topic-navigation .nav-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
