/* ==========================================================================
   Norma Mora Realty — static reconstruction
   Custom styles reconstructed from the live production bundle
   (main.08bc51fb.chunk.css) plus the original App.css / index.css.
   Bootstrap 4.5 + FontAwesome are loaded via CDN in the HTML.
   ========================================================================== */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

/* Darkened hero background of homes */
body {
  width: auto;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/homes1.jpg) 50%;
  background-size: cover;
  opacity: 0.91;
}

/* Agent header card -------------------------------------------------------- */
.headshot-image {
  border-radius: 5rem;
  width: 75px;
  height: 100%;
  position: relative;
  top: 24px;
  border: 1px solid #000;
}

.logo-image {
  width: 100%;
  max-width: 282px;
  padding: 10px;
  border-radius: 10px;
}

.media-body.eddie {
  position: relative;
  top: 12px;
}

.media.eddie {
  position: absolute;
  float: left;
  background: hsla(0, 0%, 100%, 0.8);
  padding: 0 40px;
  color: #000;
  border-radius: 10px;
}

/* Search input + suggestions ---------------------------------------------- */
#addressDropdown,
#addressInput {
  opacity: 0.9;
}

#addressDropdown {
  max-height: 260px;
  overflow-y: auto;
}

#addressDropdown .dropdown-item {
  white-space: normal;
}

.card {
  background-color: transparent;
}

.custom-select,
.form-control {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.semi-dark-bg {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Results view: stack the card + form as one centered column.
   The card is pulled out of its home-view absolute/top-left placement and
   put back in normal flow; `safe center` keeps the top reachable (no clip)
   when the content is taller than the viewport. */
#goBack {
  z-index: 10;
  top: 1rem;
  left: 1rem;
}

.results-left {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  overflow-y: auto;
  padding: 1.5rem 0;
}

#results-view .media.eddie {
  position: relative;
  float: none;
  margin: 0 0 1rem;
}

/* Results box -------------------------------------------------------------- */
.results-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
}

/* SPA view toggling -------------------------------------------------------- */
.view {
  display: none;
}
.view.active {
  display: block;
}

/* Map embeds --------------------------------------------------------------- */
.map-frame {
  border: 0;
  width: 100%;
}
.results-map {
  height: 100vh;
}
.modal-map {
  height: 535px;
}

/* Simple toast (replaces react-toastify) ----------------------------------- */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  max-width: 360px;
}
.toast-note {
  background: #2b7a2b;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
}
