.ds-page {
  padding-top: 28px;
  padding-bottom: 55px;
}
.ds-page h1 {
  font-size: 34px;
  margin: 0 0 12px;
}
.ds-pause {
  padding: 12px 16px;
  border-radius: 12px;
  background: #eef4ff;
  color: #244b78;
  font-size: 14px;
}
.ds-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: #fff;
  border: 1px solid #d9e4f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 25px #183f7410;
}
.ds-search label,
.ds-filters label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: #425a72;
}
.ds-search input,
.ds-filters input,
.ds-filters select {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #bdcce0;
  border-radius: 9px;
  font-size: 16px;
  background: white;
  color: #172f4d;
}
.ds-place {
  position: relative;
}
.ds-search > button {
  align-self: center;
  min-height: 48px;
}
.ds-search-help {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ds-search-help button {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccd9ea;
  background: white;
  color: #23549a;
  cursor: pointer;
}
.ds-search-help span {
  font-size: 12px;
  color: #5c7189;
}
.ds-search .ds-consent {
  grid-column: 1/-1;
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 12px;
}
.ds-consent input {
  width: 18px;
  height: 18px;
  padding: 0;
  flex-shrink: 0;
}
.ds-search [role="status"] {
  grid-column: 1/-1;
  margin: 0;
  font-size: 13px;
}
.ds-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
  background: white;
  border: 1px solid #bfcee2;
  border-radius: 12px;
  box-shadow: 0 15px 35px #183f7426;
  z-index: 60;
}
.ds-suggestions[hidden] {
  display: none;
}
.ds-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  min-height: 44px;
  background: white;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #23476a;
}
.ds-suggestions button:focus,
.ds-suggestions button:hover {
  background: #edf4ff;
  outline: 2px solid #abc9ff;
}
.ds-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  background: #f5f8fc;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
}
.ds-filters label {
  flex: 1 1 150px;
}
.ds-clinic-only {
  font-size: 13px;
  margin: 0;
  flex-basis: 100%;
}
.ds-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
}
.ds-results-toolbar h2 {
  margin: 0;
}
.ds-sort,
[data-result-status] {
  font-size: 13px;
  color: #566e89;
}
.ds-results-grid {
  display: grid;
  gap: 24px;
}
.ds-with-map {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}
.ds-result {
  border: 1px solid #d9e4f0;
  border-radius: 16px;
  background: white;
  margin: 0 0 18px;
  overflow: hidden;
}
.ds-result .pr-directory-card {
  border: 0;
  box-shadow: none;
  margin: 0;
}
.ds-with-map .pr-directory-card {
  grid-template-columns: minmax(0, 1fr);
}
.ds-with-map .pr-directory-card > * {
  min-width: 0;
}
.ds-with-map .pr-directory-times {
  width: 100%;
}
.ds-distance {
  padding: 10px 16px;
  background: #eef7fc;
  color: #235c79;
  font-size: 13px;
  margin: 0;
}
.ds-locate {
  border: 0;
  background: transparent;
  color: #1450c8;
  padding: 12px 18px;
  cursor: pointer;
  text-decoration: underline;
}
.ds-result.ds-selected {
  outline: 3px solid #1450c8;
}
.ds-map-panel {
  align-self: start;
  position: sticky;
  top: 80px;
  background: #f5f8fc;
  border: 1px solid #d9e4f0;
  border-radius: 16px;
  padding: 16px;
}
.ds-map-panel[hidden],
.ds-map[hidden],
.ds-map-tools[hidden] {
  display: none;
}
.ds-map-panel > p {
  font-size: 13px;
  color: #516880;
}
.ds-map {
  height: 450px;
  border-radius: 12px;
  margin: 12px 0;
  z-index: 0;
}
.ds-map-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ds-empty {
  padding: 25px;
  background: #f6f8fb;
  border: 1px solid #d9e4f0;
  border-radius: 16px;
  margin-bottom: 18px;
}
.ds-empty h3 {
  margin-top: 0;
}
.ds-nearby > h3 {
  font-size: 20px;
  padding: 14px;
  background: #edf5ff;
  border-radius: 10px;
}
.ds-search :focus-visible,
.ds-filters :focus-visible {
  outline: 3px solid #567fe7;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .ds-search {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }
  .ds-search > button {
    width: 100%;
  }
  .ds-filters {
    gap: 10px;
    padding: 12px;
  }
  .ds-filters label {
    flex: 1 1 130px;
  }
  .ds-with-map {
    grid-template-columns: 1fr;
  }
  .ds-map-panel {
    position: static;
    grid-row: 1;
  }
  .ds-map {
    height: 330px;
  }
  .ds-page h1 {
    font-size: 28px;
  }
  .pr-profile-search .ds-search {
    box-shadow: none;
  }
  .pr-profile-search .ds-consent {
    font-size: 11px;
  }
  .ds-page {
    padding-top: 18px;
  }
}
.ds-clinic-address {
  grid-column: 1/-1;
  min-width: 0;
  border: 1px solid #c6d8ee;
  border-radius: 14px;
  background: #f5f9ff;
  padding: 18px;
  margin: 12px 0;
}
.ds-clinic-address legend {
  font-weight: 750;
  color: #244c80;
}
.ds-clinic-address p,
.ds-clinic-address small {
  font-size: 13px;
  line-height: 1.6;
}
.ds-clinic-address > label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.ds-clinic-address input {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #becfe3;
  border-radius: 8px;
}
.ds-clinic-address .check {
  display: flex;
  align-items: flex-start;
}
.ds-clinic-address .check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.ds-clinic-coordinates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0;
}
.ds-clinic-coordinates label {
  display: grid;
  gap: 6px;
}
.ds-clinic-address [data-clinic-suggestions] > button {
  display: block;
  width: 100%;
  margin: 6px 0;
  text-align: left;
  white-space: normal;
}
.doctor-register-page label[hidden],
[data-portal-profile] label[hidden],
[data-portal-schedule="video"][hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .ds-clinic-coordinates {
    grid-template-columns: 1fr;
  }
  .ds-clinic-address {
    padding: 12px;
  }
}
.ds-filter-panel { margin-top: 20px; }
.ds-filter-panel > summary { display: flex; gap: 10px; overflow-x: auto; padding: 5px 0 12px; cursor: pointer; list-style: none; }
.ds-filter-panel > summary::-webkit-details-marker { display: none; }
.ds-filter-panel > summary span { flex-shrink: 0; padding: 10px 15px; border: 1px solid #ccd9e6; border-radius: 24px; color: #243e5b; background: white; font-size: 14px; }
.ds-filter-panel[open] > summary span { border-color: #175bd6; }
.ds-filter-panel .ds-filters { margin-top: 0; }
.ds-results-grid { grid-template-columns: minmax(0, 1fr); }
.ds-results-grid > *, .ds-result, .ds-result .pr-directory-card > * { min-width: 0; }
.ds-result .pr-directory-address { overflow-wrap: anywhere; }
.ds-filter-shortcuts { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 6px; }
.ds-filter-shortcuts button { flex-shrink: 0; padding: 10px 15px; border: 1px solid #ccd9e6; border-radius: 24px; color: #243e5b; background: white; font-size: 14px; cursor: pointer; }

/* Larger search targets + Doctoranytime-parity 2-field pill bar with floating location dropdown */
.ds-search {
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  padding: 6px 8px 6px 20px;
  box-shadow: 0 8px 28px rgba(15, 39, 88, 0.08);
  position: relative;
}
.ds-term-wrap,
.ds-place-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  position: relative;
}
.ds-place-field {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 12px 0 14px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ds-place-field:focus-within {
  border-color: #063ee3;
  box-shadow: 0 0 0 3px rgba(6, 62, 227, 0.1);
}
.ds-pin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #063ee3;
  flex-shrink: 0;
}
.ds-pin-icon svg {
  width: 19px;
  height: 19px;
}
.ds-search label {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  margin: 0;
}
.ds-search label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ds-search input[name="term"],
.ds-search input[name="place"] {
  min-height: 46px;
  font-size: 15px;
  padding: 8px 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  width: 100%;
  color: #14242e;
  text-overflow: ellipsis;
}
.ds-search input[name="term"]::placeholder,
.ds-search input[name="place"]::placeholder {
  color: #64748b;
}
.ds-input-clear {
  border: 0;
  background: #f1f5f9;
  color: #475569;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.ds-input-clear[hidden] {
  display: none;
}
.ds-input-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.ds-search-submit {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  background: #063ee3;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(6, 62, 227, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}
.ds-search-submit:hover {
  background: #0531b5;
}
.ds-search-submit svg {
  width: 20px;
  height: 20px;
}
.ds-search-submit-label {
  display: none;
}
.ds-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 280px;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 39, 88, 0.16);
  z-index: 80;
}
.ds-near-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  min-height: 46px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  color: #0f172a;
  font-weight: 650;
  font-size: 14px;
}
.ds-near-option svg {
  width: 18px;
  height: 18px;
  color: #063ee3;
  flex-shrink: 0;
}
.ds-near-option:hover,
.ds-near-option:focus {
  background: #f0f6ff;
  color: #063ee3;
}
.ds-suggestions-list {
  display: grid;
  gap: 2px;
  padding: 4px 0;
}
.ds-specialty-suggestions {
  max-height: 400px;
  padding: 10px 8px;
}
.ds-spec-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  font-size: 15px;
  font-weight: 500;
  color: #14242e !important;
}
.ds-spec-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #063ee3;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.ds-spec-icon svg {
  width: 18px;
  height: 18px;
}
.ds-suggestions .ds-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 6px;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 450;
  color: #64748b;
  cursor: pointer;
}
.ds-suggestions .ds-consent span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
.ds-search [data-search-notice]:empty {
  display: none;
}
@media (max-width: 760px) {
  .ds-search {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 12px;
    gap: 10px;
  }
  .ds-term-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
  }
  .ds-place-field {
    border-radius: 12px;
  }
  .ds-search-submit {
    width: 100%;
    border-radius: 12px;
    height: 46px;
    min-height: 46px;
  }
  .ds-search-submit-label {
    display: inline;
    font-weight: 700;
    font-size: 15px;
  }
}
.ds-directory-screen .ds-compact-search>summary{min-height:54px;font-size:16px;padding:10px 16px}
