.aos-init {
  opacity: 1 !important;
  transform: none !important;
}

/* Ensure swiper content is visible even without JS */
.swiper, .swiper-wrapper, .swiper-slide {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Provide reasonable heights when JS doesn't set them */
.swiper {
  min-height: 1px;
}

/* Hide the deprecated "Stay Curious" section when present */
section.my-16 {
  display: none !important;
}

/* Make prev/next controls clickable even without JS layout */
.swiper-button-prev, .swiper-button-next {
  pointer-events: auto !important;
}

/* Floating CTA buttons (WhatsApp + Call) */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}
.cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.cta-whatsapp { background-image: url('./whatsapp-icon.svg'); }
.cta-call { background-image: url('./phone-icon.svg'); background-color: #22c55e; }

/* Improve tap target on mobile */
@media (max-width: 600px) {
  .cta-btn { width: 60px; height: 60px; background-size: 30px 30px; }
  .floating-cta { right: 12px; bottom: 12px; gap: 12px; }
}

/* Mobile-only tweaks to avoid overflow and keep spacing tight */
@media (max-width: 600px) {
  /* Prevent huge images from breaking layout in Our Cottages */
  .cottage img { max-width: 100%; height: auto; border-radius: 20px; }
  /* Cap image height on small screens to avoid very tall content */
  .cottage .carousel-root img,
  .cottage .swiper-slide img { max-height: 45vh !important; width: 100% !important; object-fit: cover !important; }
  /* Experiences gallery images */
  .swiper-zoom-container img { max-height: 45vh !important; width: 100% !important; object-fit: cover !important; }
  /* Force full-width frames for carousels on mobile */
  .cottage .carousel-root,
  .cottage .carousel,
  .cottage .slider-wrapper,
  .cottage ul.slider,
  .cottage li.slide,
  .cottage li.slide > div { width: 100% !important; box-sizing: border-box; }
  .cottage ul.slider { display: flex !important; }
  .cottage li.slide img { width: 100% !important; height: auto !important; object-fit: cover !important; }

  .swiper { width: 100% !important; }
  .swiper-wrapper { width: 100% !important; }
  .swiper-slide { width: 100% !important; }
  /* Reduce section spacing for cottages wrapper */
  #cottage-id { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  /* Reduce outer paddings/margins */
  .xs\:px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .xs\:py-24 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .xs\:mt-16 { margin-top: 2rem !important; }
  /* Testimonials: ensure blocks fit viewport */
  .testimonial blockquote { padding: 1rem 1rem !important; }
  .testimonial .swiper-wrapper { transform: none !important; }
  .testimonial .swiper-slide { width: 100% !important; margin-right: 0 !important; }
  .testimonial-landscape { min-height: 60vh !important; }
}

/* Booking Popup Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.show {
  display: flex !important;
}

/* Ensure modal is visible when shown */
#bookingModal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override any conflicting styles */
.modal-overlay.show,
#bookingModal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Add subtle animation to modal */

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Add focus styles for better accessibility */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #25D366;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
  transform: translateY(-1px);
}

/* Remove required field indicators since all fields are optional */

/* Style the select dropdown */
.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  max-width: 550px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-weight: 300;
}

.close-btn:hover {
  background-color: #f3f4f6;
  color: #374151;
  transform: scale(1.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background-color: #fafafa;
  font-family: 'Lato', sans-serif;
  min-height: 55px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #25D366;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Lato', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.btn {
  padding: 1rem 3rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1da851 0%, #25D366 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  transform: translateY(-2px);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

/* Mobile responsiveness for popup */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
    margin: 1rem;
    max-height: 90vh;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .modal-header h3 {
    font-size: 1.5rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 50px;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    min-width: 150px;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

/* Ensure body can scroll when popup is not open */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Fix any potential scrolling issues */
html, body {
  height: auto;
  min-height: 100vh;
}

/* Ensure main content can scroll */
#root {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Fix any potential height issues that might prevent scrolling */
main {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Fix any potential conflicts with Tailwind classes */
.w-full.bg-\[white\].overflow-y-auto {
  overflow-y: auto !important;
  min-height: 100vh;
}

