/* Search Page Specific Styles */
.search-hero {
    background: linear-gradient(rgba(42, 157, 143, 0.9), rgba(42, 157, 143, 0.8)), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2053&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.search-hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.search-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-container {
    padding: 60px 0;
}

.filter-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.filter-sidebar {
    flex: 0 0 280px;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.filter-sidebar h2 {
    margin-bottom: 25px;
    color: #2a9d8f;
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f7f6;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group h3 span {
    color: #2a9d8f;
    font-size: 14px;
    cursor: pointer;
    font-weight: normal;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
}

.filter-option input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option .count {
    margin-left: auto;
    color: #777;
    font-size: 14px;
}

.availability-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.availability-btn {
    padding: 8px 15px;
    background-color: #f0f7f6;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.availability-btn:hover {
    background-color: #e0f0ed;
}

.availability-btn.active {
    background-color: #2a9d8f;
    color: white;
    border-color: #2a9d8f;
}

.price-slider {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.price-inputs input {
    width: 48%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.results-container {
    flex: 1;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.results-header h2 {
    color: #333;
    font-size: 24px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 15px;
}

.results-count {
    color: #666;
    font-size: 15px;
}

.doctor-card-horizontal {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.doctor-card-horizontal:hover {
    transform: translateY(-5px);
}

.doctor-img-container {
    flex: 0 0 200px;
    overflow: hidden;
}

.doctor-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-details {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.doctor-main-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.doctor-name-specialty h3 {
    font-size: 22px;
    color: #2a9d8f;
    margin-bottom: 5px;
}

.doctor-name-specialty p {
    color: #666;
    font-size: 16px;
}

.doctor-rating-actions {
    text-align: right;
}

.doctor-rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 16px;
}

.doctor-rating span {
    color: #666;
    margin-left: 5px;
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background-color: #f0f7f6;
    color: #2a9d8f;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.doctor-extra-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.info-item i {
    color: #2a9d8f;
}

.doctor-availability {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next-available {
    font-weight: 500;
    color: #2a9d8f;
}

.next-available span {
    color: #333;
    margin-left: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background-color: #f0f7f6;
}

.pagination-btn.active {
    background-color: #2a9d8f;
    color: white;
    border-color: #2a9d8f;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.map-toggle {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.toggle-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.toggle-btn.active {
    background-color: #2a9d8f;
    color: white;
    border-color: #2a9d8f;
}

.map-container {
    height: 400px;
    background-color: #f0f7f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    display: none; /* Hidden by default, shown when toggled */
}

.map-view .results-grid {
    display: none;
}

.map-view .map-container {
    display: flex;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
}

/* Responsive adjustments for search page */
@media (max-width: 992px) {
    .doctor-card-horizontal {
        flex-direction: column;
    }
    
    .doctor-img-container {
        flex: 0 0 250px;
    }
    
    .doctor-extra-info {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        flex: 1;
    }
    
    .doctor-main-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .doctor-rating-actions {
        text-align: left;
    }
    
    .doctor-availability {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}