/* ===========================================
   Service Provider Index Page Styles
   =========================================== */

/* Breadcrumb mobile/desktop visibility */
.providers-breadcrumb-mobile {
    display: none;
}

.providers-breadcrumb-desktop {
    display: block;
}

/* Hero Section */
.providers-page .providers-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: white;
    padding: 4rem 0 5rem;
    text-align: center;
}

.providers-page .providers-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.providers-page .providers-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Intro Section */
.providers-intro {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.providers-intro h2 {
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.providers-intro p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.providers-intro p:last-child {
    margin-bottom: 0;
}

/* Search Form Card - uses same styles as cruise-index.css */
.providers-page .search-form-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: none;
    margin: 2rem auto 3rem auto;
    max-width: 1400px;
}

.providers-search-form {
    width: 100%;
}

.providers-page .search-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.providers-page .search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.providers-page .search-field label {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.providers-page .search-field label i {
    color: #667eea;
}

.providers-page .form-control {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.providers-page .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.providers-page .search-actions {
    display: flex;
    gap: 0.5rem;
}

.providers-page .btn-icon-only {
    padding: 0.75rem;
    min-width: auto;
    aspect-ratio: 1;
}

/* Results Section */
.providers-results {
    padding: 1rem 0 3rem;
}

.providers-results .results-header {
    margin-bottom: 1.5rem;
}

.providers-results .results-header h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin: 0;
}

/* Providers Grid */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Provider Card */
.provider-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.provider-card-header {
    position: relative;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.provider-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.provider-logo-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
}

.provider-verified {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #22c55e;
    font-size: 1.5rem;
}

.provider-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-name {
    font-size: 1.15rem;
    margin: 0;
}

.provider-name a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.provider-name a:hover {
    color: #667eea;
}

.provider-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.provider-location i {
    color: #667eea;
}

.provider-location a {
    color: inherit;
    text-decoration: none;
}

.provider-location a:hover {
    color: #667eea;
}

.provider-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.9rem;
}

.provider-rating .rating-value {
    color: #2d3748;
    font-weight: 600;
    margin-left: 0.25rem;
}

.provider-rating .review-count {
    color: #64748b;
    font-weight: normal;
}

.provider-offerings-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: auto;
}

.provider-offerings-count i {
    color: #667eea;
}

.provider-card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}

.provider-card-footer .link-arrow {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.provider-card-footer .link-arrow::after {
    content: '\2192';
    transition: transform 0.2s ease;
}

.provider-card-footer .link-arrow:hover {
    color: #764ba2;
}

.provider-card-footer .link-arrow:hover::after {
    transform: translateX(4px);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.providers-page .pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.providers-page .pagination a,
.providers-page .pagination > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.providers-page .pagination a:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.providers-page .pagination .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.providers-page .pagination .page a,
.providers-page .pagination .first a,
.providers-page .pagination .last a,
.providers-page .pagination .previous a,
.providers-page .pagination .next a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.providers-page .pagination .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Results */
.providers-page .no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
}

.providers-page .no-results i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: block;
}

.providers-page .no-results h3 {
    color: #475569;
    margin-bottom: 0.5rem;
}

.providers-page .no-results p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .providers-breadcrumb-mobile {
        display: block;
        margin-top: -2px;
    }

    .providers-breadcrumb-desktop {
        display: none;
    }

    .providers-page .providers-hero {
        padding: 3rem 0 4rem;
        margin-top: 6px;
    }

    body:has(.providers-page) .user-account-bar {
        top: 153px;
    }

    body:has(.providers-page) .user-account-bar.sticky-scrolled {
        top: 10px;
    }

    body:has(.providers-page) .share-bar {
        top: -2px;
    }

    body:has(.providers-page) .share-bar.sticky-scrolled {
        top: -143px;
    }

    .providers-page .providers-hero h1 {
        font-size: 1.8rem;
    }

    .providers-page .search-form-card {
        padding: 1rem;
        margin: 1.5rem 0.5rem 2rem 0.5rem;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .providers-page .search-row {
        grid-template-columns: 1fr;
    }

    .providers-page .search-actions {
        justify-content: center;
    }

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .providers-intro {
        padding: 1.5rem;
    }

    .providers-intro h2 {
        font-size: 1.25rem;
    }

}