.pinargozu-directory-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.directory-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 2px solid #f1f3f5;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.directory-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.tab-btn.active {
    background: #0076f6;
    color: #ffffff;
}

.directory-search-wrapper {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.directory-search-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1.5px solid #ced4da;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.directory-search-wrapper input:focus {
    border-color: #0076f6;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #adb5bd;
    cursor: pointer;
    display: none;
}

.search-clear-btn:hover {
    color: #495057;
}

/* Panels */
.directory-panel {
    display: none;
}

.directory-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Grids */
.services-grid, .agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards style */
.service-card, .agent-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #ffffff;
    border: 1.5px solid #f1f3f5;
    border-radius: 12px;
    text-decoration: none;
    color: #212529;
    transition: all 0.25s ease;
}

.service-card:hover, .agent-card:hover {
    transform: translateY(-4px);
    border-color: #0076f6;
    box-shadow: 0 8px 16px rgba(0, 118, 246, 0.08);
}

.card-icon {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0076f6;
}

.card-content h3, .agent-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.card-link-text, .agent-link-text {
    font-size: 13px;
    font-weight: 600;
    color: #0076f6;
}

/* Alphabet Filter */
.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.alpha-btn {
    border: none;
    background: transparent;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    color: #495057;
    transition: all 0.2s ease;
}

.alpha-btn:hover, .alpha-btn.active {
    background: #0076f6;
    color: #ffffff;
}

/* Agent Badge */
.agent-badge {
    align-self: flex-start;
    background: #e6f2ff;
    color: #0076f6;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Guides */
.directory-guides-section {
    margin-top: 40px;
    border-top: 2px dashed #f1f3f5;
    padding-top: 30px;
}

.directory-guides-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.guide-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #343a40;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.guide-item:hover {
    background: #e9ecef;
    color: #0076f6;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .directory-header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .directory-tabs {
        flex-direction: column;
    }
    .directory-search-wrapper {
        max-width: 100%;
    }
}
