/* ---------- Explore + Hot Deals Section ---------- */
.explore-hot-deals { 
  padding: 40px 20px 20px;
  text-align: center; 
  background: #f9f9f9; 
  font-family: 'Poppins', sans-serif;
}

.explore-hot-deals .section-header {
  margin-bottom: 25px;
}
.explore-hot-deals .section-header h1 {
  font-size: 2rem;
  color: #7B1E1E;
  margin-bottom: 10px;
}
.explore-hot-deals .section-header p {
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Cards Container (desktop default grid) */
.deal-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

/* ---------- Deal Cards ---------- */
.deal-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
}
.deal-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Badge (fleet style) */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #7B1E1E;
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Image */
.deal-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 2px solid #F28C28;
}

/* Text */
.deal-card h3 { 
  margin: 15px 0 10px; 
  color: #7B1E1E; 
  font-size: 1.3rem; 
}
.deal-card p { 
  color: #333; 
  margin-bottom: 15px; 
}

/* Buttons */
.deal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.btn {
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  border: none;
}
.btn.view {
  background: #F28C28;
  color: #fff;
}
.btn.view:hover {
  background: #7B1E1E;
  transform: scale(1.1);
}
.btn.book {
  background: #7B1E1E;
  color: #fff;
}
.btn.book:hover {
  background: #F28C28;
  transform: scale(1.1);
}

/* ---------- Hot Deals Popup Styling ---------- */
.deal-details-popup {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 2000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  animation: fadeBg 0.4s ease forwards;
}
.deal-details-content {
  background: #fff;
  padding: 30px 25px;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  text-align: center;
  position: relative;
  animation: zoomIn 0.4s ease-in-out;
}
.deal-details-popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #7B1E1E;
}

/* ---------- Animations ---------- */
@keyframes fadeBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from {opacity: 0; transform: scale(0.8);}
  to {opacity: 1; transform: scale(1);}
}
@keyframes slideCards {
  0% { transform: translateX(-20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ---------- Mobile Portrait ---------- */
@media (max-width: 768px) and (orientation: portrait) {
  .explore-hot-deals {
    padding-top: calc(var(--header-h, 60px) + 5px);
    padding-bottom: 5px;
  }
  .deal-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 8px;
    scrollbar-width: none;
  }
  .deal-cards-container::-webkit-scrollbar { display: none; }
  .deal-card {
    flex: 0 0 85%;
    max-width: none;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideCards 0.6s ease-out;
  }
  .deal-card img {
    height: 150px;
  }
  .services-section {
    margin-top: 0 !important;
  }
}

/* ---------- Landscape Mobile ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .explore-hot-deals {
    padding-top: calc(var(--header-h, 60px) + 5px);
    padding-bottom: 5px;
  }
  .deal-cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding: 10px;
  }
  .deal-card {
    flex: 0 0 45%;
    max-width: none;
    scroll-snap-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: slideCards 0.6s ease-out;
  }
  .deal-card img {
    height: 140px;
  }
  .deal-buttons {
    margin-bottom: 12px;
  }
  .services-section {
    margin-top: 0 !important;
  }
}
