/* Popup Modal Styles - Compact & Smooth */
.tour-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.tour-modal-content {
  background: white;
  margin: 2% auto;
  border-radius: px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.tour-modal.show .tour-modal-content {
  transform: scale(1);
}

.tour-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  background: #e15600;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tour-close:hover {
  transform: rotate(90deg);
  background: #c14a00;
}

/* Compact Image Gallery */
.tour-gallery {
  position: relative;
  width: 100%;
  height: 500px; /* Increased height */
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.tour-gallery-main {
  width: 100%;
  height: 100%;
}

.tour-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-gallery-thumbnails {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.tour-thumbnail {
  width: 50px;
  height: 35px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tour-thumbnail:hover {
  opacity: 0.8;
}

.tour-thumbnail.active {
  opacity: 1;
  border-color: #ff9800;
}

.tour-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Buttons - NOW BELOW SLIDER */
.tour-cta-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 25px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tour-whatsapp, .tour-call, .tour-email {
  padding: 12px 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.tour-whatsapp {
  background: #25D366;
  color: white;
}

.tour-call {
  background: #007bff;
  color: white;
}

.tour-email {
  background: #e15600;
  color: white;
}

.tour-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.tour-call:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.tour-email:hover {
  background: #c14a00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 86, 0, 0.3);
}

/* Compact Details Section */
.tour-modal-details {
  padding: 25px;
}

.tour-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.tour-modal-title-section {
  flex: 1;
}

.tour-badge {
  display: inline-block;
  background: #ffd689;
  color: #e15600;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 11px;
  margin-bottom: 10px;
}

.tour-modal-details h2 {
  color: #232941;
  font-size: 1.5rem;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.3;
}

.tour-price-tag {
  background: #e15600;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.tour-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.tour-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 3px solid #ff9800;
}

.tour-info-icon {
  width: 18px;
  height: 18px;
  color: #e15600;
  flex-shrink: 0;
}

.tour-info-content {
  flex: 1;
}

.tour-info-content strong {
  color: #232941;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.tour-info-content span {
  color: #666;
  font-size: 13px;
}

.tour-modal-description {
  padding: 18px;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid #ff9800;
}

.tour-modal-description p {
  line-height: 1.6;
  color: #555;
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tour-modal-content {
    width: 95%;
    max-height: 900px;
    margin: 5% auto;
  }
  
  .tour-gallery {
    height: 400px; /* Adjusted proportionally */
  }
  
  .tour-cta-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px 20px;
  }
  
  .tour-modal-details {
    padding: 20px;
  }
  
  .tour-modal-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .tour-modal-details h2 {
    font-size: 1.3rem;
  }
  
  .tour-price-tag {
    font-size: 1rem;
    padding: 6px 14px;
  }
  
  .tour-close {
    right: 15px;
    top: 12px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
  
  .tour-gallery-thumbnails {
    bottom: 10px;
    padding: 6px;
  }
  
  .tour-thumbnail {
    width: 45px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .tour-gallery {
    height: 280px; /* Adjusted for mobile */
  }
  
  .tour-modal-details h2 {
    font-size: 1.2rem;
  }
  
  .tour-info-item {
    padding: 10px;
  }
  
  .tour-modal-description {
    padding: 15px;
  }
  
  .tour-whatsapp, .tour-call, .tour-email {
    padding: 10px 12px;
    font-size: 13px;
  }
}
