/* ==========================================================================
   Redesigned Premium Service Centers ASP Locator (SaaS Level Aesthetics)
   ========================================================================== */

.sc-section {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

/* Filter Panel */
.sc-filter-panel {
    background: #ffffff;
    border: 1px solid #dbe5f4;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 51, 153, 0.05);
}

.sc-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 0.8fr)) auto;
    gap: 1rem;
    align-items: end;
}

.sc-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.sc-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sc-filter-field input,
.sc-filter-field select {
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.sc-filter-field input:focus,
.sc-filter-field select:focus {
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
    outline: none;
}

.sc-filter-field .select2-container {
    width: 100% !important;
}

.sc-filter-field .select2-container--default .select2-selection--single {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
}

.sc-filter-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    font-size: 0.9rem;
}

.sc-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sc-btn-apply {
    height: 44px;
    padding: 0.65rem 1.35rem;
    background: #003399 !important;
    border-color: #003399 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
    transition: all 0.2s ease;
}

.sc-btn-apply:hover {
    background: #002266 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 51, 153, 0.3);
}

.sc-btn-reset {
    height: 44px;
    padding: 0.65rem 1.15rem;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.sc-btn-reset:hover {
    background: #ffffff !important;
    border-color: #003399 !important;
    color: #003399 !important;
}

/* Results Meta Header */
.sc-results-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Grid Layout */
.sc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ASP Card (v2 Premium) */
.sc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.15rem;
    min-height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sc-card-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00194d 0%, #003399 50%, #06b6d4 100%);
    transition: height 0.25s ease;
}

.sc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 51, 153, 0.25);
    box-shadow: 0 12px 32px rgba(0, 51, 153, 0.1);
}

.sc-card:hover .sc-card-top-bar {
    height: 6px;
}

.sc-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sc-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.sc-card-code {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.sc-badge-active {
    flex-shrink: 0;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 9999px;
    padding: 0.25rem 0.65rem;
    line-height: 1;
}

/* Tags */
.sc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.95rem;
}

.sc-tag {
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.sc-tag-primary {
    background: rgba(0, 51, 153, 0.08);
    color: #003399;
    border: 1px solid rgba(0, 51, 153, 0.15);
}

.sc-tag-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* Info List */
.sc-info-list {
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.sc-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.45;
}

.sc-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 51, 153, 0.06);
    color: #003399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sc-info-icon-person {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
}

.sc-info-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sc-info-link:hover {
    color: #003399;
    text-decoration: underline;
}

/* Actions Bar */
.sc-card-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.sc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.55rem 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sc-action-call {
    background: #003399;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 51, 153, 0.15);
}

.sc-action-call:hover {
    background: #002266;
    transform: translateY(-1px);
}

.sc-action-directions {
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
}

.sc-action-directions:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.sc-action-email {
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.sc-action-email:hover {
    background: #ffffff;
    border-color: #003399;
    color: #003399 !important;
}

.sc-action-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0;
}

/* Pagination */
.sc-pagination {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.sc-page-summary {
    color: #64748b;
    font-size: 0.88rem;
}

.sc-page-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.sc-page-btn {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.6rem;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #003399;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

a.sc-page-btn:hover {
    background: #003399;
    border-color: #003399;
    color: #ffffff !important;
}

.sc-page-btn.is-active {
    background: #003399;
    border-color: #003399;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
}

@media (max-width: 1100px) {
    .sc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .sc-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .sc-grid {
        grid-template-columns: 1fr;
    }

    .sc-filter-row {
        grid-template-columns: 1fr;
    }

    .sc-card-actions {
        grid-template-columns: 1fr;
    }
}
