/* ============================================================
   Agent Contact Slider Widget  –  agent-contact-slider.css
   ============================================================ */

/* ── Wrapper & Swiper container ─────────────────────────── */
.acs-wrapper {
    position: relative;
    padding: 0 44px 48px;
    box-sizing: border-box;
}

.acs-swiper {
    width: 100%;
    overflow: hidden;
}

/* ── Card ───────────────────────────────────────────────── */
.acs-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
    height: auto;
    min-height: 110px;
}

.acs-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* ── Avatar ─────────────────────────────────────────────── */
.acs-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
}

.acs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acs-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.acs-avatar--placeholder svg {
    width: 48px;
    height: 48px;
}

/* ── Info block ─────────────────────────────────────────── */
.acs-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acs-agent-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.acs-firm-name {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.acs-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

/* ── Action Buttons ─────────────────────────────────────── */
.acs-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.acs-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.15s ease;
    border: none;
    white-space: nowrap;
    line-height: 1;
}

.acs-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.acs-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.acs-btn-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.acs-btn-call {
    background-color: #16a34a;
    color: #ffffff;
}

.acs-btn-props {
    background-color: #1d4ed8;
    color: #ffffff;
}

/* ── Navigation Arrows ──────────────────────────────────── */
.acs-prev,
.acs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #374151;
    transition: background 0.2s, box-shadow 0.2s;
}

.acs-prev { left: 0; }
.acs-next { right: 0; }

.acs-prev:hover,
.acs-next:hover {
    background: #f9fafb;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

/* ── Pagination ─────────────────────────────────────────── */
.acs-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.acs-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.acs-pagination .swiper-pagination-bullet-active {
    background: #1d4ed8;
    transform: scale(1.3);
}

/* ── Swiper grid row spacing ────────────────────────────── */
.acs-swiper .swiper-wrapper {
    align-items: start;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .acs-wrapper {
        padding: 0 36px 44px;
    }

    .acs-card {
        padding: 14px 14px;
        gap: 12px;
        min-height: 100px;
    }

    .acs-avatar {
        width: 50px;
        height: 50px;
    }

    .acs-agent-name {
        font-size: 14px;
    }

    .acs-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .acs-prev,
    .acs-next {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .acs-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .acs-actions {
        width: 100%;
    }

    .acs-btn {
        flex: 1;
        justify-content: center;
    }
}
