/**
 * City Location Filter — Stylesheet
 * v2.0.0
 *  - Replaced the owl-carousel city slider + image grid with a stacked
 *    "Spaces / City / Location" dropdown picker and a Proceed button,
 *    matching the updated design.
 *  - .cfs-no-results / .cfs-loading / .cfs-spinner are unchanged since
 *    the JS still uses them for empty-state and AJAX loading feedback.
 */

/* ==========================================================================
   OUTER CONTAINER
   ========================================================================== */

.city-container {
  text-align: left;
}

.cfs-dropdown-layout {
  max-width: 742px;
  width: 100%;
}

/* ==========================================================================
   FILTER FIELDS (Spaces / City / Location)
   ========================================================================== */

.cfs-filters-row {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}

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

.cfs-field-label {
  font-family: "NeutraText", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.2;
}

.cfs-select-wrap {
  position: relative;
}

/* Custom dropdown chevron (dark triangle), since native <select> arrows
   are hidden via appearance:none below. */
.cfs-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  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;
}

.cfs-service-select,
.cfs-city-select,
.cfs-location-select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: none;
  border-radius: 6.89px;
  padding: 17px 46px 17px 20px;
  font-size: 15px;
  font-family: "Skia", sans-serif;
  color: #281d18;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}

.cfs-service-select:focus,
.cfs-city-select:focus,
.cfs-location-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 98, 26, 0.4);
}

.cfs-service-select:disabled,
.cfs-city-select:disabled,
.cfs-location-select:disabled {
  color: #a3a3a3;
  cursor: not-allowed;
}

/* ==========================================================================
   PROCEED BUTTON
   ========================================================================== */

.cfs-proceed-row {
  display: flex;
  justify-content: flex-end;
}

.cfs-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;
}

.cfs-proceed-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cfs-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;
}

.cfs-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;
}

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

/* ==========================================================================
   LOADING — shown during AJAX service-switch fetch
   ========================================================================== */

.cfs-loading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #999;
  font-size: 0.9rem;
  padding: 4px 0 20px;
}

.cfs-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #e6621a;
  border-radius: 50%;
  animation: cfs-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* ==========================================================================
   NO RESULTS
   ========================================================================== */

.cfs-no-results {
  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;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
  .cfs-proceed-row {
    justify-content: flex-end;
  }

  .cfs-proceed-btn {
    width: auto;
  }

  .cfs-proceed-text {
    flex: 1;
    justify-content: center;
    padding: 12px 20px;
  }
  .cfs-proceed-icon {
    height: 46px;
    width: 46px;
    padding: 15px;
  }
}
