/* Find Doctors /search — Practo-style landing + results */

.directory-search {
  --dir-text: #2d2d32;
  --dir-muted: #787887;
  --dir-faint: #b4b4be;
  --dir-line: #f0f0f5;
  --dir-bg: #f0f0f5;
  --dir-card: #ffffff;
  --dir-accent: #14bef0;
  --dir-accent-hover: #0fb3e0;
  --dir-heading: #28328c;
  --dir-star: #00a500;
  background: #fff;
  color: var(--dir-text);
  font-size: 14px;
  padding: 0 0 48px;
  min-height: 60vh;
  position: relative;
  overflow-x: clip;
}

.directory-search-hero {
  position: relative;
  z-index: 10;
  overflow: visible;
  background: #fffaf3;
  padding: 28px 0 36px;
  margin: 0;
  border-bottom: 0;
}

.directory-search-hero__decor {
  display: none;
}

.directory-search-hero__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.directory-search-hero__copy {
  min-width: 0;
}

.directory-search-hero__title {
  margin: 0 0 4px;
  text-align: left;
  color: var(--dir-text);
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.directory-search-hero__sub {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--dir-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.directory-search-hero__lead,
.directory-search-hero__kicker {
  display: none;
}

.directory-search-hero__art {
  flex: 0 0 auto;
  line-height: 0;
}

.directory-search-hero__art svg {
  display: block;
  width: 240px;
  height: auto;
}

.directory-search-hero__form {
  max-width: none;
  margin: 0;
}

.directory-search-hero__bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #b4b4be;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.directory-search-hero__segment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: 54px;
  min-width: 0;
  position: relative;
}

.directory-search-hero__segment--location {
  flex: 0 0 280px;
  max-width: 34%;
  z-index: 6;
}

.directory-search-hero__segment--query {
  flex: 1 1 auto;
  padding-right: 8px;
}

.directory-search-hero__divider {
  width: 1px;
  background: #e0e0e5;
  margin: 10px 0;
  flex-shrink: 0;
}

.directory-search-hero__icon-wrap {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  color: #787887;
  font-size: 16px;
}

.directory-search-hero__icon {
  color: inherit;
}

.directory-search-hero__field {
  flex: 1;
  min-width: 0;
}

.directory-search-hero__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.directory-search-hero__input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--dir-text);
  outline: none;
}

.directory-search-hero__input::placeholder {
  color: #b4b4be;
}

.directory-search-hero__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  margin: 7px 7px 7px 0;
  border: 0;
  border-radius: 2px;
  background: var(--dir-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

.directory-search-hero__submit:hover,
.directory-search-hero__submit:focus {
  background: var(--dir-accent-hover);
  box-shadow: none;
  color: #fff;
}

.directory-search-hero__submit i {
  display: none;
}

.directory-search-hero.is-loc-open {
  z-index: 1000;
  overflow: visible;
}

.directory-search-hero__location-panel {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  width: min(360px, 92vw);
  background: #fff;
  border: 1px solid #e0e0e5;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
  max-height: 320px;
  overflow: auto;
}

.directory-search-hero__location-detect {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--dir-line);
  background: #fff;
  color: var(--dir-accent);
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}

.directory-search-hero__location-option {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: #fff;
  padding: 10px 14px;
  text-align: left;
  cursor: pointer;
}

.directory-search-hero__location-option:hover {
  background: #f0fbff;
}

.directory-search-hero__location-city {
  font-weight: 600;
  color: var(--dir-text);
}

.directory-search-hero__location-state {
  color: var(--dir-muted);
  font-size: 12px;
}

.directory-search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--dir-muted);
}

.directory-search-popular__label {
  font-weight: 400;
  color: var(--dir-muted);
}

.directory-search-popular a {
  color: var(--dir-heading);
  text-decoration: none;
  font-weight: 400;
}

.directory-search-popular a:hover,
.directory-search-popular a[aria-current="page"] {
  color: var(--dir-accent);
  text-decoration: underline;
}

.directory-search-shortcuts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 12px;
  margin: 36px 0 8px;
  max-width: none;
}

.directory-search-shortcuts__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--dir-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.directory-search-shortcuts__item:hover {
  color: var(--dir-heading);
}

.directory-search-shortcuts__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #f0f0f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--dir-accent);
  font-size: 26px;
}

.directory-search--results .directory-search-hero {
  padding: 16px 0 20px;
  background: #fff;
  border-bottom: 1px solid #f0f0f5;
}

.directory-search--results .directory-search-hero__art,
.directory-search--results .directory-search-hero__sub,
.directory-search--results .directory-search-shortcuts {
  display: none;
}

.directory-search--results .directory-search-hero__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.directory-search--results .directory-search-hero__top {
  margin-bottom: 0;
}

.directory-search__body {
  padding: 20px 0 0;
  background: var(--dir-bg);
}

.directory-search--landing .directory-search__body {
  margin-top: 8px;
}

.directory-search__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.directory-search__count {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dir-text);
}

.directory-search__clear {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dir-accent);
  text-decoration: none;
}

.directory-search__toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.directory-search .directory-search-hero__filter {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #b4b4be;
  border-radius: 20px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23787887' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--dir-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  padding: 8px 32px 8px 14px;
  min-width: 0;
  max-width: 220px;
  cursor: pointer;
  box-shadow: none;
}

.directory-search .directory-search-hero__filter:focus {
  outline: none;
  border-color: var(--dir-accent);
}

.directory-search__results {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 0;
}

.directory-search .directory-result {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0f0f5;
  border-radius: 0;
  padding: 24px 20px;
  box-shadow: none;
  transform: none;
}

.directory-search .directory-result:hover {
  transform: none;
  box-shadow: none;
  border-color: #f0f0f5;
  background: #fff;
}

.directory-search .directory-result__avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: #e8e8ef;
  border: 0;
  box-shadow: none;
  font-size: 32px;
  color: var(--dir-heading);
}

.directory-search .directory-result__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.directory-search .directory-result__name a {
  color: var(--dir-heading);
  -webkit-line-clamp: 2;
}

.directory-search .directory-result__name a:hover {
  color: var(--dir-accent);
}

.directory-search .directory-result__badge {
  border-radius: 2px;
  font-size: 11px;
  padding: 2px 8px;
}

.directory-search .directory-result__badge--claimed {
  color: #01a400;
  background: #e6f7e6;
  border-color: transparent;
}

.directory-search .directory-result__specialty {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dir-text);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

.directory-search .directory-result__address,
.directory-search .directory-result__location {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--dir-muted);
}

.directory-search .directory-result__location::before {
  content: none;
}

.directory-search .directory-result__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-weight: 400;
}

.directory-search .directory-result__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 2px 8px;
  border-radius: 2px;
  background: #00a500;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.directory-search .directory-result__reviews {
  color: var(--dir-muted);
  font-size: 13px;
}

.directory-search .directory-result__action {
  min-width: 200px;
  align-items: stretch;
  padding-left: 12px;
}

.directory-search .directory-result__btn {
  background: var(--dir-accent) !important;
  border: 0 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: center;
}

.directory-search .directory-result__btn:hover {
  background: var(--dir-accent-hover) !important;
  box-shadow: none !important;
}

.directory-search .directory-result__profile-link {
  text-align: center;
  color: var(--dir-heading);
  font-size: 13px;
}

.directory-search__empty {
  background: #fff;
  padding: 48px 20px;
  text-align: center;
}

.directory-search__pagination {
  background: #fff;
  padding: 16px;
}

.directory-search__pagination .page-item.active .page-link {
  background: var(--dir-accent);
  border-color: var(--dir-accent);
}

@media (max-width: 991.98px) {
  .directory-search-hero__art {
    display: none;
  }

  .directory-search-hero__segment--location {
    flex: 1 1 auto;
    max-width: none;
  }

  .directory-search-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .directory-search-hero {
    padding: 18px 0 22px;
  }

  .directory-search-hero__bar {
    flex-direction: column;
  }

  .directory-search-hero__divider {
    width: auto;
    height: 1px;
    margin: 0 16px;
  }

  .directory-search-hero__submit {
    width: calc(100% - 16px);
    margin: 0 8px 8px;
  }

  .directory-search-hero__submit i {
    display: none;
  }

  .directory-search .directory-result {
    flex-wrap: wrap;
    padding: 16px 12px;
  }

  .directory-search .directory-result__avatar {
    width: 72px;
    height: 72px;
  }

  .directory-search .directory-result__action {
    width: 100%;
    min-width: 0;
    padding: 8px 0 0;
  }

  .directory-search .directory-result__btn {
    width: 100%;
  }
}
