/* ==========================================================================
   BANDE FALLS AND RESORT - COMPONENTS
   Cards, form items, testimonial carousel layout, interactive booking widgets.
   ========================================================================== */

/* 1. Immersive Luxury Cards */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  border: 1px solid rgba(1, 36, 72, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(246, 155, 77, 0.25);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-navy);
  color: var(--accent-peach);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(1, 36, 72, 0.05);
  border-bottom: 1px solid rgba(1, 36, 72, 0.05);
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-feature-item i {
  color: var(--accent-gold);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-navy);
  font-weight: 600;
}

.card-price span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 2. Premium Sliders & Carousel */
.scroller-wrap {
  position: relative;
  width: 100%;
}

.scroller {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.5rem;
  scrollbar-width: none; /* Firefox */
}

.scroller::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.scroller > * {
  scroll-snap-align: start;
  flex: 0 0 calc(33.333% - 1.333rem);
  min-width: 300px;
}

@media (max-width: 992px) {
  .scroller > * {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .scroller > * {
    flex: 0 0 100%;
  }
}

/* 3. Luxury Testimonials Section */
.testimonial-section {
  background-color: var(--primary-navy);
  color: var(--text-light);
  text-align: center;
  position: relative;
}

.testimonial-section h2 {
  color: var(--text-light);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
  padding: 2rem 0;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  line-height: 1.4;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-gold);
  object-fit: cover;
}

.author-info h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
}

.author-info p {
  color: var(--accent-peach);
  font-size: 0.85rem;
  text-align: left;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.slider-dot.active {
  background-color: var(--accent-gold);
  width: 25px;
}

/* 4. Luxury Modal Design (Inquiry & Lightbox) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 19, 38, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: var(--bg-sand);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 90%;
  padding: 3rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(1, 36, 72, 0.05);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-gold);
  transform: rotate(90deg);
}

.modal-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* 5. Contact & Booking Form Design */
.luxury-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-navy);
}

.form-control {
  height: 48px;
  padding: 0 1rem;
  border: 1px solid rgba(1, 36, 72, 0.15);
  background-color: var(--bg-white);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(246, 155, 77, 0.15);
}

/* Live validation CSS using pseudo-classes */
.form-control:user-valid {
  border-color: #2e7d32;
}

.form-control:user-invalid {
  border-color: #c62828;
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: 1rem;
  resize: vertical;
}

/* 6. Interactive Day Outing Calculator */
.calc-wrapper {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(1, 36, 72, 0.04);
}

.slider-group {
  margin-bottom: 2.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slider-header h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-navy);
}

.slider-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(1, 36, 72, 0.1);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-navy);
}

.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.range-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--primary-navy);
}

.pricing-breakdown {
  padding-top: 2rem;
  border-top: 1px solid rgba(1, 36, 72, 0.08);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.breakdown-row.total {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(1, 36, 72, 0.1);
}

/* 7. Image Filters in Gallery */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-tab {
  background: none;
  border: 1px solid rgba(1, 36, 72, 0.15);
  color: var(--primary-navy);
  padding: 0.6rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(1, 36, 72, 0.1) 0%,
    rgba(1, 36, 72, 0.7) 100%
  );
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-overlay-text {
  position: absolute;
  bottom: -20px;
  left: 2rem;
  right: 2rem;
  color: white;
  z-index: 2;
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay-text {
  bottom: 2rem;
  opacity: 1;
}

.gallery-overlay-text h4 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.gallery-overlay-text p {
  color: var(--accent-peach);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
