/**
 * 11-search.css
 * Provider search, grid search, and events meta
 * Concatenated from: provider-search.css, uncode-grid-search.css, events.css
 */

/* ==========================================================================
   SOURCE: provider-search.css
   ========================================================================== */

.provider-search-container{position:relative;max-width:700px;margin:0 auto}
.provider-search-input{width:100%;padding:12px 16px;border:1px solid #ddd;border-radius:0;font-size:16px}
.provider-search-loading{position:absolute;right:10px;top:50%;transform:translateY(-50%)}
.provider-search-results{margin-top:16px}
.provider-card{display:flex;gap:12px;padding:12px;border:1px solid #eee;margin-bottom:12px;align-items:center}
.provider-card img{width:48px;height:48px;object-fit:cover;border-radius:50%}
.provider-meta{font-size:14px;color:#666}
/**
 * Provider Search Autocomplete Styles
 * 
 * Modern, responsive styling for the provider search interface
 */

/* Main container */
.provider-search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Input wrapper */
.provider-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Search input */
.provider-search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px; /* Space for loading indicator */
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.provider-search-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.provider-search-input::placeholder {
    color: #6c7781;
}

/* Loading indicator */
.provider-search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.provider-search-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results container */
.provider-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.provider-search-results-list {
    padding: 0;
    margin: 0;
}

/* Individual result item */
.provider-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.provider-result-item:last-child {
    border-bottom: none;
}

.provider-result-item:hover,
.provider-result-item.selected {
    background-color: #f8f9fa;
    border-left: 3px solid #007cba;
    padding-left: 13px; /* Adjust for border */
}

/* Provider image */
.provider-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin-right: 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e1e5e9;
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Provider info */
.provider-info {
    flex: 1;
    min-width: 0; /* Prevent overflow */
}

.provider-title {
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.provider-certifications {
    font-size: 14px;
    color: #6c7781;
    margin-bottom: 2px;
    line-height: 1.3;
}

.provider-locations {
    font-size: 12px;
    color: #8a9ca5;
    line-height: 1.3;
}

/* No results message */
.provider-search-no-results,
.provider-search-error {
    padding: 20px 16px;
    text-align: center;
    color: #6c7781;
    font-style: italic;
}

.provider-search-error {
    color: #d63638;
}

/* Show all button */
.provider-search-all-button {
    padding: 8px 16px;
    border-top: 1px solid #f0f0f0;
    background-color: #f8f9fa;
    text-align: center;
}

.btn-show-all-providers {
    background: none;
    border: none;
    color: #007cba;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-show-all-providers:hover {
    background-color: #007cba;
    color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .provider-search-container {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .provider-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .provider-result-item {
        padding: 10px 12px;
    }
    
    .provider-image {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .provider-title {
        font-size: 15px;
    }
    
    .provider-certifications {
        font-size: 13px;
    }
    
    .provider-locations {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .provider-search-input {
        padding: 10px 12px;
        padding-right: 45px;
    }
    
    .provider-result-item {
        padding: 8px 10px;
    }
    
    .provider-image {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
    
    .provider-title {
        font-size: 14px;
    }
    
    .provider-certifications {
        font-size: 12px;
    }
}

/* Accessibility improvements */
.provider-search-input:focus {
    outline: none;
}

.provider-result-item:focus {
    outline: 2px solid #007cba;
    outline-offset: -2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .provider-search-input {
        border-color: #000000;
    }
    
    .provider-search-input:focus {
        border-color: #0073aa;
        box-shadow: 0 0 0 2px #0073aa;
    }
    
    .provider-result-item:hover,
    .provider-result-item.selected {
        background-color: #f0f0f0;
        border-left-color: #000000;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .provider-search-input,
    .provider-result-item,
    .btn-show-all-providers {
        transition: none;
    }
    
    .provider-search-loading .spinner {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .provider-search-input {
        background-color: #2c3338;
        border-color: #50575e;
        color: #f0f0f0;
    }
    
    .provider-search-input::placeholder {
        color: #a7aaad;
    }
    
    .provider-search-input:focus {
        border-color: #72aee6;
        box-shadow: 0 0 0 3px rgba(114, 174, 230, 0.2);
    }
    
    .provider-search-results {
        background-color: #2c3338;
        border-color: #50575e;
    }
    
    .provider-result-item {
        border-bottom-color: #50575e;
        color: #f0f0f0;
    }
    
    .provider-result-item:hover,
    .provider-result-item.selected {
        background-color: #1e2327;
        border-left-color: #72aee6;
    }
    
    .provider-title {
        color: #f0f0f0;
    }
    
    .provider-certifications {
        color: #a7aaad;
    }
    
    .provider-locations {
        color: #8c8f94;
    }
    
    .provider-search-all-button {
        background-color: #1e2327;
        border-top-color: #50575e;
    }
    
    .btn-show-all-providers {
        color: #72aee6;
    }
    
    .btn-show-all-providers:hover {
        background-color: #72aee6;
        color: #1e2327;
    }
    
    .provider-search-no-results,
    .provider-search-error {
        color: #a7aaad;
    }
    
    .provider-search-error {
        color: #f087a1;
    }
}

/* ==========================================================================
   SOURCE: uncode-grid-search.css
   ========================================================================== */

.uncode-grid-search-wrapper{margin-bottom:2rem;position:relative}
.search-input-container{position:relative;max-width:500px;margin:0 auto}
.uncode-grid-search-input{width:100%;padding:15px 45px 15px 20px;border:2px solid #e0e0e0;border-radius:0;font-size:16px;outline:none;transition:all .3s ease;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.1)}
.uncode-grid-search-input:focus{border-color:#007cba;box-shadow:0 2px 20px rgba(0,124,186,.2)}
.uncode-grid-search-input::placeholder{color:#000000;}
.search-clear{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;font-size:24px;color:#999;cursor:pointer;padding:5px;line-height:1;opacity:0;transition:opacity .3s ease}
.uncode-grid-search-input:not(:placeholder-shown)+.search-suggestions+.search-clear{opacity:1}
.search-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e0e0e0;border-radius:10px;box-shadow:0 5px 20px rgba(0,0,0,.15);max-height:300px;overflow-y:auto;z-index:1000;display:none}
.search-suggestion{padding:12px 20px;cursor:pointer;border-bottom:1px solid #f0f0f0;transition:background-color .2s ease}
.search-suggestion:hover,.search-suggestion.active{background-color:#f8f9fa}
.search-suggestion:last-child{border-bottom:none}
.search-suggestion-title{font-weight:600;color:#333;margin-bottom:4px}
.search-suggestion-excerpt{font-size:14px;color:#666;line-height:1.4}
.search-results-count{text-align:center;margin:15px 0;color:#666;font-style:italic}
.no-results-message{text-align:center;padding:40px 20px;color:#666;font-style:italic;font-size:18px}
.tmb{transition:opacity .3s ease,transform .3s ease}
.tmb.hidden{display:none!important}
.cssgrid-container.few-results .tmb:not(.hidden) .t-entry-excerpt{margin-bottom:24px!important}
.search-highlight{background-color:yellow;padding:1px 0;border-radius:2px}

/* ==========================================================================
   SOURCE: events.css
   ========================================================================== */

.isotope-container.grid-container{transition:opacity .3s ease}
.t-entry-event-meta{margin-top:10px!important;font-size:14px!important;color:#666!important}
.event-date-display{margin-bottom:5px!important;font-weight:600!important}
.event-location-display{color:#888!important}
.fa-calendar,.fa-map-marker{margin-right:5px!important}
