/* GLOBALS */
/* ==================================================================== */
/*  Main Layout

With this setup, your footer will always stick to the bottom 
      of the page, even if the content above it is not enough to fill 
      the viewport height. */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

p {
  font-size: 14pt;
}

#maincontent {
  flex: 1;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

#footer-placeholder {
  background: #00264c;
}

.content {
  flex: 1 0 auto;
  padding: 20px; /* Adjust padding as needed */
}
/* end main*/

/* Fonts */

.cairo-title,
.title-font {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

.magra-regular,
.heading-font,
p {
  font-family: "Magra", sans-serif;
  font-weight: 400;
  font-style: normal;
}
/* end fonts */

/* variables */

/* variables */

/* RESPONSIVE */
/* ==================================================================== */

/* // X-Small devices (portrait phones, less than 576px) */

@media (min-width: 372px) {
  /* Headings, Jumbotron */

  .title-font {
    font-size: 1.8rem !important;
  }

  h1.heading {
    font-size: 1.8rem;
  }

  h2.heading-font {
    font-size: 2rem;
  }

  p.heading {
    margin-bottom: 0rem;
    padding-bottom: 0rem;
  }

  #navWrapper {
    background-color: #3c3827;
  }

  .nav-link {
    font-size: 12pt;
  }

  .subNav {
    background-color: #ccbcad;
    width: 100%;
    text-align: center;
    font-size: 17pt;
  }

  /* #jumbotronWrapper img {
    display: none;
 } */

  img,
  svg {
    vertical-align: middle;
  }
  /* end headings */

  /* Search Cards (home page) */

  .searchbox {
    margin-top: -450px;
  }

  .searchbox div a {
    background-color: white;
    opacity: 75%;
    transition: all 0.2s ease-in;
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.4);
  }

  /* BUG FIX ON SHAKING SCREEN Index ***********************************************************************/
  /* Fix the card height to avoid layout shifts */
  .searchbox div a.card {
    min-height: 330px; /* Adjust according to the current card height */
  }

  /* Set a fixed height for card titles to avoid changing size on hover */
  .searchbox div a.card h1 {
    min-height: 60px; /* Adjust according to your layout */
    transition: font-size 0.2s ease-in;
  }

  /* Ensure the border width stays the same to avoid layout shifts */
  .searchbox div a {
    border: 1px solid transparent;
  }

  .searchbox div a:hover,
  searchbox div a:focus {
    border: 1px solid #88726b;
  }
  /*********************************************************************** */
  .searchbox div a.card .bi::before,
  [class*=" bi-"]::before,
  [class^="bi-"]::before {
    font-size: 5rem;
    padding-bottom: 2rem;
    transition: all 0.3s ease-in;
  }

  .searchbox div a h1 {
    transition: all 0.3s ease-in;
  }

  .searchbox div a.card:hover h1 {
    font-size: 2.6rem;
    transition: all 0.2s ease-in;
  }

  .searchbox div a.card:hover .bi::before,
  [class*=" bi-"]::before,
  [class^="bi-"]::before {
    font-size: 5.4rem;
    padding-bottom: 1.5rem;
    transition: all 0.2s ease-in;
  }

  .searchbox div a:hover,
  searchbox div a:focus {
    opacity: 93% !important;
    background: #ccbcad;
    background: linear-gradient(0deg, #bea392 0%, #ccbcad 20%, #cfc1b6 90%);
    border: 1px solid #88726b;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in;
  }

  .searchbox div a:hover i,
  searchbox div a:focus i {
    color: #67544d;
  }
  .searchbox div a:hover h1,
  searchbox div a:focus h1 {
    color: #5c4943;
  }
  .card-body {
    overflow-y: visible;
    height: 150px;
  }
  .card-text {
    /* white-space-collapse: preserve-breaks; */
    text-wrap: wrap;
    overflow: visible;
    overflow-wrap: normal;
  }

  .searchCardIcon {
    color: #1f2937;
  }

  .card:hover {
    outline: 2px solid #3c3827;
  }

  .card-img-top {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px; /* Fixed height for the image container */
  }

  .card-img-top > img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 0em;
    border: 1px solid #dee2e6;
  }
  /* .card-body {
    height: 150px; /* Set the height you prefer * /
    overflow-y: auto; /* Add vertical scrollbar if content overflows * /
  }
  
  .card-text {
    white-space: nowrap; /* Prevent text from wrapping * /
    overflow: hidden; /* Hide overflowing text * /
    text-overflow: ellipsis; /* Add ellipsis to overflowed text * /
  } */

  .icon-space {
    margin-top: 5px;
    margin-right: 6px;
  }

  i.icon-space::before {
    font-size: 2.5em;
    display: inline;
  }

  /* end cards */

  /*  main content details */
  .summary {
    font-size: 14pt;
    padding: 2rem;
    line-height: 1.3 rem;
    z-index: 2;
    position: relative;
  }

  div.partners {
    margin-bottom: 0.5rem;
  }

  .partners h2 {
    color: #67544d;
    padding-left: 10px;
  }

  .partner-items div {
    margin: 0.5rem;
  }

  .tmp-container hr {
    margin-top: 0px;
    margin: 0rem;
  }

  .postscript {
    padding: 2px;
    font-size: 0.85rem;
    color: #4d4c4c;
    font-style: italic;
  }

  .main-about {
    background-image: url("/images/HoustonFlooding2.jpg");
    width: 100%;
  }

  /* end content */

  /* search pages */
  i.search-title::before {
    display: inline !important;
    font-size: 2em;
  }

  .btn-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: #3c3827;
    --bs-btn-border-color: #3c3827;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #67544d;
    --bs-btn-hover-border-color: #67544d;
    --bs-btn-focus-shadow-rgb: 31, 41, 55;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #67544d;
    --bs-btn-active-border-color: #67544d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #3c3827;
    --bs-btn-disabled-border-color: #3c3827;
  }

  .btn-navy {
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
  }

  .btn-navy:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
  }

  .btn-navy:focus,
  .btn-navy.focus {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
  }

  .btn-navy:active,
  .btn-navy.active,
  .show > .btn-navy.dropdown-toggle {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
  }

  .btn-navy:active:focus,
  .btn-navy.active:focus,
  .show > .btn-navy.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
  }

  .btn-navy:disabled,
  .btn-navy.disabled {
    color: var(--bs-btn-disabled-color);
    background-color: var(--bs-btn-disabled-bg);
    border-color: var(--bs-btn-disabled-border-color);
  }

  .btn-outline-navy {
    --bs-btn-color: #3c3827;
    --bs-btn-border-color: #3c3827;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3c3827;
    --bs-btn-hover-border-color: #3c3827;
    --bs-btn-focus-shadow-rgb: 31, 41, 55;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3c3827;
    --bs-btn-active-border-color: #3c3827;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #3c3827;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #3c3827;
  }

  .btn-outline-navy {
    color: var(--bs-btn-color);
    border-color: var(--bs-btn-border-color);
  }

  .btn-outline-navy:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
  }

  .btn-outline-navy:focus,
  .btn-outline-navy.focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
  }

  .btn-outline-navy:active,
  .btn-outline-navy.active,
  .show > .btn-outline-navy.dropdown-toggle {
    color: var(--bs-btn-active-color);
    background-color: var(--bs-btn-active-bg);
    border-color: var(--bs-btn-active-border-color);
  }

  .btn-outline-navy:active:focus,
  .btn-outline-navy.active:focus,
  .show > .btn-outline-navy.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
  }

  .btn-outline-navy:disabled,
  .btn-outline-navy.disabled {
    color: var(--bs-btn-disabled-color);
    background-color: var(--bs-btn-disabled-bg);
    border-color: var(--bs-btn-disabled-border-color);
  }

  .filteredProductCountAlert {
    background: #ccbcad;
    border: #3c3827;
  }

  .form-check-input:focus {
    border-color: #3c3827;
    outline: 0;
    box-shadow: 0 0 0 0.25rem #ccbcad;
  }

  .form-check-input:checked {
    background-color: #67544d;
    border-color: #3c3827;
  }

  .accordion-button:not(.collapsed) {
    color: #5c4943;
    background-color: #ccbcad;
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 #ccbcad;
  }

  .filteredProductsListItem {
    width: 18rem;
  }
  .filteredProductsListItemCard {
    width: 18rem;
  }

  .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem #3c3827; /* Change the color to your desired one */
    outline: none;
  }

  /* end search */

  /* about pages */
  .about-background {
    display: none;
  }
  .postscript-about {
    display: none;
  }

  /* end about */
}
.pop-over-btn {
  background-color: #f3e9e0 !important;
  color: #806a56 !important;
  clip-path: circle(10px) !important;
  font-size: 0.75rem !important;
}

.pop-over-btn:hover {
  background-color: #67544d !important;
  color: white !important;
}
.popover.custom-zoom-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  font-size: 0.85rem;
}
.popover.custom-zoom-warning .popover-header {
  background-color: #ffeeba;
  color: #856404;
  font-weight: bold;
}

/* // Small devices (landscape phones, 576px and up) */

@media (min-width: 576px) {
  #jumbotronWrapper img {
    display: inline;
  }

  .searchbox {
    margin-top: -450px;
  }
  .subNav {
    font-size: 18pt;
  }
}

/* // Medium devices (tablets, 768px and up) */

@media (min-width: 768px) {
  .about-background {
    display: inline;
    width: 100%;
    height: calc(100vh - 500px);
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    margin-top: -80px;
  }
  .postscript-about {
    display: block;
  }
}

/* // Large devices (desktops, 992px and up) */

@media (min-width: 992px) {
  .about-background {
    margin-top: -100px;
    height: calc(100vh - 460px);
  }
}

/* // X-Large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
  .subNav {
    font-size: 20pt;
  }

  .about-background {
    height: calc(100vh - 400px);
  }
}

/* // XX-Large devices (larger desktops, 1400px and up) */

@media (min-width: 1400px) {
  .searchbox {
    margin-top: -500px;
  }

  .about-background {
    margin-top: -120px;
    height: calc(100vh - 360px);
  }
}

#navLinks a:focus,
#navLinks button:focus {
  outline: none; /* Remove the default blue outline */
  box-shadow: 0 0 0 3px #ccbcad; /* Add custom focus outline */
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

.fallback-image {
  width: auto !important;
  border-color: transparent !important;
}
.form-check-input {
  border-color: #3c3827 !important;
  border-width: 1.5px !important;
}

.product-range-display {
  white-space: nowrap; /* Prevents the content from wrapping to the next line */
}

.skip-link-holder {
  margin-bottom: 1pc;
}

#legend {
  width: 100%;
  max-width: 100%;

  white-space: normal;
  max-height: none;
  overflow: visible;
}

#left_top_tabs .nav-tabs .nav-link {
  color: #3c3827 !important;
}

#left_top_tabs .nav-tabs .nav-link.active {
  background-color: #0d6efd; /* Active tab background */
  color: white !important; /* Active tab text color */
}

/* Make Leaflet tooltip itself larger & more legible */
.leaflet-tooltip {
  max-width: none; /* let inner content control width */
  font-size: 1.05rem; /* ≈17px on a 16px base */
  line-height: 1.45;
  padding: 0.75rem 0.9rem; /* bigger touch/reading target */
  background: #fff;
  color: #111;
  border: 2px solid #222; /* higher contrast edge */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Your content block inside the tooltip */
.tt {
  max-width: 480px; /* was 280px */
  line-height: 1.45;
}

/* Title bigger with a bit more spacing */
.tt-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Rows spaced out just a touch */
.tt-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Labels wider + bolder for readability */
.tt-label {
  font-weight: 700;
  min-width: 7rem; /* was 5.5rem */
}

/* Meta text slightly larger than before */
.tt-meta {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* On small screens, allow tooltip to use most of viewport width */
@media (max-width: 576px) {
  .leaflet-tooltip .tt {
    max-width: 90vw;
  }
}

.nav-link.nav-custom.active {
  color: red !important;
}
#left .nav-link.active {
  color: var(----light) !important;
}

.switch-title {
  padding: 0.5pc;
  flex-grow: 1;
  min-width: 0;
}
/* only affect our layer list */
.layer-list .list-group-item:not(.checked):hover {
  background: #f5f7fa !important;
}

.layer-note {
  font-size: 14px;
}
/* --- TIFF disclaimer modal theme --- */

/* Header color stays #3c3827 */
:root {
  --tiff-header: #3c3827;

  /* Button base #67544d + related shades */
  --tiff-btn-500: #8a756c; /* disabled */
  --tiff-btn-600: #7a665d;
  --tiff-btn-700: #67544d; /* base */
  --tiff-btn-800: #57453f; /* hover */
  --tiff-btn-900: #463632; /* active */
}

/* Header */
.modal-header.tiff-header {
  background-color: var(--tiff-header);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.modal-header.tiff-header .modal-title {
  color: #fff;
}
.modal-header.tiff-header .btn-close {
  filter: invert(1) contrast(200%);
  opacity: 0.9;
}
.modal-header.tiff-header .btn-close:hover {
  opacity: 1;
}

/* Primary action button */
.btn-tiff {
  color: #fff;
  background-color: var(--tiff-btn-700);
  border-color: var(--tiff-btn-700);
}
.btn-tiff:hover {
  color: #fff;
  background-color: var(--tiff-btn-800);
  border-color: var(--tiff-btn-800);
}
.btn-tiff:active,
.btn-tiff.active,
.show > .btn-tiff.dropdown-toggle {
  color: #fff;
  background-color: var(--tiff-btn-900);
  border-color: var(--tiff-btn-900);
}
.btn-tiff:disabled,
.btn-tiff.disabled {
  color: #f1efec;
  background-color: var(--tiff-btn-500);
  border-color: var(--tiff-btn-500);
  opacity: 0.65;
}
.btn-tiff:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(103, 84, 77, 0.35); /* accessible focus ring */
}

/* Optional: darker backdrop */
.modal-backdrop.show {
  background: #000;
  opacity: 0.8;
}
