/* VH Property Search Shortcode styles (theme) */

.container-property-search {
  position: relative;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Results Page Overrides */
.search-results-wrapper .container-property-search-block,
.search-results-block {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  background: white !important;
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
}

.container-property-search-image,
.container-property-search-image img {
  display: block;
  width: 100%;
  height: auto;
}

.container-property-search-block {
    position: absolute;
    transform: translateX(18%);
    margin-top: -40px;
    z-index: 2;
    background: #e74c3c;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    min-height: 50px; /* Prevent layout shift */
    opacity: 1; /* Show immediately */
    visibility: visible; /* Show immediately */
}

.container-property-search-button,
.container-property-search-submit {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 0;
}

.container-property-search-button svg,
.container-property-search-submit svg {
  width: 18px;
  height: 18px;
}

.container-property-search-button { cursor: pointer; }
.container-property-search-button:focus { outline: none; }

.container-property-search-input { display: inline-flex; position: relative; }

/* Input field immediate display */
.container-property-search-input input {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 0;
  min-width: 260px;
  outline: none;
  font-family: inherit;
  flex: 1;
}

/* PlaceAutocompleteElement styling */
.container-property-search-input gmp-placeautocomplete {
  min-width: 260px;
  flex: 1;
}

.container-property-search-submit { background: #ffffff; color: #000; cursor: pointer; font-weight: 600; }

.element-popup { display: none; }

@media (max-width: 992px) {
  .container-property-search-block {
    left: 12px;
    right: 12px;
    transform: none;
    bottom: 12px;
    padding: 10px;
    gap: 10px;
  }
  
  .container-property-search-input gmp-placeautocomplete {
    min-width: 160px;
  }
}

@media (max-width: 640px) {
  .container-property-search-block { flex-wrap: wrap; }
  .container-property-search-button,
  .container-property-search-input,
  .container-property-search-submit { flex: 1 1 auto; }
} 