/* styles.css */
:root {
  --lcfc-navy: #164194;
  --lcfc-gold: #faba01;
  --panel-border: #e6e6e6;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

html,
body {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
  font-family:
    Fira Sans,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

#map {
  height: 100%;
  width: 100%;
}

/* Shared UI base */
.ui {
  position: absolute;
  z-index: 10;
  color: #111;
}

/* Search bar */
.search {
  display: flex;
  background: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  border: 0;
  padding: 14px 14px;
  font-size: 16px;
  outline: none;
}
.search button {
  border: 0;
  background: var(--lcfc-navy);
  color: #fff;
  width: 48px;
  cursor: pointer;
  font-size: 16px;
}

/* CTA row */
.cta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.cta .btn {
  background: var(--lcfc-navy);
  color: #fdfdfd;
  font-weight: 900;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Results list */
.results {
  margin-top: 10px;
  max-height: 40vh;
  overflow: auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.result {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}
.result:last-child {
  border-bottom: 0;
}
.result:hover {
  background: #f8f8f8;
}
.result .name {
  font-weight: 900;
  color: var(--lcfc-navy);
}
.result .meta {
  font-size: 16px;
  opacity: 0.75;
  margin-top: 4px;
}

/* Bottom-sheet pieces */
.sheet-handle {
  display: none;
} /* visible on mobile */
.sheet-body {
  display: block;
}

/* Desktop (top-right panel) */
@media (min-width: 769px) {
  .ui {
    right: 24px;
    top: 24px;
    width: min(420px, calc(100vw - 48px));
  }
}

/* Mobile (bottom sheet) */
@media (max-width: 768px) {
  .ui {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    width: auto;
    max-width: none;
  }

  .sheet-handle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--panel-border);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    cursor: pointer;
  }

  .sheet-handle__pill {
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #cfcfcf;
    display: inline-block;
  }

  .sheet-handle__text {
    font-weight: 900;
    color: var(--lcfc-navy);
    font-size: 15px;
  }

  .sheet-body {
    display: none;
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .sheet.is-open .sheet-body {
    display: block;
  }

  /* Make mobile input tighter */
  .search input {
    font-size: 15px;
    padding: 12px 12px;
  }

  /* Taller scroll area, but not covering the map fully */
  .results {
    max-height: 45vh;
  }
}
/* iOS zoom fix for inputs */
@media (max-width: 768px) {
  input[type="search"],
  input[type="text"] {
    font-size: 16px;
  }
}
input {
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 768px) {
  body.is-embedded .sheet-handle,
  body.is-embedded .search,
  body.is-embedded .results {
    display: none !important;
  }
}
/* Remove White Background from HTML info*/
.gm-style .gm-style-iw-c {
  padding: 0 !important;
  background-color: #f4f5f6 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}

.gm-style .gm-style-iw-tc::after {
  background: #f4f5f6 !important;
}
