@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");
/*CSS is honestly plain english you can understand all of this extremely easily*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serifs;
  min-height: 100vh;
  background-color: #1b1b1b;
  padding-bottom: 60px;

  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;

  color: #fff;
  background:
    fixed linear-gradient(#2b2b2b, #2b2b2b 6px, transparent 6px, transparent),
    fixed linear-gradient(transparent, #050505 70%),
    fixed
      repeating-linear-gradient(
        #2b2b2b,
        #2b2b2b 1px,
        transparent 1px,
        transparent 40px
      ),
    scroll
      repeating-linear-gradient(
        to right,
        #2b2b2b,
        #2b2b2b 1px,
        transparent 1px,
        transparent 40px
      )
      #070707;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 194, 255, 0.08), transparent 22%),
    radial-gradient(circle at 75% 45%, rgba(251, 227, 49, 0.06), transparent 20%);
  animation: backgroundDrift 12s ease-in-out infinite alternate;
}

html.light body {
  color: #1a1a2e;
  background:
    fixed linear-gradient(#e8d5a3, #e8d5a3 6px, transparent 6px, transparent),
    fixed linear-gradient(transparent, #fdf3e3 70%),
    fixed repeating-linear-gradient(
      #e8d5a3,
      #e8d5a3 1px,
      transparent 1px,
      transparent 40px
    ),
    scroll repeating-linear-gradient(
      to right,
      #e8d5a3,
      #e8d5a3 1px,
      transparent 1px,
      transparent 40px
    )
    #fef9f0;
}

html.light body::before {
  background:
      radial-gradient(circle at 20% 30%, rgba(0, 75, 73, 0.06), transparent 22%),
      radial-gradient(circle at 75% 45%, rgba(0, 75, 73, 0.04), transparent 20%);
}

@keyframes backgroundDrift {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  100% {
    transform: translate(20px, -15px) scale(1.05);
  }
}

nav {
  width: 100%;
  padding: 1.25rem 5%;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  margin-bottom: 2rem;

  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  z-index: 999;
}

.flash-messages {
  width: min(92%, 760px);
  margin: 0 auto 1.25rem;
}

.flash-message {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  text-align: center;
}

.flash-success {
  color: #d8ffe6;
  background: rgba(26, 127, 55, 0.22);
  border-color: rgba(93, 214, 130, 0.5);
}

.flash-error {
  color: #ffe2e2;
  background: rgba(185, 28, 28, 0.24);
  border-color: rgba(248, 113, 113, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fbe331;
  letter-spacing: 1px;
}
.light .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #004B49;
  letter-spacing: 1px;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  color: #e2e8f0;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #fbe331;
  text-shadow: 0 0 10px #fbe331;
}

.nav-links li a.active {
  color: #fbe331; /*
                    Author: Andre Nunes da Silva
                    */
  text-shadow: 0 0 10px #fbe331;
}

/*
  Author: Andre Nunes da Silva
                    */

.nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fbe331;
  border-radius: 2px;
}
/* Author: David Liberatore */
/* LIGHT MODE OVERRIDES */
.light .nav-links li a {
  color: #1a202c;
}

.light .nav-links li a:hover {
  color: "red";
  text-shadow: none;
}

.light .nav-links li a.active {
  color: #004B49;
  text-shadow: none;
}

.light .nav-links li a.active::after {
  background: #004B49;
}

.span-container {
  position: relative;
  display: inline-block;
}

.drexel-pin {
  position: absolute;
  top: 15px;
  left: 100%;
  transform: translateX(-50%);
  background: #00c2ff;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  transform-origin: bottom center;
  white-space: nowrap;
  border-radius: 999px;
  z-index: 10;
}

.drexel-pin::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #00c2ff;
}

.hero {
  min-height: 80vh;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
}

.hero-text {
  text-align: left;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  filter: drop-shadow(10px 10px 20px rgba(222, 239, 153, 0.267));
}

h1 {
  color: #f4f4ed;
  font-size: 43px;
  font-weight: 500;
  margin-bottom: 20px;
}

p1 {
  color: #f4f4ed;
  font-size: 18px;
  line-height: 1.6;
  font-size: 18px;
}

p2 {
  color: #f4f4ed;
  font-size: 15px;
  line-height: 1.6;
  font-size: 18px;
}

.highlight {
  color: #80ced7;
  text-shadow: 0 3px 20px #80ced7;
}

.strike {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgb(252, 215, 56, 0.5);
  position: relative;

  text-shadow: 0 0px 2px rgb(252, 215, 56, 0.5);
}

.buttonc:active {
  transform: translateY(0);
}

.fill-btn {
  position: relative;
  overflow: hidden;

  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;

  background: transparent;
  color: #8fdce3;

  border: 1.5px solid #8fdce3;
  border-radius: 8px;

  cursor: pointer;
  box-shadow: 0 0px 20px rgb(82, 144, 182);
}

.fill-btn::before {
  content: "";
  position: absolute;
  inset: 0;

  background-color: #8fdce3;
  transform: scaleX(0);
  transform-origin: 50%;

  transition: transform 0.25s ease;
  z-index: 0;
}

.fill-btn:hover::before {
  transform: scaleX(1);
}

.fill-btn span,
.fill-btn {
  position: relative;
  z-index: 1;
}

.fill-btn:hover {
  color: #0b2a2c;
}

.wave {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
  text-shadow: 0 0px 10px rgb(255, 208, 0);
}

.hero-image {
  animation: shuffle 2s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes shuffle {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.underline_class {
  text-decoration-thickness: 2.5px;
  text-decoration-color: rgb(235, 227, 111, 0.6);
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.slider-box {
  position: absolute;
  bottom: 20px;
  right: 95px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #96B9EA;
  border-radius: 20px;
  width: 160px;
  padding: 8px 14px 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
  transition: right 0.5s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.light .slider-box {
  background: white;
  border: 1px solid #8cbaee;
  color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
#distance-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right,
    #96B9EA 0%, #96B9EA var(--slider-fill, 100%),
    rgba(255, 255, 255, 0.18) var(--slider-fill, 100%),
    rgba(255, 255, 255, 0.18) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.light .slider {
  background: linear-gradient(to right,
    #0f4d92 0%, #0f4d92 var(--slider-fill, 100%),
    rgba(0, 0, 0, 0.12) var(--slider-fill, 100%),
    rgba(0, 0, 0, 0.12) 100%);
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #96B9EA;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid #96B9EA;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.light .slider::-webkit-slider-thumb {
  background: white;
  border-color: #0f4d92;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.light .slider::-moz-range-thumb {
  background: white;
  border-color: #0f4d92;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.slider:hover::-webkit-slider-thumb,
.slider:active::-webkit-slider-thumb {
  transform: scale(1.2);
}
.slider:hover::-moz-range-thumb,
.slider:active::-moz-range-thumb {
  transform: scale(1.2);
}
#slider-box.shifted {
  right: 500px;
}

#light-mode-box {
  position: fixed;
  top: 14px;
  left: 210px;
  background: none;
  border: none;
  width: auto;
  box-shadow: none;
  padding: 0;
  z-index: 2000;
}

#light-mode-box.shifted {
  right: 405px;
}
#mode-swap {
  background-color: rgba(0, 0, 0, 0.9); 
  color: white;
  border: 1px solid #96B9EA;
  padding: 8px 8px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.light #mode-swap {
  background-color: white;
  color: rgba(0, 0, 0, 0.9);
}
#mode-swap:hover {
  transform: scale(1.05);
  background-color: rgb(255, 145, 145);
  border: 1px solid rgb(255, 88, 88);
}
#stop-button-menu {
  position: absolute;
  bottom: 100px; 
  left: 50%;
  transform: translateX(-50%);
  background: none; 
  border: none;
  width: auto;
  box-shadow: none;
  padding: 0;
  display: none; 
  z-index: 2000;
}
#stop-button-menu.seen {
  display: block;
}
#stop-button {
  background-color: rgba(0, 0, 0, 0.9); 
  color: white;
  border: 1px solid #96B9EA;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
#stop-button.seen {
  right: 0;
}
.light #stop-button {
  background-color: white;
  color: rgba(0, 0, 0, 0.9)
}

#stop-button:hover {
  transform: scale(1.05);
  background-color: rgb(255, 145, 145);
  border: 1px solid rgb(255, 88, 88);
}

#menu-panel {
  color: #2c2c2c; /* black */
  position: fixed; /* Panel stays in place when scrolling */
  top: 0;
  right: -400px; /* The panel is off screen when not called upon */
  width: 400px;
  height: 100%;
  /*
  The -20px gives it a slight shadow on the left side of the box
  The 10px says how blurry it is
  The shadow is black, and has a transparency of 80%
  */

  background-color: #fcfaf2;

  background-image:
  linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
  url(../images/paper.webp);
  background-size: cover;

  filter: contrast(105%) brightness(98%);

  opacity: 0;
  transform: scale(0.3) rotate(15deg);
  transform-origin: top right;
  
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%); 

  transition: 
    right 0.5s ease,
    transform 0.35s ease-out,
    clip-path 0.35s ease-out,
    opacity 0.3s ease;
    
  box-shadow: -10px 10px 30px rgba(0,0,0,0.1);

  box-shadow: -15px 0 30px rgba(0, 0, 0, 0.3);
  /*This allows teh element to appear on top of the other page*/
  z-index: 1000;
  overflow-y: auto; /* Allows scrolling */
  padding: 40px 30px;
  border-left: 1px solid rgba(0,0,0,0.05); 
  box-shadow: 
    -5px 0 15px rgba(0,0,0,0.1), 
    -15px 0 30px rgba(0,0,0,0.05);
}

#menu-content {
  mix-blend-mode: multiply; 
  opacity: 0.9; 
}

.menu-item {
  margin-bottom: 15px;
  position: relative;
}

.menu-item {
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: translateX(-5px) scale(1.02); 
}

.menu-item:hover {
    background-color: rgba(197, 197, 197, 0.2);
    transform: translateX(5px);
}

.menu-item:hover .item-name {
    background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 80%;
}

.menu-item:active {
    transform: scale(0.98) translateX(5px);
    background-color: rgba(171, 199, 201, 0.4);
}

.menu-item h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.menu-item h4::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted #aaa;
  margin: 0 10px;
  order: 2;
}

.menu-item .price {
  order: 3;
  font-weight: 700;
  color: #3d8221;
}

/* When the panel opens, it slides onto the right */
#menu-panel.open {
  right: 0;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

#menu-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 32%,
    rgba(0,0,0,0.05) 33%,
    transparent 34%,
    transparent 65%,
    rgba(0,0,0,0.05) 66%,
    transparent 67%
  );
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.menu-item {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
}

#menu-panel.open::after {
  opacity: 0.2; 
}

#menu-panel.open .menu-item {
  opacity: 1;
  transform: translateX(0);
}

.menu-click-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(61, 130, 33, 0.45);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  animation: menu-click-ripple 0.55s ease-out forwards;
  z-index: 1100;
}

@keyframes menu-click-ripple {
  to {
    transform: translate(-50%, -50%) scale(7);
    opacity: 0;
  }
}

#close-menu {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

#close-menu:hover {
  color: rgb(255, 86, 86);
  transform: translateY(-1px);
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h1,
.hero-text p1,
.hero-text p2,
.hero-image,
.about-us-img,
.team-member-img,
.team-container,
.team-section,
.routing-instructions,
.about-github,
.hero-text .hero-buttons {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-text h1 {
  animation-delay: 0.3s;
}

.about-us-img {
  animation-delay: 1s;
}

.hero-text p1 {
  animation-delay: 0.6s;
}

.hero-text p2 {
  animation-delay: 0.9s;
}

.hero-text .hero-buttons {
  animation-delay: 1.2s;
}

.hero-image {
  animation-delay: 1.6s;
}

.team-member-img {
  animation-delay: 1s;
}

.team-container {
  animation-delay: 0.4s;
}

.team-section {
  animation-delay: 0.4;
}

.about-github {
  animation-delay: 1s;
}

.team-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.team-section {
  text-align: center;
  padding: 80px 20px;
  width: 100%;
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.team-card:nth-child(1) {
  animation-delay: 0.2s;
}
.team-card:nth-child(2) {
  animation-delay: 0.4s;
}
.team-card:nth-child(3) {
  animation-delay: 0.6s;
}
.team-card:nth-child(4) {
  animation-delay: 0.8s;
}

.team-member-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #80ced7;
  margin-bottom: 15px;
  display: block;
}

#routing-instructions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  border: 1px solid #8cbaee;
  display: center;
  text-align: center;
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.light #routing-instructions {
  background: white;
  color: rgba(0, 0, 0, 0.8);
}

.leaflet-routing-container {
  display: none !important;
}

.pin-popup .leaflet-popup-content-wrapper {
    background: radial-gradient(#ffffff, #e3e3e3); 
    border-radius: 18px; 
    padding: 10px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.8); 
}

.pin-popup .leaflet-popup-tip {
    background: #f0f0f0; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.pin-popup .leaflet-popup-close-button {
    top: 8px; 
    right: 8px; 
    color: #999;
    font-size: 1.2rem;
    background: none;
    border: none;
}

.pin-popup .leaflet-popup-content {
    color: #333;
    margin: 15px 15px 10px 15px; 
    text-align: center; 
}

.pin-popup .status-info {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-bulb {
    height: 14px; 
    width: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: none;
    border: none;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(243, 95, 110, 0.7); 
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.status-bulb.open {
    background-color: #2ecc71; 
    animation: pulse-green 2s infinite;
}

.status-bulb.closed {
    background-color: rgb(243, 95, 110); 
    animation: pulse-red 2s infinite;
}

.pin-popup .hours-list {
    list-style: none; 
    padding: 0;
    margin: 5px 0 10px 0; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
}

.pin-popup .hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 0.95rem; 
    color: #555;
    border-bottom: 2px solid #d9d9d9;
}

.pin-popup .hours-list li .day-label {
    font-weight: 600;
    color: #373737;
    flex-shrink: 0; 
    margin-right: 10px; 
}

.pin-popup .hours-list li .open-time {
    color: #000000;
    text-align: right;
    font-variant-numeric: tabular-nums; 
}

.popup-button-row {
    display: flex;
    gap: 10px; 
    margin-top: 20px;
    justify-content: space-between;
}

.pin-popup .track-button {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 25px; 
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pin-popup .menu-button, 
.pin-popup .track-button {
    flex: 1;
    white-space: nowrap; 
}

.pin-popup button i {
    margin-right: 8px;
    font-size: 1rem;
}

.pin-popup .menu-button {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #333333;
    
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 25px; 
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
}

.pin-popup .menu-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.pin-popup .track-button {
    background: #53e2f1;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(145, 196, 250, 0.4); 
}

.pin-popup .track-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgb(159, 207, 255);
}
.pin-popup h3 {
  font-size: 1.3rem;
}

#receipt-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed rgba(0,0,0,0.1);
    text-align: right;
}

#basket-list {
    text-align: left;
    margin-bottom: 12px;
    max-height: 160px;
    overflow-y: auto;
    font-family: 'Manrope', sans-serif;
}

#basket-list:empty::before {
    content: "No items selected yet";
    display: block;
    color: rgba(0,0,0,0.4);
    font-style: italic;
    font-size: 0.85rem;
    padding: 4px 0;
}

.basket-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 2px;
    border-bottom: 1px dotted rgba(0,0,0,0.12);
    animation: basket-item-in 0.25s ease-out;
}

.basket-item:last-child {
    border-bottom: none;
}

.basket-item-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.basket-item-price {
    color: #3d8221;
    font-weight: 600;
    margin-left: 10px;
}

.basket-item-remove {
    background: none;
    border: none;
    color: rgba(0,0,0,0.35);
    font-size: 0.95rem;
    line-height: 1;
    margin-left: 8px;
    padding: 2px 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.basket-item-remove:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.12);
    transform: scale(1.1);
}

@keyframes basket-item-in {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

#grand-total {
    display: inline-block;
    font-weight: bold;
    font-size: 1.4rem;
    transition: transform 0.1s ease;
}

#clear-calc {
  background-color: rgba(171, 199, 201, 0.6); 
  border: none;
  color: #2c2c2c;
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%); 
  transition: 0.3s;
}

#clear-calc:hover {
  background-color: rgba(171, 199, 201, 1);
  letter-spacing: 1px;
}
/* Sidebar panel */
/* Author: Chat GPT "How to make a Pop-out Sidebar" 4/8/2026 */
#sidePanel {
  padding-top: 0px;
  position: fixed;
  top: 80px;
  left: 0;
  width: 270px;
  height: calc(100vh - 80px);

  background: #f4f7fb;         /* light blue-gray background instead of plain white */
  border-right: 3px solid #0f4d92;  /* Drexel blue accent border */
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);  /* subtle depth */

  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1100;

  display: flex;
  flex-direction: column;
}

/* Sidebar open state */
#sidePanel.open {
  transform: translateX(0);
}

/* Sidebar header */
#sidePanel h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #0f4d92, #1a6bbf);
  color: #ffffff;
  border-bottom: 2px solid #fbe331;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}


/* Sidebar headings */
#sidePanel h2,
#sidePanel h3 {
  color: #ffffff;
  font-weight: bold;
}

#sidePanel h3 {
  color: #0f4d92;              /* blue for subheadings inside the list */
}

/* Sidebar links */
#sidePanel a {
  color: #0f4d92;              /* Drexel blue for links */
  text-decoration: none;
  font-weight: 500;
}

/* Hover effect for sidebar links */
#sidePanel a:hover {
  color: #ffffff;
  background-color: #0f4d92;
  padding: 2px 6px;
  border-radius: 4px;
}

#truckList {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
}

#togglePanel {
  position: fixed;
  top: 90px;
  left: 15px;
  z-index: 1200;
  padding: 8px 14px;
  font-size: 1.2rem;
  cursor: pointer;
  background: #0f4d92;
  color: white;
  border: none;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, left 0.3s ease;
}

#togglePanel.shifted {
  left: 278px;
}

#sidebar-header.open {
  left: 278px;
}

#togglePanel:hover {
  background: #0a3a6e;
  color: #fbe331;
}

.light #togglePanel {
  background: #0f4d92;
  color: white;
}

#sidebar-header {
  position: fixed;
  top: 100px;
  left: 15px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: left 0.3s ease;
}

/* Individual truck buttons */
.truck-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(15, 77, 146, 0.15);
  transition: all 0.2s ease;
  color: #1a1a2e;
  font-weight: 500;
}

.truck-btn > span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Override popup-specific positioning when bookmark is inside a sidebar row */
.truck-btn .favorite-button {
    position: static;
    flex-shrink: 0;
}

.truck-btn:hover {
  background: #0f4d92;
  color: #fbe331;
  padding-left: 22px;   /* slides right on hover */
}


footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #fbe331;
    text-shadow: 0 0 10px #fbe331;
}

.features {
  background: transparent;
  border-top: 1px solid rgba(41, 41, 41, 0.25);
  padding: 120px 40px 100px;
  text-align: center;
  width: 100%;
}

.label {
  font-size: 13px;
  font-weight: 600;
  background-image: linear-gradient(90deg, #fbe331, #00c2ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.features-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.features-items {
  font-size: 14px;
  color: #555;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.card, .middle {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card.visible, .middle.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover, .middle:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.cards .card:nth-child(1) { transition-delay: 0s; }
.cards .card:nth-child(2),
.cards .middle            { transition-delay: 0.15s; }
.cards .card:nth-child(3) { transition-delay: 0.3s; }

.nearby-trucks-card,
.location-card,
.favorite-card,
.filter-card,
.search-card,
.reviews-card {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 0.3s ease;
}

.nearby-trucks-card { background: rgba(0, 190, 150, 0.12); }
.location-card { background: rgba(245, 200, 66, 0.12); }
.reviews-card { background: rgba(120, 100, 220, 0.12); }
.favorite-card { background: rgba(133, 192, 224, 0.12); }
.filter-card {background: rgba(238, 120, 138, 0.12); }
.search-card {background: rgba(238, 201, 120, 0.12); }

.nearby-trucks-card:hover { background: rgba(0, 190, 150, 0.25); }
.location-card:hover      { background: rgba(245, 200, 66, 0.25); }
.reviews-card:hover       { background: rgba(120, 100, 220, 0.25); }

.nearby-trucks-card:hover i,
.location-card:hover i,
.reviews-card:hover i {
  transform: scale(1.2);
}

.card h3, .middle h3 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.card p, .middle p {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card a, .middle a {
  font-size: 12px;
  color: #c7cee6;
  text-decoration: none;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.card a:hover, .middle a:hover {
  color: #ffffff;
  letter-spacing: 0.3px;
}

.pill-soon {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(155, 155, 155, 0.25);
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.section-blob {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px 52px;
  margin-bottom: 48px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-blob.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  cursor: default;
}

.scroll-indicator i {
  font-size: 14px;
  color: #1dd3a0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.about-section {
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding: 100px 40px;
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(29, 211, 160, 0.1);
  border: 1px solid rgba(29, 211, 160, 0.25);
  color: #1dd3a0;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.about-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.about-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.about-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.about-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.3s ease, border-color 0.3s ease;
}

.stat-card.visible { /*if visible (pertains to scrolling.js) it transforms*/
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 30px;
  font-weight: 700;
  color: #1dd3a0;
}

.stat-label {
  font-size: 11px;
  color: #555;
  text-align: center;
  letter-spacing: 0.5px;
}

.stat-card:nth-child(1) { transition-delay: 0s; } /*Added delays, so each child (component) can transition smoothly*/
.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }
.stat-card:nth-child(5) { transition-delay: 0.4s; }
.stat-card:nth-child(6) { transition-delay: 0.5s; }

.about-left {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-left.visible {
  opacity: 1;
  transform: translateY(0);
}

.miles-left {
  color: #fff;
}

.light .miles-left {
  color: rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dark-btn i {
  width: 14px;
  text-align: center;
}

.dark-btn:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.3);
}

.frosted-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.014);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(0.1px);
  animation: fadeInUp 0.8s ease-out forwards;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 194, 255, 0.05);
}

.popup-header {
    position: relative;
    min-height: 32px;
    padding: 0 18px;
    margin-bottom: 8px;
    text-align: center;
}

.popup-header h3 {
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.favorite-button {
    position: absolute;
    top: 0;
    left: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #aaa;
    transition: color 0.2s ease;
}

.pin-popup .popup-header .favorite-button {
    top: -4px;
    left: -6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-button:hover {
    color: #fbe331;
}

.favorite-button .fas {
    color: #fbe331;
}

.sidebar-tabs {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  background: #0a3a6e;
  border-bottom: 2px solid #fbe331;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: #ffffff;
  border-bottom: 3px solid #fbe331;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.rating-section {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.rate-label {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 5px;
}
.star-row { display: flex; gap: 4px; margin-bottom: 5px; }
.star-btn {
  font-size: 26px;
  color: #555;
  cursor: pointer;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
  user-select: none;
}
.star-btn.on { color: #f5c518; }
.star-btn:hover { transform: scale(1.15); color: #f5c518; }
.rating-summary { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #aaa; }
.avg-score { font-size: 13px; font-weight: 600; color: #f5c518; }

.rating-actions {
  display: flex;
  gap: 6px;
  margin: 6px 0;
}
.submit-rating-btn {
  background: #f5c518;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.submit-rating-btn:hover { background: #e0b215; }
.takeback-btn {
  background: none;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
}
.takeback-btn:hover { border-color: #e74c3c; color: #e74c3c; }

#mini_map {
    height: 550px;
    width: 550px;
    border-radius: 10px;
}

#coordsDisplay {
  font-size: 18px;
}

.form-label {
    font-size: 18px;
}

#form_title {
    margin-bottom:20px;
}
input {
  padding: 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size:18px;
}
.my_btn {
  background-color: #007BFF;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px;
  margin-left:0px;

  transition: all 0.2s ease;

}
.my_btn:hover {
  background-color: #fbe331; /* yellow */
  color: black;

  transform: translateY(-2px); /* slight lift */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

input:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* Author: Maisha Sultana */
/* ─── Review panel | Andre Nunes da Silva 04/20/26 */

.review-panel {
    color: #f4f4ed;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 460px;
    max-width: 90vw;
    max-height: 85vh;

    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    z-index: 2000;
    overflow-y: auto;
    padding: 32px 28px;
    box-sizing: border-box;

    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
    font-family: "Manrope", sans-serif;
}

.review-panel.hidden {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
}

.light .review-panel {
    background: rgba(252, 250, 242, 0.95);
    color: #1a1a2e;
    border: 1px solid rgba(15, 77, 146, 0.2);
}

.review-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.review-panel-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fbe331;
}

.light .review-panel-header h2 {
    color: #0f4d92;
}

.review-panel-header h2::before {
    content: "☰ ";
    color: #fbe331;
    margin-right: 6px;
    opacity: 0.6;
}

.review-panel-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    padding: 0 6px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.review-panel-close:hover {
    color: rgb(255, 86, 86);
    transform: scale(1.1);
}

.light .review-panel-close {
    color: rgba(0, 0, 0, 0.6);
}

.review-panel-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.review-panel-actions .menu-button,
.review-panel-actions .track-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: "Manrope", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.review-panel-actions .menu-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f4f4ed;
}

.review-panel-actions .menu-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.review-panel-actions .track-button {
    background: #fbe331;
    border: none;
    color: #111;
    box-shadow: 0 4px 12px rgba(251, 227, 49, 0.22);
}

.review-panel-actions .track-button:hover {
    background: #f5c518;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251, 227, 49, 0.35);
}

.light .review-panel-actions .menu-button {
    background: rgba(15, 77, 146, 0.06);
    border: 1px solid rgba(15, 77, 146, 0.25);
    color: #1a1a2e;
}

.light .review-panel-actions .menu-button:hover {
    background: rgba(15, 77, 146, 0.12);
}

.light .review-panel-actions .track-button {
    background: #0f4d92;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 77, 146, 0.25);
}

.rating-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    margin-bottom: 8px;
    font-style: italic;
}

.light .rating-hint {
    color: rgba(0, 0, 0, 0.5);
}

.review-card.is-mine {
    border-color: rgba(251, 227, 49, 0.35);
}

.light .review-card.is-mine {
    border-color: rgba(15, 77, 146, 0.35);
}

.you-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fbe331;
    letter-spacing: 0.5px;
    margin-left: 4px;
    text-transform: uppercase;
}

.light .you-tag {
    color: #0f4d92;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.delete-review-btn {
    background: transparent;
    border: 1px solid rgba(255, 86, 86, 0.4);
    color: rgb(255, 120, 120);
    padding: 4px 12px;
    border-radius: 999px;
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.delete-review-btn:hover {
    background: rgba(255, 86, 86, 0.15);
    border-color: rgba(255, 86, 86, 0.7);
    color: rgb(255, 86, 86);
}

.light .delete-review-btn {
    color: #c0392b;
    border-color: rgba(192, 57, 43, 0.4);
}

.light .delete-review-btn:hover {
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.7);
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.review-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.light .review-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 77, 146, 0.15);
}

.review-card .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-card .review-header strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f4f4ed;
}

.light .review-card .review-header strong {
    color: #1a1a2e;
}

.review-card .review-stars {
    color: #f5c518;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.review-card p {
    margin: 6px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(244, 244, 237, 0.85);
    word-wrap: break-word;
}

.light .review-card p {
    color: #333;
}

.review-card small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.light .review-card small {
    color: #888;
}

.review-panel-form {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.review-panel-form h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #fbe331;
    letter-spacing: 0.5px;
}

.light .review-panel-form h3 {
    color: #0f4d92;
}

.review-panel-form input,
.review-panel-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f4f4ed;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.review-panel-form input::placeholder,
.review-panel-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.review-panel-form input:focus,
.review-panel-form textarea:focus {
    outline: none;
    border-color: #fbe331;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(251, 227, 49, 0.15);
}

.review-panel-form textarea {
    min-height: 90px;
    resize: vertical;
}

.light .review-panel-form input,
.light .review-panel-form textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 77, 146, 0.25);
    color: #1a1a2e;
}

.light .review-panel-form input::placeholder,
.light .review-panel-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.light .review-panel-form input:focus,
.light .review-panel-form textarea:focus {
    border-color: #0f4d92;
    box-shadow: 0 0 10px rgba(15, 77, 146, 0.15);
}

.submit-review-btn {
    background: #fbe331;
    color: #111;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(251, 227, 49, 0.2);
}

.submit-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 227, 49, 0.35);
    background: #f5c518;
}

.see-reviews-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    background: #ffffff;
    color: #333;
    border: 1px solid #cccccc;
    border-radius: 25px;
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.see-reviews-btn:hover {
    background: #0f4d92;
    color: #fbe331;
    border-color: #0f4d92;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(15, 77, 146, 0.35);
}

.review-panel-body > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px 0;
}

.light .review-panel-body > p {
    color: rgba(0, 0, 0, 0.5);
}

/* Author: Maisha Sultana */
/* Main sidebar background */
/* Sidebar Light Mode Overrides*/

body.light #sidePanel {
  background: #ffffff;
  border-right: 3px solid #004B49;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.08);
}

body.light #sidePanel h2 {
  background: linear-gradient(135deg, #004B49, #006b68);
  color: #ffffff;
  border-bottom: 2px solid #fbe331;
}

body.light .sidebar-tabs {
  background: #004B49;
}

body.light .tab-btn.active {
  color: #ffffff;
  border-bottom: 3px solid #fbe331;
}

body.light .tab-btn {
  color: rgba(255, 255, 255, 0.65);
}

body.light .tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

body.light .truck-btn {
  color: #1a1a2e;
  border-bottom: 1px solid rgba(0, 75, 73, 0.12);
  background: transparent;
}

body.light .truck-btn:hover {
  background: #004B49;
  color: #ffffff;
}

body.light #togglePanel {
  background: #004B49;
  color: #ffffff;
}

body.light #togglePanel:hover {
  background: #003735;
  color: #fbe331;
}

body.light #truckList::-webkit-scrollbar-thumb {
  background: #004B49;
}

/* Author: Maisha Sultana 5/2/2026 */
/* Sidebar Search Bar */

/* Wraps the entire search and filter section inside the sidebar
   Uses flex column layout to stack the search input, pills, and status row */
   #search-container {
    padding: 12px 14px;
    background: #0a3a6e;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* White rounded row that contains the search icon, input, and clear button */
#search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 12px;
    gap: 8px;
}

/* Magnifying glass icon on the left of the search input */
#search-icon {
    color: #888;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* The actual text input field — takes up all available space in the row */
#truckSearch {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: "Manrope", sans-serif;
    background: transparent;
    color: #1a1a2e;
}

/* Placeholder text color inside the search input */
#truckSearch::placeholder {
    color: #aaa;
}

/* The ✕ clear button on the right of the search input */
#clear-search {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 0.85rem;
    padding: 0;
    flex-shrink: 0;
}

/* Clear button turns red on hover to signal it will clear the input */
#clear-search:hover {
    color: #e74c3c;
}

/* Filter Pills Row */

/* Horizontal scrollable row of category filter pills
   overflow-x allows pills to scroll if they overflow the sidebar width */
#filter-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none; /* hides scrollbar on Firefox */
}

/* Hides the scrollbar on Chrome and Safari */
#filter-pills::-webkit-scrollbar {
    display: none;
}

/* Individual filter pill button — rounded outline style by default */
.filter-pill {
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap; /* prevents pill text from wrapping to a new line */
}

/* Pill hover state — slightly brighter background */
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Active pill — solid white background with dark text to show it is selected */
.filter-pill.active {
    background: #ffffff;
    color: #0a3a6e;
    border-color: #ffffff;
}

/* Filter Status Row */

/* Row below the pills showing how many trucks are visible and a clear button */
#filter-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

/* "Showing X trucks" label — updated dynamically by applyFilters() in sidebar.js */
#filter-label {
    color: rgba(255, 255, 255, 0.6);
}

/* "Clear filters" button — resets search and pills back to default */
#clear-filters {
    background: none;
    border: none;
    color: #fbe331;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    padding: 0;
}

/* Underline on hover to signal it is clickable */
#clear-filters:hover {
    text-decoration: underline;
}

/* Light Mode Overrides  05/17/26 */ 

/* Search container background switches to Deep Jungle Green in light mode */
body.light #search-container {
    background: #004B49;
}

/* Active pill uses white background with jungle green text in light mode */
body.light .filter-pill.active {
    background: #ffffff;
    color: #004B49;
    border-color: #ffffff;
}

/* Clear filters button stays yellow in light mode */
body.light #clear-filters {
    color: #fbe331;
}
#clear-search {
  display: none;
}
#sidePanel {
  overflow: hidden;
}

#search-input-wrapper {
  position: relative;   /* THIS fixes the X position */
  width: 100%;
  box-sizing: border-box;
}

#search-container {
  width: 100%;
  box-sizing: border-box;
}

/* Light Mode — Home Page */

body.light h1 {
  color: #1a1a2e;
}

body.light p1,
body.light p2 {
  color: #1a1a2e;
}

body.light .highlight {
  color: #D4600A;
  text-shadow: none;
}

body.light .features-title {
  color: #1a1a2e;
}

body.light .card h3,
body.light .middle h3 {
  color: #1a1a2e;
}

body.light .card p,
body.light .middle p {
  color: #444;
}

body.light .about-title {
  color: #1a1a2e;
}

body.light .about-desc {
  color: #444;
}

body.light .stat-number {
  color: #D4600A;
}

body.light .stat-label {
  color: #444;
}

body.light .dark-btn {
  background: #1a1a2e;
  color: #fff;
  border-color: rgba(0,0,0,0.2);
}

body.light .about-section {
  background: #FDF8F0;
  border-color: rgba(0,0,0,0.1);
}

body.light .card,
body.light .middle {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
}

/* Light Mode Background Overrides */
/* Main body background — replaces the dark grid pattern */
body.light {
  background: #f5f5f0;
  color: #1a1a2e;
}

/* Remove the dark animated background on light mode */
body.light::before {
  background:
      radial-gradient(circle at 20% 30%, rgba(0, 75, 73, 0.06), transparent 22%),
      radial-gradient(circle at 75% 45%, rgba(0, 75, 73, 0.04), transparent 20%);
}

/* Nav bar */
body.light nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer */
body.light footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
}

body.light footer a {
  color: #1a1a2e;
}

body.light footer a:hover {
  color: #004B49;
  text-shadow: none;
}

/* Light Mode — Home Page Green Theme */

body.light {
  color: #3d4a3d;
  background:
    fixed linear-gradient(#b8d4b8, #b8d4b8 6px, transparent 6px, transparent),
    fixed linear-gradient(transparent, #d4ecd4 70%),
    fixed repeating-linear-gradient(
      #b8d4b8,
      #b8d4b8 1px,
      transparent 1px,
      transparent 40px
    ),
    scroll repeating-linear-gradient(
      to right,
      #b8d4b8,
      #b8d4b8 1px,
      transparent 1px,
      transparent 40px
    )
    #EDF2ED;
}

body.light h1 {
  color: #3d4a3d;
}

body.light p1,
body.light p2 {
  color: #3d4a3d;
}

body.light .highlight {
  color: #D4674A;
  text-shadow: 0 0 20px rgba(212, 103, 74, 0.2);
}

body.light .strike {
  color: #888;
  text-decoration-color: rgba(212, 103, 74, 0.5);
}

body.light .wave {
  text-shadow: 0 0 15px rgba(255, 200, 0, 0.5);
}

body.light .dark-btn {
  background: #D4674A;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(212, 103, 74, 0.3);
}

body.light .dark-btn:hover {
  background: #c05a3e;
}

body.light .features-title {
  color: #3d4a3d;
}

body.light .features-items {
  color: #666;
}

body.light .card,
body.light .middle {
  background: #ffffff;
  border-color: rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body.light .card:hover,
body.light .middle:hover {
  box-shadow: 0 8px 30px rgba(212, 103, 74, 0.12);
  border-color: rgba(212, 103, 74, 0.2);
}

body.light .card h3,
body.light .middle h3 {
  color: #3d4a3d;
}

body.light .card p,
body.light .middle p {
  color: #555;
}

body.light .card a,
body.light .middle a {
  color: #D4674A;
}

body.light .about-section {
  background: #C8D8C0;
  border-color: rgba(0,0,0,0.08);
}

body.light .pill-soon {
  background: rgba(212, 103, 74, 0.1);
  border: 1px solid rgba(212, 103, 74, 0.3);
  color: #D4674A;
}

body.light .about-title {
  color: #3d4a3d;
}

body.light .about-desc {
  color: #4a5a4a;
}

body.light .about-badge {
  background: rgba(212, 103, 74, 0.12);
  border-color: rgba(212, 103, 74, 0.3);
  color: #D4674A;
}

body.light .stat-number {
  color: #ffffff;
}

body.light .stat-label {
  color: rgba(255,255,255,0.8);
}

body.light .stat-card {
  background: #B8CCB0;
  border-color: rgba(0,0,0,0.05);
}

body.light .section-blob {
  background: rgba(212, 103, 74, 0.04);
  border-color: rgba(212, 103, 74, 0.1);
}

body.light .label {
  background-image: linear-gradient(90deg, #D4674A, #c8a070);
}

body.light .scroll-indicator {
  color: #888;
}

body.light .scroll-indicator i {
  color: #D4674A;
}

/* Light Mode — About Page */

body.light .team-section h1 {
  color: #1a1a2e;
}

body.light .team-card p1,
body.light .team-card p2 {
  color: #1a1a2e;
}

body.light .team-member-img {
  border-color: #0F4D92;
}

body.light .about-github {
  background: rgba(15, 77, 146, 0.08);
  border-color: rgba(15, 77, 146, 0.3);
  color: #0F4D92;
}

body.light .about-github:hover {
  background: rgba(15, 77, 146, 0.15);
}

body.light .about-us-img img {
  filter: none;
}

body.light .hero-text p1 {
  color: #3d3d3d;
}

/* Author: Andre Nunes da Silva @ 05/02/26 — review image attachment UI */
.review-image-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 12px;
}

#review-image-input {
    display: none;
}

.review-image-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 6px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    color: rgba(244, 244, 237, 0.85);
    font-family: "Manrope", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.review-image-label:hover {
    border-color: rgba(251, 227, 49, 0.7);
    color: #fbe331;
    background: rgba(251, 227, 49, 0.08);
}

.light .review-image-label {
    color: #1a1a2e;
    border-color: rgba(15, 77, 146, 0.4);
}

.light .review-image-label:hover {
    color: #0f4d92;
    border-color: rgba(15, 77, 146, 0.8);
    background: rgba(15, 77, 146, 0.08);
}

.review-image-preview {
    position: relative;
    align-self: flex-start;
    max-width: 160px;
}

.review-image-preview.hidden {
    display: none;
}

.review-image-preview img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.review-image-clear {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-image-clear:hover {
    background: rgb(255, 86, 86);
}

.review-image {
    display: block;
    margin-top: 8px;
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.light .review-image {
    border-color: rgba(15, 77, 146, 0.18);
}

.review-image-link {
    display: inline-block;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

#mode-swap {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 1.2rem;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* User Guide page | Author: Andre Nunes da Silva @ 05/10/26 */
.user-guide {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
  color: #f4f4ed;
}

.guide-header {
  margin-bottom: 72px;
}

.guide-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c7cee6;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin-bottom: 20px;
}

.user-guide h1 {
  font-size: 44px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.15;
}

.guide-sub {
  color: rgba(244, 244, 237, 0.65);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.guide-group-title {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(244, 244, 237, 0.5);
  font-weight: 500;
  margin: 64px 0 8px;
  position: relative;
}

.light .guide-group-title,
.light .user-guide,
.light .guide-header,
.light .guide-eyebrow,
.light .user-guide h1,
.light .guide-sub,
.light .guide-group-sub,
.light .guide-item,
.light .guide-item h3,
.light .guide-item h3 i,
.light .guide-item p {  color: black;   }

.guide-group-title::before,
.guide-group-title::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(244, 244, 237, 0.2);
  vertical-align: middle;
  margin: 0 14px;
}

.light .guide-group-title::before,
.light .guide-group-title::after {
  background: black;
}

.guide-group-sub {
  color: rgba(244, 244, 237, 0.55);
  font-size: 15px;
  margin: 0 0 32px;
}

.guide-item {
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-item:first-of-type {
  border-top: none;
}

.guide-item h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.guide-item h3 i {
  color: #c7cee6;
  font-size: 18px;
}

.guide-item p {
  color: rgba(244, 244, 237, 0.7);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 auto 12px;
  max-width: 640px;
}

.guide-item p:last-child {
  margin-bottom: 0;
}

.guide-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.guide-images img {
  max-height: 90px;
  width: auto;
  opacity: 0.9;
}

/* Cascading fade-in on page load */
.user-guide .guide-header,
.user-guide .guide-group-title,
.user-guide .guide-group-sub,
.user-guide .guide-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.user-guide .guide-header { animation-delay: 0.05s; }
.user-guide .guide-group-title { animation-delay: 0.15s; }
.user-guide .guide-group-sub { animation-delay: 0.2s; }
.user-guide .guide-item:nth-of-type(1) { animation-delay: 0.2s; }
.user-guide .guide-item:nth-of-type(2) { animation-delay: 0.25s; }
.user-guide .guide-item:nth-of-type(3) { animation-delay: 0.3s; }
.user-guide .guide-item:nth-of-type(4) { animation-delay: 0.35s; }
.user-guide .guide-item:nth-of-type(5) { animation-delay: 0.4s; }
.user-guide .guide-item:nth-of-type(6) { animation-delay: 0.45s; }
.user-guide .guide-item:nth-of-type(7) { animation-delay: 0.5s; }
.user-guide .guide-item:nth-of-type(8) { animation-delay: 0.55s; }
.user-guide .guide-item:nth-of-type(9) { animation-delay: 0.6s; }
.user-guide .guide-item:nth-of-type(10) { animation-delay: 0.65s; }
