:root {
  --ink: #123b31;
  --muted: #6f7d79;
  --line: #bde8d9;
  --panel: #ffffff;
  --soft: #e8f7f1;
  --mint: #18c894;
  --mint-dark: #07956e;
  --deep: #07523f;
  --deeper: #043d30;
  --clay: #8f9aa3;
  --shadow: 0 18px 45px rgba(4, 61, 48, 0.2);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", Arial, sans-serif;
  color: var(--ink);
  background: var(--deeper);
}

.home-page {
  font-weight: 400;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.map-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1600;
  display: grid;
  background: transparent;
  box-shadow: 0 10px 28px rgba(4, 61, 48, 0.24);
}

.main-nav {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(24px, 4vw, 38px);
  background: var(--deep);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #8ff5d3;
  background: rgba(24, 200, 148, 0.13);
  border-radius: 8px;
  font-weight: 800;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-accent {
  color: var(--mint);
}

.account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  border: 1px solid var(--mint);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.guest-actions a:nth-child(2) {
  background: var(--mint);
  border-color: var(--mint);
}

.master-account {
  position: relative;
}

.master-account-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mint);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.master-account-logo {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  overflow: hidden;
  background: rgba(24, 200, 148, 0.16);
  border-radius: 6px;
}

.master-account-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.master-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5002;
  display: grid;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.master-account-menu a,
.master-account-menu button {
  display: flex;
  min-height: 32px;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.master-account-menu a:hover,
.master-account-menu button:hover {
  color: var(--mint-dark);
  background: var(--soft);
}

.language-menu {
  position: relative;
  z-index: 5000;
}

.language-toggle {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--mint);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.language-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5001;
  display: grid;
  width: 170px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.language-list button {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  text-align: left;
}

.language-list button:hover {
  background: var(--soft);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(190px, 270px) minmax(0, 1fr) minmax(140px, 180px) max-content;
  gap: 8px;
  align-items: center;
  padding: 10px clamp(24px, 4vw, 38px);
  background: #fff;
}

.specialty-select {
  display: none;
}

.specialty-tabs {
  position: relative;
  display: block;
  min-width: 0;
  overflow: visible;
  padding-bottom: 0;
}

.specialty-tab {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}

.specialty-chevron {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  line-height: 1;
}

.specialty-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1700;
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.specialty-option {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.specialty-option:hover,
.specialty-option.active {
  color: var(--mint-dark);
  background: var(--soft);
}

.specialist-search {
  position: relative;
}

.filter-bar > .specialist-search,
.filter-bar > .search-field {
  position: relative;
  display: block;
}

.filter-bar > .specialist-search > span,
.filter-bar > .search-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.filter-bar > .specialist-search::before,
.filter-bar > .search-field::before {
  position: absolute;
  left: 13px;
  top: 50%;
  z-index: 1;
  color: var(--mint-dark);
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
}

.filter-bar > .specialist-search::before {
  content: "⌕";
}

.filter-bar > .search-field::before {
  content: "⌖";
}

.filter-bar > .specialist-search input,
.filter-bar > .search-field input {
  height: 36px;
  padding-left: 40px;
  color: #8f9798;
  background: #fff;
  border: 1px solid #bfe8db;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(7, 82, 63, 0.04);
}

.filter-bar > .search-field input {
  font-size: 12px;
  font-weight: 500 !important;
}

.filter-bar > .specialist-search input::placeholder,
.filter-bar > .search-field input::placeholder {
  color: #a9b0b1;
}

.search-suggestions,
.location-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1700;
  display: grid;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-suggestion,
.location-suggestion {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
}

.location-suggestion {
  grid-template-columns: minmax(0, 1fr);
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.search-suggestion:hover,
.location-suggestion:hover {
  background: var(--soft);
}

.search-suggestion img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.search-suggestion strong,
.search-suggestion span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion strong {
  font-size: 13px;
}

.search-suggestion span {
  color: var(--muted);
  font-size: 12px;
}

.specialty-tab.active {
  color: #fff;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

label {
  display: grid;
  gap: 5px;
  color: var(--mint-dark);
  font-size: 10px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.home-page #locationInput {
  color: var(--mint-dark);
}

input,
select {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(24, 200, 148, 0.16);
}

textarea {
  resize: vertical;
  padding: 12px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.primary-btn,
.secondary-btn {
  color: #fff;
  background: var(--mint-dark);
}

.ghost-btn {
  color: #fff;
  background: var(--mint);
}

.filter-bar #useLocationBtn {
  grid-column: 5;
  justify-self: end;
  width: auto;
  min-width: max-content;
  padding-inline: 14px;
}

.filter-bar > .search-field {
  grid-column: 4;
}

main {
  display: grid;
  gap: 0;
}

.map-home {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 108px);
  margin-top: 108px;
  overflow: hidden;
  background: #07120f;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #07120f;
}

.real-map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  font-family: "Rubik", Arial, sans-serif;
  background: #07120f;
}

.leaflet-tile-pane {
  filter: saturate(0.65) contrast(1.12) brightness(0.62);
}

.map-light .leaflet-tile-pane {
  filter: grayscale(0.35) saturate(0.55) contrast(0.94) brightness(1.02);
}

.map-mode-toggle {
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 1500;
  display: inline-flex;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-mode-toggle button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.map-mode-toggle button.active {
  color: #fff;
  background: var(--mint-dark);
}

.leaflet-control-zoom {
  z-index: 900 !important;
  margin-right: 14px !important;
  margin-bottom: 44px !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

.leaflet-control-zoom a {
  width: 46px !important;
  height: 46px !important;
  color: #111 !important;
  border-color: #dde5e1 !important;
  line-height: 46px !important;
  font-size: 28px !important;
}

.leaflet-control-attribution {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82) !important;
}

.map-pin-icon {
  background: transparent;
  border: 0;
}

.user-pin,
.master-pin {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
  transform: rotate(-45deg);
}

.master-pin {
  background: var(--mint);
}

.master-pin.gender-female {
  background: #ac3b61;
}

.master-pin.gender-male {
  background: var(--mint);
}

.user-pin {
  background: var(--clay);
  width: 42px;
  height: 42px;
  border-width: 3px;
  opacity: 0.88;
}

.user-pin::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: rotate(45deg);
}

.master-pin img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
  transform: rotate(45deg);
}

.results-panel {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 1500;
  display: grid;
  width: min(288px, calc(100% - 96px));
  max-height: calc(100vh - 270px);
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(189, 232, 217, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.results-panel .section-head > div {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.results-panel h1 {
  font-size: 16px;
  line-height: 34px;
  white-space: nowrap;
}

.panel-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--mint-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.panel-toggle:hover {
  color: #fff;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.results-panel.is-collapsed {
  width: min(288px, calc(100% - 72px));
  max-height: none;
  padding: 8px 10px;
  overflow: visible;
}

.results-panel.is-collapsed .sort-row,
.results-panel.is-collapsed .master-list {
  display: none;
}

.results-panel.is-collapsed .section-head {
  gap: 8px;
}

.count-pill,
.status-pill {
  display: inline-grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  color: var(--mint-dark);
  background: var(--soft);
  border-radius: 999px;
  font-weight: 800;
}

.sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

.chip.active {
  color: #fff;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.master-list {
  display: grid;
  gap: 9px;
}

.master-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.latin-only-error {
  margin: -4px 0 0;
  color: #b33838;
  font-size: 12px;
  font-weight: 700;
}

.master-card:hover,
.master-card:focus-within {
  border-color: var(--mint);
  box-shadow: 0 8px 20px rgba(7, 149, 110, 0.18);
  transform: translateY(-1px);
}

.master-card header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.master-card header strong {
  margin-left: 0;
}

.master-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #4d5d57;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.rating-star {
  color: #f5b82e;
  font-size: 20px;
  line-height: 1;
}

.rating-summary.empty .rating-star {
  color: #b9c2bf;
}

.rating-summary strong {
  color: var(--deep);
  font-weight: 500;
}

.rating-summary em {
  color: #8b9693;
  font-style: normal;
}

.profile-hero .rating-summary {
  font-size: 14px;
}

.master-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(23, 33, 29, 0.14);
}

.master-card h3 {
  font-size: 15px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.master-card p,
.profile-popover p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: currentColor;
  line-height: 1;
  vertical-align: middle;
}

.location-pin {
  display: block;
  width: 11px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
  transform: translateY(-2px);
}

.master-card .location-line {
  align-items: center;
  line-height: 1.45;
}

.master-card .location-pin {
  transform: translateY(-2px);
}

.profile-hero .location-line,
.contact-grid .location-line {
  align-items: center;
}

.profile-hero .location-pin,
.contact-grid .location-pin {
  transform: translateY(-2px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.meta-row span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  color: #314139;
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.master-card > .phone-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 9px;
  color: var(--mint-dark);
  background: var(--soft);
  border: 1px solid rgba(24, 200, 148, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.link-btn {
  width: fit-content;
  padding: 0;
  color: var(--mint-dark);
  background: transparent;
  border: 0;
  font-weight: 800;
  text-align: left;
}

.master-card .link-btn {
  justify-self: center;
  font-size: 12px;
  text-align: center;
}

.profile-popover {
  position: relative;
  width: 220px;
  min-height: 0;
  padding: 0;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.mini-close {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #7d8a88;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 20px;
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
}

.leaflet-popup-content {
  width: 220px !important;
  margin: 0;
}

.leaflet-popup-tip {
  display: block;
  width: 24px;
  height: 24px;
  background: #fff;
  box-shadow: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-content {
  background: transparent;
}

.master-popup {
  margin-bottom: 34px;
}

.profile-popover h3 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 14px;
  line-height: 1.1;
}

.mini-profile-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 10px 32px 10px 10px;
  background: #e8fbf3;
  border-radius: 12px 12px 0 0;
}

.popover-photo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
  margin: 0;
  border: 2px solid #20c997;
  border-radius: 50%;
}

.profile-popover p {
  margin: 0;
  font-size: 11px;
}

.mini-specialty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint-dark);
}

.mini-specialty span {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

.mini-profile-body {
  display: grid;
  gap: 9px;
  padding: 16px 10px 10px;
}

.mini-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 32px;
  color: #6c7377;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6f7d79;
  font-size: 11px;
}


.mini-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mini-bottom-row strong {
  color: var(--mint-dark);
  font-size: 13px;
}

.mini-bottom-row span {
  padding: 4px 8px;
  color: var(--deep);
  background: #d8f6ea;
  border-radius: 999px;
  font-size: 10px;
}

.mini-contact {
  min-height: 32px;
  color: #fff;
  background: var(--mint-dark);
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.map-legend {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-user {
  background: var(--clay);
}

.legend-master {
  background: var(--mint);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(180px, 0.8fr) minmax(240px, 0.9fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  padding: 16px clamp(48px, 5vw, 72px) 18px;
  color: #d9fff1;
  background: var(--deep);
  border-top: 1px solid rgba(153, 230, 206, 0.14);
}

.footer-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  gap: 8px;
}

.footer-logo .brand-mark {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #8ff5d3;
  font-size: 11px;
}

.footer-logo strong {
  font-size: 13px;
  line-height: 1;
}

.site-footer .brand-mark {
  background: rgba(24, 200, 148, 0.18);
}

.site-footer p {
  max-width: 300px;
  margin: 8px 0 0;
  color: #99e6ce;
  font-size: 12px;
  line-height: 1.35;
}

.site-footer h2 {
  margin-bottom: 7px;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span {
  display: block;
  margin: 0 0 4px;
  color: #d9fff1;
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
}

.site-footer a:hover {
  color: #8ff5d3;
}

.admin-panel {
  margin: 28px clamp(18px, 4vw, 56px) 48px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.4fr 0.85fr;
  gap: 16px;
  margin-top: 18px;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 10px;
  color: var(--mint-dark);
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(840px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(13, 36, 29, 0.18);
}

#profileDetails {
  display: grid;
  max-height: min(840px, calc(100vh - 28px));
  grid-template-rows: auto minmax(0, 1fr);
}

.profile-dialog::backdrop {
  background: rgba(23, 33, 29, 0.58);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: #314139;
  background: #f8fbf9;
  border: 1px solid #dbe7e1;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.profile-hero {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 12px 16px;
  align-items: start;
  padding: 26px 28px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #dbe7e1;
}

.profile-hero .eyebrow {
  color: var(--muted);
  align-self: start;
  margin: 0;
  text-transform: none;
}

.profile-hero h2 {
  color: #102d25;
  font-size: 30px;
  line-height: 1.05;
}

.profile-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.profile-subtitle {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.profile-photo {
  grid-row: span 3;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
}

.profile-hero .meta-row {
  align-self: end;
}

.profile-body {
  display: grid;
  min-height: 0;
  gap: 20px;
  padding: 24px 28px 28px;
  overflow: hidden;
  background: #fff;
}

.profile-description {
  display: grid;
  gap: 12px;
}

.profile-description p,
.profile-body > p {
  margin: 0;
  color: #314139;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dbe7e1;
}

.profile-tabs button {
  min-height: 34px;
  padding: 0 12px;
  color: #4d5d57;
  background: #fff;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
  font-size: 13px;
}

.profile-tabs button.active {
  color: #fff;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.profile-tab-panel {
  display: grid;
  gap: 18px;
  height: clamp(300px, calc(100vh - 430px), 360px);
  overflow-y: auto;
  padding-right: 4px;
}

.latest-review {
  display: grid;
  gap: 10px;
}

.latest-review h3,
.profile-tab-panel h3 {
  color: #102d25;
  font-size: 16px;
}

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3f7f5;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
}

.profile-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-gallery button {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.profile-gallery button:hover {
  background: rgba(7, 82, 63, 0.08);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 28px;
  background: rgba(12, 24, 20, 0.86);
}

.gallery-lightbox img {
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gallery-nav {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  justify-self: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 42px;
  line-height: 1;
}

.gallery-nav:hover {
  background: rgba(24, 200, 148, 0.8);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.profile-call-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 220px;
  padding: 0 18px;
  color: #fff;
  background: var(--mint-dark);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.profile-call-btn:hover {
  background: var(--deep);
}

.service-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.service-list strong {
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-grid a,
.contact-grid span {
  padding: 10px 12px;
  color: #223a32;
  background: #fff;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
}

.contact-grid .site-link {
  color: #111;
  background: #fff;
  border: 1px solid #dbe7e1;
}

.contact-grid .facebook-link {
  color: #123C69;
  background: #fff;
  border-color: rgba(18, 60, 105, 0.34);
}

.contact-grid .instagram-link {
  color: #AC3B61;
  background: #fff;
  border-color: rgba(172, 59, 97, 0.34);
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-list blockquote {
  margin: 0;
  padding: 12px;
  color: #4d5d57;
  background: #fff;
  border: 1px solid #dbe7e1;
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .filter-bar {
    grid-template-columns: minmax(190px, 1fr) minmax(190px, 270px) minmax(160px, 220px) max-content;
    padding-inline: 22px;
  }

  .filter-bar #useLocationBtn {
    grid-column: auto;
  }

  .filter-bar > .search-field {
    grid-column: auto;
  }

  .map-home {
    margin-top: 108px;
    min-height: calc(100vh - 108px);
  }
}

@media (max-width: 980px) {
  .main-nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px);
  }

  .filter-bar > .specialist-search,
  .specialty-tabs {
    min-width: 0;
  }

  .filter-bar > .search-field {
    min-width: 0;
  }

  .filter-bar #useLocationBtn {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .filter-bar > .search-field {
    grid-column: auto;
  }

  .map-home {
    margin-top: 160px;
    min-height: calc(100vh - 160px);
  }

  .results-panel {
    top: 24px;
    max-height: calc(100vh - 300px);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav,
  .filter-bar,
  .site-footer {
    padding-inline: 18px;
  }

  .brand strong {
    font-size: 22px;
  }

  .account-nav a {
    min-height: 34px;
    padding: 0 14px;
  }

  .language-toggle {
    width: 38px;
    height: 34px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .filter-bar #useLocationBtn {
    grid-column: auto;
    justify-self: stretch;
  }

  .specialty-menu {
    position: static;
    margin-top: 6px;
  }

  .map-home {
    margin-top: 280px;
    min-height: calc(100vh - 280px);
  }

  .admin-grid,
  .form-grid,
  .contact-grid,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    grid-row: auto;
  }

  .results-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-height: 42vh;
    padding: 14px;
  }

  .results-panel h1 {
    font-size: 16px;
  }

  .map-legend {
    right: 10px;
    bottom: 10px;
  }

  .admin-panel {
    margin-inline: 10px;
  }
}
