/**
 * The Key Realtor - Header Dropdown Styles
 * CSS for the properties dropdown menu in the header
 */

/* Properties dropdown container */
#rh_cities_dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    padding: 20px;
    border-top: 3px solid #003087;
}

/* Ensure the menu item is positioned correctly */
.menu-item-58075 {
    position: relative;
}

/* Menu item active state - removed */

/* City sections */
.rh_city_section {
    border-radius: 5px;
    transition: all 0.2s ease;
}

.rh_city_section:hover {
    background-color: #f9f9f9;
}

/* City title */
.rh_city_title {
    font-weight: 600;
    font-size: 16px;
    color: #003087;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 8px;
}

.rh_city_title a {
    color: #003087;
    text-decoration: none;
}

.rh_city_title .count {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

/* City areas list */
.rh_city_areas {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rh_city_areas li {
    margin-bottom: 5px;
}

.rh_city_areas li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.rh_city_areas li a:hover {
    color: #003087;
}

.rh_city_areas li a .area_count {
    color: #666;
    font-size: 12px;
}

/* Show more link */
.rh_show_more {
    color: #003087;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.2s ease;
}

.rh_show_more:hover {
    color: #ea723d;
}

/* Mobile styles */
@media (max-width: 992px) {
    /* Header container layout - make it wrap */
    .rh_header_container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Logo on the left */
    .rh_logo_wrapper {
        order: 1;
        flex: 1 1 auto;
        text-align: left;
        margin: 0;
        max-width: 70%;
    }
    
    /* Logo image size */
    .rh_logo_wrapper img {
        max-height: 40px;
    }
    
    /* Menu toggle button on the right */
    .rh_menu_responsive_btn {
        order: 2;
        margin-right: 0;
        flex: 0 0 auto;
    }
    
    /* Search by ID below in its own row */
    .rh_prop_id_search {
        order: 3;
        flex: 1 0 100%;
        margin-top: 10px;
        text-align: center;
    }
    
    /* Center the search form */
    .rh_prop_id_search form {
        display: flex;
        justify-content: center;
    }
    
    /* Menu takes full width below header */
    .rh_menu_wrapper {
        width: 100%;
        margin: 0;
        order: 4;
    }
    
    /* Ensure menu is hidden by default on mobile */
    .rh_main_menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    /* City dropdown adjustments */
    #rh_cities_dropdown {
        position: static;
        border-top: none;
        box-shadow: none;
        padding: 10px;
        background-color: #f5f5f5;
    }
    
    .rh_cities_wrapper {
        flex-direction: column;
    }
    
    .rh_city_section {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    /* Override search field width */
    .rh_prop_id_search input {
        width: 150px;
    }
}
