/* Set the full height structure */
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Main content area to flex and grow to occupy space */
main.container.content {
  flex: 1;
  padding-bottom: 20px; /* Optional space for breathing room */
}

/* Footer styling */
footer {
  margin: 0;
  padding: 10px 0;
  background-color: #fff; /* Set a background if desired */
}

/* body {
    font-family: 'Barlow Condensed', sans-serif;
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    padding-top: 100px;
    padding-bottom: 60px;
} */

body {
  font-family: "Open Sans", sans-serif;
  background-color: rgba(0, 0, 0, 0);
  padding-top: 133px; /* top-bar (~18px) + margin-top (5px) + banner (110px) */
  padding-bottom: 110px;
}

/* Main content should take remaining height */
/* main {
    min-height: calc(100vh - 160px); 
} */

/* Header and Footer Styling */
header,
footer {
  background-color: #fff;
  color: #000;
}

/* Intro Text Styling */
.intro-text {
  font-size: 16px;
  padding: 0 15px;
  text-align: center;
}

/* Header H1 */
h1 {
  font-weight: 700;
  font-size: 2.5em;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.1;
  box-sizing: border-box;
  display: block;
}

/* Logo Image */
.logo-img {
  max-width: 300px;
}

/* Form Field Styling */
.form-control {
  border-radius: 10px;
}

.form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: #e21933;
}

/* Map Image Styling */
.map-image {
  max-width: 100%;
  height: auto;
}

/* Form Styling */
.search-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* Label Styling */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group.text-center {
  align-items: center;
  justify-content: center;
}


.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 2px solid #000; 
  padding-bottom: 20px;
} */

.col {
  flex: 1 1 48%;
  box-sizing: border-box;
}

.col img {
  width: 100%;
  height: auto;
  max-width: 450px; /* Keeps image smaller */
  display: block;
  margin: 0 auto;
}

.text-content {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    text-align: center;
  }

  .col {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .col img {
    max-width: 90%;
  }
}

@media (min-width: 768px) {
  .search-form {
    max-width: 700px;
  }

  .form-group {
    flex-direction: row;
    align-items: center;
  }

  .form-group label {
    min-width: 120px;
    margin-bottom: 0;
    margin-right: 15px;
    text-align: right;
  }

  .form-group .form-control {
    flex: 1;
  }

  .form-group.text-center {
    justify-content: center;
  }
}

/* Button Styling */
.btn-custom {
  background-color: #e21933;
  border-color: #e21933;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
  padding: 8px 24px;
}

.btn-custom:hover {
  background-color: #c0162a;
  border-color: #c0162a;
  color: #fff;
}

/* Shadows for fixed header and footer */
header.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.umd-top-bar {
  background-color: #e21933; /* Maryland Red */
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Main banner with red/black diagonal */
.umd-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(50deg, #e21933 49.9%, #000000 50.1%);
  color: #fff;
  height: 110px;
  padding: 0 40px;
  margin-top: 5px;
}

/* Left side */
.umd-left {
  display: flex;
  align-items: center;
}

.umd-logo {
  height: 70px;
  margin-right: 15px;
}

.umd-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

/* Right side */
.umd-right {
  text-align: right;
}

.umd-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

footer.fixed-bottom {
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Media Query for iPhone SE and smaller screens */
@media (max-width: 375px) {
  header,
  footer {
    padding: 8px 0;
  }

  main.content {
    margin-top: 80px; /* Adjust for smaller header */
    margin-bottom: 50px; /* Adjust for smaller footer */
  }

  .map-image {
    /* margin-bottom: 80px;  */
  }

  .umd-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
  }
}

/* Popup styling */
.results-popup {
  /* margin-top: 20px; */
  display: none; /* Initially hidden */
  /* background-color: rgba(255, 255, 255, 0.95); */
  /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
  /* border-radius: 8px; */
  /* padding: 20px; */
  /* width: 100%; */
  /* max-width: 800px; */
  /* margin: 0 auto; */
}

.popup-content {
  padding: 10px;
}

.hidden {
  display: none;
}

/* Popup Result styling Start */

.p-screen {
  position: relative;
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95); /* Subtle background for popup */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for modern look */
  max-width: 900px; /* Limit the width for better readability */
  margin: 20px auto; /* Center the popup */
}

.p-results {
  max-height: 400px; /* Limit the height of the results area */
  overflow-y: auto; /* Enable scrolling for long results */
  display: block;
}

/* Style the table */
.p-results table {
  width: 100%;
  border-collapse: collapse; /* Remove space between table cells */
}

.p-results th,
.p-results td {
  padding: 10px; /* Add padding inside table cells */
  border-bottom: 1px solid #ddd; /* Subtle border between rows */
}

/* White background for table head */
.p-results th {
  background-color: #fff; /* White background for table head */
  color: #000; /* Black text for headers */
  text-align: center; /* Center the header text */
  font-weight: bold;
  font-size: 14px;
}

/* Black and White theme for rows */
.p-results tr:nth-child(odd) {
  background-color: #000; /* Black background for odd rows */
  color: #fff; /* White text for contrast */
}

.p-results tr:nth-child(even) {
  background-color: #fff; /* White background for even rows */
  color: #000; /* Black text for contrast */
}

.p-results td {
  text-align: center; /* Left-align data cells by default */
  font-size: 13px;
}

.p-results td.middle {
  text-align: center; /* Center specific columns */
}

.p-results td.narrow {
  text-align: center;
  width: 50px; /* Limit the width of narrow columns */
}

/* Popup Result styling End */

/* Ensure eye icon color matches row text */
.eye-icon i {
  color: inherit; /* Inherits the color of the parent (row text color) */
  transition: color 0.2s ease-in-out; /* Optional: Smooth color transition on hover */
}

.eye-icon i:hover {
  color: darken(inherit, 10%); /* Optional: Slightly darken on hover */
}

/*
  Responsive media queries for common device widths
  Ordered from larger to smaller max-width so smaller devices override larger ones
*/

@media (max-width: 1200px) {
  body {
    padding-top: 123px; /* top-bar (18px) + margin (5px) + banner (100px) */
    padding-bottom: 100px;
  }
  .umd-banner {
    height: 100px;
    padding: 0 30px;
  }
  .umd-logo {
    height: 64px;
  }
  .umd-text {
    font-size: 20px;
  }
  .umd-title {
    font-size: 24px;
  }
  .logo-img {
    max-width: 280px;
  }
  h1 {
    font-size: 2.3em;
  }
  .p-results {
    max-height: 380px;
  }
}

@media (max-width: 1024px) {
  body {
    padding-top: 113px; /* top-bar (18px) + margin (5px) + banner (90px) */
    padding-bottom: 96px;
  }
  .umd-banner {
    height: 90px;
    padding: 0 28px;
  }
  .umd-logo {
    height: 58px;
  }
  .umd-text {
    font-size: 19px;
  }
  .umd-title {
    font-size: 22px;
  }
  .logo-img {
    max-width: 260px;
  }
  h1 {
    font-size: 2.2em;
  }
  .p-results {
    max-height: 360px;
  }
  .p-results th {
    font-size: 13px;
  }
  .p-results td {
    font-size: 12.5px;
  }
}

@media (max-width: 912px) {
  body {
    padding-top: 109px; /* top-bar (18px) + margin (5px) + banner (86px) */
    padding-bottom: 92px;
  }
  .umd-banner {
    height: 86px;
    padding: 0 24px;
  }
  .umd-logo {
    height: 54px;
  }
  .umd-text {
    font-size: 18px;
  }
  .umd-title {
    font-size: 20px;
  }
  .logo-img {
    max-width: 240px;
  }
  h1 {
    font-size: 2.1em;
  }
}

@media (max-width: 820px) {
  body {
    padding-top: 105px; /* top-bar (18px) + margin (5px) + banner (82px) */
    padding-bottom: 90px;
  }
  .umd-banner {
    height: 82px;
    padding: 0 22px;
  }
  .umd-logo {
    height: 50px;
  }
  .umd-text {
    font-size: 17px;
  }
  .umd-title {
    font-size: 18px;
  }
  .logo-img {
    max-width: 220px;
  }
  h1 {
    font-size: 2em;
  }
  .p-results {
    max-height: 340px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 101px; /* top-bar (18px) + margin (5px) + banner (78px) */
    padding-bottom: 86px;
  }
  .umd-banner {
    height: 78px;
    padding: 0 20px;
  }
  .umd-logo {
    height: 48px;
  }
  .umd-text {
    font-size: 16px;
  }
  .umd-title {
    font-size: 17px;
  }
  .logo-img {
    max-width: 210px;
  }
  .intro-text {
    font-size: 15px;
  }
  .p-results th {
    font-size: 12.5px;
  }
  .p-results td {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 97px; /* top-bar (18px) + margin (5px) + banner (74px) */
    padding-bottom: 84px;
  }
  .umd-banner {
    height: 74px;
    padding: 0 18px;
  }
  .umd-logo {
    height: 46px;
  }
  .umd-text {
    font-size: 15px;
  }
  .umd-title {
    font-size: 16px;
  }
  .logo-img {
    max-width: 200px;
  }
  h1 {
    font-size: 1.9em;
  }
  .p-results {
    max-height: 320px;
  }
  .p-results td.narrow {
    width: 48px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 93px; /* top-bar (18px) + margin (5px) + banner (70px) */
    padding-bottom: 80px;
  }
  .umd-banner {
    height: 70px;
    padding: 0 16px;
  }
  .umd-logo {
    height: 44px;
  }
  .umd-text {
    font-size: 15px;
  }
  .umd-title {
    font-size: 15px;
  }
  .logo-img {
    max-width: 190px;
  }
  .p-results th {
    font-size: 12px;
  }
  .p-results td {
    font-size: 11.5px;
  }
  .p-results td.narrow {
    width: 46px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 89px; /* top-bar (18px) + margin (5px) + banner (66px) */
    padding-bottom: 76px;
  }
  .umd-banner {
    height: 66px;
    padding: 0 14px;
  }
  .umd-logo {
    height: 42px;
  }
  .umd-text {
    font-size: 14px;
  }
  .umd-title {
    font-size: 14px;
  }
  .logo-img {
    max-width: 180px;
  }
  h1 {
    font-size: 1.8em;
  }
  .map-image {
    /* margin-bottom: 85px; */
  }
  .p-results td.narrow {
    width: 44px;
  }
}

@media (max-width: 414px) {
  body {
    padding-top: 85px; /* top-bar (18px) + margin (5px) + banner (62px) */
    padding-bottom: 72px;
  }
  .umd-banner {
    height: 62px;
    padding: 0 12px;
  }
  .umd-logo {
    height: 38px;
  }
  .umd-text {
    font-size: 13px;
  }
  .umd-title {
    font-size: 11px;
  }
  .logo-img {
    max-width: 170px;
  }
  h1 {
    font-size: 1.7em;
  }
}

@media (max-width: 360px) {
  body {
    padding-top: 81px; /* top-bar (18px) + margin (5px) + banner (58px) */
    padding-bottom: 68px;
  }
  .umd-banner {
    height: 58px;
    padding: 0 10px;
  }
  .umd-logo {
    height: 38px;
  }
  .umd-text {
    font-size: 12px;
  }
  .umd-title {
    font-size: 12px;
  }
  .logo-img {
    max-width: 160px;
  }
  .p-results td {
    font-size: 11px;
  }
  .p-results td.narrow {
    width: 42px;
  }
}

@media (max-width: 320px) {
  body {
    padding-top: 77px; /* top-bar (18px) + margin (5px) + banner (54px) */
    padding-bottom: 64px;
  }
  .umd-banner {
    height: 54px;
    padding: 0 8px;
  }
  .umd-logo {
    height: 36px;
  }
  .umd-text {
    font-size: 12px;
  }
  .umd-title {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .logo-img {
    max-width: 150px;
  }
  h1 {
    font-size: 1.6em;
  }
  .map-image {
    /* margin-bottom: 95px; */
  }
}
