/* ── Booking Modal ─────────────────────────────────────────────────────────── */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.booking-modal[hidden] { display: none; }

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 46, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booking-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  outline: none;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */
.booking-header {
  background: var(--gradient-hero, linear-gradient(145deg, #0d2136 0%, #1a4b73 100%));
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.125rem;
}
.booking-header img { opacity: 0.95; flex-shrink: 0; }
.booking-header-text h2 {
  font-family: var(--font-headline, 'Outfit', sans-serif);
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}
.booking-header-text p { margin: 0; font-size: 0.875rem; opacity: 0.75; }

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.booking-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ── Body — two columns ─────────────────────────────────────────────────────── */
#booking-body {
  display: flex;
  min-height: 380px;
}
#booking-body[hidden] { display: none; }

/* ── Calendar pane ───────────────────────────────────────────────────────────── */
.booking-calendar {
  flex: 1;
  padding: 1.5rem 1.25rem 1.5rem 1.75rem;
  border-right: 1px solid #e8ecf0;
}

.booking-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.125rem;
}
.booking-month-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #0d2136;
}
.booking-nav {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.375rem;
  color: #b0bec5;
  user-select: none;
}

.booking-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #90a4ae;
  margin-bottom: 0.375rem;
}

#booking-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bk-date {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
  border: none;
  background: none;
  padding: 0;
}
.bk-date--empty { pointer-events: none; }
.bk-date--na    { color: #cfd8dc; pointer-events: none; }

.bk-date--avail {
  color: var(--color-mountain-blue, #4597cb);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.bk-date--avail:hover  { background: rgba(69, 151, 203, 0.12); }
.bk-date--selected,
.bk-date--selected:hover {
  background: var(--color-mountain-blue, #4597cb) !important;
  color: #fff !important;
}

/* ── Slots pane ──────────────────────────────────────────────────────────────── */
#booking-slots {
  width: 196px;
  flex-shrink: 0;
  border-left: 1px solid #e8ecf0;
  display: flex;
  flex-direction: column;
}
#booking-slots[hidden] { display: none; }

#booking-slots-header {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0d2136;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #e8ecf0;
  flex-shrink: 0;
}

#booking-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  overflow-y: auto;
  padding: 0.875rem 1.25rem 1.25rem;
  max-height: 340px;
}

.bk-slot {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--color-mountain-blue, #4597cb);
  border-radius: 6px;
  background: #fff;
  color: var(--color-mountain-blue, #4597cb);
  font-family: var(--font-body, 'Lato', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  text-align: center;
}
.bk-slot:hover {
  background: var(--color-mountain-blue, #4597cb);
  color: #fff;
}

/* ── Confirmation ────────────────────────────────────────────────────────────── */
#booking-confirm {
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
#booking-confirm[hidden] { display: none; }

.booking-confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--color-mountain-blue, #4597cb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.375rem;
}
#booking-confirm h3 {
  font-family: var(--font-headline, 'Outfit', sans-serif);
  font-size: 1.375rem;
  color: #0d2136;
  margin: 0;
}
#booking-confirm p  { color: #607d8b; margin: 0; font-size: 0.9375rem; }
#booking-confirm .btn { margin-top: 0.5rem; }

/* ── Contact / agent form success state ──────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 3rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}
.form-success__icon {
  width: 64px;
  height: 64px;
  background: var(--color-mountain-blue, #4597cb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.375rem;
}
.form-success h3 {
  font-family: var(--font-headline, 'Outfit', sans-serif);
  font-size: 1.25rem;
  color: #0d2136;
  margin: 0;
}
.form-success p { color: #607d8b; max-width: 380px; margin: 0; }

/* ── Agent reviews (Google mock) ─────────────────────────────────────────────── */
.agent-reviews-header {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 1.375rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid #e8ecf0;
}
.agent-reviews-rating {
  font-family: var(--font-headline, 'Outfit', sans-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0d2136;
  line-height: 1;
}
.agent-reviews-biz    { font-size: 0.8125rem; font-weight: 700; color: #0d2136; letter-spacing: 0.01em; margin-bottom: 0.1rem; }
.agent-reviews-stars  { color: #fbbc04; font-size: 1.125rem; letter-spacing: 3px; margin: 0.1rem 0 0.15rem; }
.agent-reviews-count  { font-size: 0.8125rem; color: #90a4ae; }
.agent-reviews-list   { display: flex; flex-direction: column; gap: 1rem; }

.review-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  padding: 1.125rem;
  transition: box-shadow 0.2s;
}
.review-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.review-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.review-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-mountain-blue, #4597cb);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.review-card__name { font-weight: 700; font-size: 0.875rem; color: #0d2136; }
.review-card__time { font-size: 0.75rem; color: #90a4ae; margin-top: 1px; }
.review-card__g    { margin-left: auto; flex-shrink: 0; opacity: 0.85; }
.review-card__stars { color: #fbbc04; font-size: 0.9375rem; letter-spacing: 2px; margin-bottom: 0.4375rem; }
.review-card__text  { font-size: 0.875rem; color: #455a64; line-height: 1.65; }

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #booking-body         { flex-direction: column; }
  .booking-calendar     { border-right: none; border-bottom: 1px solid #e8ecf0; padding: 1.25rem; }
  #booking-slots        { width: 100%; border-left: none; border-top: 1px solid #e8ecf0; }
  #booking-slots-list   { max-height: none; }
  .booking-header       { padding: 1.25rem 1.5rem; gap: 0.75rem; }
  .booking-header img   { width: 100px; }
}
