/* Admin portal – availability calendar */

.availability-calendar-shell {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.availability-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.availability-calendar-title {
  text-align: center;
  flex: 1;
}

.availability-calendar-month {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.availability-calendar-year {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.availability-calendar-nav {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.75rem;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.availability-calendar-nav:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #eff6ff;
}

.availability-calendar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.availability-calendar-action {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.availability-calendar-action:hover:not(:disabled) {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #eff6ff;
}

.availability-calendar-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.availability-calendar-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.availability-calendar-help {
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  color: #64748b;
}

.availability-calendar.is-dragging {
  user-select: none;
  cursor: crosshair;
}

.availability-calendar.is-dragging .availability-calendar-day.is-selectable {
  cursor: crosshair;
}

.availability-calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0.3rem;
}

.availability-calendar-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  color: #64748b;
  padding: 0.35rem 0;
  border: none;
}

.availability-calendar-table tbody td {
  padding: 0;
  border: none;
  vertical-align: middle;
  text-align: center;
}

.availability-calendar-day {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0;
  transition: all 0.15s ease;
}

.availability-calendar-day.is-other-month,
.availability-calendar-day.is-disabled {
  color: #cbd5e1;
  cursor: default;
}

.availability-calendar-day.is-selectable {
  border-color: #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.availability-calendar-day.is-selectable:hover {
  border-color: #0d6efd;
  background: #eff6ff;
  color: #0d6efd;
}

.availability-calendar-day.is-selected {
  border-color: #0a58ca;
  background: linear-gradient(135deg, #0d6efd, #0a58ca);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.28);
}

.availability-calendar-day.is-selected:hover {
  border-color: #dc3545;
  background: linear-gradient(135deg, #ef4444, #dc3545);
  color: #fff;
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.24);
}

.availability-calendar-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.45);
}

.availability-calendar-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2rem;
}

.availability-calendar-empty {
  color: #64748b;
  font-size: 0.82rem;
}

.availability-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.availability-date-chip:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.availability-date-chip-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
}

.availability-slot-list .availability-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.availability-slot-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.availability-slot-date {
  font-weight: 700;
  color: #0f172a;
}

.availability-slot-time {
  font-size: 0.85rem;
  color: #64748b;
}

/* Services admin panel */

.services-panel {
  padding-bottom: 1rem;
}

.services-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.services-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.services-panel-subtitle {
  color: #64748b;
  margin: 0;
  max-width: 36rem;
  line-height: 1.55;
}

.services-refresh-icon {
  display: inline-block;
  margin-right: 0.15rem;
}

.services-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 1rem;
}

.services-form-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eef2f7;
}

.services-form-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.services-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
}

.services-form-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.services-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.services-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eef2f7;
}

.services-form-status {
  font-size: 0.82rem;
  color: #64748b;
  flex: 1;
}

.services-form-status.is-error {
  color: #dc3545;
}

.services-form-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.services-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.services-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.services-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.services-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 0.25rem;
}

.services-stat-card-active {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.services-stat-card-active .services-stat-value {
  color: #0d6efd;
}

.services-stat-card-archived .services-stat-value {
  color: #64748b;
}

.services-stat-card-bookings .services-stat-value {
  color: #0f766e;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.services-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.services-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.services-card-archived {
  background: #f8fafc;
  opacity: 0.92;
}

.services-card-main {
  flex: 1;
  min-width: 0;
}

.services-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.services-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.services-code-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.services-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.services-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.services-status-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.services-status-archived {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.services-card-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.services-card-desc-empty {
  font-style: italic;
  color: #94a3b8;
}

.services-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.services-rate-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.services-rate-unit {
  font-weight: 600;
  color: #3b82f6;
}

.services-booking-count {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.services-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.services-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  color: #64748b;
}

.services-empty-icon {
  font-size: 2rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.services-feedback {
  margin-top: 1rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.services-feedback-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.services-feedback-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.services-feedback-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

@media (max-width: 991.98px) {
  .services-form-card {
    position: static;
  }

  .services-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-card {
    flex-direction: column;
  }

  .services-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Homepage page builder */

.page-builder-panel {
  padding-bottom: 1rem;
}

.page-builder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-builder-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.page-builder-subtitle {
  color: #64748b;
  margin: 0;
  max-width: 42rem;
  line-height: 1.55;
}

.page-builder-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.page-builder-canvas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-builder-zone-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.page-builder-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 3rem;
}

.page-builder-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
  background: #f8fafc;
}

.page-builder-locked-block {
  border: 2px dashed #94a3b8;
  border-radius: 1rem;
  background: repeating-linear-gradient(
    -45deg,
    #f8fafc,
    #f8fafc 10px,
    #f1f5f9 10px,
    #f1f5f9 20px
  );
  padding: 1rem;
}

.page-builder-locked-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.page-builder-locked-icon {
  font-size: 1.25rem;
}

.page-builder-block {
  border: 1px solid #dbe3ef;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.page-builder-block:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px rgba(13, 110, 253, 0.1);
}

.page-builder-block-hidden {
  opacity: 0.78;
}

.page-builder-block-card {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.page-builder-block-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.page-builder-block-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-builder-block-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #64748b;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

.page-builder-block-body {
  flex: 1;
  min-width: 0;
}

.page-builder-block-title {
  margin: 0.15rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.page-builder-block-excerpt {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}

.page-builder-block-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-builder-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
}

.page-builder-block-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

.page-builder-block-toolbar-meta {
  min-height: 1.25rem;
}

.page-builder-block-preview,
.page-builder-block-scale,
.page-builder-block-overlay,
.page-builder-block-meta {
  display: none;
}

.page-builder-block-type {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-builder-block-hidden-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 600;
}

.page-builder-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.page-builder-status {
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.page-builder-status-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.page-builder-status-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.page-builder-status-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.page-builder-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.pricing-card-editor {
  background: #f8fafc;
}

.pb-image-field {
  margin-bottom: 1rem;
}

.pb-image-upload-card {
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pb-image-preview-shell {
  margin-bottom: 0.85rem;
}

.pb-image-editor-thumb-wrap {
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: #fff;
  text-align: center;
}

.pb-image-editor-thumb {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.pb-image-editor-thumb-compact {
  max-width: 180px;
  aspect-ratio: 4 / 3;
}

.pb-image-editor-thumb .pb-image-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-image-editor-thumb-caption {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

.pb-image-controls-heading {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.pb-image-controls-intro {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.pb-image-controls-panel {
  display: grid;
  gap: 1.15rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.75rem;
  border: 1px solid #dbe3ef;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.pb-image-control {
  margin-bottom: 0;
}

.pb-image-pos-range-wrap {
  position: relative;
  padding-top: 0.15rem;
}

.pb-image-pos-axis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  text-align: center;
}

.pb-image-pos-axis span:first-child {
  text-align: left;
}

.pb-image-pos-axis span:last-child {
  text-align: right;
}

.pb-image-pos-axis span:nth-child(2) {
  color: #0d6efd;
  font-weight: 600;
}

.pb-image-layout-wrap .form-range {
  height: 1.35rem;
  margin-bottom: 0;
}

.pb-image-pos-range {
  background: transparent;
}

.pb-image-pos-range::-webkit-slider-runnable-track {
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #dbeafe 0%,
    #dbeafe calc(50% - 1px),
    #0d6efd calc(50% - 1px),
    #0d6efd calc(50% + 1px),
    #dbeafe calc(50% + 1px),
    #dbeafe 100%
  );
}

.pb-image-pos-range::-moz-range-track {
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #dbeafe 0%,
    #dbeafe calc(50% - 1px),
    #0d6efd calc(50% - 1px),
    #0d6efd calc(50% + 1px),
    #dbeafe calc(50% + 1px),
    #dbeafe 100%
  );
}

.pb-image-size-value,
.pb-image-pos-value-display {
  min-width: 5.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #0d6efd;
}

.pb-image-empty {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-bottom: 0.85rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #eef2f7;
}

.pb-image-empty-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  opacity: 0.65;
}

.pb-image-upload-btn {
  cursor: pointer;
}

.pb-image-upload-status.text-success {
  color: #166534 !important;
}

.pb-image-upload-status.text-danger {
  color: #b91c1c !important;
}
