#localServicesView {
  min-height: 62vh;
  background: #fafbfc;
  color: var(--market-navy);
}
#localServicesView[hidden], #localServicesView [hidden] { display: none !important; }
.ls-wrap {
  width: min(calc(100% - 28px), 920px);
  margin-inline: auto;
  padding: clamp(15px, 3vw, 26px) 0 clamp(32px, 6vw, 60px);
}
.ls-crumbs {
  display: flex;
  justify-content: start;
  align-items: center;
  width: auto;
  gap: 8px;
  margin-bottom: 16px;
  font-size: .88rem;
  font-weight: 400;
}
.ls-crumbs a { color: #075b56; }
.ls-wrap h1, .ls-wrap h2, #localServiceRequest h2 {
  color: var(--market-navy);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.ls-wrap h1 { font-size: clamp(1.64rem, 4vw, 2.55rem); margin: 0 0 7px; }
.ls-wrap h1[tabindex="-1"]:focus { outline: none; }
.ls-wrap h2, #localServiceRequest h2 { font-size: clamp(1.25rem, 3vw, 1.78rem); margin: 0 0 12px; }
.ls-intro, .ls-meta, .ls-description { margin: 0 0 14px; line-height: 1.5; }
.ls-intro, .ls-meta { color: #334c62; }
.ls-description { white-space: pre-line; overflow-wrap: anywhere; }
.ls-search {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding-inline: 12px;
  border: 1px solid #b3c3d0;
  background: #fff;
  margin: 18px 0 12px;
}
.ls-search input { width: 100%; min-width: 0; min-height: 44px; background: transparent; border: 0; outline: none; color: inherit; font: inherit; font-size: 16px; }
.ls-search:focus-within { outline: 2px solid #00766d; outline-offset: 2px; }
.ls-search-mark { position: relative; width: 14px; height: 14px; flex: none; border: 2px solid currentColor; border-radius: 50%; }
.ls-search-mark::after { content: ''; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -3px; background: currentColor; transform: rotate(45deg); }
.ls-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }
.ls-categories button, .ls-primary, .ls-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #cedbe4;
  border-radius: 999px;
  background: #f4f8fa;
  color: var(--market-navy);
  font: inherit;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
}
.ls-categories button[aria-pressed="true"], .ls-primary {
  background: #006c65;
  border-color: #006c65;
  color: white;
}
.ls-primary:hover { background: #005a54; }
.ls-primary:focus-visible, .ls-secondary:focus-visible, .ls-row:focus-visible, .ls-categories button:focus-visible { outline: 3px solid #087866; outline-offset: 2px; }
.ls-rows { display: grid; gap: 9px; }
.ls-row {
  display: grid;
  grid-template-columns: clamp(77px, 25vw, 138px) minmax(0, 1fr) 18px;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
  padding: 5px 10px 5px 5px;
  border: 1px solid #d3dfe7;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 6px #10274b09;
}
.ls-row:hover { border-color: #168477; }
.ls-row-photo, .ls-cover, .ls-gallery a, .ls-home-photo { display: block; position: relative; overflow: hidden; background: #e6f1f2; }
.ls-row-photo { aspect-ratio: 1.55; border-radius: 9px; }
.ls-row-photo img, .ls-cover img, .ls-gallery img, .ls-home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ls-row-text { display: grid; gap: 3px; font-size: clamp(1rem, 2.5vw, 1.27rem); line-height: 1.2; overflow-wrap: anywhere; }
.ls-row-text small { color: #385366; font-size: .86rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ls-chevron { font-size: 1.6rem; line-height: 1; color: #00675f; text-align: center; }
.ls-action { text-align: center; margin-top: 22px; }
.ls-action .ls-primary { padding-inline: 23px; }
#lsMore { margin-top: 12px; }
.ls-empty, .ls-home-empty { margin: 0; padding: 11px 0; color: #385366; line-height: 1.4; }
.ls-cover { height: clamp(120px, 34vw, 278px); border-radius: 14px; margin: 0 0 18px; }
.ls-whatsapp { border-radius: 11px; min-height: 44px; background: #007553; border-color: #007553; }
.ls-gallery { border-top: 1px solid #dbe4eb; padding-top: 15px; margin-top: 20px; }
.ls-gallery > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ls-gallery a { aspect-ratio: 1.5; border-radius: 11px; }
#serviceGrid:has(> .ls-home-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}
#serviceGrid:has(> .ls-home-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#serviceGrid > .ls-home-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 280px);
}
.ls-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  background: #fffdf9;
  color: var(--market-navy);
  border: 1px solid #eadfce;
  border-radius: 13px;
  text-decoration: none;
}
.ls-home-photo { grid-column: 1 / -1; aspect-ratio: 1.55; }
.ls-home-name { display: grid; gap: 2px; padding: 9px 10px; font-size: .95rem; overflow-wrap: anywhere; }
.ls-home-name small { font-size: .75rem; color: #43586a; }
.ls-home-card .ls-chevron { align-self: center; padding-right: 7px; }
.ls-home-empty { grid-column: 1 / -1; }
.ls-home-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ls-home-actions :is(a, button) { min-height: 38px; font-size: .85rem; }
#localServiceRequest { width: min(540px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 18px; overflow: auto; }
#localServiceRequest .ls-request-head { position: static; display: flex; justify-content: space-between; align-items: start; gap: 10px; background: none; }
#localServiceRequest .ls-request-head button { min-width: 36px; min-height: 36px; padding: 0; background: #ecf4f4; color: #10444c; border: 0; border-radius: 50%; font-size: 1.5rem; }
#localServiceForm { display: grid; gap: 10px; }
#localServiceForm [hidden] { display: none !important; }
#localServiceForm label { display: grid; gap: 4px; font-size: .91rem; font-weight: 400; }
#localServiceForm :is(input:not([type="checkbox"]), select, textarea) { width: 100%; min-height: 41px; padding: 7px 9px; border: 1px solid #afbfcc; border-radius: 8px; background: #fff; font: inherit; font-size: 16px; }
#localServiceForm textarea { min-height: 68px; resize: vertical; }
#localServiceForm .ls-consent { display: flex; align-items: flex-start; gap: 7px; }
#localServiceForm [role="status"] { min-height: 1.2em; margin: 0; line-height: 1.35; }
#localServiceForm .ls-primary { justify-self: start; }
@media (max-width: 700px) {
  .ls-whatsapp { width: 100%; }
  #serviceGrid:has(> .ls-home-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
