/* beauty-booking-home-ui-v3 */
:root {
  --bb-home-bg: #fffaf7;
  --bb-home-cream: #f7efe8;
  --bb-home-blush: #f3d9d2;
  --bb-home-rose: #b77968;
  --bb-home-rose-dark: #946052;
  --bb-home-text: #172033;
  --bb-home-muted: #68615c;
  --bb-home-border: #ead8cf;
  --bb-home-white: #ffffff;
  --bb-home-success-bg: #edf8ef;
  --bb-home-success-border: #b9e4c2;
  --bb-home-success-text: #23633a;
}

.messages .message {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  min-height: 58px;
  margin-inline: auto;
  padding: 14px 52px 14px 16px;
  border: 1px solid var(--bb-home-success-border);
  border-radius: 18px;
  background: var(--bb-home-success-bg);
  color: var(--bb-home-success-text);
  box-shadow: 0 14px 34px rgba(35, 99, 58, 0.08);
}

.messages .message::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bb-home-success-text);
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.messages .message::after {
  content: none;
}

.bb-home-v3,
.bb-home-page {
  background: var(--bb-home-bg);
}

.bb-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 86px);
  padding: clamp(62px, 7vw, 104px) 0 clamp(48px, 6vw, 82px);
  background:
    radial-gradient(ellipse at 14% 25%, rgba(243, 217, 210, 0.78), transparent 310px),
    radial-gradient(ellipse at 92% 34%, rgba(247, 239, 232, 0.94), transparent 360px),
    linear-gradient(180deg, var(--bb-home-bg), #fff 92%);
}

.bb-home-hero:has(.bb-service-filter-dropdown.is-open),
.bb-home-hero:has(.bb-home-custom-select.is-open),
.bb-home-hero.has-open-dropdown {
  overflow: visible;
}

.bb-home-hero::before,
.bb-home-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.bb-home-hero::before {
  left: -140px;
  top: 120px;
  width: 420px;
  height: 460px;
  border-radius: 48% 52% 55% 45% / 45% 42% 58% 55%;
  background: linear-gradient(145deg, rgba(243, 217, 210, 0.9), rgba(247, 239, 232, 0.42));
}

.bb-home-hero::after {
  right: -120px;
  top: 105px;
  width: 460px;
  height: 500px;
  border-radius: 52% 48% 44% 56% / 44% 54% 46% 56%;
  background: linear-gradient(145deg, rgba(247, 239, 232, 0.98), rgba(243, 217, 210, 0.5));
}

.bb-home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1120px);
  text-align: center;
}

.bb-home-art,
.bb-home-face {
  position: absolute;
  color: rgba(148, 96, 82, 0.36);
  pointer-events: none;
  z-index: -1;
}

.bb-home-art-left {
  left: 3vw;
  top: 20%;
  width: min(18vw, 220px);
  min-width: 140px;
}

.bb-home-face {
  right: 4vw;
  top: 18%;
  width: min(24vw, 280px);
  opacity: 0.92;
}

.bb-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 18px;
  color: var(--bb-home-rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bb-home-eyebrow span {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.bb-home-title {
  max-width: 920px;
  margin: 0 auto;
  color: var(--bb-home-text);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(40px, 3.5vw, 53px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.bb-home-title-accent {
  color: var(--bb-home-rose-dark);
  font-style: italic;
  font-weight: 800;
}

.bb-home-divider {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 24px auto 18px;
  color: var(--bb-home-rose);
}

.bb-home-divider span {
  width: clamp(72px, 10vw, 132px);
  height: 1px;
  background: currentColor;
  opacity: 0.56;
}

.bb-home-divider svg {
  width: 36px;
  height: 36px;
}

.bb-home-subtitle {
  max-width: 700px;
  margin: 24px auto 38px;
  color: var(--bb-home-muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.62;
  text-align: center;
}

.bb-home-search-card {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--bb-home-border);
  border-radius: 22px;
  background: var(--bb-home-white);
  box-shadow: 0 28px 72px rgba(138, 111, 102, 0.16);
}

.bb-home-search-form {
  display: block;
}

.bb-home-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr) auto;
  gap: 18px;
  align-items: end;
  width: 100%;
  margin-inline: auto;
}

.bb-home-field {
  min-width: 0;
  text-align: left;
}

.bb-home-label {
  display: block;
  margin: 0 0 10px;
  color: var(--bb-home-rose-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb-home-label-spacer {
  visibility: hidden;
}

.bb-home-control {
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--bb-home-border);
  border-radius: 14px;
  background: #fff;
  color: var(--bb-home-text);
  font-size: 16px;
}

.bb-home-control:focus {
  border-color: var(--bb-home-rose);
  box-shadow: 0 0 0 4px rgba(183, 121, 104, 0.14);
  outline: none;
}

.bb-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 58px;
  min-height: 58px;
  min-width: 180px;
  max-width: 240px;
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  background: var(--bb-home-rose-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(148, 96, 82, 0.24);
  white-space: nowrap;
}

.bb-home-search-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bb-home-search-button,
.bb-home-button,
.bb-home-search-card button[type="submit"] {
  width: auto !important;
  min-width: 180px !important;
  max-width: 240px !important;
  height: 58px !important;
  padding: 0 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bb-home-button:hover {
  background: #7f5045;
  color: #fff;
}

.bb-home-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 30px auto 0;
}

.bb-home-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 128px;
  padding: 22px;
  border: 1px solid rgba(234, 216, 207, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(148, 96, 82, 0.08);
  text-align: left;
}

.bb-home-benefit + .bb-home-benefit {
  border-left: 1px solid rgba(234, 216, 207, 0.78);
}

.bb-home-benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bb-home-cream);
  color: var(--bb-home-rose-dark);
  font-weight: 900;
  flex: 0 0 auto;
}

.bb-home-benefit-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-home-benefit:first-child .bb-home-benefit-icon svg {
  fill: currentColor;
  stroke: none;
}

.bb-home-benefit strong {
  display: block;
  color: var(--bb-home-text);
  font-size: 16px;
}

.bb-home-benefit p {
  margin: 3px 0 0;
  color: var(--bb-home-muted);
  font-size: 14px;
}

.bb-home-results {
  width: 100%;
  margin: 12px 0 56px;
}

.bb-home-results .bb-section-header {
  margin-bottom: 28px;
}

.bb-home-results .bb-section-header h2 {
  margin: 0;
  color: var(--bb-home-text);
  font-family: inherit;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.bb-results-context {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--bb-home-rose-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bb-results-context-text {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.bb-results-context::after {
  content: "";
  width: 36px;
  flex: 0 0 auto;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  opacity: 0.7;
}

.bb-home-results .bb-public-results-grid.bb-public-establishments-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 356px)) !important;
  align-items: stretch;
  gap: 24px !important;
  justify-content: start !important;
}

.bb-home-results .clinic-result.bb-establishment-card {
  width: 100% !important;
  max-width: 356px !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bb-home-border);
  border-radius: 8px;
  background: var(--bb-home-white);
  box-shadow: 0 14px 34px rgba(148, 96, 82, 0.1);
  align-self: stretch;
  overflow: hidden;
}

.bb-home-results .bb-establishment-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.bb-establishment-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 20px;
  text-align: center;
}

.bb-home-results .bb-card-eyebrow {
  width: 100%;
  margin-bottom: 10px;
  color: var(--bb-home-rose-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.bb-home-results .bb-establishment-card-title {
  width: 100%;
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.bb-home-results .bb-establishment-title-link {
  color: var(--bb-home-text);
  overflow-wrap: anywhere;
}

.bb-establishment-location {
  width: 100%;
  margin: 10px 0 0;
  color: var(--bb-home-muted);
  font-size: 14px;
  line-height: 1.5;
}

.bb-home-results .bb-establishment-card .bb-card-actions {
  margin-top: auto !important;
  padding-top: 16px;
}

.bb-home-results .bb-establishment-card .button.bb-card-action {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-color: var(--bb-home-rose-dark);
  border-radius: 8px;
  background: transparent;
  color: var(--bb-home-text);
  box-shadow: none;
}

.bb-home-results .bb-establishment-card .button.bb-card-action:hover {
  border-color: var(--bb-home-rose-dark);
  background: var(--bb-home-cream);
  color: var(--bb-home-rose-dark);
  text-decoration: none;
}

.bb-home-results .bb-establishment-card .button.bb-card-action:focus-visible {
  outline: 3px solid rgba(183, 121, 104, 0.3);
  outline-offset: 2px;
}

.bb-home-v3 a,
.bb-home-page a,
.bb-home-results a {
  color: var(--bb-home-text);
}

.bb-home-v3 .button,
.bb-home-page .button,
.bb-home-results .button,
.bb-home-results button {
  border-color: var(--bb-home-rose);
  background: var(--bb-home-rose);
  color: #fff;
}

.bb-home-v3 .button.secondary,
.bb-home-page .button.secondary,
.bb-home-results .button.secondary {
  border-color: var(--bb-home-border);
  background: #fff;
  color: var(--bb-home-text);
}

.bb-home-field-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bb-home-field-button .bb-home-button {
  width: auto !important;
  min-width: 180px !important;
  max-width: 240px !important;
}

.bb-home-custom-select {
  position: relative;
}

.bb-home-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.bb-home-select-trigger::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--bb-home-rose-dark);
  border-bottom: 2px solid var(--bb-home-rose-dark);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.bb-home-custom-select.is-open .bb-home-select-trigger::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.bb-home-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  padding: 8px;
  border: 1px solid var(--bb-home-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(148, 96, 82, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: auto;
}

.bb-home-custom-select.is-open .bb-home-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bb-service-filter-dropdown.is-open .bb-home-select-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.bb-home-select-menu button,
.bb-home-custom-select-option,
.bb-home-custom-select [role="option"] {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: #ffffff !important;
  color: var(--bb-home-text) !important;
  text-align: left;
  font-weight: 650;
  box-shadow: none !important;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bb-home-select-menu button:hover,
.bb-home-select-menu button:focus,
.bb-home-select-menu button:active,
.bb-home-custom-select-option:hover,
.bb-home-custom-select-option:focus,
.bb-home-custom-select-option:active,
.bb-home-custom-select-option.is-highlighted,
.bb-home-custom-select [role="option"]:hover,
.bb-home-custom-select [role="option"]:focus,
.bb-home-custom-select [role="option"]:active {
  background: rgba(189, 125, 109, 0.10) !important;
  color: var(--bb-home-rose-dark) !important;
  outline: none !important;
  box-shadow: 0 10px 24px rgba(148, 96, 82, 0.12) !important;
  transform: translateY(-1px);
}

.bb-home-select-menu button[aria-selected="true"],
.bb-home-custom-select-option[aria-selected="true"],
.bb-home-custom-select-option.is-selected {
  background: #f8eee9 !important;
  color: var(--bb-home-rose-dark) !important;
}

.bb-home-select-trigger:focus {
  border-color: var(--bb-home-rose);
  box-shadow: 0 0 0 4px rgba(189, 125, 109, 0.16);
  outline: none;
}

.bb-home-select-trigger,
.bb-home-custom-select-trigger {
  background: #ffffff !important;
  color: var(--bb-public-text, #172033) !important;
  border-color: var(--bb-public-border, #ead8cf) !important;
  box-shadow: none !important;
}

.bb-home-custom-select.is-open .bb-home-select-trigger,
.bb-home-custom-select.is-open .bb-home-custom-select-trigger,
.bb-home-select-trigger:hover,
.bb-home-select-trigger:focus,
.bb-home-select-trigger:active,
.bb-home-custom-select-trigger:hover,
.bb-home-custom-select-trigger:focus,
.bb-home-custom-select-trigger:active,
.bb-home-select-trigger[aria-expanded="true"],
.bb-home-custom-select-trigger[aria-expanded="true"] {
  background: #ffffff !important;
  color: var(--bb-public-text, #172033) !important;
  border-color: var(--bb-public-rose, #bd7d6d) !important;
  box-shadow: 0 0 0 4px rgba(189, 125, 109, 0.14) !important;
  outline: none !important;
}

.bb-home-results .bb-professional-card h4 {
  margin-bottom: 2px;
}

.bb-establishment-card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  object-fit: cover;
  box-sizing: border-box;
  background: #f7efe8;
  border-radius: 14px 14px 0 0;
}

/* Responsive homepage */
@media (max-width: 1200px) {
  .bb-home-search-card {
    width: min(calc(100% - 40px), 1040px);
  }
}

@media (max-width: 992px) {
  .bb-home-hero {
    min-height: auto;
    padding: 54px 0 58px;
  }

  .bb-home-subtitle {
    margin-bottom: 30px;
  }

  .bb-home-benefits {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .bb-home-benefit + .bb-home-benefit {
    border-left: 1px solid rgba(234, 216, 207, 0.78);
  }
}

@media (max-width: 768px) {
  .bb-home-hero {
    padding: 42px 0 46px;
  }

  .bb-home-hero::before,
  .bb-home-hero::after,
  .bb-home-art,
  .bb-home-face {
    display: none;
  }

  .bb-home-hero-inner {
    width: min(calc(100% - 28px), 100%);
  }

  .bb-home-title {
    font-size: clamp(34px, 5.2vw, 40px);
  }

  .bb-home-eyebrow {
    gap: 10px;
    letter-spacing: 0.09em;
  }

  .bb-home-eyebrow span {
    width: 30px;
  }

  .bb-home-divider {
    margin: 18px auto 14px;
  }

  .bb-home-divider span {
    width: clamp(48px, 18vw, 88px);
  }

  .bb-home-subtitle {
    font-size: 16px;
  }

  .bb-home-search-card {
    width: min(calc(100% - 28px), 100%);
    padding: 22px;
    border-radius: 20px;
  }

  .bb-home-search-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .bb-home-field,
  .bb-home-field-search,
  .bb-home-field-button {
    grid-column: auto !important;
    width: 100%;
  }

  .bb-home-control,
  .bb-home-select-trigger {
    width: 100%;
  }

  .bb-home-field-button .bb-home-button,
  .bb-home-search-button,
  .bb-home-search-card button[type="submit"] {
    width: 100% !important;
    max-width: none !important;
  }

  .bb-home-benefits {
    width: min(calc(100% - 28px), 100%);
  }
}

@media (max-width: 576px) {
  .bb-home-hero {
    padding: 34px 0 38px;
  }

  .bb-home-title {
    font-size: clamp(31px, 6.25vw, 36px);
    line-height: 1.12;
  }

  .bb-home-results .bb-public-results-grid.bb-public-establishments-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bb-home-results .clinic-result.bb-establishment-card {
    max-width: none !important;
  }

  .bb-results-context {
    flex-wrap: wrap;
  }

  .bb-results-context::after {
    width: 28px;
  }

  .bb-home-subtitle {
    margin-bottom: 24px;
    line-height: 1.5;
  }

  .bb-home-search-card {
    width: min(calc(100% - 20px), 100%);
    padding: 18px;
  }

  .bb-home-control {
    height: 54px;
    min-height: 54px;
  }

  .bb-home-button,
  .bb-home-search-button,
  .bb-home-search-card button[type="submit"] {
    height: 54px !important;
    min-height: 54px !important;
  }

  .bb-home-benefits {
    width: min(calc(100% - 20px), 100%);
    border-radius: 20px;
  }

  .bb-home-benefit {
    padding: 16px;
  }
}
