/* ===================================================
   Taylor Tire Booking — Setmore-matching design
   =================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --card-alt: #f9fafb;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --primary: #096cc3;
  --primary-hover: #075da8;
  --primary-soft: rgba(9, 108, 195, 0.08);
  --text: #000000;
  --text-secondary: #676767;
  --text-tertiary: #9ca3af;
  --success: #059669;
  --success-bg: #ecfdf5;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

body.is-embed {
  background: #ffffff;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

body.is-embed .app-shell {
  max-width: 100%;
  padding: 0 18px 24px;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  padding: 6px 0;
  transition: color var(--transition);
}

.page-header__back:hover {
  color: var(--primary);
}

.page-header__back svg {
  width: 18px;
  height: 18px;
}

.page-header__title {
  font-size: 15px;
  font-weight: 400;
}

.page-version {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-alt);
}

.language-switch__btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.language-switch__btn:hover,
.language-switch__btn:focus-visible {
  color: var(--text);
}

.language-switch__btn.is-active {
  background: var(--primary);
  color: #ffffff;
}

.header-call-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.header-call-link:hover,
.header-call-link:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.header-call-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-call-link__label {
  color: var(--text-secondary);
}

.header-call-link__number {
  font-weight: 700;
}

.top-anchor-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 4px 4px 14px;
  margin-top: -4px;
}

.top-anchor-nav__link {
  position: relative;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.top-anchor-nav__link:hover,
.top-anchor-nav__link:focus-visible,
.top-anchor-nav__link.is-active {
  color: var(--text);
  text-decoration: none;
}

.top-anchor-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  padding-bottom: 80px;
}

body.is-embed .page-header,
body.is-embed .top-anchor-nav,
body.is-embed #heroSection,
body.is-embed #discoverSections {
  display: none !important;
}

body.is-embed .main-grid {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 24px;
}

body.is-embed .sidebar {
  display: none;
}

body.is-embed .card {
  box-shadow: none;
  border: 0;
}

/* --- Cards / Panels --- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card--flush {
  padding: 0;
}

.card__section {
  padding: 24px;
}

.card__section + .card__section {
  border-top: 1px solid var(--border);
}

/* --- Business Card & Status --- */
.biz-card {
  text-align: center;
}

.biz-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.biz-card__rating {
  font-size: 13px;
  margin-bottom: 12px;
}

.biz-card__stars {
  color: #f59e0b;
}

.biz-card__address {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.biz-card__status {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-card__hours {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: left;
}

.hours-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.hours-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.hours-table td {
  padding: 4px 0;
  color: var(--text-secondary);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.badge--danger {
  background: #fff5f5;
  color: var(--danger);
}

.next-open {
  font-size: 12px;
  color: var(--text-tertiary);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
}

.status-inline svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex: 0 0 auto;
}

.status-inline--closed .status-inline__primary {
  color: var(--danger);
  font-weight: 600;
}

.status-inline--open .status-inline__primary {
  color: var(--success);
  font-weight: 600;
}

.status-inline__secondary {
  color: var(--text-secondary);
}

.status-inline__divider {
  color: var(--text-secondary);
}

/* --- Step indicator --- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), transform var(--transition);
}

.step-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

.step-dot.is-done {
  background: var(--success);
}

/* --- Section headings --- */
.section-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
}

.section-header .section-title {
  margin-bottom: 0;
  white-space: nowrap;
}

.language-switch--section {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.group-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin: 20px 0 10px;
}

.group-label:first-child {
  margin-top: 0;
}

/* --- Vehicle Dropdowns --- */
.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.details-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}

.details-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#step3 .details-column {
  width: 100%;
}

#step3 .details-column .field {
  width: 100%;
}

.details-notes {
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field__select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23676767' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__select:hover {
  border-color: var(--border-hover);
}

.field__select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field__select:disabled {
  background: var(--card-alt);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* --- Service list --- */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: grid;
  grid-template-columns: 40px 1fr auto 24px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
  text-align: left;
  width: 100%;
  font: inherit;
}

.service-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.service-item.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.service-item__icons {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.service-item__icons span {
  font-size: 18px;
}

.service-item__img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.service-item__img-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-alt);
  border: 1px solid var(--border);
}

.service-item__body {
  min-width: 0;
}

.service-item__name {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-item__name .emoji {
  font-size: 16px;
}

.service-item__meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.service-item__meta a {
  color: var(--text);
  text-decoration: underline;
}

.service-item__price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.service-item__chevron {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}

.service-item__chevron svg {
  width: 18px;
  height: 18px;
}

/* --- Calendar --- */
.calendar {
  user-select: none;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar__month {
  font-size: 16px;
  font-weight: 600;
}

.calendar__nav {
  display: flex;
  gap: 4px;
}

.calendar__nav-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.calendar__nav-btn:hover {
  background: var(--card-alt);
  color: var(--text);
}

.calendar__nav-btn svg {
  width: 16px;
  height: 16px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px;
}

.calendar__dow {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  padding: 8px 0;
}

.calendar__day {
  min-height: 72px;
  padding: 6px 4px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
  font: inherit;
  color: var(--text);
  overflow: hidden;
}

.calendar__day-content {
  display: flex;
  min-height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.calendar__day-number {
  line-height: 1;
}

.calendar__day-temps {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-width: 0;
}

.calendar__day-temp {
  display: block;
  max-width: 100%;
  font-size: 10px;
  line-height: 1.1;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar__day-temp--high {
  font-weight: 700;
}

.calendar__day-temp--separator {
  display: none;
}

.calendar__day-temp--low {
  opacity: 0.82;
}

.calendar__day.is-selected .calendar__day-temp {
  color: rgba(255, 255, 255, 0.88);
}

.calendar__day:hover:not(:disabled):not(.is-selected) {
  background: var(--card-alt);
}

.calendar__day.is-selected {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.calendar__day.is-today:not(.is-selected) {
  font-weight: 700;
  color: var(--primary);
}

.calendar__day:disabled,
.calendar__day.is-past {
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar__day.is-empty {
  visibility: hidden;
}

/* timezone */
.timezone-row {
  margin-top: 16px;
}

.timezone-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.timezone-row select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
}

/* --- Time slots --- */
.timeslot-header {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.timeslot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.timeslot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.timeslot-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.timeslot-btn.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.time-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.slots-empty {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 16px 0;
}

.slots-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 16px 0;
}

/* --- Customer form --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.field__input,
.field__textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field__textarea {
  height: 80px;
  padding: 10px 14px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--text-tertiary);
}

.field__error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--outline {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--card-alt);
  border-color: var(--border-hover);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.action-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.biz-card {
  text-align: center;
  padding: 28px 24px 24px;
}

.biz-card__logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
  border-radius: 50%;
  object-fit: cover;
}

.biz-card__logo-placeholder {
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f7bd7, #0b5aa2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.biz-card__name {
  font-size: 18px;
  font-weight: 700;
}

.biz-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-secondary);
}

.biz-card__stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.biz-card__address {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.biz-card__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.biz-card__call:hover,
.biz-card__call:focus-visible {
  background: var(--card-alt);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

/* --- Summary sidebar --- */
.summary-card {
  display: none !important;
  padding: 20px 24px;
}

.summary-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.summary-row + .summary-row {
  border-top: 1px solid var(--border);
}

.summary-row__label {
  font-size: 14px;
  min-width: 0;
}

.summary-row__label small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.summary-row__value {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
}

/* --- Confirmation --- */
.confirm-box {
  text-align: center;
  padding: 48px 24px;
}

.confirm-box__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.confirm-box__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirm-box__text {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* --- Spinner --- */

/* --- Login Choice --- */
.login-choice {
  text-align: center;
  max-width: 400px;
  margin: 40px auto;
}
.login-choice__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}
.login-choice__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px;
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--card-alt);
  border-color: var(--border-hover);
}
.social-btn img, .social-btn svg {
  width: 24px;
  height: 24px;
}
.social-btn svg {
  color: #666;
}
.login-choice__divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #999;
  font-size: 14px;
}
.login-choice__divider::before, 
.login-choice__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-choice__divider span {
  padding: 0 16px;
}
.login-choice__link {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.login-choice__link:hover {
  color: var(--primary);
}


/* --- Staff Selector --- */
.staff-selector {
  margin-bottom: 20px;
}
.staff-selector__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.staff-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.staff-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: all var(--transition);
}
.staff-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.staff-card.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.staff-card__img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.staff-card__img-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f7bd7, #0b5aa2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.staff-card__name {
  font-weight: 500;
}

/* --- Service Details Panel --- */
.service-item-container {
  margin-bottom: 0;
}
.service-details {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 14px 18px;
  margin-top: -1px;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.service-details__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.service-details__staff {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.service-details__info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Cancellation Policy --- */
.cancellation-policy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.5;
}

/* --- Spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* --- Vehicle preview badge --- */
.vehicle-badge {
  display: none !important;
}

.hero-card {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.hero-card__media {
  position: relative;
}

.hero-card__image-link {
  display: block;
  color: inherit;
}

.hero-card__image-link:hover {
  text-decoration: none;
}

.hero-card__image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
}

.hero-card--minimal .hero-card__image {
  height: 180px;
}

.hero-card--booking .hero-card__image {
  height: 345px;
}

.hero-card__gallery-btn {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
}

.hero-card__gallery-btn:hover {
  text-decoration: none;
  background: #ffffff;
}

.discover-sections {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  padding: 24px;
}

.info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.info-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.info-card__link:hover {
  text-decoration: underline;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid__link:hover {
  text-decoration: none;
}

.gallery-grid__link--large {
  grid-column: span 3;
}

.gallery-grid__image {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.gallery-grid__image--large {
  height: 380px;
}

.reviews-summary {
  font-size: 13px;
  color: var(--text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-alt);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.review-card__top span {
  color: #f59e0b;
}

.review-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-alt);
}

.address-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.address-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

#addressPhone {
  margin-top: 8px;
}

.address-map-preview {
  display: block;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.address-map-preview:hover {
  text-decoration: none;
}

.address-map-preview__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: #eef2f7;
}

/* --- Popular Times (Walk-in) --- */
.popular-times {
  margin-top: 8px;
}

.popular-times__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.popular-times__days {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.popular-times__day-btn {
  flex: 1;
  padding: 10px 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: color var(--transition), border-color var(--transition);
}

.popular-times__day-btn:hover {
  color: var(--text);
}

.popular-times__day-btn.is-active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.popular-times__live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  min-height: 24px;
}

.popular-times__live-icon {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.popular-times__live-icon svg {
  width: 18px;
  height: 18px;
}

.popular-times__chart-wrap {
  position: relative;
  padding-bottom: 24px;
}

.popular-times__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 0 2px;
}

.popular-times__bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.popular-times__bar {
  width: 100%;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: #a8c7fa;
  transition: height 0.3s ease;
}

.popular-times__bar.is-current {
  background: #4285f4;
}

.popular-times__bar.is-closed {
  background: var(--border);
  min-height: 2px;
}

.popular-times__now-line {
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 2px;
  background: #5f6368;
  z-index: 2;
  pointer-events: none;
}

.popular-times__now-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5f6368;
}

.popular-times__hours {
  display: flex;
  gap: 4px;
  padding: 6px 2px 0;
}

.popular-times__hour-label {
  flex: 1;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}

.popular-times__closed-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.popular-times__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}

.popular-times__footer svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .header-call-link {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .app-shell {
    padding: 0 16px;
  }

  .page-header {
    flex-wrap: wrap;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .details-layout {
    grid-template-columns: 1fr !important;
  }

  .time-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 18px;
  }

  .section-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .language-switch--section {
    margin-left: auto;
    align-self: center;
  }

  .action-bar {
    flex-direction: column;
  }

  .btn--block-mobile {
    width: 100%;
  }

  .top-anchor-nav {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .top-anchor-nav__link.is-active::after {
    bottom: -12px;
  }

  .hero-card--booking .hero-card__image {
    height: 240px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid__image,
  .gallery-grid__image--large {
    height: 220px;
  }

  .gallery-grid__link--large {
    grid-column: auto;
  }

  .info-card__header,
  .address-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-map-preview__frame {
    height: 260px;
  }

  .header-call-link {
    justify-content: flex-start;
    order: 3;
  }
}

@media (max-width: 480px) {
  .timeslot-grid {
    grid-template-columns: 1fr;
  }

}
