.salon-directory {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 10%, rgba(66, 153, 225, .13), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(99, 102, 241, .12), transparent 32rem),
    var(--bs-body-bg);
}

.salon-directory-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.salon-directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.salon-directory-title {
  margin: 14px 0 10px;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .98;
}

.salon-directory-lead {
  max-width: 680px;
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: 1.1rem;
}

.salon-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.salon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.salon-filter {
  border-radius: 999px;
  font-weight: 650;
}

.salon-directory > .public-footer { margin-top: 0; }

.salon-type-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.salon-card {
  --salon-color: #2563eb;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px;
  color: inherit;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-top: 5px solid var(--salon-color);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.salon-card-image-wrap {
  margin: -26px -26px 20px;
  border-bottom: 1px solid var(--bs-border-color);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(148,163,184,.08));
  overflow: hidden;
}

.salon-card-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.salon-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.salon-card-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--salon-color);
  border-radius: 14px;
  font-size: 1.2rem;
}

.salon-card h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.salon-card-location {
  min-height: 48px;
  color: var(--bs-secondary-color);
}

.salon-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.salon-card-action {
  color: #174ea6;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .salon-directory-shell { width: calc(100% - 24px); padding-top: 28px; }
  .salon-directory-header { flex-direction: column; }
  .salon-directory-header > div,
  .salon-directory-header .btn { min-width: 0; max-width: 100%; }
  .salon-directory-grid { grid-template-columns: minmax(0, 1fr); }
  .salon-card { min-height: 0; padding: 20px; }
  .salon-card-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 18px; }
  .salon-card-action { overflow-wrap: anywhere; }
  .salon-directory-title { font-size: clamp(2rem, 14vw, 3.4rem); }
}

/* RESCA directory: clear product hierarchy, restrained surfaces and no decorative AI UI. */
.salon-directory {
  --directory-primary: #6757ff;
  --directory-primary-dark: #5146d8;
  --directory-navy: #101426;
  --directory-text: #171b2e;
  --directory-muted: #696e7f;
  --directory-border: #dfe2eb;
  min-height: 100vh;
  color: var(--directory-text);
  background: #f4f5f9;
}

.salon-directory-shell {
  width: min(1180px, calc(100% - 40px));
  padding: 0 0 64px;
}

.salon-directory-header {
  position: relative;
  align-items: center;
  min-height: 188px;
  margin-bottom: 24px;
  padding: 34px 40px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  color: #fff;
  background: var(--directory-navy);
  box-shadow: 0 10px 28px rgba(16, 20, 38, .1);
}

.salon-directory-header::after {
  position: absolute;
  width: 220px;
  height: 220px;
  right: -68px;
  bottom: -152px;
  border: 1px solid rgba(145, 134, 255, .35);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.salon-directory-header > * {
  position: relative;
  z-index: 1;
}

.salon-directory-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.salon-directory-brand small {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #aeb4ca;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: none;
}

.salon-directory-mark {
  position: relative;
  width: 25px;
  height: 25px;
}

.salon-directory-mark::before,
.salon-directory-mark::after {
  position: absolute;
  inset: 4px 11px;
  border-radius: 999px;
  background: #fff;
  content: '';
  transform: rotate(45deg);
}

.salon-directory-mark::after { transform: rotate(-45deg); }

.salon-directory-title {
  margin: 16px 0 7px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 720;
  letter-spacing: -.05em;
  line-height: 1.03;
}

.salon-directory-lead {
  max-width: 650px;
  color: #aeb4ca;
  font-size: .98rem;
  line-height: 1.55;
}

.salon-directory-header .btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #eef0fa;
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  font-weight: 700;
}

.salon-directory-header .btn-primary {
  border-color: var(--directory-primary);
  background: var(--directory-primary);
}

.salon-directory-header .btn:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.salon-directory-header .btn-primary:hover {
  border-color: var(--directory-primary-dark);
  background: var(--directory-primary-dark);
}

.salon-filters {
  gap: 6px;
  margin: 0 0 22px;
  padding: 6px;
  border: 1px solid var(--directory-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 20, 38, .03);
}

.salon-filter {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  color: #555a6c;
  background: transparent;
  box-shadow: none;
  font-size: .82rem;
  font-weight: 700;
}

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

.salon-filter.btn-alt-secondary:hover {
  color: var(--directory-text);
  background: #f1f2f7;
}

.salon-directory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.salon-card {
  position: relative;
  min-height: 218px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--directory-border);
  border-top: 1px solid var(--directory-border);
  border-radius: 12px;
  color: var(--directory-text);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 20, 38, .03), 0 10px 26px rgba(16, 20, 38, .035);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.salon-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--salon-color);
  content: '';
}

.salon-card:hover {
  border-color: color-mix(in srgb, var(--salon-color) 45%, var(--directory-border));
  color: var(--directory-text);
  box-shadow: 0 12px 32px rgba(16, 20, 38, .09);
  transform: none;
}

.salon-card-image-wrap {
  margin: -24px -24px 19px;
  border-bottom: 1px solid var(--directory-border);
  background: #f1f2f7;
}

.salon-card-image { height: 150px; }

.salon-card-mark {
  position: relative;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 9px;
  color: #fff;
  font-size: .95rem;
  box-shadow: none;
}

.salon-card h2 {
  margin-bottom: 7px;
  color: var(--directory-text);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: -.025em;
}

.salon-card-location {
  min-height: 42px;
  color: var(--directory-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.salon-type-badges { margin-top: 11px; }

.salon-type-badges .badge {
  padding: 5px 7px;
  border: 1px solid #e6e8ef;
  border-radius: 5px;
  color: #5d6272 !important;
  background: #f6f7fa !important;
  font-size: .68rem;
  font-weight: 650;
}

.salon-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #eef0f4;
}

.salon-card-action {
  color: var(--directory-primary-dark);
  font-size: .86rem;
  font-weight: 750;
}

@media (max-width: 991.98px) {
  .salon-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .salon-directory-shell { width: calc(100% - 20px); padding-top: 0; }
  .salon-directory-header { align-items: flex-start; margin-bottom: 14px; padding: 26px 20px; border-radius: 0 0 14px 14px; }
  .salon-directory-header .d-flex { width: 100%; }
  .salon-directory-title { font-size: 2.25rem; }
  .salon-filters { flex-wrap: nowrap; overflow-x: auto; }
  .salon-filter { flex: 0 0 auto; }
  .salon-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .salon-card { min-height: 205px; padding: 20px; }
  .salon-card-footer { flex-direction: row; align-items: center; }
}

/* Match the RESCA sign-in screen. */
.salon-directory {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, #f8faff 0%, #f4f1ff 52%, #edf5ff 100%);
}

.salon-directory::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .42;
  background-image:
    linear-gradient(rgba(91, 84, 138, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 84, 138, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  content: '';
  mask-image: linear-gradient(90deg, transparent, #000 45%, #000);
}

.salon-directory::after {
  position: absolute;
  width: min(48vw, 650px);
  aspect-ratio: 1;
  top: -300px;
  right: -180px;
  z-index: -1;
  border-radius: 48% 52% 58% 42% / 42% 46% 54% 58%;
  background: conic-gradient(from 210deg, #6757ff, #a855f7, #e879f9, #38bdf8, #6757ff);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, .35), 0 35px 90px rgba(79, 70, 229, .16);
  content: '';
  opacity: .42;
  animation: salon-directory-orb 15s ease-in-out infinite alternate;
}

.salon-directory-header {
  border: 1px solid rgba(98, 88, 140, .13);
  color: var(--directory-text);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(31, 38, 76, .1), 0 2px 8px rgba(31, 38, 76, .04);
  backdrop-filter: blur(20px);
}

.salon-directory-header::after { display: none; }

.salon-directory-brand { color: #172033; }
.salon-directory-brand small { border-color: #d9dce7; color: #73798c; }
.salon-directory-mark::before,
.salon-directory-mark::after { background: #6757ff; }
.salon-directory-title {
  color: #172033 !important;
  -webkit-text-fill-color: #172033;
  opacity: 1;
}
.salon-directory-lead { color: #697386; }

.salon-directory-header .btn {
  border-color: #d8dce7;
  color: #34394b;
  background: rgba(255, 255, 255, .86);
}

.salon-directory-header .btn:hover {
  border-color: #b9b3ff;
  color: #292442;
  background: #f5f3ff;
}

.salon-directory-header .btn-primary,
.salon-directory-header .btn-primary:hover {
  border-color: #6757ff;
  color: #fff;
  background: #6757ff;
  box-shadow: 0 8px 20px rgba(99, 91, 255, .22);
}

.salon-filters,
.salon-card {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.salon-filter.btn-alt-secondary {
  border: 1px solid #e0e3ec !important;
  color: #555b6c !important;
  background: rgba(255, 255, 255, .74) !important;
}

.salon-filter.btn-alt-secondary:hover {
  border-color: #b9b3ff !important;
  color: #393181 !important;
  background: #f5f3ff !important;
}

.salon-filter.btn-primary {
  border: 1px solid #6757ff !important;
  color: #fff !important;
  background: #6757ff !important;
}

.salon-card h2 {
  color: #172033 !important;
  -webkit-text-fill-color: #172033;
  opacity: 1;
}

@keyframes salon-directory-orb {
  from { border-radius: 48% 52% 58% 42% / 42% 46% 54% 58%; transform: rotate(-5deg) scale(1); }
  to { border-radius: 57% 43% 45% 55% / 52% 58% 42% 48%; transform: rotate(7deg) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .salon-directory::after { animation: none; }
}

@media (max-width: 767.98px) {
  .salon-directory::before { mask-image: none; }
  .salon-directory::after { width: 620px; top: -360px; right: -390px; opacity: .28; }
}

.salon-directory-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(98, 88, 140, .14);
  border-radius: 10px;
  color: #777d8e;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 24px rgba(31, 38, 76, .055);
  backdrop-filter: blur(14px);
}

.salon-directory-search input {
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #172033;
  background: transparent;
  font-size: .95rem;
}

.salon-directory-search button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #6757ff;
  font-weight: 750;
}

.salon-search-results {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid rgba(98, 88, 140, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.salon-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.salon-search-heading h2 { margin: 0; color: #172033; font-size: 1rem; }
.salon-search-heading a { color: #6757ff; font-size: .8rem; font-weight: 700; }
.salon-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.salon-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e3e5ed;
  border-radius: 8px;
  color: #172033;
  background: #fff;
}

.salon-search-result:hover { border-color: #aaa2ff; color: #342b87; }
.salon-search-result small { display: block; margin-top: 3px; color: #74798a; }

@media (max-width: 767.98px) {
  .salon-directory-search { grid-template-columns: auto minmax(0, 1fr); }
  .salon-directory-search button { grid-column: 1 / -1; }
  .salon-search-grid { grid-template-columns: 1fr; }
}

/* Shared public identity: follows the customer mobile sign-in screen. */
.salon-directory,
html.dark .salon-directory {
  --directory-primary: #635bff;
  --directory-primary-dark: #7c3aed;
  position: relative;
  isolation: isolate;
  color: #172033;
  background: #f6f8fc;
}

.salon-directory::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -3;
  width: auto;
  height: min(620px, 60vh);
  opacity: 1;
  mask-image: none;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 255, 255, .44) 0, transparent 20%),
    radial-gradient(circle at 12% 15%, #ffcb57 0, transparent 31%),
    radial-gradient(circle at 82% 8%, #80e9ff 0, transparent 34%),
    radial-gradient(circle at 72% 78%, #635bff 0, transparent 42%),
    radial-gradient(circle at 25% 82%, #ff6bd6 0, transparent 42%),
    linear-gradient(115deg, #ff8a5c 0%, #a960ee 45%, #635bff 72%, #00d4ff 100%);
  background-size: 125% 125%, 130% 130%, 135% 135%, 130% 140%, 145% 135%, 100% 100%;
  content: '';
  animation: resca-public-mesh 12s ease-in-out infinite alternate;
}

.salon-directory::after {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: auto;
  height: min(620px, 60vh);
  aspect-ratio: auto;
  border-radius: 0;
  opacity: .2;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  background: repeating-linear-gradient(115deg, transparent 0 48px, rgba(255, 255, 255, .32) 49px, transparent 50px 96px);
  box-shadow: none;
  content: '';
  animation: resca-public-stripes 18s linear infinite;
}

.salon-directory-header,
html.dark .salon-directory-header {
  border: 1px solid rgba(98, 88, 140, .13);
  color: #172033;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 80px rgba(50, 50, 93, .16), 0 2px 8px rgba(31, 38, 76, .06);
  backdrop-filter: blur(20px);
}

.salon-directory-brand,
.salon-directory-title,
.salon-card h2,
html.dark .salon-directory-brand,
html.dark .salon-directory-title,
html.dark .salon-card h2 {
  color: #172033 !important;
  -webkit-text-fill-color: #172033;
}

.salon-directory-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, #635bff, #8b5cf6);
  box-shadow: 0 8px 22px rgba(99, 91, 255, .28);
}

.salon-directory-mark::before,
.salon-directory-mark::after { background: #fff; }

.salon-directory-header .btn-primary,
.salon-directory-search button,
.salon-filter.btn-primary {
  border-color: transparent !important;
  background: linear-gradient(135deg, #635bff, #7c3aed) !important;
  box-shadow: 0 10px 24px rgba(99, 91, 255, .24);
}

.salon-directory-search,
.salon-filters,
.salon-card,
.salon-search-results,
html.dark .salon-directory-search,
html.dark .salon-filters,
html.dark .salon-card,
html.dark .salon-search-results {
  border-color: rgba(98, 88, 140, .13);
  color: #172033;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 38px rgba(50, 50, 93, .09), 0 1px 4px rgba(31, 38, 76, .04);
  backdrop-filter: blur(18px);
}

@keyframes resca-public-mesh {
  0% { background-position: center, 0% 0%, 100% 0%, 100% 100%, 0% 100%, center; filter: saturate(1.05) hue-rotate(0deg); }
  50% { background-position: center, 16% 12%, 88% 18%, 80% 86%, 12% 76%, center; filter: saturate(1.22) hue-rotate(5deg); }
  100% { background-position: center, 8% 22%, 76% 4%, 94% 68%, 22% 92%, center; filter: saturate(1.12) hue-rotate(-5deg); }
}

@keyframes resca-public-stripes { to { background-position: 192px 0; } }

@media (prefers-reduced-motion: reduce) {
  .salon-directory::before,
  .salon-directory::after { animation: none; }
}

.salon-favorites {
  margin: 0 0 30px;
  padding: 22px;
  border: 1px solid rgba(103, 87, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 30px rgba(16, 20, 38, .05);
}

.salon-favorites-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.salon-favorites-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 760; }
.salon-favorites-heading i { color: #6757ff; }
.salon-favorites-empty { margin: 0; color: var(--directory-muted); font-size: .92rem; }

.salon-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

.salon-card-link:hover { color: inherit; }

.salon-favorite-form {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.salon-favorite-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #dfe2eb;
  border-radius: 999px;
  color: #686e80;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(16, 20, 38, .1);
}

.salon-favorite-button:hover,
.salon-favorite-button.is-favorite {
  border-color: #cfc8ff;
  color: #6757ff;
  background: #f4f1ff;
}

.salon-directory-grid .salon-card {
  min-height: 0;
  padding: 8px 8px 14px;
  border-radius: 9px;
}

.salon-card-hero {
  position: relative;
  height: 210px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
}

.salon-card-hero .salon-card-image { height: 100%; }

.salon-card-hero-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--salon-color) 20%, #fff), #eef1f8);
}

.salon-card-hero-rating,
.salon-card-photo-count {
  position: absolute;
  top: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 999px;
  color: #475467;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .1);
  font-size: .77rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.salon-card-hero-rating { left: 14px; }
.salon-card-hero-rating .fa-star { color: #f59e0b; }
.salon-card-hero-rating strong { color: #172033; }

.salon-card-photo-count {
  top: auto;
  left: 12px;
  bottom: 12px;
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(15, 23, 42, .68);
}

.salon-card-hero .salon-card-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #fff;
  background: rgba(25, 20, 56, .78);
  box-shadow: 0 5px 16px rgba(15, 23, 42, .16);
  font-size: .78rem;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.salon-directory-grid .salon-card h2,
.salon-directory-grid .salon-card-location,
.salon-directory-grid .salon-card-rating,
.salon-directory-grid .salon-type-badges,
.salon-directory-grid .salon-card-footer {
  margin-right: 8px;
  margin-left: 8px;
}

.salon-directory-grid .salon-card h2 {
  margin-bottom: 9px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.salon-directory-grid .salon-card-location {
  min-height: auto;
  color: #5e687d;
  font-weight: 650;
}

.salon-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 15px;
  color: #667085;
  font-size: .92rem;
}

.salon-card-rating .fa-star { color: #f59e0b; font-size: 1.1rem; }
.salon-card-rating strong { color: #172033; font-size: 1rem; }

.salon-directory-grid .salon-card-footer { padding-top: 15px; }
.salon-directory-grid .salon-favorite-form { top: 18px; right: 18px; }

.salon-directory-grid .salon-card:has(.salon-card-hero-rating) .salon-favorite-form {
  top: 18px;
  right: 18px;
}

.salon-directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(98, 88, 140, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(31, 38, 76, .055);
  backdrop-filter: blur(14px);
}

.salon-directory-tools .salon-directory-search {
  align-self: center;
  margin-bottom: 0;
  padding: 0 6px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.salon-directory-tools .salon-directory-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  line-height: 1;
}

.salon-view-switch {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
  padding: 0 0 0 6px;
  border: 0;
  border-left: 1px solid #e3e5ed;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.salon-view-switch .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  color: #555b6c;
  background: #f1f2f7;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1;
}

.salon-view-switch .btn-primary,
.salon-view-switch .btn-primary:hover,
.salon-view-switch .btn-primary:focus {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #635bff, #7c3aed);
  box-shadow: 0 7px 18px rgba(99, 91, 255, .2);
}

.salon-view-switch .btn-alt-secondary:hover,
.salon-view-switch .btn-alt-secondary:focus {
  border-color: #d9d5ff;
  color: #393181;
  background: #f5f3ff;
}

.salon-map-panel {
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(98, 88, 140, .13);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 38px rgba(50, 50, 93, .09), 0 1px 4px rgba(31, 38, 76, .04);
}

.salon-map-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 10px;
}

.salon-map-search {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #dfe2eb;
  border-radius: 7px;
  color: #172033;
  background: #fff;
}

.salon-map-search:focus {
  border-color: #9c94ff;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, .12);
}

.salon-map-locate {
  min-height: 42px;
  white-space: nowrap;
  border-radius: 7px;
}

.salon-directory-map {
  width: 100%;
  height: min(580px, 68vh);
  min-height: 420px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1f6;
  z-index: 1;
}

.salon-map-status {
  padding: 9px 5px 3px;
  color: #697386;
  font-size: .78rem;
}

.salon-map-popup { min-width: 210px; }
.salon-map-popup-photo {
  width: 100%;
  height: 92px;
  margin-bottom: 9px;
  object-fit: cover;
  border-radius: 5px;
}
.salon-map-popup strong { display: block; margin-bottom: 3px; color: #172033; font-size: .92rem; }
.salon-map-popup-address { margin-bottom: 8px; color: #697386; font-size: .78rem; }
.salon-map-popup-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.salon-map-popup-rating { color: #697386; font-size: .76rem; }
.salon-map-popup-rating i { color: #f59e0b; }
.salon-map-popup-link { color: #5b4fe8; font-size: .78rem; font-weight: 750; }

@media (max-width: 767.98px) {
  .salon-favorites { padding: 16px; }
  .salon-directory-tools { grid-template-columns: minmax(0, 1fr); }
  .salon-view-switch {
    padding: 6px 0 0;
    border-top: 1px solid #e3e5ed;
    border-left: 0;
  }
  .salon-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 24px 6px 6px;
    scroll-padding-inline: 6px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .salon-filters::-webkit-scrollbar { display: none; }
  .salon-filter {
    flex: 0 0 auto;
    max-width: calc(100vw - 64px);
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .salon-filter:last-child { margin-right: 8px; }
  .salon-view-switch { display: flex; width: 100%; }
  .salon-view-switch .btn { flex: 1; }
  .salon-map-toolbar { align-items: stretch; flex-direction: column; }
  .salon-map-locate { width: 100%; }
  .salon-directory-map { height: 60vh; min-height: 380px; }
  .salon-directory-grid .salon-card { min-height: 0; }
  .salon-card-hero { height: 220px; }
}
