:root {
  --green-primary: #6d8d36;
  --indigo-secondary: #1c283e;
  --white-light: #eaebed;
  --text-color: rgb(33, 37, 41);
  --black-main: #000;
  --white-main: #fff;
  --gray: #97968e;
  --design-fonts: "CustomFont";
  --akzidenz-font-family: Helvetica, Arial, sans-serif;
  --knockout-font-family: "knockout";
  --heading-font: "CustomFont";
  --line-height: 1.5;
  --letter-spacing: 1;
  --font-size: 20px;
}

/*===== UTILITY CLASSES ======*/
.container-two {
  width: 95% !important;
  max-width: 1200px;
  margin-inline: auto;
}

/*===== BANNER STYLES =====*/

section.banner {
  width: 100vw;
  height: 280px;

  position: relative;
  color: black;
  isolation: isolate;
}

section.banner img {
  object-fit: cover;
  width: 100%;
  object-position: center;
  height: 100%;
}

section.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: black;
  opacity: 0.3;
}

section#adoptCategory .intro-wrapper {
  width: 100vw;
  position: absolute;
  bottom: 10%;
  z-index: 1;
}

section#adoptCategory .intro-wrapper .rhino-intro {
  width: 780px;
}

section#adoptCategory .intro-wrapper .rhino-intro h1 {
  font-family: var(--design-fonts);
  font-size: 60px;
  color: white;
  font-weight: lighter;
}

section#adoptCategory .intro-wrapper .rhino-intro h1 strong {
  color: var(--green-primary);
  font-weight: lighter;
}

section#adoptCategory .intro-wrapper .rhino-intro p {
  color: white;
}

/*===== BANNER RESPONSIVE STYLES =====*/
@media screen and (max-width: 900px) {
  section#adoptCategory .intro-wrapper .container {
    width: 90%;
  }

  section#adoptCategory .intro-wrapper .rhino-intro {
    width: 100%;
  }

  section#adoptCategory .intro-wrapper .rhino-intro h1 {
    font-size: clamp(3rem, 1.5rem + 4vw, 3.75rem);
  }
}

@media screen and (max-width: 450px) {
  section#adoptCategory .intro-wrapper .rhino-intro h1 {
    font-size: clamp(2rem, 0.5rem + 5.3333vw, 2.5rem);
  }
}

/*===== ADOPT CATEGORY ABOUT STYLES =====*/
section.adopt-category-about {
  padding-block: 6rem;
  display: flex;
  justify-content: space-between;
}

section.adopt-category-about .adopt-category-about-content {
  width: min(600px, 43vw);
}

section.adopt-category-about .adopt-category-about-content h2 {
  font-family: var(--knockout-font-family);
  font-weight: lighter;
  text-transform: uppercase;
  color: var(--green-primary);
  letter-spacing: 2px;
  font-size: 42px;
  margin-bottom: 2rem;
}

section.adopt-category-about .adopt-category-about-content p {
  font-size: 18px;
}

section.adopt-category-about .adopt-category-about-content .adopt-category-about-content-text p {
  margin-bottom: 1rem;
}

section.adopt-category-about .adopt-category-about-content .adopt-category-about-content-stats {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

section.adopt-category-about .adopt-category-about-content .adopt-category-about-content-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section.adopt-category-about .adopt-category-about-content .adopt-category-about-content-stats > div h3 {
  font-family: var(--knockout-font-family);
  font-weight: bold;
  font-size: 80px;
  color: var(--indigo-secondary);
}

section.adopt-category-about .adopt-category-about-content .adopt-category-about-content-stats > div p {
  text-align: center;
  color: var(--indigo-secondary);
  font-size: 18px;
  font-weight: bold;
  max-width: 160px;
}

/*====== ANIMALS LISTINGS STYLES =====*/
section.animal-listings {
  margin-bottom: 6rem;
}

section.animal-listings h2 {
  text-transform: uppercase;
  font-family: var(--knockout-font-family);
  font-weight: lighter;
  font-size: 42px;
  letter-spacing: 2px;
  color: var(--green-primary);
  margin-bottom: 3rem;
}

/*section.animal-listings .listings-table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}*/

section.animal-listings .listings-table .heading-item {
  text-transform: uppercase;
  color: var(--indigo-secondary);
  font-weight: bold;
}

section.animal-listings .listings-table span:not(.heading-item) {
  display: flex;
  align-items: end;
  font-size: 16px;
  color: #94938a;
  font-weight: bold;
}

section.animal-listings .listings-table .listing-entry {
  display: flex;
  align-items: end;
}

section.animal-listings .listings-table .listing-entry p.dates {
  font-size: 16px;
  color: #94938a;
  font-weight: bold;
}

section.animal-listings .listings-table a {
  text-decoration: none;
  display: block;
  padding: 0.75rem 1.5rem;
  text-align: center;
  background: var(--green-primary);
  color: white;
  text-transform: uppercase;
  font-size: 14px;
}

section.animal-listings .listings-table .listing-entry,
section.animal-listings .listings-table .listing-heading {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

section.animal-listings.scholarships .listings-table .listing-entry,
section.animal-listings.scholarships .listings-table .listing-heading {
  grid-template-columns: repeat(5, 1fr);
}

section.animal-listings .listings-table .listing-entry {
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: thin solid #a2a2a2;
}

section.animal-listings .listings-table .listing-entry .animal-name {
  width: 115px;
}

section.animal-listings .listings-table .listing-entry .listing-thumbnail img {
  width: 167px;
  object-fit: fill;
}

section.map h2 {
  font-family: var(--knockout-font-family);
  font-size: 42px;
  font-weight: lighter;
  color: var(--green-primary);
}

section.map p.heading-p {
  margin-bottom: 2rem;
}

/*====== MAP STYLES =====*/
#map {
  width: 100%;
  height: 100vh; /* full height */
}

/* River label flat style */
.leaflet-tooltip.river-label {
  background: white; /* or transparent if you prefer */
  border: none;
  box-shadow: none;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

/* Remove the down-pointing arrow ONLY for river */
.leaflet-tooltip.river-label.leaflet-tooltip-top:before,
.leaflet-tooltip.river-label.leaflet-tooltip-bottom:before,
.leaflet-tooltip.river-label.leaflet-tooltip-left:before,
.leaflet-tooltip.river-label.leaflet-tooltip-right:before {
  border: none !important;
}

.number-circle {
  background: black;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: white;
  margin: auto;
  padding: 16px;
  border-radius: 12px;
  width: fit-content;
  max-width: 500px;
  position: relative;
}

.modal-content img {
  width: 250px;
}

.modal-content span {
  position: absolute;
  right: -4%;
  top: -4%;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.modal-content h3 {
  text-transform: uppercase;
  margin-block: 1rem;
}

a#adoptLink {
  text-decoration: none;
  border: solid thin #6d8d36;
  background: #6d8d36;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
}

.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Skeleton base */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: pulse 1.4s ease infinite;
  border-radius: 8px;
  margin: 8px 0;
}

/* Skeleton shapes */
.skeleton-image {
  width: 250px;
  height: 225px;
}

.skeleton-title {
  width: 200px;
  height: 20px;
}

.skeleton-link {
  width: 120px;
  height: 35px;
  border-radius: 5px;
}

@keyframes pulse {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Utility class to hide/show */
.hidden,
a.hidden {
  display: none;
}

/* Legend box */
.map-legend {
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 1.4em;
  max-width: 320px;
}

.map-legend h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
}

/* Two columns layout */
.legend-columns {
  display: flex;
  justify-content: space-between;
}

.legend-col {
  flex: 1;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* Symbols */
.number-circle {
  width: 18px;
  height: 18px;
  background: black;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.line-symbol {
  display: inline-block;
  width: 24px;
  height: 4px;
  margin-right: 6px;
  border-radius: 2px;
}

.polygon-symbol {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 3px;
}

.legend-icon {
  margin-right: 6px;
  font-size: 18px;
}

/* Hide legend on small screens */
@media (max-width: 768px) {
  .map-legend {
    display: none !important;
  }
}

/* Toggle button */
.legend-toggle {
  margin: 8px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #2c3e50;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.legend-toggle:hover {
  background: #34495e;
}

/* Apply only to the scholarship map */
#scholarship-map .leaflet-tooltip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.style-this {
  display: flex;
  align-items: center;
  line-height: 1;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
