/* ═══════════════════════════════════════════════════════════════════════════
   BOOKING CALENDAR — append these styles to your existing css/styles.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.bkcal-wrap {
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(10,22,40,.08);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(10,22,40,.08);
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.bkcal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.bkcal-month-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy, #0f2942);
}
.bkcal-nav {
  background: none;
  border: 1px solid rgba(10,22,40,.12);
  border-radius: 8px;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--navy, #0f2942);
  transition: background .15s;
}
.bkcal-nav:hover { background: var(--sand, #f5f0e8); }

/* ── Legend ───────────────────────────────────────────────────────────────── */
.bkcal-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: #8292a8;
}
.leg-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.leg-swatch.available { background: #e8f5f4; border: 1px solid #4ecdc4; }
.leg-swatch.booked    { background: #f5e8e8; border: 1px solid #e85d4a; }
.leg-swatch.selected  { background: var(--aqua, #4ecdc4); }

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.bkcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 1rem;
}
.bkcal-dow {
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: #8292a8;
  padding: .3rem 0 .5rem;
  text-transform: uppercase;
}
.bkcal-cell {
  position: relative;
  border-radius: 8px;
  padding: .35rem .2rem .3rem;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  text-align: center;
  transition: background .12s;
  user-select: none;
}
.bkcal-cell.empty,
.bkcal-cell.past {
  opacity: .3;
}
.bkcal-cell.available {
  background: #f0fafa;
  cursor: pointer;
  border: 1px solid transparent;
}
.bkcal-cell.available:hover,
.bkcal-cell.hover {
  background: #d4f0ee;
  border-color: var(--aqua, #4ecdc4);
}
.bkcal-cell.in-range {
  background: #e0f6f5;
  border-radius: 0;
}
.bkcal-cell.selected {
  background: var(--aqua, #4ecdc4) !important;
  border-color: var(--aqua2, #38b2ab) !important;
}
.bkcal-cell.selected .bkcal-daynum,
.bkcal-cell.selected .bkcal-price { color: var(--navy, #0f2942) !important; }
.bkcal-cell.booked {
  background: #fdf0f0;
  border: 1px solid #f5c6c6;
  cursor: not-allowed;
}
.bkcal-cell.booked .bkcal-daynum { color: #e85d4a; text-decoration: line-through; }
.bkcal-cell.blocked {
  background: #f5f5f5;
  cursor: not-allowed;
}
.bkcal-cell.blocked .bkcal-daynum { color: #bbb; }
.bkcal-daynum {
  font-size: .85rem;
  font-weight: 500;
  color: var(--navy, #0f2942);
  line-height: 1;
}
.bkcal-price {
  font-size: .65rem;
  color: var(--aqua2, #38b2ab);
  font-weight: 500;
  line-height: 1;
}
.bkcal-sat {
  font-size: .55rem;
  background: var(--navy, #0f2942);
  color: #fff;
  border-radius: 3px;
  padding: 1px 3px;
  letter-spacing: .04em;
  line-height: 1;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */
.bkcal-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}
.bkcal-spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(78,205,196,.2);
  border-top-color: var(--aqua, #4ecdc4);
  border-radius: 50%;
  animation: bkcal-spin .7s linear infinite;
}
@keyframes bkcal-spin { to { transform: rotate(360deg); } }

/* ── Hint / Summary ───────────────────────────────────────────────────────── */
.bkcal-hint {
  font-size: .85rem;
  color: #8292a8;
  text-align: center;
  padding: .75rem;
  background: var(--sand, #f5f0e8);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.bkcal-hint.error { color: #e85d4a; background: #fdf0f0; }
.bkcal-summary {
  background: var(--navy, #0f2942);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.bkcal-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: .87rem;
  margin-bottom: .4rem;
  opacity: .85;
}
.bkcal-sum-row.total { opacity: 1; font-weight: 600; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.15); }
.bkcal-total-price { color: var(--aqua, #4ecdc4); font-size: 1.1rem; }
.bkcal-sum-note { font-size: .72rem; opacity: .5; margin-top: .5rem; }

/* ── Booking form ─────────────────────────────────────────────────────────── */
.bkcal-form { margin-top: .5rem; }
.bkcal-form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy, #0f2942);
  margin-bottom: 1rem;
}
.bkcal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
.bkcal-fg {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .75rem;
}
.bkcal-fg label {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8292a8;
}
.bkcal-fg input,
.bkcal-fg select,
.bkcal-fg textarea {
  border: 1px solid rgba(10,22,40,.12);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--navy, #0f2942);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.bkcal-fg input:focus,
.bkcal-fg select:focus,
.bkcal-fg textarea:focus { border-color: var(--aqua, #4ecdc4); }
.bkcal-fg textarea { min-height: 60px; resize: vertical; }
.bkcal-submit {
  width: 100%;
  background: var(--aqua, #4ecdc4);
  color: var(--navy, #0f2942);
  border: none;
  border-radius: 10px;
  padding: .9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: .25rem;
}
.bkcal-submit:hover:not(:disabled) { background: var(--aqua2, #38b2ab); transform: translateY(-1px); }
.bkcal-submit:disabled { opacity: .6; cursor: not-allowed; }
.bkcal-form-note {
  font-size: .75rem;
  color: #8292a8;
  text-align: center;
  margin-top: .6rem;
}

/* ── Success message ──────────────────────────────────────────────────────── */
.bkcal-success {
  text-align: center;
  padding: 2rem 1rem;
}
.bkcal-success svg {
  width: 3rem; height: 3rem;
  stroke: var(--aqua, #4ecdc4);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: .8rem;
  display: block;
  margin: 0 auto .8rem;
}
.bkcal-success h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--navy, #0f2942);
  margin-bottom: .4rem;
}
.bkcal-success p { color: #8292a8; font-size: .88rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .bkcal-form-row { grid-template-columns: 1fr; }
  .bkcal-cell { min-height: 44px; }
  .bkcal-price { display: none; }
  .bkcal-wrap { padding: 1rem .75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN CALENDAR — styles for the admin dashboard calendar management panel
   ═══════════════════════════════════════════════════════════════════════════ */

.admcal-wrap { font-family: 'DM Sans', sans-serif; }

/* Property tabs */
.admcal-props {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.admcal-prop-btn {
  padding: .5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--border, rgba(10,22,40,.1));
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  cursor: pointer;
  color: var(--muted, #8292a8);
  transition: all .2s;
}
.admcal-prop-btn.active {
  background: var(--navy, #0f2942);
  color: #fff;
  border-color: var(--navy, #0f2942);
}

/* Admin calendar grid */
.admcal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.admcal-month-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.admcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1.5rem;
}
.admcal-dow {
  text-align: center;
  font-size: .7rem;
  font-weight: 500;
  color: #8292a8;
  padding: .3rem 0;
  text-transform: uppercase;
}
.admcal-cell {
  border-radius: 8px;
  padding: .4rem .2rem;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .12s;
  position: relative;
  text-align: center;
}
.admcal-cell.empty { opacity: 0; pointer-events: none; }
.admcal-cell.past  { opacity: .35; cursor: default; pointer-events: none; }
.admcal-cell.available { background: #f0fafa; }
.admcal-cell.booked    { background: #fdf0f0; }
.admcal-cell.blocked   { background: #f0f0f0; }
.admcal-cell:hover:not(.past) { border-color: var(--aqua, #4ecdc4); }
.admcal-cell.admin-selected { border-color: var(--navy, #0f2942) !important; background: #e8eef5 !important; }
.admcal-daynum-a { font-size: .82rem; font-weight: 600; color: var(--navy, #0f2942); }
.admcal-price-a  { font-size: .63rem; color: var(--aqua2, #38b2ab); font-weight: 500; }
.admcal-status-a { font-size: .6rem; border-radius: 3px; padding: 1px 4px; font-weight: 600; letter-spacing: .04em; }
.admcal-status-a.available { background: #d4f0ee; color: #1a7a73; }
.admcal-status-a.booked    { background: #fde0de; color: #c0392b; }
.admcal-status-a.blocked   { background: #e8e8e8; color: #666; }

/* Admin action panel */
.admcal-actions {
  background: #fff;
  border: 1px solid var(--border, rgba(10,22,40,.1));
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.admcal-actions h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--navy, #0f2942);
}
.admcal-selected-info {
  font-size: .83rem;
  color: var(--muted, #8292a8);
  margin-bottom: 1rem;
  min-height: 1.2em;
}
.admcal-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.admcal-field { display: flex; flex-direction: column; gap: .3rem; }
.admcal-field label { font-size: .73rem; color: var(--muted, #8292a8); text-transform: uppercase; letter-spacing: .07em; }
.admcal-field input,
.admcal-field select {
  border: 1px solid rgba(10,22,40,.12);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  outline: none;
}
.admcal-field input:focus,
.admcal-field select:focus { border-color: var(--aqua, #4ecdc4); }
.admcal-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.admcal-apply-btn {
  background: var(--aqua, #4ecdc4);
  color: var(--navy, #0f2942);
  border: none;
  border-radius: 8px;
  padding: .6rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.admcal-apply-btn:hover { background: var(--aqua2, #38b2ab); }
.admcal-clear-btn {
  background: var(--sand2, #ede8df);
  color: var(--text, #1a2744);
  border: none;
  border-radius: 8px;
  padding: .6rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  cursor: pointer;
}
.admcal-reset-btn {
  background: transparent;
  color: var(--coral, #e85d4a);
  border: 1px solid var(--coral, #e85d4a);
  border-radius: 8px;
  padding: .6rem 1.3rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  cursor: pointer;
}
