/* ================= LOADING SCREEN ================= */

#loader-overlay {
    position: fixed;
    inset: 0;
    background: #211811;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 20px;        /* safe zone on small screens */
    box-sizing: border-box;
  }
  
  #loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .loader-spinner {
    --uib-size: 60px;
    --uib-color: rgb(194, 123, 0);
    --uib-speed: 1.5s;
    --dot-size: calc(var(--uib-size) * 0.17);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: smoothRotate calc(var(--uib-speed) * 1.8) linear infinite;
    background: transparent !important;
  }
  
  .dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    width: 100%;
    animation: rotate var(--uib-speed) ease-in-out infinite;
  }
  
  .dot::before {
    content: '';
    height: var(--dot-size);
    width: var(--dot-size);
    border-radius: 50%;
    background-color: var(--uib-color);
    transition: background-color 0.3s ease;
  }
  
  .dot:nth-child(2),
  .dot:nth-child(2)::before {
    animation-delay: calc(var(--uib-speed) * -0.835 * 0.5);
  }
  
  .dot:nth-child(3),
  .dot:nth-child(3)::before {
    animation-delay: calc(var(--uib-speed) * -0.668 * 0.5);
  }
  
  .dot:nth-child(4),
  .dot:nth-child(4)::before {
    animation-delay: calc(var(--uib-speed) * -0.501 * 0.5);
  }
  
  .dot:nth-child(5),
  .dot:nth-child(5)::before {
    animation-delay: calc(var(--uib-speed) * -0.334 * 0.5);
  }
  
  .dot:nth-child(6),
  .dot:nth-child(6)::before {
    animation-delay: calc(var(--uib-speed) * -0.167 * 0.5);
  }
  
  @keyframes rotate {
    0% { transform: rotate(0deg); }
    65%, 100% { transform: rotate(360deg); }
  }
  
  @keyframes smoothRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* ================= END OF LOADING SCREEN ================= */
  

/* ========================================
   LOCALITIES PAGE
======================================== */

.locality-page-hero {
    padding: 100px 5% 70px;
    text-align: center;
  }
  
  .locality-page-hero .portfolio-label {
    color: #D4A477;
    letter-spacing: 3px;
  }
  
  .locality-page-hero h1 {
    margin: 15px 0;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #d7761b;
  }
  
  .locality-page-hero h1 span {
    color: #c66000;
  }
  
  .locality-page-hero > p:last-child {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ce8135;
  }
  
  /* ========================================
     LOCALITY PROFILES
  ======================================== */
  
  .locality-section {
    padding: 70px 5%;
    color: var(--bronze, #302018);
  }
  
  .locality-heading {
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
  }
  
  .locality-heading h2 {
    margin-bottom: 15px;
    font-size: 2.2rem;
  }
  
  .locality-heading p {
    color: #79695D;
    line-height: 1.7;
  }
  
  .locality-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }
  
  .locality-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #FFFCF6;
    border: 1px solid rgba(169, 103, 63, 0.35);
    border-left: 4px solid var(--copper, #A9673F);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(48, 32, 24, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .locality-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(48, 32, 24, 0.14);
  }
  
  .locality-card > img {
    flex: 0 0 115px;
    width: 115px;
    height: 145px;
    object-fit: cover;
    border-radius: 9px;
  }
  
  .locality-content {
    min-width: 0;
  }
  
  .locality-content h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
  }
  
  .locality-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  
  .locality-content .scientific-name {
    margin-top: 0;
    color: var(--copper, #A9673F);
    font-style: italic;
  }
  
  .locality-description {
    color: #79695D;
  }
  
  /* ========================================
     INTERACTIVE MAP
  ======================================== */
  
  .locality-map-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 25px;
    box-sizing: border-box;
    background: #FFFCF6;
    border: 1px solid #D4A477;
    border-radius: 14px;
  }
  
  .locality-map-wrapper h2 {
    color: #302018;
    margin-top: 0;
  }
  
  .locality-map-wrapper p {
    color: #79695D;
    margin-bottom: 20px;
  }
  
  #locality-map {
    width: 100%;
    height: 450px;
    border: 1px solid #D4A477;
    border-radius: 10px;
    z-index: 1;
  }
  
  /* ========================================
     RESPONSIVE LAYOUT
  ======================================== */
  
  @media (max-width: 900px) {
    .locality-grid {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .locality-section {
      padding: 50px 5%;
    }
  
    .locality-card {
      gap: 14px;
      padding: 14px;
    }
  
    .locality-card > img {
      flex-basis: 95px;
      width: 95px;
      height: 125px;
    }
  
    .locality-content h3 {
      font-size: 1.1rem;
    }
  
    .locality-content p {
      font-size: 0.88rem;
    }
  
    .locality-map-wrapper {
      padding: 15px;
    }
  
    #locality-map {
      height: 350px;
    }
  }
  

  /* Keep the interactive map visible above fading effects */
.locality-map-wrapper {
    position: relative;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* Keep the map and its controls visible */
#locality-map {
    position: relative;
    z-index: 10;
    opacity: 1;
    visibility: visible;
}

/* Footer layout */
.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

/* Quick Links on the left */
.footer-links {
    text-align: left;
}

/* Contact on the right */
.footer-contact {
    text-align: right;
    margin-left: auto;
}

/* Footer bottom stays on its own row */
.footer-bottom {
    width: 100%;
}

