/* Live booking calendar — hero centerpiece */

.cal-frame {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.cal-frame::before {
  /* warm light wash at top */
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 60%;
  background: linear-gradient(180deg, rgba(244, 218, 198, 0.35) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.cal-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.7);
  backdrop-filter: blur(8px);
}
.cal-bar .dots { display: flex; gap: 6px; }
.cal-bar .dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.cal-bar .biz {
  display: flex; align-items: center; gap: 8px;
  margin-left: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.cal-bar .biz-logo {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.04em;
}
.cal-bar .url {
  flex: 1; min-width: 0;
  margin: 0 12px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--ivory-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-bar .live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}
.cal-bar .live .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5d8a4d;
  box-shadow: 0 0 0 0 rgba(93,138,77,0.7);
  animation: cal-pulse 1.8s infinite;
}
@keyframes cal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(93,138,77,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(93,138,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,138,77,0); }
}

.cal-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.cal-sub h4 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0;
}
.cal-sub .week {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.cal-sub .nav-arrows { display: flex; gap: 4px; }
.cal-sub .nav-arrows button {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: 56px repeat(6, 1fr);
  background: var(--card);
  position: relative;
}
.cal-grid .col-head {
  padding: 14px 6px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--card);
}
.cal-grid .col-head:first-child { border-left: none; background: var(--card); }
.cal-grid .col-head .day-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.cal-grid .col-head .day-num {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: var(--ink);
}
.cal-grid .col-head.today .day-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.cal-body { position: relative; }
.cal-grid .body-col {
  border-left: 1px solid var(--line);
  position: relative;
  min-height: 100%;
}
.cal-grid .body-col:first-child { border-left: none; }
.cal-grid .time-col {
  position: relative;
}
.cal-grid .time-row {
  height: 44px;
  position: relative;
}
.cal-grid .time-col .time-row {
  padding-right: 8px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  border-top: 1px dashed transparent;
}
.cal-grid .time-col .time-row span {
  position: absolute;
  top: -6px;
  right: 8px;
  background: var(--card);
  padding: 0 2px;
}
.cal-grid .body-col .time-row {
  border-top: 1px dashed var(--line);
}
.cal-grid .body-col .time-row:first-child { border-top: 1px solid var(--line); }

/* Appointment chips */
.appt {
  position: absolute;
  left: 4px; right: 4px;
  border-radius: 10px;
  padding: 7px 9px 8px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--ink);
  background: var(--clay-wash);
  border: 1px solid rgba(200,85,42,0.25);
  box-shadow: 0 4px 12px -6px rgba(200,85,42,0.35);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: appt-pop 600ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  overflow: hidden;
}
.appt.green { background: #DDE6CF; border-color: rgba(110,122,85,0.3); box-shadow: 0 4px 12px -6px rgba(110,122,85,0.35);}
.appt.sand  { background: var(--sand); border-color: rgba(180,150,90,0.3); }
.appt.rose  { background: #F3D9CE; border-color: rgba(210,160,137,0.4); }
.appt.ink   { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.appt.ink .appt-client { color: var(--paper); opacity: 0.85;}
.appt.ink .appt-time { color: var(--paper); opacity: 0.7;}

.appt-service { font-weight: 500; font-size: 11.5px; letter-spacing: -0.005em; }
.appt-client { font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.appt-time { font-family: var(--mono); font-size: 9.5px; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.02em; }

@keyframes appt-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.94); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Booking notification toast that flies in */
.cal-toast {
  position: absolute;
  right: 18px;
  top: 76px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  font-size: 12px;
  opacity: 0;
  transform: translateX(16px);
  animation: toast-in 800ms cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: 2.6s;
  z-index: 5;
  max-width: 240px;
}
.cal-toast .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--clay-soft);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.cal-toast strong { font-weight: 500; }
.cal-toast .muted { color: var(--ink-soft); font-size: 11px;}
@keyframes toast-in {
  to { opacity: 1; transform: translateX(0); }
}

/* "Now" line */
.now-line {
  position: absolute;
  left: 56px; right: 0;
  height: 1px;
  background: var(--clay);
  z-index: 3;
  pointer-events: none;
}
.now-line::before {
  content: "";
  position: absolute;
  left: -4px; top: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 3px rgba(200,85,42,0.18);
}

/* Tiny floating mobile booker */
.cal-mobile {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 220px;
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 14px 14px 16px;
  z-index: 6;
  transform: rotate(3deg);
}
.cal-mobile::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.cal-mobile .mob-title { font-size: 13px; font-weight: 500; margin-top: 14px; letter-spacing: -0.005em;}
.cal-mobile .mob-sub { font-size: 11px; color: var(--ink-soft); margin-top: 2px;}
.cal-mobile .slots { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cal-mobile .slot {
  height: 28px; border-radius: 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.cal-mobile .slot.taken { background: var(--ivory-2); color: var(--ink-mute); text-decoration: line-through; border-color: transparent;}
.cal-mobile .slot.sel  { background: var(--clay); color: var(--paper); border-color: var(--clay); }
.cal-mobile .mob-btn {
  margin-top: 12px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 820px) {
  .cal-mobile { display: none; }
  .cal-toast { display: none; }
}
