/* Shared BBVS Public & SNOTCal2 swimlane calendar wrapper styles (/shopping, /bbvs, /lan).
 * Core layout/compact styles live in css/swimlane-calendar.css.
 */

.temp-bbvs-calendars-preview {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#temp-bbvs-public-calendar,
#temp-snotcal2-calendar {
  flex: 0 0 auto;
  margin-block: 0;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#temp-bbvs-public-calendar.bbvs-pub-cal-card {
  border: 1px solid rgba(46, 229, 157, 0.38);
  background: linear-gradient(145deg, rgba(17, 75, 54, 0.22), rgba(8, 20, 34, 0.95) 60%, rgba(5, 14, 24, 0.98));
}

#temp-snotcal2-calendar.snotcal2-cal-card {
  border: 1px solid rgba(234, 179, 8, 0.38);
  background: linear-gradient(145deg, rgba(89, 64, 18, 0.18), rgba(14, 18, 32, 0.95) 60%, rgba(7, 11, 22, 0.98));
}

#temp-bbvs-public-calendar .sc-cal-title {
  color: #a7f3d0;
}

#temp-snotcal2-calendar .sc-cal-title {
  color: #fde68a;
}

.sc-cal-bar.is-bbvs-booked {
  opacity: 0.72;
}

.bbvs-pub-modal-cta {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Portable detail modal for host pages that don't supply their own modal (e.g. /bbvs) */
dialog.bbvs-cal-dialog {
  max-width: min(560px, 92vw);
  width: 100%;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(243, 210, 122, 0.42);
  background: #0e1624;
  color: #e6eefb;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.7);
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
  overflow-x: hidden;
}
dialog.bbvs-cal-dialog::backdrop {
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(2px);
}
.bbvs-cal-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.bbvs-cal-dialog-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}
.bbvs-cal-dialog-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #f6e3a8;
}
.bbvs-cal-dialog-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}
.bbvs-cal-dialog-close {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.bbvs-cal-dialog-close:hover {
  background: rgba(243, 210, 122, 0.2);
  border-color: rgba(243, 210, 122, 0.7);
}
.bbvs-cal-dialog-content {
  padding: 0.85rem 1rem 1rem;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.bbvs-cal-dialog .pkg-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bbvs-cal-dialog .pkg-detail-table th,
.bbvs-cal-dialog .pkg-detail-table td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  vertical-align: top;
}
.bbvs-cal-dialog .pkg-detail-table th {
  width: 32%;
  color: #9eb0c8;
  font-weight: 600;
}
.bbvs-cal-dialog .vendor-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 229, 157, 0.65);
  background: linear-gradient(180deg, #166548 0%, #104834 100%);
  color: #e6fff3;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  box-sizing: border-box;
}
.bbvs-cal-dialog .vendor-mini-btn:hover {
  background: linear-gradient(180deg, #1a7a57 0%, #135840 100%);
  border-color: #34d399;
}

/* Ultra-minimal modal body: 100%-width date pickers + 2/3 Hold box + 1/3 Book button */
.bbvs-min-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.bbvs-dp-villas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.bbvs-dp-villa-btn {
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.bbvs-dp-villa-btn.is-active {
  background: rgba(234, 179, 8, 0.24);
  border-color: #fde047;
  color: #fef08a;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.28);
}
.bbvs-dp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.bbvs-dp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.bbvs-dp-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #9eb0c8;
}
.bbvs-dp-input {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: #0b1220;
  color: #f8fafc;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 44px;
  text-align: left;
  box-sizing: border-box;
}
.bbvs-dp-input::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
  max-width: 100%;
}
.bbvs-dp-input:focus {
  outline: none;
  border-color: #fde047;
  box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.3);
}
@media (max-width: 440px) {
  .bbvs-dp-grid { gap: 8px; }
  .bbvs-dp-input { padding: 0 7px; }
}
.bbvs-dp-summary {
  font-size: 15px;
  font-weight: 800;
  color: #22d3ee;
  letter-spacing: 0.01em;
}
.bbvs-dp-summary.is-warn {
  color: #fbbf24;
  font-size: 13.5px;
}
.bbvs-hold-btn.is-disabled,
.bbvs-book-btn.is-disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* 2/3 Hold box (pale muted yellow) + 1/3 vibrant green Book button */
.bbvs-act-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  align-items: stretch;
  margin-top: 2px;
}
.bbvs-hold-box {
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 10px;
  padding: 6px 8px 8px;
  background: rgba(253, 230, 138, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bbvs-hold-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 230, 138, 0.72);
  text-align: center;
  line-height: 1;
}
.bbvs-hold-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  flex: 1 1 auto;
}
.bbvs-hold-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 4px;
  border-radius: 7px;
  border: 1px solid rgba(253, 230, 138, 0.32);
  background: rgba(254, 243, 199, 0.13);
  color: #fef3c7;
  text-decoration: none;
  line-height: 1.15;
  transition: background 120ms ease, border-color 120ms ease;
}
.bbvs-hold-btn:hover {
  background: rgba(254, 243, 199, 0.22);
  border-color: rgba(253, 230, 138, 0.6);
}
.bbvs-hb-top {
  font-size: 14px;
  font-weight: 800;
}
.bbvs-hb-bot {
  font-size: 12px;
  font-weight: 600;
  color: rgba(254, 243, 199, 0.8);
}
.bbvs-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #67e8f9;
  background: linear-gradient(180deg, #06b6d4 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: filter 120ms ease, transform 120ms ease;
}
.bbvs-book-btn:hover {
  filter: brightness(1.08);
}
