/* ================================================================
   OVERCROSS TOUR BOOKING WIDGET — OBSIDIAN EDITION
   ================================================================ */

:root {
  --bk-dark:        #111111;
  --bk-dark2:       #1c1c1c;
  --bk-white:       #ffffff;
  --bk-body:        #f5f3f0;
  --bk-text:        #1a1a1a;
  --bk-muted:       #7a746e;
  --bk-border:      #e3ddd6;
  --bk-accent:      #f28c1b;
  --bk-accent2:     #e07b09;
  --bk-accent-glow: rgba(242, 140, 27, 0.26);
  --bk-radius:      0px;
  --bk-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.10),
    0 32px 56px rgba(0, 0, 0, 0.10);
}

/* ---- FORM RESET ---- */
#booking-form {
  display: contents;
}

/* ================================================================
   PANEL WRAPPER
   ================================================================ */
.booking-panel {
  background: var(--bk-white);
  color: var(--bk-text);
  max-width: 400px;
  min-width: 340px;
  margin: 44px auto 0;
  border-radius: 0;
  box-shadow: var(--bk-shadow);
  overflow: hidden;
  font-family: "Jost", "Segoe UI", sans-serif;
  position: sticky;
  top: 109px;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.07);
  animation: bkReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bkReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ================================================================
   HERO — ORANGE HEADER
   ================================================================ */
.bk-hero {
  background: var(--bk-white);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}

/* Subtle dark vignette bottom-left */
.bk-hero::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.bk-title {
  font-size: 1.05em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.35;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

/* ---- Price line ---- */
.bk-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.booking-price {
  font-size: 2.5em;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bk-price-per {
  font-size: 0.8em;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 500;
}

/* ---- Meta badges row ---- */
.bk-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  position: relative;
  z-index: 1;
}

.bk-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78em;
  color: rgba(0, 0, 0, 0.55);
  font-weight: 500;
  padding: 3px 10px 3px 0;
  white-space: nowrap;
}

.bk-meta-item:first-child {
  padding-left: 0;
}

.bk-meta-item i {
  font-size: 1em;
}

.bk-meta-sep {
  width: 1px;
  height: 11px;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 8px 0 0;
  flex-shrink: 0;
}

.participants-info {
  cursor: pointer;
}

.participants-info:hover {
  color: rgba(0, 0, 0, 0.85);
}

/* ---- Skill level dots ---- */
.bk-level-item {
  align-items: center;
}

.bk-level-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.bk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.bk-dot.bk-dot-on {
  background: var(--bk-accent);
}

/* ---- Tooltip trigger ---- */
.info-icon-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.info-icon {
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.9em;
  transition: color 0.2s;
}

.info-icon:hover {
  color: rgba(0, 0, 0, 0.75);
}

/* ================================================================
   TOOLTIP
   ================================================================ */
.custom-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  background: #111827;
  color: #ffffff;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.87em;
  line-height: 1.5;
  max-width: 300px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  z-index: 40000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.custom-tooltip.tooltip-top::after,
.custom-tooltip.tooltip-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.custom-tooltip.tooltip-top::after {
  top: 100%;
  border-top: 7px solid #111827;
}

.custom-tooltip.tooltip-bottom::after {
  bottom: 100%;
  border-bottom: 7px solid #111827;
}

/* ================================================================
   BODY SECTIONS
   ================================================================ */
.bk-section {
  padding: 16px 20px;
  border-top: 1px solid var(--bk-border);
}

.bk-section-label {
  font-size: 0.68em;
  font-weight: 700;
  color: var(--bk-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Alias — keeps legacy templates working */
.booking-options-label {
  font-size: 0.68em;
  font-weight: 700;
  color: var(--bk-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.booking-options-label.booking-options-label-extra {
  margin-bottom: 10px;
  margin-top: 0;
}

/* ================================================================
   DATE BLOCKS
   ================================================================ */
.booking-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-options.scrollable {
  max-height: 218px;
  overflow-y: auto;
  padding-right: 2px;
}

.booking-date-block {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 0;
  background: var(--bk-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

/* Left pip indicator */
.booking-date-block::before {
  content: '';
  width: 3px;
  height: 22px;
  border-radius: 0;
  background: var(--bk-border);
  flex-shrink: 0;
  transition: background 0.18s;
}

.booking-date-block:hover {
  border-color: #cec8c0;
}

.booking-date-block.selected {
  background: rgba(242, 140, 27, 0.10);
  border-color: var(--bk-accent);
}

.booking-date-block.selected::before {
  background: var(--bk-accent);
}

.booking-date-block.is-hidden {
  display: none;
}

.booking-date-range {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--bk-text);
  flex: 1;
}

.booking-btn-more {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--bk-muted);
  font-size: 0.78em;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0 0;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.18s;
}

.booking-btn-more:hover {
  color: var(--bk-accent);
}

.booking-own-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 0.9em;
  color: var(--bk-muted);
  gap: 6px;
}

/* ================================================================
   EXTRA OPTIONS (transport / add-ons)
   ================================================================ */
#book_form_extra {
  display: none;
}

.transport-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 200px;
  overflow-y: auto;
}

.transport-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 0;
  background: var(--bk-body);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.transport-option:hover {
  border-color: #cec8c0;
}

.transport-option.selected {
  background: rgba(242, 140, 27, 0.08);
  border-color: var(--bk-accent);
}

.transport-option-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 0;
  border: 1.5px solid #bcb5ad;
  background: var(--bk-white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s;
}

.transport-option.selected .transport-option-checkbox {
  background: var(--bk-accent);
  border-color: var(--bk-accent);
}

.transport-checkbox-mark {
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  opacity: 0;
  transform: rotate(-45deg);
  transition: opacity 0.18s;
}

.transport-option.selected .transport-checkbox-mark {
  opacity: 1;
}

.transport-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.transport-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transport-option-title {
  font-size: 0.87em;
  font-weight: 600;
  color: var(--bk-text);
}

.transport-option-details {
  font-size: 0.72em;
  color: var(--bk-muted);
}

.transport-option-price {
  font-size: 0.87em;
  font-weight: 700;
  color: var(--bk-text);
  white-space: nowrap;
}

/* ================================================================
   ACTIONS — CTA BUTTONS
   ================================================================ */
.bk-actions {
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--bk-border);
}

.booking-btn-book {
  width: 100%;
  background: var(--bk-accent);
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 15px 0;
  font-size: 1em;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px var(--bk-accent-glow);
}

.booking-btn-book:hover {
  background: var(--bk-accent2);
  box-shadow: 0 6px 24px var(--bk-accent-glow);
  transform: translateY(-1px);
}

.booking-btn-book:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px var(--bk-accent-glow);
}

.booking-btn-faq {
  width: 100%;
  background: transparent;
  color: var(--bk-muted);
  border: 1.5px solid var(--bk-border);
  border-radius: 0;
  padding: 12px 0;
  font-size: 0.92em;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.booking-btn-faq:hover {
  border-color: var(--bk-accent);
  color: var(--bk-accent);
}

/* .booking-btn-faq-inquiry — no additional overrides */

/* Legacy hidden element */
.booking-options-extra {
  display: none !important;
}

/* ================================================================
   LEGACY / COMPAT
   ================================================================ */
.booking-details { display: none; }
.booking-header  { display: contents; }
.booking-divider { display: none; }
.booking-faq     { display: none; }
.own-select-row  { display: none; }
.own-select-wrap { display: none; }
.own-select      { display: none; }
.own-select-arrow{ display: none; }

/* ================================================================
   SHARE SECTION (footer — main styles in share_button.blade.php)
   ================================================================ */
.booking-share-section {
  background: var(--bk-body);
  border-top: 1px solid var(--bk-border);
  padding: 14px 20px;
  border-radius: 0;
}

/* ================================================================
   PARTICIPANTS MODAL
   ================================================================ */
.participants-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.participants-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.participants-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 0;
  max-width: 460px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.participants-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--bk-border);
}

.participants-modal-header h3 {
  color: var(--bk-text);
  font-size: 1.08em;
  font-weight: 700;
  margin: 0;
}

.participants-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--bk-muted);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: background 0.2s;
}

.participants-modal-close:hover {
  background: var(--bk-body);
  color: var(--bk-text);
}

.participants-modal-body {
  padding: 18px 22px 22px;
}

.participants-modal-body p {
  color: #3c3c3c;
  font-size: 0.96em;
  line-height: 1.65;
  margin: 0;
}

.agb-link {
  color: var(--bk-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* ================================================================
   STICKY CTA BAR — slides in from bottom after form scrolls away
   ================================================================ */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8900;
  display: flex;
  gap: 0;
  padding: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.34, 1.30, 0.64, 1),
    opacity 0.32s ease,
    box-shadow 0.3s ease;
  pointer-events: none;
}

.sticky-cta-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.13);
}

.sticky-cta-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 0;
  font-size: 0.93em;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
  text-transform: uppercase;
}

.sticky-cta-enquiry {
  background: #ffffff;
  color: #111827;
  border-right: 1px solid #e5e7eb;
}

.sticky-cta-enquiry:hover {
  background: #f4f4f4;
  transform: translateY(-2px);
}

.sticky-cta-enquiry:active {
  transform: translateY(0);
}

.sticky-cta-book {
  background: #ea580c;
  color: #ffffff;
}

.sticky-cta-book:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 -2px 20px rgba(234, 88, 12, 0.30);
}

.sticky-cta-book:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 480px) {
  .booking-panel {
    max-width: 98vw;
    min-width: unset;
    margin-top: 22px;
    border-radius: 0;
  }

  .bk-hero {
    padding: 18px 16px 16px;
  }

  .bk-title {
    font-size: 0.98em;
  }

  .booking-price {
    font-size: 2.1em;
  }

  .bk-section {
    padding: 14px 16px;
  }

  .bk-actions {
    padding: 12px 16px 16px;
  }

  .booking-share-section {
    padding: 12px 16px;
  }
}

/* ── Booking panel highlight on anchor navigation ─────────────── */
@keyframes booking-highlight-pulse {
  0%   { box-shadow: var(--bk-shadow), 0 0 0 0 rgba(242, 140, 27, 0.55); }
  40%  { box-shadow: var(--bk-shadow), 0 0 0 8px rgba(242, 140, 27, 0.20); }
  70%  { box-shadow: var(--bk-shadow), 0 0 0 14px rgba(242, 140, 27, 0.06); }
  100% { box-shadow: var(--bk-shadow), 0 0 0 18px rgba(242, 140, 27, 0); }
}

.booking-panel.is-highlighted {
  animation: booking-highlight-pulse 1.4s ease forwards;
  outline: 2px solid rgba(242, 140, 27, 0.5);
  outline-offset: 2px;
  transition: outline 0.3s ease;
}

.booking-panel.highlight-done {
  outline: none;
}

/* Ensure booking enquiry modal always appears above all other elements */
#bookingEnqModal.anfrage-modal {
  z-index: 99999;
}
