/**
 * service-filter.css  —  Service Filter Shortcode front-end styles
 * Extends / mirrors the existing .spaces-container / .filters / .workspace-card
 * rules already in the theme. Only adds what's specific to this shortcode.
 */

/* ── Outer container (matches the reference design's soft cream card) ────── */
/* Scoped under .sfs-section so this never leaks into other .spaces-container
   usages elsewhere on the site — only this shortcode's markup is affected. */
.sfs-section .spaces-container {
  /* background-color: #e9e4db;
  padding: 28px;
  border-radius: 14px; */
  padding: 0px !important;
}

/* ── Filters layout (stacked, full-width fields) ─────────────────────────── */
.sfs-section .filters {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sfs-section .filters .filter {
  width: 100%;
}

.sfs-section .filters .filter label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Wrapper that carries the custom chevron; select itself is unstyled by us
   apart from what's needed to look like the flat white field in the design. */
.sfs-section .sfs-select-wrap {
  position: relative;
}

.sfs-section .sfs-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #1a1a1a;
  transform: translateY(-50%);
  pointer-events: none;
}

.sfs-section .sfs-city-select,
.sfs-section .sfs-location-select,
.sfs-section .sfs-space-select {
  width: 100%;
  padding: 16px 44px 16px 18px;
  border: none;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.sfs-section .sfs-city-select:focus,
.sfs-section .sfs-location-select:focus,
.sfs-section .sfs-space-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

/* ── Proceed button (white label half + orange arrow half) ──────────────── */
.sfs-proceed-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

.sfs-proceed-btn {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border: none;
  border-radius: 6.89px;
  overflow: hidden;
  padding: 3px;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  width: 204px;
}

.sfs-proceed-text {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  font-weight: 500;
  font-size: 17px;
  font-family: "NeutraText", sans-serif;
  color: #1a1a1a;
  background: #ffffff;
}

.sfs-proceed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  height: 56px;
  width: 56px;
  background: #fb5729;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.15s ease;
}

.sfs-proceed-btn:not(:disabled):hover .sfs-proceed-icon {
  background: #fb5729;
}

.sfs-proceed-btn:disabled {
  cursor: not-allowed;
}

.sfs-proceed-btn:disabled .sfs-proceed-icon {
  background: #f2a878;
}

/* ── Card carousel — not used by the current stacked-filter design; kept in
   the DOM (unrendered) rather than removed, in case it's needed again. ──── */
.sfs-section .owl-carousel.workspace-slider {
  display: none !important;
}

/* ── Loading spinner ─────────────────────────────────────────────────────── */
.sfs-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-size: 0.95rem;
  color: #666;
}

.sfs-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: sfs-spin 0.7s linear infinite;
}

@keyframes sfs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── No-results state ────────────────────────────────────────────────────── */
.sfs-no-results {
  /* padding: 32px 0;
  font-size: 1rem;
  color: #000;
  font-weight: 800;
  text-align: center; */
  padding: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-size: 0.9rem;
  color: #000;
  text-align: left;
  margin-bottom: 20px;
}

/* ── Disabled select visual cue (City / Location / Spaces) ──────────────── */
.sfs-section select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 540px) {
  .sfs-proceed-text {
    padding: 12px 20px;
  }
  .sfs-proceed-icon {
    height: 46px;
    width: 46px;
    padding: 15px;
  }
  .sfs-proceed-btn {
    width: auto;
  }
}
