/**
 * Location Search Modal Styles
 */

/* Search Icon Button in Nav */
#location-search-trigger {
    transition: all 0.3s ease;
}

#location-search-trigger:hover {
    color: #FF6B1A !important;
    transform: scale(1.1);
}

/* Modal Overlay */
.location-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.location-search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

/* Modal Content */
.location-search-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    z-index: 10000;
}

/* Close Button */
.location-search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.location-search-close:hover {
    background: #f5f5f5;
    color: #FF6B1A;
    transform: rotate(90deg);
}

/* Search Input Wrapper */
.location-search-wrapper {
    position: relative;
}

.location-search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.location-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF6B1A;
    font-size: 18px;
    pointer-events: none;
}

/* Search Input */
#location-search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-family: 'Karla', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

#location-search-input:focus {
    outline: none;
    border-color: #FF6B1A;
    box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.1);
}

#location-search-input::placeholder {
    color: #999;
}

/* Results Container */
#location-search-results {
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
}

/* Results List */
.location-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-search-item {
    border-bottom: 1px solid #e0e0e0;
}

.location-search-item:last-child {
    border-bottom: none;
}

.location-search-item a {
    display: block;
    padding: 16px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.location-search-item a:hover,
.location-search-item.active a {
    background: #FF6B1A;
    color: #fff;
}

.location-search-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.location-region {
    display: block;
    font-size: 13px;
    opacity: 0.8;
}

/* Loading & Messages */
.location-search-loading,
.location-search-no-results,
.location-search-error {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.location-search-loading {
    color: #FF6B1A;
}

.location-search-error {
    color: #d32f2f;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
#location-search-results::-webkit-scrollbar {
    width: 8px;
}

#location-search-results::-webkit-scrollbar-track {
    background: transparent;
}

#location-search-results::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

#location-search-results::-webkit-scrollbar-thumb:hover {
    background: #FF6B1A;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .location-search-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 90vh;
    }

    .location-search-modal-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    #location-search-input {
        padding: 14px 18px 14px 45px;
        font-size: 15px;
    }

    .location-search-icon {
        left: 15px;
        font-size: 16px;
    }

    .location-search-item a {
        padding: 14px 16px;
    }

    .location-search-item strong {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .location-search-modal-content {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .location-search-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}
