.property-listing {
    padding: 20px;
}
.property-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #f9f9f9;
}
.property-item h2 a {
    text-decoration: none;
    color: #0073aa;
}
.property-item h2 a:hover {
    color: #005b85;
}
.property-item p {
    margin: 0;
    font-size: 14px;
    color: #555;
}


.property-details h1 { color:#f00 }

/*css form*/
#property-contact-form {
    max-width: 400px;
    margin: 0 auto;
}
#property-contact-form p {
    margin-bottom: 15px;
}
#property-contact-form input, #property-contact-form textarea, #property-contact-form button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}
#property-contact-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}
#property-contact-form button:hover {
    background-color: #005b85;
}
/*end css form*/


/*filter*/




.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    margin: 0 auto;
}

#search-icon {
    position: absolute;
    left: 9px;
    top: 12px;
    font-size: 20px;
    color: #888;
    transition: transform 0.2s ease, color 0.2s ease;
}

#autocomplete-search {
    width: 100%;
    padding: 10px 10px 10px 35px; /* Pastikan ada ruang untuk ikon */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#autocomplete-search:focus {
    border-color: #aaa;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}


.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}

.icon-left {
    margin-right: 10px;
    color: red; /* Warna merah untuk ikon */
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-main {
    font-weight: bold;
    color: red; /* Warna merah untuk teks utama */
}

.suggestion-sub {
    font-size: 12px;
    color: #888; /* Warna kelabu untuk teks tambahan */
}

.suggestion-category {
    font-size: 12px;
    color: #666; /* Warna kelabu untuk kategori */
    text-transform: uppercase;
}

#suggestion-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f8f8f8;
}

.suggestion-item .city-name {
    font-size: 14px;
    font-weight: bold;
    color: #d9534f; /* Warna merah */
    display: block;
}

.suggestion-item .city-details {
    font-size: 12px;
    color: #666;
}

.suggestion-item .city-label {
    font-size: 12px;
    font-weight: bold;
    color: #aaa;
}

.suggestion-item i {
    margin-right: 10px;
    color: #007bff;
}

.suggestion-main {
    font-weight: bold;
    color: #333;
}

.suggestion-sub {
    font-size: 12px;
    color: #666;
}

.suggestion-category {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

div#property-results {
    margin-top: 30px;
}

.filter-top{
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-top select#state-dropdown {
    width: 22%;
}
.filter-top select#city-dropdown {
    width: 17%;
}

.filter-bottom {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #ffe8e8;
}


.autocomplete-container {
    position: relative;
    width: 44%;
}


.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none; /* Hidden by default */
}

.autocomplete-item {
    padding: 10px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f9f9f9;
}

.city-name {
    font-weight: bold;
    color: #e74c3c; /* Merah untuk nama */
}
.item-content { display:flex;     justify-content: space-between; /* Pastikan elemen kiri dan kanan berpisah */
    align-items: center; /* Pusatkan secara vertikal */ }
.item-content .label {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
}

.item-details {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
}



