/* Force non-ligature UI font on URL input */
input[type="url"].form-control,
input[type="url"].form-control::placeholder,
input[type="url"].form-control::-webkit-input-placeholder {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0 !important;
}
.location-autocomplete{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}

.location-autocomplete.d-none{
    display: none !important;
}

.location-autocomplete-item{
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.location-autocomplete-item:hover{
    background: #f8f9fa;
}

.location-autocomplete-item .title{
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.location-autocomplete-item .meta{
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}


/* ===== Clean borderless location input ===== */
.location-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    min-height: auto !important;
    border-radius: 0 !important;
    line-height: 1.2;
    color: #111827;
}

.location-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.location-input:focus,
.location-input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* remove bootstrap form-control look if inherited */
#location_keyword.form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== Autocomplete floating on top of everything ===== */
.location-autocomplete {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    z-index: 2147483647 !important;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
}

.location-autocomplete.d-none {
    display: none !important;
}

.location-autocomplete-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.location-autocomplete-item:hover {
    background: #f8fafc;
}

.location-autocomplete-item .title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.location-autocomplete-item .meta {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

/* Optional: cleaner search block look */
.search-wrapper-one .input-box-one {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-wrapper-one .input-box-one .label {
    margin-bottom: 10px;
}

/* mobile */
@media (max-width: 991.98px) {
    .location-input {
        font-size: 26px;
    }

    .location-autocomplete {
        max-height: 260px;
    }
}

/* FRONT PAGE : New Listings: force same image ratio/height */
.new-listing-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #f3f3f3;
}

.new-listing-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Featured main description: max 3 lines */
.featured-desc-3 {
  margin: 12px 0 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 680px;
}

/* New Listings title: exactly 3-line area */
.new-listing-title-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.45;
  min-height: calc(1.45em * 3);
  max-height: calc(1.45em * 3);
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .new-listing-thumb {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575.98px) {
  .new-listing-thumb {
    aspect-ratio: 1 / 1;
  }
}

