/* Mobile-first responsive design */
.location-picker-btn {
    min-height: 46px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: left;
    background: white;
    position: relative;
    padding: 11px 50px 11px 16px;
    width: 100%;
}

.location-picker-btn:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.location-picker-btn::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.location-display {
    color: #495057;
    font-weight: 500;
}

.location-placeholder {
    color: #6c757d;
  
    font-size: 13px;
}

/* Modal customizations */
.location-modal .modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.location-modal .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 16px 20px;
}

.location-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* List styling */
.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-item {
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.2s ease;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-item:hover {
    background-color: #f8f9fa;
}

.location-item:last-child {
    border-bottom: none;
}

.location-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #212529;
    font-size: 16px;
    min-height: 48px;
}

.location-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #6c757d;
}

.location-arrow {
    margin-left: auto;
    color: #6c757d;
}

/* Loading state */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* Search box */
.search-container {
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.search-input {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
}

.search-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Breadcrumb navigation */
.location-breadcrumb {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: none;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

/* Responsive improvements */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .location-modal .modal-body {
        max-height: 65vh;
    }
}
