/* ============================================
   Madeira Privát Túrák – Custom CSS
   (Tailwind Stitch theme kiegészítése)
   ============================================ */

/* --- Layout segédek --- */
.diagonal-cut-top {
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0% 100%);
}
.diagonal-cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
}
.editorial-shadow {
  box-shadow: 0 24px 40px -10px rgba(0, 0, 0, 0.4);
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Hero parallax --- */
#hero-img {
  will-change: transform;
  transition: transform 0.1s linear;
}
.hero-overlay {
  background: linear-gradient(to right, rgba(10,16,9,0.85) 0%, rgba(10,16,9,0.45) 50%, transparent 100%);
}

/* --- Nav --- */
#main-nav {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#main-nav.scrolled {
  background: rgba(14, 29, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- Hamburger --- */
.hamburger-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-open .line-1 { transform: translateY(8px) rotate(45deg); }
.hamburger-open .line-2 { opacity: 0; }
.hamburger-open .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* --- Mobile menü --- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open {
  max-height: 300px;
}

/* --- Scroll reveal animációk --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Tour modal --- */
#tour-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 29, 12, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#tour-modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 1;
}
#tour-modal-content {
  background: #1e2f1d;
  border-radius: 1rem;
  max-width: 800px;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

/* --- Lightbox --- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 21, 9, 0.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}
#lightbox-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}
#lightbox-counter {
  color: rgba(225, 227, 223, 0.5);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-family: 'Manrope', sans-serif;
}

/* --- Booking Wizard --- */
.booking-step {
  display: none;
}
.booking-step.active {
  display: block;
  animation: fadeSlideIn 0.4s ease forwards;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Progress bar */
.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e2f1d;
  border: 2px solid #4a5748;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c2c9bb;
  font-family: 'Manrope', sans-serif;
  transition: all 0.3s ease;
  z-index: 1;
}
.progress-step.active .progress-dot {
  background: #356629;
  border-color: #a1d494;
  color: #ffffff;
}
.progress-step.done .progress-dot {
  background: #1a3317;
  border-color: #a1d494;
  color: #a1d494;
}
.progress-line {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #42493e;
  z-index: 0;
  transition: background 0.3s ease;
}
.progress-step.done .progress-line {
  background: #1a3317;
}
.progress-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d4e0d2;
  font-family: 'Manrope', sans-serif;
  white-space: nowrap;
}

/* Tour card selector */
.tour-card-select {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}
.tour-card-select:hover {
  transform: translateY(-2px);
}
.tour-card-select.selected {
  border-color: #a1d494;
}
.tour-card-select input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Person pill selector */
.person-pill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #4a5748;
  background: transparent;
  color: #c2c9bb;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-pill:hover {
  border-color: #a1d494;
  color: #e1e3df;
}
.person-pill.selected {
  background: #356629;
  border-color: #a1d494;
  color: #ffffff;
}

/* Price display */
#price-display {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
}

/* Form inputs (dark override for flatpickr + custom) */
.booking-input {
  background: #0e1d0c !important;
  border: 1px solid #4a5748;
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  color: #e8ede7 !important;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.booking-input:focus {
  border-color: #a1d494;
  box-shadow: 0 0 0 3px rgba(161, 212, 148, 0.12);
}
.booking-input::placeholder {
  color: rgba(200, 215, 197, 0.45) !important;
}
.booking-input.error {
  border-color: #ffb4ab;
}
/* Tailwind Forms override – sötét háttér kell mindenképp */
input.booking-input,
select.booking-input,
textarea.booking-input {
  background-color: #0e1d0c !important;
  color: #e8ede7 !important;
}
.booking-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4e0d2;
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
}

/* Flatpickr dark override */
.flatpickr-calendar {
  background: #1e2f1d !important;
  border: 1px solid #42493e !important;
  box-shadow: 0 24px 40px -10px rgba(0,0,0,0.5) !important;
  border-radius: 0.5rem !important;
}
.flatpickr-day {
  color: #e1e3df !important;
  border-radius: 0.375rem !important;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto !important;
  min-height: 46px;
  padding-bottom: 4px;
  line-height: 1.2 !important;
}

/* Szabad helyek badge a naptárban */
.fp-avail-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  margin-top: 3px;
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.fp-avail-badge.avail-ok {
  background: rgba(161, 212, 148, 0.22);
  color: #a1d494;
}
.fp-avail-badge.avail-few {
  background: rgba(224, 192, 96, 0.22);
  color: #e0c060;
}
.fp-avail-badge.avail-other {
  background: rgba(194, 201, 187, 0.08);
  color: rgba(194, 201, 187, 0.4);
}
.flatpickr-day.flatpickr-disabled .fp-avail-badge {
  background: transparent;
  color: rgba(194, 201, 187, 0.25);
}
.flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover {
  background: #2d5a27 !important;
  border-color: transparent !important;
}
.flatpickr-day.selected {
  background: #1f4019 !important;
  border-color: #a1d494 !important;
  color: #a1d494 !important;
}
.flatpickr-day.flatpickr-disabled {
  color: rgba(194, 201, 187, 0.25) !important;
}
.flatpickr-months, .flatpickr-weekdays, span.flatpickr-weekday {
  background: #172817 !important;
  color: #c2c9bb !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
}
.flatpickr-current-month, .flatpickr-monthDropdown-months {
  color: #e1e3df !important;
  background: transparent !important;
}
.flatpickr-prev-month, .flatpickr-next-month {
  fill: #c2c9bb !important;
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg {
  fill: #a1d494 !important;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open {
  max-height: 400px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-open .faq-icon {
  transform: rotate(45deg);
}

/* --- Cookie banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(19, 25, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.07);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible {
  transform: translateY(0);
}

/* --- Sikeres foglalás checkmark --- */
@keyframes checkDraw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@keyframes circleDraw {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
.check-circle {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: circleDraw 0.8s ease 0.2s forwards;
}
.check-mark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkDraw 0.5s ease 0.9s forwards;
}

/* --- Responsive helpers --- */
@media (max-width: 768px) {
  .diagonal-cut-top {
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0% 100%);
  }
  .diagonal-cut-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0% 100%);
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a1009; }
::-webkit-scrollbar-thumb { background: #2d5a27; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1a3317; }

/* --- GDPR checkbox (peer-checked doesn't propagate to descendants) --- */
#gdpr-consent:checked + div span.material-symbols-outlined {
  opacity: 1 !important;
}

/* --- Selection --- */
::selection {
  background: #2d5a27;
  color: #bcf0ae;
}
