:root {
  --primary: #c5a572; /* Luxurious Gold */
  --primary-dark: #9f8255;
  --dark: #1a1a1a;
  --light: #f9f9f9;
  --white: #ffffff;
  --gray: #666666;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* Prevents double-tap zoom on buttons */
}

body {
  background-color: var(--light);
  color: var(--dark);
  display: flex;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.calculator-container {
  background: var(--white);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  padding: 24px;
  padding-bottom: 6px;
  box-shadow: var(--shadow);
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.logo-area {
  display: flex;
  justify-content: space-between;
  padding: 0 35px;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 20.5px;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.brand-logo {
  max-width: 90px;
  height: auto;
  display: block;
}

.header-instruction {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0;
  background: #fdf6e7;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  line-height: 1.4;
  border: 1px solid rgba(197, 165, 114, 0.2);
}

section {
  margin-bottom: 24px;
}

h2 {
  font-size: 18px; /* Bigger */
  margin-bottom: 10px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dates */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px; /* More spacing */
  position: relative; /* For icon positioning if needed */
}

label {
  font-size: 14px; /* Bigger */
  font-weight: 600;
  margin-bottom: 8px; /* Further away */
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ... existing inputs ... */

/* Animation Overrides for Flatpickr */
.flatpickr-calendar {
  font-family: "Outfit", sans-serif !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;

  /* Centering Logic */
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important; /* Start slightly lower */
  margin-top: 10px !important;

  /* Size increase */
  width: 320px !important;

  /* Animation */
  opacity: 0 !important;
  visibility: hidden !important;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0.4s !important;
}

.flatpickr-calendar.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important; /* End pos */
}

/* ENHANCED INPUTS (The Selectors) */
.custom-date-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 16px 20px !important;
  border: 1px solid #e0e0e0 !important;
  background: #ffffff
    url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23c5a572" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="4" width="18" height="18" rx="2" ry="2"%3E%3C/rect%3E%3Cline x1="16" y1="2" x2="16" y2="6"%3E%3C/line%3E%3Cline x1="8" y1="2" x2="8" y2="6"%3E%3C/line%3E%3Cline x1="3" y1="10" x2="21" y2="10"%3E%3C/line%3E%3C/svg%3E')
    no-repeat right 16px center !important;
  background-size: 24px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease !important;
  height: 54px !important; /* Force height */
  cursor: pointer !important;
}

/* First Step Highlight */
.step-highlight {
  font-size: 22px !important; /* Bigger */
  color: var(--primary) !important;
  text-shadow: 0px 0px 1px rgba(197, 165, 114, 0.5); /* Slight shadow for highlight */
  font-weight: 800 !important;
  transition: all 0.3s ease;
}

.input-pulse {
  animation: inputPulse 2s infinite;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0 rgba(197, 165, 114, 0.7);
}

@keyframes inputPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 165, 114, 0.4);
    border-color: var(--primary);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 165, 114, 0);
    border-color: var(--primary-dark);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(197, 165, 114, 0);
    border-color: var(--primary);
  }
}



.custom-date-input:focus,
.custom-date-input.force-focus {
  border-color: var(--primary) !important;
  background-color: #fffaf0 !important;
  box-shadow: 0 8px 20px rgba(197, 165, 114, 0.2) !important;
  transform: translateY(-3px);
}

.custom-date-input::placeholder {
  color: #999;
}

.nights-display {
  text-align: center;
  font-size: 16px;
  color: var(--primary-dark);
  background: #fdf6e6;
  padding: 12px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 700;
}

/* Guests */
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.label-info {
  display: flex;
  flex-direction: column;
}

.type {
  font-weight: 600;
  font-size: 15px;
}

.age-hint {
  font-size: 13px; /* Bigger */
  color: var(--gray);
}

/* Age Selectors */
.age-selection-container {
  margin-top: 16px;
  border-top: 1px dashed #eee;
  padding-top: 16px;
  display: none; /* Hidden by default */
}

.age-selection-container.visible {
  display: block;
}

.age-row {
  margin-bottom: 16px;
}

.age-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.age-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px; /* for scrollbar spacing */
  scrollbar-width: none; /* Hide scrollbar Firefox */
  align-items: center;
  justify-content: center; /* Center everything together */
}

.age-options::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome */
}

.age-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
}

.age-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.age-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  /* Box shadow removed to avoid cut-off */
}

.age-suffix {
  font-size: 16px;
  color: var(--gray);
  font-weight: 700;
  margin-left: 4px; /* Small gap */
  padding-right: 4px;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  color: var(--dark);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-circle:active {
  transform: scale(0.9);
}

.count-value {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Result */
.result-section {
  background: var(--dark);
  color: white;
  padding: 24px 16px;
  border-radius: var(--radius);
  text-align: center;
}

.price-box {
  margin-bottom: 16px;
}

.price-label {
  display: block;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.price-amount {
  display: block;
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
}

.price-note {
  font-size: 12px;
  opacity: 0.6;
}

.btn-whatsapp {
  width: 100%;
  padding: 16px;
  background: #25d366; /* WhatsApp Green */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
}

.wa-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Flatpickr Customization */
.flatpickr-calendar {
  font-family: "Outfit", sans-serif !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;

  /* Centering Logic */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 10px !important;

  /* Size increase */
  width: 320px !important;
}

.flatpickr-days {
  width: 320px !important;
}

.dayContainer {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
}

.flatpickr-day {
  height: 42px !important;
  line-height: 42px !important;
  font-size: 15px !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.focus,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

.flatpickr-months .flatpickr-month {
  background: var(--dark) !important;
  color: white !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding-top: 15px;
  height: 60px; /* Increase height */
  overflow: visible; /* Prevent cut-off */
}

.flatpickr-current-month {
  padding-top: 5px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--dark) !important;
  color: white !important;
  font-weight: 700;
}

.flatpickr-weekdays {
  background: var(--dark) !important;
}

.flatpickr-weekday {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Hide default input arrow */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}
input[type="date"] {
  cursor: pointer;
}

/* Room Toggle */
.toggle-container {
  display: flex;
  background: #f1f1f1;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Bigger Calendar Arrows */
.flatpickr-prev-month,
.flatpickr-next-month {
  padding: 10px !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 24px !important; /* Bigger */
  height: 24px !important;
  fill: white !important; /* Ensure visibility on dark header */
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--primary) !important;
}

/* FAQ SECTION */
.faq-section {
  margin-top: 15px; /* Reduced from 40px */
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.faq-title {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.search-container input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #eee;
  background: #fdfdfd;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.search-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item {
  border-bottom: 1px solid #f1f1f1;
  margin-bottom: 8px;
}

.faq-question {
  padding: 14px 12px; /* More padding */
  cursor: pointer;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px; /* Space between text and + */
  transition: color 0.2s;
}

@media (hover: hover) {
  .faq-question:hover {
    color: var(--primary);
  }
}
.faq-item.active .faq-question {
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--primary);
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  padding: 0 8px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  /* max-height handled by JS for smooth anim */
  padding-bottom: 16px;
  transition:
    max-height 0.3s ease-in,
    padding 0.3s ease;
}

.loading-text {
  text-align: center;
  color: #ccc;
  font-size: 12px;
}

/* Package Info Styles - Simplified */
.package-info-section {
  margin: 33px 0;
  padding: 0 10px;
}
.package-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.package-list li {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--gray);
  line-height: 1.5;
  font-weight: 500;
  display: flex;
  gap: 8px;
}

/* Calendar Tweaks */
.flatpickr-calendar {
  overflow: visible !important;
}
.flatpickr-prev-month,
.flatpickr-next-month {
  transform: scale(0.8) !important; /* Smaller */
  top: 15px !important; /* Lower */
}
/* Center Arrows attempt: Bring them closer */
.flatpickr-prev-month {
  left: 10px !important;
}
.flatpickr-next-month {
  right: 10px !important;
}

/* Close Button */
.calendar-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: white;
  border: 1px solid #eee;
  border-radius: 50%;
  color: var(--gray);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-family: sans-serif;
  font-size: 18px;
  transition: all 0.2s;
}
.calendar-close-btn:hover {
  background: #f5f5f5;
  color: var(--primary);
  transform: scale(1.1);
}
/* Wrapper for reordering */
/* Image Carousel */
.image-carousel-section {
    margin: 5px 0 25px 0; /* Minimal top, increased bottom space */
    width: 100%;
    position: relative;
    /* Ensure it shows up */
    display: block !important;
}

.package-info-section {
    margin: 33px 0; /* Reverted to original spacing for the revealed one */
    padding: 0 10px;
}

/* Image Carousel */
/* .image-carousel-section removed from here to avoid duplicate */
/* .image-carousel-section {
  margin: 32px 0;
  width: 100%;
  position: relative;
} */

.carousel-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px; /* Space for scrollbar (hidden) */
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  flex: 0 0 85%; /* Shows a peek of the next image */
  scroll-snap-align: center;
  scroll-snap-stop: always; /* Force stop at each item */
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3; /* Wider format (was 1/1) */
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swipe-hint {
  text-align: center;
  font-size: 14px; /* Bigger */
  color: var(--gray);
  margin-top: 10px;
  opacity: 0.8;
}

/* Indented Package Items */
.indented-item {
    margin-left: 24px !important;
    font-size: 14px !important;
    opacity: 0.9;
    list-style: none; /* Remove bullet */
    position: relative;
}
.indented-item::before {
    content: "•";
    position: absolute;
    left: -14px;
    color: var(--primary);
}

/* Disable Animation during Search */
#faqList.is-searching .faq-answer {
    transition: none !important;
}

/* Contact Support Section */
.contact-section {
  margin-top: 20px;
  text-align: center;
  background: #000;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.contact-text {
  font-size: 23px;
  color: #d4b37f;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.btn-support {
  width: 100%; /* Match main button */
  margin: 0 auto;
}
