/* ========================================
   SARCA DIRECTORY - IMPROVED PROFESSIONAL DESIGN
   Removed quick jump, better filter bar layout
   ======================================== */

/* Container */
.sarca-directory-final {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    margin-bottom: 100px !important;
}

/* ========================================
   PROFESSIONAL STICKY FILTER BAR
   ======================================== */
.sarca-filter-bar-final {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    padding: 20px 28px !important;
    margin: -55px -32px 40px -32px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Filter Controls - Left Side */
.filter-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

/* Filter Status - Right Side */
.filter-status {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-shrink: 0;
}

.count-number {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #10C8C5 !important;
    line-height: 1 !important;
}

.count-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    line-height: 1 !important;
}

/* Region Select */
.region-select-final {
    min-width: 240px;
    height: 44px !important;
    padding: 0 16px !important;
    background: white !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    line-height: normal !important;
    flex-shrink: 0;
}

.region-select-final:hover {
    border-color: #10C8C5 !important;
}

.region-select-final:focus {
    outline: none !important;
    border-color: #10C8C5 !important;
    box-shadow: 0 0 0 4px rgba(16, 200, 197, 0.08) !important;
}

/* Search Wrapper */
.search-wrapper-final {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-icon-final {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #10C8C5;
    pointer-events: none;
    z-index: 1;
}

.search-input-final {
    width: 100% !important;
    height: 44px !important;
    padding: 0 16px 0 42px !important;
    background: white !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    transition: all 0.2s ease;
    line-height: normal !important;
}

.search-input-final::placeholder {
    color: #9ca3af !important;
}

.search-input-final:focus {
    outline: none !important;
    border-color: #10C8C5 !important;
    background-color: #f0fffe !important;
    box-shadow: 0 0 0 4px rgba(16, 200, 197, 0.08) !important;
}

.search-input-final::-webkit-search-decoration,
.search-input-final::-webkit-search-cancel-button {
    display: none;
}

/* Clear Button - Professional Secondary Style */
.btn-clear-final {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px !important;
    background: white !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: normal !important;
    align-self: center;
    width: auto !important;
}

.btn-clear-final::before {
    content: "×";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.btn-clear-final:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
    transform: translateY(-1px);
}

.btn-clear-final:active {
    transform: translateY(0);
}

/* ========================================
   RESULTS CONTAINER
   ======================================== */
.results-container-final {
    padding: 0;
}

/* Region Section */
.region-section-final {
    margin-bottom: 56px;
}

.region-section-final:last-child {
    margin-bottom: 24px;
}

/* Region Header */
.region-header-final {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 24px 0 !important;
    padding-bottom: 16px !important;
    border-bottom: 3px solid #dd9933 !important;
    line-height: 1.3 !important;
}

.region-count-badge {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #dd9933 !important;
    padding: 4px 12px;
    background: #fff9f0;
    border-radius: 12px;
    border: 1px solid #dd9933;
}

/* Centers Grid */
.centers-grid-final {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* Center Card */
.center-card-final {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.center-card-final::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 200, 197, 0.3), transparent);
}

.center-card-final:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(16, 200, 197, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.center-card-final:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Card Header */
.card-header-final {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* Card Title */
.card-title-final {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    flex: 1;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Link */
.card-link-final {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #10c8c5 !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 6px 12px;
    background: #e6f9f9;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex-shrink: 0;
}

.card-link-final:hover {
    background: #10c8c5 !important;
    color: white !important;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(16, 200, 197, 0.25);
}

.card-link-final:active {
    transform: translateX(1px);
}

.card-link-final svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card-link-final:hover svg {
    transform: translateX(2px);
}

/* Contact Section */
.card-contact-final {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Contact Row */
.contact-row-final {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px !important;
    transition: opacity 0.2s ease;
}

.contact-icon-final {
    flex-shrink: 0;
    margin-top: 2px;
    color: #10c8c5;
    width: 18px;
    height: 18px;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.contact-row-final:hover .contact-icon-final {
    transform: scale(1.1);
}

.contact-phone-final {
    color: #10c8c5 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex: 1;
}

.contact-phone-final:hover {
    color: #0db3b0 !important;
    text-decoration: underline !important;
}

.contact-address-final {
    color: #6b7280 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-icon-final {
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state-final h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin: 0 0 8px 0 !important;
}

.empty-state-final p {
    font-size: 15px !important;
    color: #9ca3af !important;
    margin: 0 0 24px 0 !important;
}

.btn-reset-final {
    padding: 12px 24px !important;
    background: #10C8C5 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.btn-reset-final:hover {
    background: #0db3b0 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 200, 197, 0.3) !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .sarca-filter-bar-final {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .filter-controls {
        flex-wrap: wrap;
    }

    .filter-status {
        justify-content: center;
        padding: 12px;
        background: #f9fafb;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .sarca-directory-final {
        padding: 0 20px;
    }

    .sarca-filter-bar-final {
        padding: 16px !important;
        margin: -34px -32px 40px -32px !important;
        gap: 10px;
    }

    .filter-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .region-select-final,
    .search-wrapper-final {
        width: 100%;
    }

    .btn-clear-final {
        margin-top: 2px;
    }

    /* Hide counter on mobile - redundant */
    .filter-status {
        display: none;
    }

    .centers-grid-final {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .region-header-final {
        font-size: 18px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-header-final {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .center-card-final {
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .sarca-directory-final {
        padding: 0 16px;
    }

    .region-header-final {
        font-size: 16px !important;
    }

    .card-title-final {
        font-size: 16px !important;
    }

    .contact-row-final {
        font-size: 13px !important;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sarca-filter-bar-final,
    .card-link-final {
        display: none !important;
    }

    .center-card-final {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}