* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e0f2ff;
  /* light blue background */
  padding: 30px;
}

#headline-top, #portNav-link {
  font-size: 13px;
  margin-bottom: 10px;
}

#headline-list {
  font-size: 11px;
}

#portNav-link {
  color: #00432a;
}

.bannerImg {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

th,
td {
  padding: 2.5px;
  text-align: left;
  font-size: 12.5px;
  width: auto;
  font-weight: bolder;
}

button {
  padding: 6px 12px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bolder;
}

button:hover {
  background: #0056b3;
  color: white;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 10px;
  /* adds space on small screens */
  box-sizing: border-box;
}

.sleek-popup {
  background: #e6f4ff; /* soft light blue */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sleek-popup iframe {
  flex-grow: 1;
  border: none;
  width: 100%;
  height: 100%;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #004b8d;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}
/* must separate from other findlowerrate button to not break page */
#findLowerRateBtn {
  width: 100%;
}
.col-0,
.col-6 {
  display: none;
}

.col-8 {
  color: #1eb71e;
}

.col-2,
.col-5 {
  background-color: #00000087;
  color: white;
}

.col-9 {
  background-color: #ffff003d;
}

.col-1,
.col-3,
.col-4,
.col-6,
.col-7 {
  background-color: #f0f8ffab
}

.col-3,
.col-4, a {
  color: #007BFF
}

a {
  cursor: pointer;
}

.col-2, .col-9 {
  text-align: center;
}

#dealTable tbody tr:nth-child(odd) {
  background-color: #f0f8ff;
}

#dealTable tbody tr:nth-child(even) {
  background-color: #f9fcff;
}

#dealTable tbody tr:nth-child(odd) .col-1,
#dealTable tbody tr:nth-child(odd) .col-3,
#dealTable tbody tr:nth-child(odd) .col-4,
#dealTable tbody tr:nth-child(odd) .col-6,
#dealTable tbody tr:nth-child(odd) .col-7 {
  background-color: rgba(240, 248, 255, 0.7);
}

#dealTable tbody tr:nth-child(even) .col-1,
#dealTable tbody tr:nth-child(even) .col-3,
#dealTable tbody tr:nth-child(even) .col-4,
#dealTable tbody tr:nth-child(even) .col-6,
#dealTable tbody tr:nth-child(even) .col-7 {
  background-color: rgba(255, 255, 255, 0.9);
}
#sortSearchTop input {
    padding: 6px;
    max-width: 200px;
    font-size: 15px;
  }
  #sortSearchTop select {
    padding: 6px;
    max-width: 200px;
    font-size: 13px;
  }
#weather-popup {
  position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(186, 225, 255);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 30px;
    padding-top: 11px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    display: block;
    font-family: "Segoe UI", sans-serif;
    color: rgb(51, 51, 51);
    text-align: center;
    box-sizing: border-box;
}
#weatherCloseBtn {
  position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgb(208, 234, 255);
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 6px;
}

.weatherFindDeal {
    margin-top: 9px;
    padding: 10px 20px;
    background-color: #5eb8ff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 50%;
}

#weatherCurrentPrice {
      margin-top: 6px;
    font-size: 16px;
    color: #666;
}


/* Media Query */
@media screen and (max-width: 767px) {
  body {
    padding: 0px;
  }

  .bannerImg {
    height: 27px;
    border-radius: 0;
    margin-bottom: 6px;
  }

  #headline-top, #portNav-link {
  font-size: 7px;
  margin-bottom: 8px;
  text-align: center;
}

#headline-list {
  font-size: 5px;
  width: 94%;
  margin: auto;
}

  table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* allows auto-sizing */
  }

  td,
  th {
    overflow-wrap: break-word;
    font-size: 5px;
    padding: 0px 0px 0px 1px;
  }

  #findLowerRateBtn {
    font-size: 5px;
    padding: 3px 2px;
    border-radius: 0;
  }

  #sortSearchTop {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
  }

  #sortSearchTop input {
    padding: 5px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 4px;
    margin-right: 10px;
    width: 65%;
    font-size: 8px;
  }

  #sortSearchTop select {
    padding: 5px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 4px;
    background-color: beige;
    font-size: 8px;
  }
  #weather-popup {
    width: 90%;
    max-height: 74vh;
  }
  #weatherCurrentPrice {
    font-size: 12px;
}
}

/* Bottom Sticky Bar */
#stickyBar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #005c3a;
  color: #fff;
  text-align: center;
  padding: 4px;
  font-size: 10px;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.6s ease;
}

#stickyBar.hidden {
  opacity: 0;
  pointer-events: none;
}


/* Slide-Up Panel */
/* Default for mobile/tablet (100% width) */
#shopPanel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #002f4b;
  color: #fff;
  z-index: 9999;
  overflow-y: scroll;
  transition: bottom 0.5s ease-in-out;
}

#shopPanel.show {
  bottom: 0;
}

.shopHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #001a2d;
  border-bottom: 1px solid #e6b800;
  font-size: 18px;
}

.closeBtn {
  background: none;
  border: none;
  color: #e6b800;
  font-size: 24px;
  cursor: pointer;
}

.shopContent {
  display: flex;
  flex-wrap: wrap;
  padding: 16px;
}

.product {
  flex: 1 1 45%;
  margin: 8px;
  background-color: #003d5c;
 /* border: 1px solid #e6b800; */
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.product img {
  max-width: 100%;
  border-radius: 4px;
}

.product a {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #e6b800;
  color: #002f4b;
  text-decoration: none;
  border-radius: 4px;
}
/* Desktop / Wide Screen Overrides */
/* Desktop / Large Screens */
@media screen and (min-width: 768px) {
  #stickyBar {
  padding: 12px;
  font-size: 16px;
  width: auto;
}
  #shopPanel {
    left: auto;
    right: 0;
    width: 30%;
    /* Same slide-up animation from bottom */
    bottom: -100%;
    height: 100%;
  }

  #shopPanel.show {
    bottom: 0;
  }
}