:root {
  --red: #c81d25;
  --red-dark: #a91219;
  --ink: #16202a;
  --muted: #66717d;
  --line: #dde2e7;
  --paper: #ffffff;
  --soft: #f5f6f7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--soft); overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.masthead {
  height: 116px;
  padding: 20px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  background: var(--red);
  color: white;
  box-shadow: 0 2px 12px rgb(0 0 0 / 18%);
  position: relative;
  z-index: 1001;
}
.brand { color: white; text-decoration: none; display: flex; flex-direction: column; line-height: .8; min-width: 164px; }
.brand-centro { font: 900 38px/1 Arial Black, sans-serif; letter-spacing: -2.5px; }
.brand-tampa { margin-top: 6px; font: 800 13px/1 sans-serif; letter-spacing: 8px; }
.masthead-copy { border-left: 1px solid rgb(255 255 255 / 40%); padding-left: clamp(24px, 4vw, 56px); }
.masthead h1 { margin: 0; font-size: clamp(23px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.masthead p { margin: 5px 0 0; opacity: .9; font-size: 14px; }
.masthead .eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .13em; }

.app-shell { height: calc(100vh - 116px); display: grid; grid-template-columns: minmax(340px, 420px) 1fr; }
.sidebar { min-width: 0; background: var(--paper); z-index: 500; display: flex; flex-direction: column; box-shadow: 4px 0 18px rgb(16 24 40 / 9%); }
.controls { padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.search-label, .filter-row label span { display: block; color: #38434e; font-size: 12px; font-weight: 750; margin-bottom: 7px; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > span { position: absolute; left: 13px; color: var(--muted); font-size: 23px; transform: rotate(-20deg); }
.search-wrap input { width: 100%; height: 46px; padding: 0 42px; border: 1px solid #cbd2d9; border-radius: 8px; outline: none; }
.search-wrap input:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgb(200 29 37 / 12%); }
.clear-button { position: absolute; right: 8px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
select { width: 100%; height: 41px; padding: 0 30px 0 11px; background: white; border: 1px solid #cbd2d9; border-radius: 7px; color: var(--ink); }
.near-button { margin-top: 12px; width: 100%; height: 42px; border: 1px solid var(--red); color: var(--red); background: white; border-radius: 7px; font-weight: 750; cursor: pointer; }
.near-button:hover { color: white; background: var(--red); }

.results-head { min-height: 50px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; }
.results-head button { border: 0; color: var(--red); background: transparent; cursor: pointer; }
.location-list { flex: 1; overflow: auto; scroll-behavior: smooth; }
.location-card { border-bottom: 1px solid var(--line); position: relative; transition: background .15s ease; }
.location-card:hover, .location-card.active { background: #fff8f8; }
.card-main { width: 100%; padding: 17px 22px 9px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; text-align: left; color: inherit; border: 0; background: transparent; cursor: pointer; }
.location-number { width: 25px; height: 25px; display: grid; place-items: center; background: var(--red); color: white; border-radius: 50% 50% 50% 4px; font-size: 10px; font-weight: 850; transform: rotate(-45deg); }
.location-number::first-line { transform: rotate(45deg); }
.location-number span { transform: rotate(45deg); }
.card-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.location-name { font-size: 14px; line-height: 1.25; }
.location-address { color: #3c4650; font-size: 12px; line-height: 1.35; }
.location-meta { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.directions { display: inline-block; margin: 0 0 14px 62px; color: var(--red); text-decoration: none; font-size: 12px; font-weight: 750; }
.directions:hover { text-decoration: underline; }
.empty { padding: 44px 28px; text-align: center; color: var(--muted); }

.map-panel, #map { min-width: 0; height: 100%; }
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 8px 30px rgb(0 0 0 / 20%); }
.map-popup strong { display: block; font-size: 14px; margin-bottom: 5px; }
.map-popup span { display: block; color: #4d5863; font-size: 12px; line-height: 1.4; }
.map-popup a { display: inline-block; margin-top: 9px; color: var(--red); font-weight: 750; text-decoration: none; }
.centro-marker { background: transparent; border: 0; }
.centro-pin { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid white; border-radius: 50% 50% 50% 5px; background: var(--red); color: white; box-shadow: 0 2px 7px rgb(0 0 0 / 35%); transform: rotate(-45deg); font-size: 9px; font-weight: 900; }
.centro-pin span { transform: rotate(45deg); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgb(200 29 37 / 22%); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--red); color: white; font-weight: 800; }
.mobile-list-toggle { display: none; }

@media (max-width: 720px) {
  body { overflow: auto; }
  .masthead { height: 112px; padding: 15px 18px; gap: 14px; }
  .brand { min-width: 102px; }
  .brand-centro { font-size: 25px; letter-spacing: -1.8px; }
  .brand-tampa { font-size: 8px; letter-spacing: 5px; }
  .masthead-copy { padding-left: 14px; }
  .masthead-copy .eyebrow, .masthead-copy > p:last-child { display: none; }
  .masthead h1 { font-size: 21px; }
  .app-shell { height: calc(100dvh - 112px); display: block; position: relative; }
  .map-panel { height: 100%; }
  .sidebar { position: absolute; inset: 0; z-index: 900; transform: translateY(100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateY(0); }
  .controls { padding: 14px 16px 12px; }
  .results-head { padding: 0 16px; }
  .mobile-list-toggle { display: block; position: absolute; z-index: 800; bottom: 24px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 12px 22px; color: white; background: var(--red); box-shadow: 0 6px 20px rgb(0 0 0 / 28%); font-weight: 800; }
  .sidebar.open::before { content: "Mapa"; position: absolute; right: 16px; top: 14px; z-index: 2; color: var(--red); font-size: 13px; font-weight: 800; cursor: pointer; }
  .search-label { padding-right: 50px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
