/* Albertówka booking popup — replaces the Framer WhatsApp form overlay */

/* Hide Framer's original form overlay (backdrop + panel); booking.js opens our popup instead. */
[data-framer-portal-id]:has(+ div input[name="Telefon"]),
[data-framer-portal-id] + div:has(input[name="Telefon"]) {
  display: none !important;
}

.alb-root {
  --alb-green: #1c3125;
  --alb-green-soft: rgba(28, 49, 37, 0.08);
  --alb-green-mid: rgba(28, 49, 37, 0.55);
  --alb-cta: #ffc892;
  --alb-cta-hover: #ffbb78;
  --alb-panel: #e8e8e8;
  --alb-card: #f6f6f4;
  --alb-line: rgba(33, 33, 33, 0.12);
  --alb-text: #1c3125;
  --alb-muted: #5b5f5c;
  --alb-error: #b3261e;
  --alb-ok: #3cb72f;
  --alb-serif: "Playfair Display", "Playfair Display Placeholder", Georgia, serif;
  --alb-sans: "Geist", "Geist Placeholder", system-ui, -apple-system, sans-serif;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 33, 28, 0.55);
  font-family: var(--alb-sans);
  color: var(--alb-text);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-font-smoothing: antialiased;
}
.alb-root.alb-open { opacity: 1; }
.alb-root *, .alb-root *::before, .alb-root *::after { box-sizing: border-box; }

.alb-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--alb-panel);
  border-radius: 48px;
  padding: 56px 56px 48px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.12, 0.23, 0.5, 1);
  scrollbar-width: thin;
}
.alb-open .alb-panel { transform: none; }

.alb-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 49, 37, 0.07);
  color: var(--alb-green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.alb-close:hover { background: rgba(28, 49, 37, 0.14); }

.alb-title {
  font-family: var(--alb-serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 12px;
}
.alb-title em { font-style: italic; }
.alb-sub {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--alb-muted);
  margin: 0 auto 32px;
  max-width: 560px;
}

.alb-section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--alb-green-mid);
  margin: 0 0 12px;
}

/* progress bar */
.alb-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 32px;
}
.alb-progress-step {
  position: relative;
  padding: 14px 18px 16px;
  border-radius: 18px;
  background: var(--alb-card);
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.alb-progress-step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--alb-green);
  transition: width 0.6s ease;
}
.alb-progress-step.alb-done::after { width: 100%; }
.alb-progress-step.alb-current::after { width: 50%; background: var(--alb-cta); }
.alb-progress-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  background: rgba(28, 49, 37, 0.1);
}
.alb-done .alb-progress-num { background: var(--alb-green); color: #fff; }
.alb-current .alb-progress-num { background: var(--alb-cta); }
.alb-progress-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.alb-progress-text small { font-size: 12px; color: var(--alb-muted); }
.alb-progress-text b { font-size: 15px; font-weight: 600; }
.alb-done .alb-progress-text small { color: #2c7a22; font-weight: 600; }

/* guests */
.alb-guests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.alb-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--alb-card);
  border-radius: 20px;
  padding: 14px 16px 14px 20px;
}
.alb-guest-label b { display: block; font-size: 16px; font-weight: 600; }
.alb-guest-label small { font-size: 13px; color: var(--alb-muted); }
.alb-stepper { display: flex; align-items: center; gap: 10px; }
.alb-stepper button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--alb-line);
  background: #fff;
  color: var(--alb-green);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.alb-stepper button:hover:not(:disabled) { border-color: var(--alb-green); }
.alb-stepper button:disabled { opacity: 0.35; cursor: default; }
.alb-stepper output { min-width: 24px; text-align: center; font-size: 18px; font-weight: 600; }

/* calendar */
.alb-cal {
  background: var(--alb-card);
  border-radius: 28px;
  padding: 20px 20px 16px;
  margin-bottom: 20px;
}
.alb-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.alb-cal-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--alb-line);
  background: #fff;
  cursor: pointer;
  color: var(--alb-green);
  font-size: 18px;
  display: grid;
  place-items: center;
}
.alb-cal-nav:disabled { opacity: 0.3; cursor: default; }
.alb-cal-hint { font-size: 14px; color: var(--alb-muted); text-align: center; flex: 1; padding: 0 8px; }
.alb-months { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.alb-month-name {
  font-family: var(--alb-serif);
  font-size: 20px;
  text-align: center;
  margin: 4px 0 10px;
  text-transform: capitalize;
}
.alb-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.alb-dow { font-size: 12px; font-weight: 600; color: var(--alb-green-mid); text-align: center; padding: 4px 0 6px; }
.alb-day {
  position: relative;
  height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--alb-text);
  cursor: pointer;
  padding: 0;
}
.alb-day span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 1px auto;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}
.alb-day:hover:not(:disabled) span { background: rgba(28, 49, 37, 0.1); }
.alb-day:disabled { cursor: default; color: rgba(28, 49, 37, 0.28); }
.alb-day.alb-blocked span { text-decoration: line-through; }
.alb-day.alb-today span { box-shadow: inset 0 0 0 1px rgba(28, 49, 37, 0.35); }
.alb-day.alb-in::before,
.alb-day.alb-start.alb-has-end::before,
.alb-day.alb-end::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  right: 0;
  background: var(--alb-green-soft);
}
.alb-day.alb-start::before { left: 50%; }
.alb-day.alb-end::before { right: 50%; }
.alb-day.alb-start span, .alb-day.alb-end span,
.alb-day.alb-start:hover span, .alb-day.alb-end:hover span { background: var(--alb-green); color: #fff; }
.alb-day.alb-preview::before { background: rgba(28, 49, 37, 0.05); }

/* quote */
.alb-quote {
  background: #fff;
  border-radius: 24px;
  padding: 20px 24px;
  margin-bottom: 20px;
  min-height: 64px;
}
.alb-quote-empty { color: var(--alb-muted); font-size: 15px; text-align: center; padding: 6px 0; }
.alb-quote-dates { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.alb-quote-dates b { font-weight: 600; }
.alb-line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 5px 0; color: #333; }
.alb-line.alb-total {
  border-top: 1px solid var(--alb-line);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--alb-text);
}
.alb-line.alb-total span:last-child { font-family: var(--alb-serif); font-size: 26px; font-weight: 400; }
.alb-error { color: var(--alb-error); font-size: 14px; margin: 8px 0 0; }
.alb-quote .alb-error { margin: 0; text-align: center; }

/* buttons */
.alb-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 512px;
  background: var(--alb-cta);
  color: var(--alb-green);
  font: 600 17px/1 var(--alb-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}
.alb-cta:hover:not(:disabled) { background: var(--alb-cta-hover); transform: translateY(-1px); }
.alb-cta:disabled { opacity: 0.45; cursor: default; }
.alb-cta .alb-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(28, 49, 37, 0.25);
  border-top-color: var(--alb-green);
  animation: alb-spin 0.8s linear infinite;
}
@keyframes alb-spin { to { transform: rotate(360deg); } }
.alb-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--alb-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.alb-fineprint { font-size: 13px; color: var(--alb-muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* step 2 */
.alb-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--alb-card);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.5;
}
.alb-summary b { font-weight: 600; }
.alb-summary-total { font-family: var(--alb-serif); font-size: 24px; white-space: nowrap; }
.alb-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.alb-option {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 20px;
  padding: 18px 20px 18px 52px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.alb-option input { position: absolute; opacity: 0; pointer-events: none; }
.alb-option::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(28, 49, 37, 0.35);
  background: #fff;
}
.alb-option:has(input:checked) { border-color: var(--alb-green); }
.alb-option:has(input:checked)::before { border: 6px solid var(--alb-green); }
.alb-option:has(input:focus-visible) { outline: 2px solid var(--alb-cta); outline-offset: 2px; }
.alb-option b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.alb-option small { display: block; font-size: 14px; color: var(--alb-muted); line-height: 1.45; }
.alb-option .alb-amount { display: block; font-family: var(--alb-serif); font-size: 22px; margin-top: 8px; }

.alb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.alb-field { display: flex; flex-direction: column; gap: 6px; }
.alb-field.alb-wide { grid-column: 1 / -1; }
.alb-field label { font-size: 14px; font-weight: 600; }
.alb-field label small { font-weight: 400; color: var(--alb-muted); }
.alb-field input {
  height: 56px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: #fafafa;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  padding: 0 18px;
  font: 16px var(--alb-sans);
  color: var(--alb-text);
  outline: none;
  transition: border-color 0.15s;
}
.alb-field input:focus { border-color: var(--alb-green); }
.alb-field input[aria-invalid="true"] { border-color: var(--alb-error); }
.alb-field .alb-error { margin: 0; }

.alb-pay {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  min-height: 120px;
}
.alb-pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.alb-pay-methods span {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--alb-card);
  color: var(--alb-green);
}
.alb-notice { font-size: 14px; color: var(--alb-muted); line-height: 1.5; text-align: center; padding: 16px 8px; }

/* result */
.alb-result { text-align: center; padding: 8px 0; }
.alb-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: var(--alb-green);
  color: #fff;
}
.alb-result-icon.alb-fail { background: var(--alb-error); }
.alb-result-icon.alb-wait { background: var(--alb-cta); color: var(--alb-green); }
.alb-result .alb-quote { text-align: left; max-width: 520px; margin: 24px auto; }

@media (max-width: 809px) {
  .alb-root { padding: 0; align-items: flex-end; }
  .alb-panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 32px 32px 0 0;
    padding: 48px 18px 28px;
    transform: translateY(40px);
  }
  .alb-close { top: 12px; right: 12px; }
  .alb-title { font-size: 30px; }
  .alb-sub { font-size: 15px; margin-bottom: 24px; }
  .alb-guests, .alb-options, .alb-fields { grid-template-columns: 1fr; }
  .alb-months { grid-template-columns: 1fr; }
  .alb-months > :nth-child(2) { display: none; }
  .alb-cal { padding: 16px 10px 12px; border-radius: 24px; }
  .alb-day { height: 42px; }
  .alb-day span { width: 40px; height: 40px; }
  .alb-progress { gap: 8px; }
  .alb-progress-step { padding: 10px 12px 12px; gap: 8px; border-radius: 14px; }
  .alb-progress-num { width: 26px; height: 26px; font-size: 13px; }
  .alb-progress-text b { font-size: 13px; }
  .alb-progress-text small { font-size: 11px; }
  .alb-summary { flex-direction: column; align-items: flex-start; }
  .alb-quote { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .alb-root, .alb-panel, .alb-progress-step::after { transition: none; }
}
.alb-line span:last-child { white-space: nowrap; }
.alb-notice a { color: var(--alb-green); font-weight: 600; white-space: nowrap; }
.alb-season-note { background: #fff4e5; color: #6b4700; border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
