/* ── Pricing Calculator ─────────────────────────────────────── */

/* Backdrop */
.calc-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.calc-backdrop.open {
  display: block;
  opacity: 1;
}

/* Panel — desktop: right-side slide-in */
.calc-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100vw;
  background: rgba(8, 22, 14, 0.98);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.calc-panel.open {
  transform: translateX(0);
}

/* Mobile: 90vh bottom sheet with clip-path circle reveal */
@media (max-width: 768px) {
  .calc-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 90vh;
    border-left: none;
    border-top: none;
    transform: none;
    clip-path: circle(0px at var(--calc-origin-x, calc(100% - 54px)) var(--calc-origin-y, calc(100% + 50px)));
    transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .calc-panel.open {
    transform: none;
    clip-path: circle(150% at var(--calc-origin-x, calc(100% - 54px)) var(--calc-origin-y, calc(100% + 50px)));
  }
  /* Close button hidden on mobile — tap the backdrop strip (top 10vh) to dismiss */
  .calc-close { display: none !important; }
}

/* Header — position: relative + z-index keeps it above the panel's backdrop-filter layer on WebKit */
.calc-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 0;
  flex-shrink: 0;
}
.calc-title {
  font-family: 'Cormorant Upright', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.calc-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.calc-close:hover { color: rgba(255,255,255,0.9); }

/* Progress bar */
.calc-progress {
  display: flex;
  gap: 6px;
  padding: 16px 28px 0;
  flex-shrink: 0;
}
.calc-dot {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.12);
  transition: background 0.35s ease;
}
.calc-dot.active {
  background: var(--gold);
}

/* Scrollable body */
.calc-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 28px 48px;
}

/* Individual step */
.calc-step { display: none; }
.calc-step.active { display: block; }

/* Step headings */
.calc-step-title {
  font-family: 'Cormorant Upright', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--off-white);
  margin: 0 0 4px;
  line-height: 1.2;
}
.calc-step-sub {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin: 0 0 28px;
  text-transform: uppercase;
}

/* Field label */
.calc-label {
  display: block;
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

/* Guest stepper */
.calc-stepper {
  display: flex;
  align-items: stretch;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  width: fit-content;
}
.calc-stepper-btn {
  background: rgba(255,255,255,0.04);
  border: none;
  color: var(--off-white);
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  font-family: 'EB Garamond', serif;
}
.calc-stepper-btn:hover { background: rgba(255,255,255,0.1); }
.calc-stepper-val {
  min-width: 56px;
  text-align: center;
  font-family: 'Cormorant Upright', serif;
  font-size: 26px;
  color: var(--off-white);
  border: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  padding: 8px 10px;
  line-height: 1.2;
}

/* Date input */
.calc-date {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--off-white);
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  padding: 11px 14px;
  margin-bottom: 28px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  color-scheme: dark;
}
.calc-date:focus { border-color: rgba(201,169,110,0.55); }

/* Chip group */
.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.calc-chip {
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  line-height: 1.4;
}
.calc-chip:hover {
  border-color: rgba(201,169,110,0.45);
  color: var(--off-white);
}
.calc-chip.selected {
  border-color: var(--gold);
  background: rgba(201,169,110,0.1);
  color: var(--gold);
}

/* Duration — two equal chips */
.calc-chips.calc-toggle .calc-chip {
  flex: 1;
  text-align: center;
}

/* Add-on section */
.calc-addon-row { margin-bottom: 24px; }

/* Action row */
.calc-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.calc-btn-back {
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.5);
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.calc-btn-back:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--off-white);
}
.calc-btn-next {
  flex: 1;
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.calc-btn-next:hover { background: var(--gold-light); }

/* ── Result step ─────────────────────────────────── */
.calc-result-yacht {
  font-family: 'Cormorant Upright', serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--off-white);
  margin: 0 0 4px;
  line-height: 1.1;
}
.calc-result-note {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 28px;
}
.calc-price-breakdown {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.calc-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  color: rgba(255,255,255,0.7);
}
.calc-price-row-val {
  font-family: 'Inconsolata', monospace;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
}
.calc-price-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0 4px;
}
.calc-price-total-label {
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.calc-price-total-val {
  font-family: 'Cormorant Upright', serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}
.calc-price-total-note {
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-top: 8px;
  text-align: right;
  letter-spacing: 0.04em;
}

/* WhatsApp CTA */
.calc-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25D366;
  border: none;
  color: #fff;
  font-family: 'Inconsolata', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.calc-wa-btn:hover,
.calc-wa-btn:focus {
  background: #1ebe5a;
  color: #fff;
  text-decoration: none;
}
.calc-change-link {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Inconsolata', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}
.calc-change-link:hover { color: rgba(255,255,255,0.65); }

/* ── Navbar "Prices" link — desktop only ──────────── */
@media (max-width: 768px) {
  .nav-quote-btn { display: none !important; }
}

/* ── Floating calculator button — mobile only, 3rd in stack ── */
.mob-calc-btn {
  bottom: calc(20px + 68px + 12px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(201,169,110,0.3) !important;
  z-index: 1070 !important;
}
.mob-calc-btn { position: fixed; }
.mob-calc-btn .calc-btn-icon-default,
.mob-calc-btn .calc-btn-icon-close {
  position: absolute;
  display: flex;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mob-calc-btn .calc-btn-icon-default {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.mob-calc-btn .calc-btn-icon-close {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}
.mob-calc-btn.is-open .calc-btn-icon-default {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}
.mob-calc-btn.is-open .calc-btn-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.hero-in-view .mob-calc-btn {
  opacity: 0;
  pointer-events: none;
}
