/* ==========================================================================
   FONTS & CSS VARIABLES
   ========================================================================== */

@font-face {
  font-family: 'Ode';
  src: url('./src/MPF_Ode_complete_family/Ode-Semilight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ode';
  src: url('./src/MPF_Ode_complete_family/Ode-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ode';
  src: url('./src/MPF_Ode_complete_family/Ode-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ode';
  src: url('./src/MPF_Ode_complete_family/Ode-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red-dark: #8E2F2C;
  --red-med:  #A83D3C;
  --green:    #7D5937;
  --cream:    #EAE5D4;
  --tan:      #D8D2BB;
  --brown:    #9B7659;
  --white:    #FFFFFF;
  --beige:    #fffbe8;
  --orange:   #f5e9c8;
}

/* ==========================================================================
   TEXT UTILITY CLASSES
   ========================================================================== */

.text-bigtitle {
  font-family: 'Ode', serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.text-sectitle {
  font-family: 'Ode', serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.text-secdesc {
  font-family: 'Ode', serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.text-smalltitle {
  font-family: 'Ode', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--red-dark);
  line-height: 1.2;
  margin: 0;
}

.text-content {
  font-family: 'Ode', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.text-smallcontent {
  font-family: 'Ode', serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
}

.text-important {
  font-family: 'Ode', serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.text-button {
  font-family: 'Ode', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Ode', serif;
    background: var(--cream);
    color: var(--red-dark);
    overflow-x: hidden;
    padding-top: 0 !important;
  }
  
  @media (max-width: 768px) {
    body {
      overflow-x: hidden;
      width: 100%;
    }
  }
  
  p {
    font-weight: 300;
    margin-bottom: 1rem;
  }
/* ==========================================================================
   MAP CONTAINER & LAYOUT
   ========================================================================== */

#map-container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.map-content,
.map-content2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center;
  will-change: transform;
  user-select: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

#map,
#map-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
  z-index: 1;
  /* filter: brightness(0.9) saturate(1.1); */
}

#map {
  pointer-events: none;
}

.map-content {
  pointer-events: auto;
}

/* ==========================================================================
   CLOUDS & ATMOSPHERIC EFFECTS
   ========================================================================== */

#cloudbig,
#cloudbig-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

#cloudbig {
  z-index: 10;
  transition: opacity 0.5s;
}

.clouds-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.cloud-img {
  position: absolute;
  width: 18%;
  opacity: 1;
  transition: transform 0.2s;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Cloud animations */
@keyframes cloud-move-topright {
  0% {
    left: var(--cloud-left, 0%);
    top: var(--cloud-top, 30%);
    opacity: 1;
  }
  100% {
    left: 110%;
    top: var(--cloud-top-end, 10%);
    opacity: 1;
  }
}

@keyframes cloud-loop-right {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--cloud-dx, 0px), var(--cloud-dy, 0px));
    opacity: 1;
  }
}

@keyframes cloud-move-diagonal {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--cloud-dx, 0px), var(--cloud-dy, 0px));
    opacity: 1;
  }
}

/* ==========================================================================
   MAP NAMING OVERLAYS
   ========================================================================== */

.map-naming-stack {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

#mapnaming-country,
#mapnaming-city,
#mapnaming-country-mobile,
#mapnaming-city-mobile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

#mapnaming-country,
#mapnaming-country-mobile {
  opacity: 1;
}

#mapnaming-city,
#mapnaming-city-mobile {
  opacity: 0;
}

/* ==========================================================================
   LANDMARKS
   ========================================================================== */

.landmark {
  position: absolute;
  z-index: 20;
  display: block;
  pointer-events: auto;
}

.landmark-btn {
  position: absolute;
  width: 108px;
  height: auto;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  z-index: 21;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  pointer-events: auto;
}

.landmark-btn img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: contain;
}

/* Disabled landmark button styles */
.landmark-btn.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(100%);
}

/* Keep all hover effects but maintain disabled appearance */
.landmark-btn.disabled:hover .frame-red {
  opacity: 1;
  transform: rotate(90deg);
}

.landmark-btn.disabled:hover .frame-white {
  opacity: 0;
}



/* Disabled popout styles */
.landmark-btn.disabled + .landmark-popout {
  filter: grayscale(100%);
  opacity: 0;
}

.landmark-btn.disabled:hover + .landmark-popout,
.landmark-btn.disabled.active + .landmark-popout,
.landmark.active .landmark-btn.disabled + .landmark-popout {
  filter: grayscale(100%) !important;
  opacity: 0.7 !important;
}

/* Programme-style framed icon */
.castle-frame {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2; /* above the icon */
  transition: transform 0.35s ease, opacity 0.25s ease;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.castle-illustration {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1; /* behind the frame */
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.frame-red { opacity: 0; }
.frame-white { opacity: 1; }
.landmark-btn:hover .frame-red,
.landmark-btn:focus .frame-red,
.landmark.active .frame-red { opacity: 1; transform: rotate(90deg); }
.landmark-btn:hover .frame-white,
.landmark-btn:focus .frame-white,
.landmark.active .frame-white { opacity: 0; }

.landmark-popout {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0) scale(0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  min-width: 360px;
  min-height: 72px;
  height: 72px;
  padding: 0 28px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('./src/ProgrammeAssets/Button.svg');
  color: var(--red-dark);
  text-align: center;
  z-index: 10; /* behind the icon/button */
  display: flex;
  align-items: center;
  justify-content: center;
}

.landmark-btn:focus + .landmark-popout,
.landmark-btn:hover + .landmark-popout,
.landmark.active .landmark-popout {
  opacity: 1;
  transform: translate(-50%, 40%) scale(1);
}

.landmark-popout .arrow {
  width: 74px;
  height: 30px;
  object-fit: contain;
  margin: 0 16px;
  flex-shrink: 0;
  display: block;
}

.landmark-popout .arrow.left {
  content: url('./src/assets/LeftArrow.svg');
}

.landmark-popout .arrow.right {
  content: url('./src/assets/RightArrow.svg');
}

.landmark-popout .landmark-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-dark);
  padding: 0 8px;
  z-index: 1;
  text-transform: none;
}

.landmark-row1 {
  display: block;
  font-size: 44px;
  margin-bottom: -0.15em;
  text-align: center;
  width: 100%;
}

.landmark-row2-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.landmark-row2 {
  font-size: 52px;
  margin: 0;
  text-align: center;
}

/* ==========================================================================
   TOP OVERLAY & NAVIGATION
   ========================================================================== */

.top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  z-index: 9;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0) 100%);
  transform: translateY(0);
  transition-property: transform !important;
  transition-duration: 0.3s !important;
  transition-timing-function: ease-in-out !important;
}

.top-gradient.hidden {
  transform: translateY(-100%);
}

/* Removed old top-overlay and logo-img styles - now using site-header and logo */

/* ==========================================================================
   MENU BUTTON
   ========================================================================== */



    
 

/* ==========================================================================
   RESPONSIVE IMAGE SWAPPING
   ========================================================================== */

.desktop-map,
.desktop-cloudbig,
.desktop-country,
.desktop-city {
  display: block;
}

.mobile-map,
.mobile-cloudbig,
.mobile-country,
.mobile-city {
  display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 600px) {
  .logo {
    height: 4rem !important;
    margin-left: 0;
  }
}

@media (max-width: 800px) {

}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  z-index: 100;
  background: none;
  transform: translateY(0);
  transition-property: transform !important;
  transition-duration: 0.3s !important;
  transition-timing-function: ease-in-out !important;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.logo {
  height: 5rem;
  display: block;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE TEXT STYLES
   ========================================================================== */

@media (max-width: 600px) {
  .text-bigtitle {
    font-size: 2.8rem;
  }

  .text-sectitle {
    font-size: 2.3rem;
  }

  .text-secdesc {
    font-size: 1rem;
  }

  .text-smalltitle {
    font-size: 1.7rem;
  }

  .text-content {
    font-size: 1rem;
  }

  .text-smallcontent {
    font-size: 0.9rem;
  }

  .text-important {
    font-size: 1.3rem;
  }

  .text-button {
    font-size: 1.2rem;
  }
}

@media (min-width: 601px) and (max-width: 991px) {
  .text-bigtitle {
    font-size: 3rem;
  }

  .text-sectitle {
    font-size: 2.5rem;
  }

  .text-secdesc {
    font-size: 1.1rem;
  }

  .text-smalltitle {
    font-size: 2rem;
  }

  .text-content {
    font-size: 1.1rem;
  }

  .text-smallcontent {
    font-size: 1rem;
  }

  .text-important {
    font-size: 1.5rem;
  }

  .text-button {
    font-size: 1.4rem;
  }


}

@media (max-width: 991px){
  .landmark-btn {
    width: 100px;
    height: 100px;
  }

  /* Mobile-specific landmark positions */
  .landmark-castlegarden {
    left: 60% !important;
    top: 64.5% !important;
  }
  
  .landmark-vorden {
    left: 67% !important;
    top: 46.5% !important;
  }
  
  .landmark-dehaar {
    left: 49.8% !important;
    top: 43% !important;
  }
  
  .landmark-archeon {
    left: 35% !important;
    top: 46% !important;
  }
  
  .landmark-keukenhof {
    left: 32.5% !important;
    top: 35% !important;
  }

    .landmark-btn:focus + .landmark-popout, .landmark-btn:hover + .landmark-popout, .landmark.active .landmark-popout {
    transform: translate(-50%, 50%) scale(1.5);
  }

  .site-header {
    padding: 0.5rem 0;
  }

  .top-gradient {
    top: 0;
    height: 140px;
  }

  .cloud-img {
    width: 40%;
    min-width: 10%;
    max-width: 20%;
  }

  /* .landmark-btn {
    width: 60px;
    height: 60px;
  } */



  .landmark-popout {
    min-width: 220px;
    /* height: auto; */
  }


  .desktop-map,
  .desktop-cloudbig {
    display: none !important;
  }

  .mobile-map,
  .mobile-cloudbig {
    display: block !important;
  }

  .desktop-country,
  .desktop-city {
    display: none !important;
  }

  .mobile-country,
  .mobile-city {
    display: block !important;
  }
}

@media (min-width: 992px) and (max-width: 1349px) {
  .text-bigtitle {
    font-size: 3.5rem;
  }

  .text-sectitle {
    font-size: 2.8rem;
  }

  .text-secdesc {
    font-size: 1.3rem;
  }

  .text-smalltitle {
    font-size: 2.2rem;
  }

  .text-content {
    font-size: 1.2rem;
  }

  .text-smallcontent {
    font-size: 1.1rem;
  }

  .text-important {
    font-size: 1.6rem;
  }

  .text-button {
    font-size: 1.4rem;
  }
}

@media (min-width: 1350px) and (max-width: 1500px) {
  .text-bigtitle {
    font-size: 4rem;
  }

  .text-sectitle {
    font-size: 3rem;
  }

  .text-secdesc {
    font-size: 1.4rem;
  }

  .text-smalltitle {
    font-size: 2.2rem;
  }

  .text-content {
    font-size: 1.2rem;
  }

  .text-smallcontent {
    font-size: 1.1rem;
  }

  .text-important {
    font-size: 1.7rem;
  }

  .text-button {
    font-size: 1.4rem;
  }
}