@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

@font-face {
  font-family: "CheddarGothicRough";
  src: url("../fonts/CheddarGothicRough-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Reset & global */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "Poppins", sans-serif; /* default secondary text */
}

.popup-title {
  font-family: "CheddarGothicRough", sans-serif; /* primary text */
  font-size: 20px;
  color: #0d4a68;
  text-decoration: none;
}

#map {
  height: 100%;
  width: 100%;
}

/* Sidebar */
#sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
  background: transparent;
  border-radius: 20px;
  overflow-y: auto;
  padding: 10px;
  display: none;
  z-index: 1000;
}

#sidebar h2 {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 48px;
  font-family: "CheddarGothicRough", sans-serif;
  color: #0d4a68;
}

#trip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#trip-list li {
  padding: 8px;
  height: 150px;
  background: white;
  border-radius: 20px;
  margin: 0 0 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

#trip-list li:hover {
  background: #f0f0f0;
}

#trip-list li img {
  width: 125px;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

#trip-list li span {
  display: block;
  margin-left: 20px;
  font-size: 24px;
  font-family: "CheddarGothicRough", sans-serif;
  color: #0d4a68;
}

#trip-list li.active {
  background: #f0f0f0;
  font-weight: bold;
}

/* Buttons */
.overlay-button {
  background: white;
  border: 2px solid #0d4a68;
  color: #0d4a68;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.overlay-button:hover {
  background: #0d4a68;
  color: white;
  border-color: #0d4a68;
}

.book-btn {
  display: inline-block;
  margin-bottom: 20px;
  background: rgb(255, 136, 0);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

.book-btn:hover {
  background: rgb(255, 102, 0);
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: red;
}

/* Trip detail panel */
.trip-detail {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  display: none;
  padding: 16px;
  z-index: 1000;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.trip-detail img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  margin: 30px 0 12px;
}

.trip-detail h2 {
  font-family: "CheddarGothicRough", sans-serif;
  font-size: 32px;
  color: #0d4a68;
  margin-bottom: 15px;
}

.trip-detail p,
.trip-detail .trip-info-card div,
.trip-detail .trip-meta p,
.trip-detail .trip-meta li {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  font-size: 18px;
}

.trip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.trip-info-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.trip-info-icon {
  font-size: 20px;
}

/* Active marker styles */
.leaflet-marker-icon.active-marker {
  transform: scale(1.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1000 !important;
}

.leaflet-marker-icon.active-marker img {
  border: 4px solid #00c8ff;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0, 200, 255, 1);
}

.leaflet-marker-icon.active-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  border-radius: 50%;
  border: 3px solid #00c8ff;
  transform: translate(-50%, -50%);
  animation: haloPulse 1.5s infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes haloPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* Links inherit font */
a {
  text-decoration: none;
  color: inherit;
  font-family: "Poppins", sans-serif;
}

/* Responsive styles */
@media (max-width: 1000px) {
  #sidebar {
    width: 300px;
    border-radius: 0;
  }

  .trip-detail {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 10px;
  }

  .trip-detail img {
    height: 200px;
  }

  .trip-detail h2 {
    font-size: 24px;
  }

  .trip-detail p {
    font-size: 14px;
  }

  .trip-info-grid {
    grid-template-columns: 1fr;
  }
}
/* Reviews styling */
.trip-reviews {
  margin-top: 16px;
  font-family: "Poppins", sans-serif;
  color: #333;
}

.trip-reviews h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #0d4a68;
}

/* Website reviews panel */
.review-item {
  background-color: #f9f9f9;
  border: 1px solid #0d4a68;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  color: #0d4a68;
}

.review-item .review-head {
  border-bottom: 2px solid #ffd700;
  padding-bottom: 5px;
}

.review-item .review-title {
  font-family: "CheddarGothicRough", sans-serif;
  font-size: 1.4em;
  font-weight: bold;
  color: #0d4a68;
}

.review-item .review-meta {
  font-style: italic;
  color: #0d4a68;
  border-bottom: 1px dashed #ffd700;
  padding-bottom: 5px;
}

.review-item .review-text {
  color: #0d4a68;
  line-height: 1.5;
}

/* Empty review message */
.reviews-empty {
  color: #0d4a68;
  font-style: italic;
  font-size: 14px;
}

/* Reviews list container */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

/* Optional: responsive adjustments */
@media (max-width: 600px) {
  .review-item {
    padding: 12px;
  }

  .review-item .review-title {
    font-size: 1.2em;
  }
}

/* Sidebar trip layout adjustment */
#trip-list li .trip-info {
  flex: 1;
  margin-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
