    :root {
  /* TCZ Brand Colours */
  --tcz-grey: #6b7a8a;
  --tcz-green: #a3b08a;
  --tcz-pink: #D9A293;
  --tcz-light-grey: #e3e3e8;
  --tcz-light-green: #c7d1bf;
  --tcz-light-pink: #e8c2ba;
  --tcz-text: #3b3b3b;
}

/* Global Typography */
body {
  font-family: 'Inter Tight', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tcz-text);
  background-color: var(--tcz-light-grey);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}


h1 {
  color: var(--tcz-grey);
  margin: 5px;
  font-size: 1.8rem;
}

/* Headlines */
h2 {
  font-family: 'Inter Tight', Arial, sans-serif;
  font-weight: 600;
  color: var(--tcz-green); /* main headline color accent */
  margin: 10px 0 15px 0;
}

/* Paragraphs */
p, li, label {
  font-weight: 400;
  color: black;
}

/* Links */
a {
  color: var(--tcz-pink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tcz-green);
  text-decoration: underline;
}

    

   .header {
  text-align: center;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-desktop {
  position: absolute;
  left: 20px;
  width: 60px;
  bottom: 15px;
}

.logo-mobile {
  display: none;
}



    .map-container {
      height: 80%;
      width: 100%;
      position: relative;
    }

    .header {
      height: fit-content;
    }

  .map-footer {
        height: 10%;
      }


    #map { 
        height: 100%;
        width: 100%;
        position: relative;
        z-index: 0;
          background-color: #dbe8ef; /* soft blue from your NGO palette */
  filter: brightness(1.05) contrast(0.95);

     }

    #pinForm {
      background: #f9f9f9;
      position: relative;
      right: 0;
      bottom: 0;
      z-index: 2;
      padding: 20px;
    }

    #pinForm input, #pinForm textarea, #pinForm button {
      display: block;
      width: 95%;
      margin-bottom: 8px;
    }

    .leaflet-popup-content{
        width: fit-content !important;
        line-height: revert;
    }

    .leaflet-popup {
      width: 300px;
    }

    /* --- Leaflet popup styling (TCZ brand) --- */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: none;
  font-family: 'Inter Tight', sans-serif;
  line-height: 1.5;
  color: var(--tcz-text);
  max-height: 300px; /* 👈 limit popup height */
  overflow: hidden; /* hides overflow beyond wrapper */
}

/* Inner content container */
.leaflet-popup-content {
  overflow-y: auto; /* 👈 make content scrollable */
  max-height: 280px; /* scroll area inside */
  padding-right: 8px; /* room for scrollbar */
}

/* Scrollbar styling for modern browsers */
.leaflet-popup-content::-webkit-scrollbar {
  width: 6px;
}
.leaflet-popup-content::-webkit-scrollbar-thumb {
  background-color: var(--tcz-light-grey);
  border-radius: 3px;
}
.leaflet-popup-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--tcz-grey);
}

/* Popup text/link style */
.leaflet-popup-content a {
  color: var(--tcz-pink);
  text-decoration: none;
}
.leaflet-popup-content a:hover {
  color: var(--tcz-green);
  text-decoration: underline;
}

/* Popup images */
.leaflet-popup-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 8px;
}


    /* Floating contact zone form */
.contact-zone-form {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #444;
  width: 320px;
  transition: all 0.4s ease;
  z-index: 500;
}
/* Collapsed state */
.contact-zone-form.collapsed {
  width: auto;
  padding: 0;
}

.contact-zone-form.collapsed .form-content {
  display: none;
}

/* Toggle bar (always visible) */
.form-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tcz-grey);
  border-top: 3px solid var(--tcz-pink);
  border-radius: 12px 12px 0 0;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  color: var(--tcz-light-grey);
  font-weight: 500;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

.form-toggle:hover {
  background: #f5f5f5;
  color:  var(--tcz-grey);
}

.form-toggle .arrow {
  color: #D9A293;
  font-size: 16px;
}

/* Form inner content */

#lat, #lng {
  display: none !important;
}


.form-content {
  padding: 20px;
}

.form-content label {
  font-weight: 400;
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 4px;
}

.form-content input,
.form-content textarea {
  width: 100%;
  border: none;
  background: #E6EBEE;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.form-content textarea {
  min-height: 80px;
  resize: vertical;
}

.form-content input[type="file"] {
  background: none;
  padding: 4px 0;
}

/* Placeholder text styling */
::placeholder {
  color: var(--tcz-grey);
  opacity: 0.8;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 300;
}

/* Make inputs and textareas look uniform */
.form-content input[type="text"],
.form-content input[type="email"],
.form-content textarea {
  width: 90%;
  border: none;
  background: var(--tcz-light-grey);
  padding: 10px 6px 10px 12px;
  margin-bottom: 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--tcz-text);
}

.form-content textarea {
  min-height: 80px;
  resize: vertical;
}

/* Optional: subtle focus highlight */
.form-content input:focus,
.form-content textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--tcz-light-green);
  /* background: #fff; */
}


.checkbox {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.send-btn {
  background: none;
  color: var(--tcz-pink);
  border: none;
  text-align: right;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
}

.send-btn:hover {
  color: var(--tcz-green);
}

.send-btn:enabled {
  color: var(--tcz-green);
}

.send-btn:enabled:hover {
  text-decoration: underline;
}

.checkbox {
  display: flex !important;
}

#approval {
  display: inline !important;
  width: auto !important;
}

/* --- Map attribution footer --- */


  .leaflet-control-attribution {
    display: none;
  }

.map-footer {
    text-align: center;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  color: var(--tcz-grey);
  margin: 10px;
}

.map-footer a {
  color: #888;
}

.name-link {
  text-decoration: underline;
}

.map-footer a:hover {
  text-decoration: underline;
  color: var(--tcz-grey);
}

/* --- About Panel --- */
.about-panel {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 350px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Inter Tight', sans-serif;
  color: var(--tcz-text);
  overflow: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
}

/* Collapsed = only green button visible */
.about-panel.collapsed {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.about-panel.collapsed .about-content {
  display: none;
}

/* --- Floating "?" button --- */
.about-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tcz-grey);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}


.about-toggle:hover {
  background:  var(--tcz-light-grey);
  color: var(--tcz-grey); ;
}

/* --- Expanded panel content --- */
.about-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  background: #fff;
  border-radius: 12px;
  cursor: pointer; /* make full panel clickable */
  position: relative;
}

.about-text {
  overflow-y: auto;
}

.about-content strong {
  color: var(--tcz-green);
  font-weight: 600;
}

.about-content em {
  color: var(--tcz-pink);
  font-style: normal;
  font-weight: 500;
}

/* --- Header --- */
.about-header {
  position: absolute;
  top: 10px;
  right: 10px;
}

.about-toggle .icon {
  margin-top: -2px;
}

.close-icon {
  color: var(--tcz-grey);
  /* color: #fff; */
  font-weight: 600;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
  margin-top: 11px;
}

.close-icon:hover {
  color: var(--tcz-light-grey);
  transform: rotate(90deg);
}

/* Scrollbar styling */
.about-content::-webkit-scrollbar {
  width: 6px;
}
.about-content::-webkit-scrollbar-thumb {
  background-color: var(--tcz-light-grey);
  border-radius: 3px;
}
.about-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--tcz-grey);
}

/* --- add how to contribute --- */

/* --- Tabs inside About panel --- */
.about-tabs {
  display: flex;
  border-bottom: 1px solid var(--tcz-light-grey);
  margin-right: 25px;
}

.about-tabs .tab {
  flex: 1;
  background: var(--tcz-light-grey);
  border: none;
  color: var(--tcz-grey);
  padding: 8px 0;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px 6px 0 0;
  margin-right: 4px;
}

.about-tabs .tab:last-child {
  margin-right: 0;
}

.about-tabs .tab.active {
  background: #fff;
  color: var(--tcz-green);
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content {
  max-height: 410px;
  overflow-y: scroll;
}

/* How-to styling (from before, keep consistent) */

.how-to-contribute h4 {
  color: var(--tcz-pink);
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}

.how-to-contribute ol {
  margin: 0;
  padding-left: 20px;
}

.how-to-contribute li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--tcz-text);
}

.how-to-contribute span {
  display: block;
  margin-top: 4px;
  font-style: italic;
  background-color: var(--tcz-light-green);
}


.confirmation-box {
    position: absolute;
    max-width: 300px;
    bottom: 50%;
    left: 50%;
    font-style: italic;
    font-weight: 600;
    transform: translateX(-50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    text-align: center;
    z-index: 2000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.confirmation-box.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
}


.cookie-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  color: var(--tcz-text);
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  align-items: center;
  z-index: 3000;
  transition: all 0.4s ease;
  text-align: center;
}

.cookie-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  margin: 0;
  display: inline;
  flex: 1;
}

.cookie-banner a {
  color: var(--tcz-pink);
  text-decoration: underline;
}

.cookie-banner button {
  background: var(--tcz-green);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 500;
  margin-left: 10px;
  transition: background 0.3s ease;
}

.cookie-banner button:hover {
  background: var(--tcz-grey);
}



    
@media (max-width: 768px) {

    .map-container {
      height: 80%;
    }

    .header {
      height: fit-content;
    }


      /* .map-footer {
        height: ;
      } */


   .leaflet-popup {
      width: 220px;
    }
  

  .about-panel {
    right: 10px;
    left: unset;
    bottom: unset;
    top: auto;
    top: 10px;
    width: calc(100% - 20px);
  }

  .form-toggle {
  background: #fff;
  border-top: 3px solid var(--tcz-pink);
  color: var(--tcz-grey);
}

  h1 {
    font-size: 1.3rem;
    color: var(--tcz-grey);
    margin: 5px auto;
  }
  
  .contact-zone-form {
    width: 90%;
    margin: 12px 0;
    right: 0;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);

  }

  .contact-zone-form.collapsed {
    width: 90%;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    position: absolute;
    left: 15px;
    top: 5px;
    width: 40px;
  }

  .cookie-banner {
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .cookie-banner p {
    display: block;
    font-size: 0.8rem;
  }

  .cookie-banner button {
    margin-top: 8px;
    margin-left: 0;
  }

}

