/* Homepage layout + map + search panel (LA Markets Near You) */

.map-wrap {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 0.28571429rem;
  /* overflow:visible so Places .pac-container is not clipped (it sits under this subtree) */
  overflow: visible;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#map {
  width: 100%;
  min-height: 55vh;
  height: 480px;
  background: #e8eef2;
  border-radius: 0.28571429rem;
  overflow: hidden;
}

.map-search-panel {
  position: absolute;
  bottom: 28px;
  left: 12px;
  top: auto;
  right: auto;
  z-index: 100;
  overflow: visible;
  box-sizing: border-box;
  width: min(340px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

@media (max-width: 480px) {
  .map-search-panel {
    bottom: 22px;
    left: 8px;
    right: 8px;
    top: auto;
    width: auto;
    max-width: none;
  }
}

.map-search-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.map-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  overflow: visible;
  position: relative;
  z-index: 101;
}

.map-search-row .pac-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
}

/* Legacy Places Autocomplete attached a class on the input; new widget is gmp-place-autocomplete */
.map-search-row .pac-target-input,
.map-search-row gmp-place-autocomplete {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.3;
}

.map-search-row input#pac-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.3;
  border: 1px solid #bbb;
  border-radius: 6px;
}

.map-search-row input#pac-input:focus {
  outline: none;
  border-color: #2185d0;
  box-shadow: 0 0 0 2px rgba(33, 133, 208, 0.2);
}

#pac-search-btn {
  flex-shrink: 0;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #2185d0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#pac-search-btn:hover {
  background: #1678c2;
}

#pac-search-btn:active {
  background: #0d6394;
}

.pac-container {
  z-index: 100000 !important;
  font-family: Lato, "Helvetica Neue", Arial, Helvetica, sans-serif !important;
  border-radius: 0.28571429rem;
  margin-top: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

.masthead.segment {
  min-height: 700px;
  padding: 1em 0;
}

.masthead h1.ui.header {
  margin-top: 3em;
  margin-bottom: 0;
  font-size: 4em;
  font-weight: normal;
}

.masthead h2 {
  font-size: 1.7em;
  font-weight: normal;
}
