html, body {
  height: 100%;
  width:100vw;
  margin: 0;
  font-family: Arial, sans-serif;
 
}

#map {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

.header-placeholder {
  position: absolute;
  z-index: 2000; 

}

.map-title {
  position: absolute;
  top: 40px;
  width:100%;
  z-index: 4000;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff;
  text-align: center;
  font-style: normal;
  line-height: normal;
  font-weight: 600;
  font-size: 40px;
  pointer-events: none;
}

.hamburger-btn {
  display: none; 
}



.custom-controls {
  width: 394px;
  height: 715px;
  border-radius: 20px;
  border: 6px solid rgba(255, 255, 255, 0.50);  ;
  backdrop-filter: blur(5.550000190734863px);
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 3000;
  color: #0b3a76;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  
  
}

.custom-controls.active { 
  transform: translateX(10%);
  .arrow-btn {
    display:none;} 
}

.custom-controls.active + .arrow-btn {
  display:none;
  left: 465px; 
}

.arrow-btn {
  display:none;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  left: 25px; 
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.50);;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 3500;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: left 0.3s ease-in-out;
}

.arrow-btn img {
  width: 14px;
  height: 15.055px;
  flex-shrink: 0;
  
}

.arrow-btn img:hover {
  transform: translateX(5px); 
  transition: transform 0.2s ease; 
  background: none;
  border: none;
  border-radius: none;
}



.controls-header {
  background: linear-gradient(0deg, rgba(1, 44, 108, 0.05) 0%, rgba(1, 44, 108, 0.05) 100%), rgba(255, 255, 255, 0.80);
  padding: 30px;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
}
.close-btn img {
  width: 24px;
  height: 24px;
}
.controls-header h3 {
  margin: 0 0 15px 0;
  color: #0b3a76;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.legend {
  list-style: none;
  margin: 0 0 -10px 0;
  padding: 0;
}
.legend li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  color: #012C6C;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border-radius: 2px;
}

.control-wrapper {
  display: block;
  position: relative;
  height: 100%;
  width:100vw;
  
}
.controls-body {
  padding: 30px;
  background: #fff;
  height: 482px;
}
.controls-body label {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
  color: #0b3a76;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.controls-body select {
  width: 100%;
  padding: 8px;
  border-radius: 3px;
  font-size: 14px;
  border: 1px solid rgba(1, 44, 108, 0.50);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("https://mciamauritiusmap.kinsta.cloud/wp-content/uploads/2025/09/chevron-bottom.png") 
              no-repeat right 12px center;
  background-size: 25px;
  padding-right: 35px;
  color: #0b3a76;
  cursor: pointer;
}

.controls-body input {
  width: 100%;
  padding: 8px;
  border-radius: 3px;
  font-size: 14px;
  border: 1px solid rgba(1, 44, 108, 0.50);
  color: #0b3a76;
}

#latInput, #lngInput {
  padding: 8px;
  border: 1px solid rgba(1, 44, 108, 0.50);
}

#plotBtn {
  margin-top: 27px;
  width: max-content;
  height: max-content;
  margin-left: auto; 
  margin-right: auto; 
  padding: 10px;
  font-size: 12px;
  font-weight: 300;
  border: 1px solid #ccd2db;
  border-radius: 3px;
  background: #f9f9f9;
  cursor: pointer;
  color: #012C6C;
  font-style: normal;
  line-height: normal;
  text-align: center;
}
#plotBtn:hover {
  background: linear-gradient(0deg, rgba(1, 44, 108, 0.05) 0%, rgba(1, 44, 108, 0.05) 100%), rgba(255, 255, 255, 0.80);
  color: #012C6C;
}

#plotBtn .icon {
  width: 14px;
  height: 19px;
  vertical-align: middle;
}

#plotBtn .label {
  margin-left: 5px;
  vertical-align: middle; 

}

.reset-bar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  margin-bottom: 8px; 
}

.header-placeholder {
  position: absolute;
  z-index: 2000; 
  background:#012C6C;
  width:100%;
  
}


#pageCounter {
  margin-top: 5px;
  color: rgba(1, 44, 108, 0.70);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.reset-link button {
  
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: underline;
  color: rgba(1, 44, 108, 0.50);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
.reset-link button:hover {
  opacity: 0.7;
}

#toggleControls {
  position: fixed;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: #0b3a76;
  border-radius: 50%;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4000; 
}

#toggleControls img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}


footer.site-footer {
  position: fixed;     
  bottom: 0;
  left: 0;
  width: 100vw;         
  height: 74px;        
  background:#012C6C;
  color: #fff;
  z-index: 3000;       
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;     
  box-sizing: border-box;
  font-size: 14px;     
}

.map-footer__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.map-footer__left {
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.map-footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #FFF;
  font-size: 12px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}

.map-footer__org {
  font-weight: 800;
  font-size: 13px;
}

.map-footer__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-footer__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1); 
}

.map-footer a {
  color: #fff;
  text-decoration: none;
}
.map-footer a:hover {
  text-decoration: underline;
  color:white;
}

.map-footer__icon__blue {
  display:none;
}


hr {
  background: rgba(1, 44, 108, 0.20);
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
  margin-top: 2.5em;
}

.map-arrows {
  position: fixed;
  right: 35px;          
  top: 46%;            
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;   
  gap: 0px;              
  z-index: 4000;
}

.map-arrows button {
  width: 75px;
  height: 75px;
  border: none;
  border-radius: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.map-arrows button:hover {
  transform: translateY(-5px);
  transition: transform 0.2s ease; 
}

.map-arrows img {
  width: 39px;
  height: 44.998px;
  flex-shrink: 0;
}

.map-zoom {
  position: absolute;
  right: 30px;
  bottom: 190px;        
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4000;
  height: 0px;
}

.map-zoom button {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: none;
  background: transparent;
  display: flex; 
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-zoom button:hover {
  transform: translateY(-5px); 
  transition: transform 0.2s ease;
}

.map-zoom img {
  width: 30px;
  height: 27px;
  flex-shrink: 0;
}

#fullScreenBtn{
  display: none;
}

.exitScreen-btn{
  display: none;
}

.gm-fullscreen-control {
  top: 13px !important;  
  right: 35px !important; 
  background-color: transparent !important; 
  width: 35px !important;
  height: 35px !important;
  cursor: pointer !important;
  border: none !important;
  color: #ffffff !important;
}

.gm-fullscreen-control img {
  width: 30px !important;
  height: 27px !important;
  margin: auto;
  filter: brightness(0) invert(1) !important;
}

.gm-fullscreen-control img:hover {
  transform: scale(1.2); 
  transition: transform 0.2s ease; 
}

.lang-toggle {
  position: absolute;
  top: 27px;
  right: 94px; 
  z-index: 3500;
}

#langSwitch {
  padding: 4px 30px 4px 10px;
  font-size: 14px;
  border: transparent;
  border-radius: none;
  background: url("https://mciamauritiusmap.kinsta.cloud/wp-content/uploads/2025/09/chevron-bottom-2.png")
              no-repeat right 10px center;
  background-size: 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color:white;
  cursor: pointer;;
}

#langSwitch:hover {
  color:gray;
}

.gm-ui-hover-effect {
  display: none !important; 
}


/* ==========================================
   LANDSCAPE WARNING — MAP PAGE ONLY
   ========================================== */

   body.page-template-page-maptemplate #landscape-warning {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #012C6C;
    color: white;
    z-index: 999999;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  body.page-template-page-maptemplate #landscape-warning .warning-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  body.page-template-page-maptemplate #landscape-warning svg {
    width: 100px;
    height: 100px;
    stroke: white;
  }
  
  body.page-template-page-maptemplate #landscape-warning p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 480px;
  }
  
  /* ✅ Show ONLY on map page, in landscape, for mobile + tablet */
  @media screen and (orientation: landscape) and (max-width: 992px) {
    body.page-template-page-maptemplate html,
    body.page-template-page-maptemplate body {
      overflow: hidden !important;
    }
  
    body.page-template-page-maptemplate #landscape-warning {
      display: flex !important;
    }
  
    /* Hide map + UI behind overlay */
    body.page-template-page-maptemplate #map,
    body.page-template-page-maptemplate header,
    body.page-template-page-maptemplate footer,
    body.page-template-page-maptemplate .site-footer,
    body.page-template-page-maptemplate .custom-controls,
    body.page-template-page-maptemplate .body-wrapper {
      display: none !important;
    }
  }
  
  /* Fade animation */
  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  
  