/* ============================================================
   POOLSIDE OASIS — Verfügbarkeits- & Preis-Modul
   Styles für den Kalender-/Preis-Dialog.
   Nutzt die CSS-Variablen der Seite (--teal-deep, --gold, ...).
   ============================================================ */

.bk-overlay{
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 1rem;
  background: rgba(28,32,31,0.55);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  overflow-y: auto;
}
.bk-overlay.open{ opacity: 1; visibility: visible; }

.bk-dialog{
  background: var(--cream, #fff);
  width: 100%; max-width: 920px;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(20,28,26,0.4);
  overflow: hidden;
  transform: translateY(18px) scale(.985);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  font-family: var(--font-body, system-ui, sans-serif);
}
.bk-overlay.open .bk-dialog{ transform: none; }

.bk-head{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 1.7rem 1.2rem;
  background: var(--teal-deep, #2C4E4A);
  color: var(--cream, #fff);
}
.bk-head .bk-eyebrow{
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--gold-soft, #DCC18A); font-weight: 600; margin-bottom: 0.35rem;
}
.bk-head h3{
  font-family: var(--font-display, serif); font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; color: var(--cream, #fff); margin: 0;
}
.bk-close{
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream, #fff); transition: background .2s;
}
.bk-close:hover{ background: rgba(255,255,255,0.26); }
.bk-close svg{ width: 18px; height: 18px; }

.bk-body{
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 0; align-items: stretch;
}
@media (max-width: 760px){ .bk-body{ grid-template-columns: 1fr; } }

/* ---- Calendar column ---- */
.bk-cal{
  padding: 1.5rem 1.7rem;
  border-right: 1px solid var(--line, #e7e4dc);
}
@media (max-width: 760px){ .bk-cal{ border-right: none; border-bottom: 1px solid var(--line, #e7e4dc); } }

.bk-cal-nav{
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.bk-cal-nav .bk-month-label{
  font-family: var(--font-display, serif); font-size: 1.15rem; color: var(--charcoal, #2B2B2C); font-weight: 500;
}
.bk-nav-btn{
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, #e7e4dc);
  background: var(--cream, #fff); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--charcoal-soft, #4A4946); transition: all .2s;
}
.bk-nav-btn:hover:not(:disabled){ background: var(--charcoal, #2B2B2C); color: var(--cream, #fff); border-color: var(--charcoal, #2B2B2C); }
.bk-nav-btn:disabled{ opacity: 0.3; cursor: not-allowed; }
.bk-nav-btn svg{ width: 15px; height: 15px; }

.bk-grid{ display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.bk-dow{
  text-align: center; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--charcoal-soft, #4A4946); font-weight: 600; padding-bottom: 0.4rem;
}
.bk-day{
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; border-radius: 5px; position: relative;
  color: var(--charcoal, #2B2B2C);
}
.bk-day.empty{ background: transparent; }
.bk-day.avail{ background: rgba(62,107,102,0.10); color: var(--teal-deep, #2C4E4A); font-weight: 500; }
.bk-day.booked{ background: var(--sand, #F1EFE9); color: rgba(74,73,70,0.4); text-decoration: line-through; }
.bk-day.past{ color: rgba(74,73,70,0.28); }
.bk-day.today{ box-shadow: inset 0 0 0 1.5px var(--gold, #C9A04E); font-weight: 700; }

.bk-legend{
  display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1.1rem;
  font-size: 0.74rem; color: var(--charcoal-soft, #4A4946);
}
.bk-legend span{ display: inline-flex; align-items: center; gap: 0.4rem; }
.bk-legend .sw{ width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.bk-legend .sw.avail{ background: rgba(62,107,102,0.18); }
.bk-legend .sw.booked{ background: var(--sand, #F1EFE9); border: 1px solid #d9d4c8; }

.bk-status{
  margin-top: 1rem; font-size: 0.72rem; color: var(--charcoal-soft, #4A4946); font-style: italic;
  display: flex; align-items: center; gap: 0.45rem;
}
.bk-status .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--gold, #C9A04E); flex-shrink: 0; }
.bk-status.live .dot{ background: #4f9d6b; }
.bk-status.error .dot{ background: #c0703e; }

/* ---- Price column ---- */
.bk-prices{ padding: 1.5rem 1.7rem; display: flex; flex-direction: column; }
.bk-prices h4{
  font-family: var(--font-display, serif); font-weight: 500; font-size: 1.15rem;
  color: var(--charcoal, #2B2B2C); margin: 0 0 0.2rem;
}
.bk-prices .bk-sub{ font-size: 0.78rem; color: var(--charcoal-soft, #4A4946); margin-bottom: 1.1rem; }

.bk-rate{
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line, #ece9e1);
}
.bk-rate:last-of-type{ border-bottom: none; }
.bk-rate .bk-season{ display: flex; flex-direction: column; }
.bk-rate .bk-season .name{ font-weight: 600; color: var(--charcoal, #2B2B2C); font-size: 0.9rem; }
.bk-rate .bk-season .span{ font-size: 0.74rem; color: var(--charcoal-soft, #4A4946); }
.bk-rate .bk-price{ text-align: right; white-space: nowrap; }
.bk-rate .bk-price .amt{ font-family: var(--font-display, serif); font-size: 1.2rem; color: var(--teal-deep, #2C4E4A); font-weight: 600; }
.bk-rate .bk-price .from{ font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--charcoal-soft, #4A4946); display: block; }
.bk-rate .bk-price .unit{ font-size: 0.7rem; color: var(--charcoal-soft, #4A4946); }

/* ---- Animated inquiry nudge ---- */
.bk-nudge{
  margin-top: 1.2rem; padding: 0.95rem 1.05rem;
  border: 1px solid var(--gold-soft, #DCC18A);
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(201,160,78,0.07), rgba(201,160,78,0.16), rgba(201,160,78,0.07));
  background-size: 220% 100%;
  animation: bk-shimmer 5.5s ease-in-out infinite;
  position: relative; overflow: hidden;
}
@keyframes bk-shimmer{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}
.bk-nudge .bk-nudge-title{
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display, serif); font-size: 1rem; color: var(--charcoal, #2B2B2C);
  font-weight: 500; margin-bottom: 0.3rem;
}
.bk-nudge .bk-spark{
  width: 17px; height: 17px; color: var(--gold, #C9A04E); flex-shrink: 0;
  animation: bk-twinkle 2.6s ease-in-out infinite;
}
@keyframes bk-twinkle{
  0%,100%{ transform: scale(1) rotate(0); opacity: .85; }
  50%{ transform: scale(1.18) rotate(8deg); opacity: 1; }
}
.bk-nudge p{ font-size: 0.8rem; color: var(--charcoal-soft, #4A4946); margin: 0; line-height: 1.5; }

.bk-cta{ margin-top: auto; padding-top: 1.2rem; }
.bk-cta .btn{ width: 100%; justify-content: center; }
.bk-cta-note{ font-size: 0.7rem; color: var(--charcoal-soft, #4A4946); text-align: center; margin-top: 0.6rem; font-style: italic; }

/* Trigger button that opens the dialog (re-uses .btn styling) */
.bk-open-row{ margin: 0 0 1.3rem; }
.bk-open-row .btn{ width: 100%; justify-content: center; gap: 0.5rem; }
.bk-open-row .btn svg{ width: 17px; height: 17px; }
