/* Container for header - just width constraint, no visual styling */
.heading-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* The actual header visual container */
.site-header-banded {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-header-band {
  width: 100%;
  padding: 6px 0 6px 0;
  text-align: center;
  margin: 0;
  border: none;
}
.site-header-band:first-child {
  border-radius: 16px 16px 0 0;
}
.site-header-band:last-child {
  border-radius: 0 0 16px 16px;
}
.site-header-band-dark { background-color: #666666 !important; }
.site-header-band-dark .headline, .site-header-band-dark .subheadline {
  color: #fff !important;
  text-align: center !important;
}
.site-header-band-light { background-color: #DCBBAB !important; }
.site-header-band-light .site-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 10px;
}
.site-header-band-light .site-title {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.35em;
  color: #000;
  font-weight: normal;
  margin: 2px 0 2px 0;
  text-align: center !important;
}
.site-header-band-light .site-title a {
  color: #555;
  text-decoration: none;
  font-size: 0.85em;
}
.site-header-band-light .site-title a:hover { text-decoration: underline; }
.site-header-band-light .copyright {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.7em;
  color: #fff;
  text-align: right;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.headline {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.2em;
  color: #fff;
  font-weight: bold;
  margin: 0;
}

/* Quick links under the header */
.quick-links {
  max-width: 800px;
  margin: 2px auto 2px auto; /* small gap under the band, same on both pages */
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-links .links-left,
.quick-links .links-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-links .label-es { color: #494242; font-weight: bold; }
.quick-links .label-en { color: #036118; font-weight: bold; }
.quick-link {
  background: #e6f7bc;
  border: 1px solid #6a9678;
  color: #013b01;
  padding: 2px 8px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px; /* unify size across pages */
  line-height: 1.2;
}
.quick-link:hover { background: #d6ecd3; font-weight: bold; }

/* Species Search Component */
#species-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 1000;
}

/* Ensure parent containers don't clip the dropdown */
.site-header-band-light,
.site-header-banded,
.heading-container {
  overflow: visible !important;
}

#species-search-btn {
  background: rgba(255,255,255,0.85);
  border: 1px solid #999;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

#species-search-btn:hover {
  background: #fff;
  border-color: #666;
}

#species-search-input {
  width: 0;
  padding: 0;
  border: none;
  opacity: 0;
  transition: all 0.3s;
  font-size: 14px;
  border-radius: 4px;
  margin-left: 6px;
  color: #494242 !important;
  font-weight: bold !important;
  background-color: #DCBBAB !important;
}

#species-search.expanded #species-search-input {
  width: 220px;
  padding: 4px 8px;
  border: 1px solid #6a9678;
  opacity: 1;
  color: #494242 !important;
  font-weight: bold !important;
  background-color: #DCBBAB !important;
}

#species-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 376px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #6a9678;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-top: 4px;
  z-index: 2000;
}

.search-result {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.15s;
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: #e6f7bc;
}

.search-result-sci {
  font-style: italic;
  font-weight: bold;
  color: #333;
  font-size: 0.95em;
}

.search-result-names {
  font-size: 0.85em;
  margin-top: 2px;
}

.search-result-sp {
  color: #494242;
  margin-right: 8px;
}

.search-result-en {
  color: #036118;
}

.search-result mark {
  background: #ffeb3b;
  padding: 0 1px;
  border-radius: 2px;
}

.search-no-results {
  padding: 12px;
  color: #666;
  font-size: 0.9em;
  text-align: center;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
  max-width: 820px;
  margin: 12px auto 10px auto;
  padding: 0 10px;
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-divider {
  border: none;
  height: 3px;
  background-color: #6a9678;
  margin: 0 auto 4px auto;
  max-width: 700px;
}

.footer-nav-title {
  text-align: center;
  font-size: 0.9em;
  margin-bottom: 2px;
}

.footer-title-es {
  color: #494242;
  font-weight: bold;
}

.footer-title-en {
  color: #036118;
  font-weight: bold;
}

.footer-breadcrumbs {
  max-width: 820px;
  margin: 0 auto 2px auto;
}

.footer-links {
  text-align: center;
  padding: 2px 0;
  font-size: 0.95em;
  line-height: 1.3;
}

.footer-link {
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.footer-link:hover {
  background: rgba(106, 150, 120, 0.25);
  text-decoration: underline;
}

/* Spanish text - brown color */
.footer-link .es {
  color: #494242;
}

/* English text - green color */
.footer-link .en {
  color: #036118;
}

/* Language separator (|) */
.footer-sep-lang {
  color: #888;
  margin: 0 2px;
}

/* Section separator (•) */
.footer-sep-dot {
  color: #6a9678;
  margin: 0 10px;
  font-weight: bold;
}

.footer-copyright {
  text-align: center;
  font-size: 0.95em;
  color: #333;
  font-weight: 500;
  padding: 4px 0;
  margin-top: 2px;
  border-top: 1px solid rgba(106, 150, 120, 0.4);
}

/* ========================================
   FLOATING BACK TO TOP BUTTON
   ======================================== */

.floating-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4CAF50, #2E7D32);
  color: #fff;
  text-align: center;
  line-height: 54px;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-back-to-top:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Responsive adjustments for floating button */
@media (max-width: 768px) {
  .floating-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
  }
}

