/* Doctor Search Plugin - Frontend Styles */



.search-wrapper {
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.doctor-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.dropdown-section {
    position: relative;
}

.custom-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    transition: background-color 0.2s;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 120px;
}


.dropdown-btn::after {
    content: '▼';
    font-size: 12px;
    color: #a0aec0;
    margin-left: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    min-width: 180px;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}



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

.location-search-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    color: #4a5568;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.search-input::placeholder {
    color: #a0aec0;
}

.location-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    color: #4a5568;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
}

.location-search-input::placeholder {
    color: #a0aec0;
}

.search-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #f7fafc;
}
#doctor-type-dropdown [type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #f7fafc !important;
    color: black !important;
    text-decoration: none;
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: #a0aec0;
    stroke-width: 2;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
    padding: 10px;
}

.location-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.location-suggestion-item:hover,
.location-suggestion-item.highlighted {
    background-color: #f8fafc;
}

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

.suggestion-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.suggestion-taxonomy {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}

/* Hide the actual select dropdown */
.doctor-type-select {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding-top: 20px;
    }
    
    .search-wrapper {
        padding: 6px;
    }
    
    .dropdown-btn {
        padding: 10px 15px;
        font-size: 15px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 15px;
    }
}

/* Results Styles */
.doctor-search-results {
    margin-top: 20px;
}

.search-loading {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
}

.search-results-header h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.search-result-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.result-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.result-title a {
    color: #0073aa;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.result-taxonomies {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.taxonomy-group {
    margin-bottom: 8px;
}

.taxonomy-group strong {
    color: #333;
    margin-right: 8px;
}

.term-tag {
    background: #e1ecf4;
    color: #39739d;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 3px;
}

/* Pagination */
.search-pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-wrapper {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.pagination-link,
.pagination-current {
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #0073aa;
    background: white;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.pagination-current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.no-taxonomies {
    color: #d63638;
    font-style: italic;
    background: #fcf0f1;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-search-fields {
        flex-direction: column;
    }
    
    .doctor-search-field {
        min-width: 100%;
    }
    
    .submit-field {
        flex: 1;
    }
    
    .doctor-search-submit {
        width: 100%;
    }
    
    .pagination-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .doctor-search-wrapper {
        padding: 15px;
        margin: 10px;
    }
    
    .search-result-item {
        padding: 15px;
    }
    
    .result-title {
        font-size: 16px;
    }
}


.doctor-search-form {
    margin-bottom: 0px !important;
}
#location_search{
    border-color: white;
}