@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  font-family: "Inter", sans-serif;
  color: #dfeeff;
  background: #050b12;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-weight: 400;
  --bg: #050b12;
  --surface: #0c1724;
  --surface-raised: #101f2e;
  --primary: #071a2d;
  --blue: #1aa3ff;
  --cyan: #12d7ff;
  --text: #dfeeff;
  --muted: #9bb2c8;
  --line: rgba(155, 178, 200, .16);
  --radius: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(ellipse at 50% -18%, rgba(26, 163, 255, .16), transparent 44%), var(--bg);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  height: 82px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; width: 154px; height: auto; filter: brightness(0) invert(1); }
.topnav { display: flex; align-items: center; gap: 32px; height: 100%; }
.topnav a, .about-link { color: #b7c9d8; font-size: 13px; text-decoration: none; transition: color .2s ease; }
.topnav a:hover, .about-link:hover { color: var(--cyan); }
.topnav .nav-current { color: #fff; position: relative; }
.topnav .nav-current::after { content: ""; height: 2px; position: absolute; bottom: -31px; left: 0; right: 0; background: var(--cyan); }
.about-link {
  margin-left: auto;
  padding: 11px 16px;
  border: 1px solid rgba(18, 215, 255, .42);
  border-radius: 9px;
  color: #e7f8ff;
}
.about-link span { color: var(--cyan); margin-left: 6px; }

main { max-width: 1240px; margin: auto; padding: 0 32px; }
.hero {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  margin: 30px 0 72px;
  padding: 74px 7%;
  display: flex;
  align-items: center;
  border: 1px solid rgba(103, 180, 226, .2);
  border-radius: 20px;
  background: linear-gradient(118deg, #040c15 0%, #09192a 48%, #0c2942 100%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .24);
}
.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  right: 5%;
  top: -40%;
  background: rgba(26, 163, 255, .09);
  filter: blur(80px);
}
.hero-copy { position: relative; z-index: 2; width: 56%; }
.eyebrow, footer, .card-footer, .sort-label, .provenance {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #93b3ca; }
.eyebrow i, .status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(18, 215, 255, .7);
}
.hero h1 {
  margin: 22px 0 14px;
  color: #f3f9ff;
  font: 800 clamp(44px, 5vw, 66px)/1.02 "Outfit", sans-serif;
  letter-spacing: -2.7px;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #12d7ff, #4daeff);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy > p { max-width: 440px; margin: 0; color: #a9bfd1; font-size: 15px; line-height: 1.75; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  margin-top: 27px;
  padding: 13px 18px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #04111c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(18, 215, 255, .2);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(18, 215, 255, .32); }
.hero-cta span { font-size: 17px; }
.hero-caption { display: flex; align-items: center; gap: 9px; margin-top: 30px; color: #8199ac; font-size: 11px; }
.hero-caption strong { color: #c9e6f4; font-weight: 600; }
.status-pulse { width: 6px; height: 6px; }
.hero-art {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 47%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 47%, rgba(16, 110, 169, .22), transparent 57%);
}
.hero-art img {
  position: relative;
  width: min(91%, 440px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 35px rgba(0, 0, 0, .35));
}
.art-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: rgba(18, 215, 255, .07); filter: blur(60px); }
.art-label { position: absolute; right: 8%; bottom: 30px; color: #94aec2; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; line-height: 1.8; text-align: right; }

.explorer { padding: 0 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.muted { color: #8299ac; }
.section-heading h2 { margin: 10px 0 0; color: #f1f7fc; font: 600 30px "Outfit", sans-serif; letter-spacing: -.8px; }
.heading-count { margin-left: 8px; color: var(--cyan); font: 500 14px "Inter", sans-serif; vertical-align: middle; }
.area-select-wrap { position: relative; }
.area-select-wrap select, .category-select select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 38px 12px 14px;
  background-color: #0c1724;
  color: #e0eef8;
  font-size: 12px;
}
.area-select-wrap select { width: 210px; }
.area-select-wrap select:focus, .category-select select:focus, .searchbox:focus-within { outline: 2px solid rgba(18, 215, 255, .48); outline-offset: 2px; }
.area-select-wrap>span { position: absolute; right: 13px; top: 9px; color: var(--cyan); pointer-events: none; }
.area-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 20px; overflow-x: auto; padding: 2px 1px 8px; }
.chip { border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; background: #0a1622; color: #a9bfd1; font-size: 11px; transition: .2s; }
.chip.active, .chip:hover { border-color: rgba(18, 215, 255, .58); background: rgba(18, 215, 255, .1); color: #e1fbff; }
.toolbar { display: flex; gap: 11px; margin-top: 25px; }
.searchbox {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1724;
  transition: border-color .2s;
}
.searchbox:focus-within { border-color: rgba(18, 215, 255, .55); outline: none; }
.search-icon { color: var(--cyan); font-size: 23px; line-height: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #eaf5fc; font-size: 13px; }
.searchbox input::placeholder { color: #7890a3; }
kbd { border: 1px solid rgba(155, 178, 200, .22); border-radius: 5px; padding: 4px 6px; color: #8da3b5; font: 10px "Inter", sans-serif; }
.category-select select { height: 50px; border-color: var(--line); background-color: #0c1724; padding-right: 36px; }
.view-switch { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #0c1724; }
.view-switch button { border: 0; border-radius: 7px; padding: 0 14px; background: transparent; color: #91a7b9; font-size: 12px; }
.view-switch button.chosen { background: linear-gradient(120deg, rgba(18, 215, 255, .16), rgba(26, 163, 255, .16)); color: #dffaff; }
.view-switch button span { margin-left: 4px; font-size: 11px; }
.results-meta { display: flex; justify-content: space-between; gap: 12px; margin: 23px 0 13px; color: #93a8b8; font-size: 12px; }
.sort-label { color: #8299ac; font-size: 9px; }
.sort-label span { margin-left: 5px; color: var(--cyan); font-size: 13px; }

.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.business-card {
  position: relative;
  min-height: 166px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14, 29, 43, .96), rgba(9, 20, 31, .96));
  animation: rise .3s ease both;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.business-card:hover { transform: translateY(-3px); border-color: rgba(18, 215, 255, .4); box-shadow: 0 15px 32px rgba(0, 0, 0, .2); }
.card-open { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: transparent; }
.card-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.category-tag { display: inline-flex; border: 1px solid rgba(18, 215, 255, .16); border-radius: 5px; padding: 5px 8px; background: rgba(18, 215, 255, .08); color: #8deaff; font-size: 9px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.card-arrow { color: #7d9aae; font-size: 17px; }
.business-card h3 { margin: 16px 0 5px; color: #eaf5fc; font: 600 18px "Outfit", sans-serif; letter-spacing: -.25px; }
.card-address { margin: 0; color: #93a8b8; font-size: 12px; }
.card-contact { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.card-contact a { position: relative; z-index: 1; color: #55dfff; font-size: 11px; text-decoration: none; overflow-wrap: anywhere; }
.card-contact a:hover { color: #b9f5ff; text-decoration: underline; }
.card-footer { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(155, 178, 200, .1); color: #8299ac; font-size: 9px; letter-spacing: .7px; }
.source-dot { width: 6px; height: 6px; border-radius: 50%; background: #7ddf9b; box-shadow: 0 0 9px rgba(125, 223, 155, .45); }
.footer-arrow { margin-left: auto; color: var(--cyan); font-size: 13px; }
.empty-state { grid-column: 1/-1; padding: 58px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 23, 36, .72); color: #9bb2c8; font-size: 13px; text-align: center; }
.empty-state h3 { margin: 10px 0 4px; color: #eaf5fc; font: 600 21px "Outfit", sans-serif; }
.empty-state p { margin: 0; }
.results-limit { grid-column: 1/-1; margin: 0; color: #9bb2c8; font-size: 11px; text-align: center; }
.empty-icon { color: var(--cyan); font-size: 28px; }
.alert { margin: 12px 0; padding: 13px 15px; border: 1px solid rgba(255, 139, 120, .35); border-radius: 9px; background: rgba(123, 48, 41, .18); color: #ffb9aa; font-size: 12px; }

.map-wrap { position: relative; z-index: 0; height: 460px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.map-wrap .leaflet-container { width: 100%; height: 100%; background: #0c1724; }
.business-pin { border: 0; background: transparent; }
.business-pin span { display: block; width: 17px; height: 17px; border: 3px solid white; border-radius: 50%; background: #0ea5e9; box-shadow: 0 1px 9px #12d7ff80; }
.map-empty { position: absolute; z-index: 500; top: 13px; left: 50%; transform: translateX(-50%); padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0c1724ee; color: #dfeeff; font-size: 11px; box-shadow: 0 5px 18px #0004; white-space: nowrap; }
.clear-map-filter { border: 0; background: transparent; color: var(--cyan); font-size: 11px; text-decoration: underline; }

.data-note { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 46px 18px 34px; padding: 20px 22px; border: 1px solid rgba(26, 163, 255, .18); border-radius: 12px; background: linear-gradient(110deg, rgba(12, 30, 45, .96), rgba(10, 23, 35, .9)); }
.note-icon { width: 22px; height: 22px; display: grid; flex: none; place-items: center; border: 1px solid rgba(18, 215, 255, .45); border-radius: 50%; color: var(--cyan); font-size: 12px; }
.data-note strong { color: #e7f5ff; font-size: 13px; }
.data-note p { margin: 6px 0 0; color: #98aec0; font-size: 11px; line-height: 1.7; }
.data-note a { color: #55dfff; }
.note-spark { margin-left: auto; color: var(--cyan); font-size: 20px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 18px 28px; border-top: 1px solid var(--line); color: #8197a9; font-size: 9px; font-weight: 500; letter-spacing: .4px; text-transform: none; }
footer a { color: #a9c2d4; text-decoration: none; }
footer a:hover { color: var(--cyan); }
.footer-brand { color: #dfeeff; font-weight: 600; }
.footer-brand span { color: var(--cyan); }

.modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(1, 7, 12, .82); backdrop-filter: blur(8px); }
.detail-modal { position: relative; width: min(480px, 100%); padding: 35px; border: 1px solid rgba(18, 215, 255, .2); border-radius: 16px; background: #0c1724; box-shadow: 0 20px 70px #0008; }
.modal-close { position: absolute; top: 12px; right: 16px; border: 0; background: none; color: #98aec0; font-size: 25px; }
.detail-modal h2 { margin: 18px 0 8px; color: #f3f9ff; font: 600 31px "Outfit", sans-serif; }
.detail-modal>p { color: #a9bfd1; font-size: 13px; line-height: 1.6; }
.detail-modal a { color: #55dfff; }
.detail-row { padding-top: 10px; border-top: 1px solid var(--line); }
.provenance { padding-top: 14px; border-top: 1px solid var(--line); color: #8ea5b8; font-size: 9px; line-height: 2; letter-spacing: .7px; }

.admin-link {
  background: none;
  border: none;
  color: #8197a9;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.admin-link:hover { color: var(--cyan); }
.admin-modal-card { width: min(440px, 100%); }
.admin-form { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.admin-label { font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #93b3ca; }
.admin-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07101a;
  color: #eaf5fc;
  font-size: 13px;
  outline: none;
  transition: border-color .2s ease;
}
.admin-input:focus { border-color: var(--cyan); }
.admin-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #12d7ff, #1aa3ff);
  color: #03101c;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.admin-submit-btn:hover { opacity: .92; }
.admin-submit-btn:disabled { opacity: .55; cursor: not-allowed; }
.admin-status { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.admin-status.success { background: rgba(125, 223, 155, .15); border: 1px solid rgba(125, 223, 155, .4); color: #a4f4bc; }
.admin-status.error { background: rgba(123, 48, 41, .2); border: 1px solid rgba(255, 139, 120, .4); color: #ffb9aa; }
.admin-status.loading { background: rgba(18, 215, 255, .1); border: 1px solid rgba(18, 215, 255, .3); color: #bbf3ff; }

@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 20px; gap: 22px; }
  .brand img { width: 132px; }
  .topnav { gap: 18px; }
  .topnav a, .about-link { font-size: 11px; }
  .topnav .nav-current::after { bottom: -26px; }
  .about-link { padding: 9px 10px; }
  main { padding: 0 18px; }
  .hero { min-height: 430px; margin: 18px 0 52px; padding: 48px 6%; }
  .hero-copy { width: 70%; }
  .hero h1 { font-size: 48px; }
  .hero-copy>p { max-width: 330px; font-size: 13px; }
  .hero-art { width: 44%; opacity: .8; }
  .hero-art img { width: 125%; max-width: none; transform: translateX(10%); }
  .art-label { right: 7%; bottom: 20px; font-size: 8px; }
  .explorer { padding: 0 2px; }
  .section-heading h2 { font-size: 25px; }
  .area-select-wrap select { width: 190px; }
  .toolbar { flex-wrap: wrap; }
  .searchbox { flex-basis: 100%; }
  .category-select { flex: 1; }
  .category-select select { width: 100%; }
  .view-switch button { padding: 0 10px; }
  .business-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-card { min-height: 154px; padding: 15px; }
  .business-card h3 { font-size: 16px; }
  .card-footer { font-size: 8px; }
  .data-note { margin: 34px 2px 26px; padding: 17px; }
  .note-spark { display: none; }
  footer { padding-left: 2px; padding-right: 2px; }
}
@media (max-width: 480px) {
  .topbar { padding: 0 15px; gap: 12px; }
  .brand img { width: 112px; }
  .topnav { gap: 12px; }
  .topnav a { font-size: 10px; }
  .about-link { padding: 8px; font-size: 10px; }
  main { padding: 0 13px; }
  .hero { min-height: 410px; margin: 13px 0 42px; padding: 35px 7%; align-items: flex-start; }
  .hero-copy { width: 100%; }
  .hero h1 { margin-top: 20px; font-size: 43px; }
  .hero-copy>p { max-width: 260px; font-size: 12px; }
  .hero-art { top: auto; bottom: 0; width: 70%; height: 47%; opacity: .63; }
  .hero-art img { width: 91%; transform: none; }
  .hero-caption { margin-top: 20px; }
  .section-heading { align-items: center; }
  .section-heading h2 { font-size: 21px; }
  .area-select-wrap select { width: 155px; padding: 10px 28px 10px 10px; font-size: 10px; }
  .business-grid { grid-template-columns: 1fr; }
  .business-card { min-height: 140px; }
  .results-meta { font-size: 10px; }
  .sort-label { font-size: 8px; }
  .data-note p { font-size: 10px; }
  footer { flex-direction: column; gap: 9px; font-size: 10px; }
  .map-wrap { height: 390px; }
  .map-empty { max-width: calc(100% - 24px); white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
