/* Homepage hero: Google location search (Buy / Rent tabs) */
.gm-hero-loc {
  position: relative;
}

.gm-hero-loc__input {
  width: 100%;
  height: 45px;
  padding: 8px 40px 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  line-height: 1.75em;
  color: var(--primary-color);
  outline: none;
  transition: border-color 0.2s ease;
}

.gm-hero-loc__input::placeholder {
  color: var(--primary-color);
  opacity: 1;
}

.gm-hero-loc__input:focus {
  border-color: var(--accent-color, #FC5E08);
}

.gm-hero-loc__icon {
  position: absolute;
  right: 15px;
  top: 22px;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
}

.gm-hero-loc__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 300px;
  z-index: 9999;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(29, 29, 29, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.gm-hero-loc__results[hidden] {
  display: none;
}

.gm-hero-loc__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
}

.gm-hero-loc__option:hover,
.gm-hero-loc__option.is-active {
  background: rgba(252, 94, 8, 0.07);
}

.gm-hero-loc__option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.12);
  color: #1a73e8;
  font-size: 14px;
}

.gm-hero-loc__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.35;
}

.gm-hero-loc__main {
  font-size: 14px;
  color: var(--heading-color, #1d1d1d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-hero-loc__text small {
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gm-hero-loc__empty {
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #777;
}

.gm-hero-loc__empty.is-error {
  color: #dc3545;
}

.gm-hero-loc__attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  padding: 8px 16px 4px;
  border-top: 1px solid rgba(29, 29, 29, 0.08);
  font-size: 11px;
  color: #999;
}

.gm-hero-loc__attribution img {
  display: block;
  height: 16px;
  width: auto;
}

@media (max-width: 767px) {
  .gm-hero-loc__results {
    min-width: 0;
  }
}
