/* Search page specific styles */
.search-page {
    padding: 0 0 2rem;
}

.search-header {
    background-color: #f8f9fa;
    background-image: linear-gradient(to right, #f9f9f9, #f0f0f0);
    border-radius: 0.5rem;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.search-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #0DAEF2, #0A8BC0);
}

.search-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.search-subtitle {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-form-container {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-group {
    margin-bottom: 1.25rem;
}

.search-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.filter-container {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0DAEF2;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    min-width: 160px;
    flex: 1 1 160px;
    margin-bottom: 0.75rem;
}

.filter-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    height: 75vh;
    position: sticky;
    top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.provider-list-container {
    height: 75vh;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.provider-list-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.provider-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.provider-card {
    border: none !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.provider-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.provider-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.provider-name a {
    color: #3F51B5;
    text-decoration: none;
}

.provider-name a:hover {
    color: #303F9F;
    text-decoration: underline;
}

.provider-address {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 1rem;
}

.provider-info-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.provider-info-label {
    font-weight: 500;
    color: #6c757d;
    width: 120px;
    flex-shrink: 0;
}

.provider-info-value {
    color: #212529;
}

.concerns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.concerns-label {
    font-weight: 500;
    color: #6c757d;
    margin-right: 0.5rem;
}

.concerns-label a {
    color: #3F51B5;
    text-decoration: none;
}

.concerns-label a:hover {
    color: #303F9F;
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge-immediate {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-serious {
    background-color: #fff3cd;
    color: #856404;
}

.badge-short {
    background-color: #fff3cd;
    color: #856404;
}

.badge-long {
    background-color: #ffffd1;
    color: #7c7c00;
}

.pagination-container {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: left;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
    position: relative;
    z-index: 10;
}

.pagination {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
}

.pagination li {
    margin: 0;
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    min-width: 40px;
    height: 38px;
    color: #495057;
    background-color: #fff;
    border: none;
    border-right: 1px solid #f2f2f2;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    overflow: visible;
}

.pagination li:last-child a,
.pagination li:last-child span {
    border-right: none;
}

.pagination li.active a,
.pagination li.active span {
    background-color: #3F51B5;
    color: #fff;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
    position: relative;
    z-index: 2;
}

.pagination li a:hover {
    background-color: #f8f9fa;
    color: #3F51B5;
}

.pagination li.disabled a,
.pagination li.disabled span {
    color: #c9c9c9;
    pointer-events: none;
    background-color: #fff;
}

/* Responsive pagination fixes */
@media (max-width: 768px) {
    .pagination-container {
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
    
    .pagination {
        border-radius: 30px;
    }
    
    .pagination li a,
    .pagination li span {
        padding: 0.6rem 1rem;
        min-width: 35px;
        height: 35px;
    }
}

.empty-results {
    padding: 3.5rem 2rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.empty-results-icon {
    font-size: 4.5rem;
    color: #c9c9c9;
    margin-bottom: 1.5rem;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background-color: #f8f9fa;
}

.empty-results-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3F51B5;
    margin-bottom: 1rem;
}

.empty-results-details {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box .form-control {
    border: none;
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
    height: auto;
    background-color: #fff;
}

.search-box .form-control:focus {
    box-shadow: none;
}

.search-box .btn {
    padding: 0.75rem 2rem;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #3F51B5, #5C6BC0);
    border: none;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background: linear-gradient(135deg, #303F9F, #3F51B5);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(63, 81, 181, 0.3);
}

.search-box .search-icon {
    color: #ffffff;
}

.age-groups {
    margin-bottom: 1.5rem;
}

.age-group-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1rem;
}

.age-group-item {
    margin-bottom: 0.5rem;
}

.age-group-item label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
}

.age-group-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

@media (max-width: 991.98px) {
    .map-container {
        height: 50vh;
        position: relative;
        margin-bottom: 1.5rem;
    }
    
    .provider-list-container {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
}
