/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* City autocomplete dropdown */
#tp-city-dropdown {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    position: fixed !important;
    z-index: 999999 !important;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#tp-city-dropdown li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
}

#tp-city-dropdown li:last-child {
    border-bottom: none;
}

#tp-city-dropdown li:hover,
#tp-city-dropdown li.selected {
    background-color: #f8f9fa;
    color: #0073aa;
}

#tp-city-dropdown li:active {
    background-color: #e3f2fd;
}

/* City message styling */
#tp-city-message {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
}

#tp-city-message:empty {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #tp-city-dropdown {
        max-height: 150px;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    #tp-city-dropdown li {
        padding: 15px;
    }

    #tp-city-message {
        font-size: 14px;
        padding: 10px;
    }
}

/* Loading state */
.tp-city-loading {
    color: #666;
    font-style: italic;
}

/* Animation for message appearance */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tp-city-message {
    animation: fadeIn 0.3s ease-out;
}