.idc-carousel {
    --idc-gap: 24px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0 42px;
    overflow: hidden;
}

.idc-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.idc-track {
    display: flex;
    gap: var(--idc-gap);
    align-items: stretch;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.idc-card {
    flex: 0 0 calc((100% - (var(--idc-gap) * 2)) / 3);
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dce4f1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease;
}

.idc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 40, 74, .10);
}

.idc-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.idc-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.idc-image {
    height: 225px;
    overflow: hidden;
    position: relative;
    background: #f4f6f9;
}

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

.idc-badges {
    position: absolute;
    left: 12px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
    z-index: 2;
    pointer-events: none;
}

.idc-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    color: #00aaa0;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    white-space: nowrap;
}

.idc-verified-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00aaa0;
}

.idc-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    background: #fff;
    color: #10284a;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    white-space: nowrap;
}

.idc-location svg {
    width: 12px;
    height: 12px;
    fill: #00aaa0;
    flex-shrink: 0;
}

.idc-content {
    position: relative;
    z-index: 2;
    padding: 25px 18px 28px;
}

.idc-name {
    margin: 0 0 5px;
    color: #10284a;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.idc-specialty {
    margin-bottom: 15px;
    color: #68748a;
    font-size: 12px;
    line-height: 1.4;
}

.idc-rating {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: #536178;
    font-size: 12px;
}

.idc-stars {
    color: #f4a52c;
    font-size: 15px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.idc-features {
    display: grid;
    grid-template-columns: repeat(var(--idc-feat-cols, 4), minmax(0, 1fr));
    gap: 8px 4px;
    padding: 11px 6px 10px;
    margin-bottom: 12px;
    border: 1px solid #dce4f1;
    border-radius: 10px;
    background: #f7f9fd;
}

.idc-feature {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.idc-feature-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    border: 1px solid #d8e2f0;
    border-radius: 8px;
    background: #fff;
    color: #183c70;
    font-size: 14px;
    flex-shrink: 0;
}

.idc-feature-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.idc-feature-text {
    display: block;
    color: #00aaa0;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    word-break: normal;
}

.idc-tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.idc-tag {
    padding: 7px 10px;
    border-radius: 5px;
    background: #edf2ff;
    color: #405679;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.idc-action {
    position: relative;
    z-index: 3;
    margin-top: 14px;
}

.idc-book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    min-height: 44px;
    border: 1px solid #00aaa0;
    border-radius: 8px;
    background: #00aaa0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 170, 160, .2);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
    -webkit-tap-highlight-color: transparent;
}

.idc-book-btn:hover {
    background: #008c84;
    border-color: #008c84;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 170, 160, .3);
}

.idc-arrow {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    z-index: 10;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid #dce2eb;
    border-radius: 50%;
    background: #fff;
    color: #26364c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: .25s ease;
}

.idc-arrow:hover {
    background: #10284a;
    color: #fff;
    border-color: #10284a;
}

.idc-prev { left: 12px; }
.idc-next { right: 12px; }

.idc-dots {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
}

.idc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d0d3d8;
    cursor: pointer;
    transition: .3s ease;
}

.idc-dot.active {
    width: 25px;
    border-radius: 10px;
    background: #252525;
}

.idc-empty {
    padding: 20px;
    border: 1px dashed #ccd5e3;
    border-radius: 10px;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .idc-card {
        flex-basis: calc((100% - var(--idc-gap)) / 2);
    }
}

@media (max-width: 767px) {
    .idc-carousel {
        --idc-gap: 15px;
    }

    .idc-card {
        flex-basis: 100%;
    }

    .idc-image {
        height: 230px;
    }

    .idc-content {
        padding: 20px 15px 23px;
    }

    .idc-name {
        font-size: 17px;
    }

    .idc-arrow {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .idc-prev { left: 4px; }
    .idc-next { right: 4px; }

    .idc-book-btn {
        padding: 13px 18px;
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .idc-badges {
        gap: 4px;
    }

    .idc-verified,
    .idc-location {
        padding: 5px 8px;
        font-size: 10px;
    }

    .idc-features {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.idc-partial .idc-viewport {
    overflow: visible;
}

.idc-partial .idc-track {
    padding-left: 4%;
    padding-right: 4%;
}

.idc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.idc-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.idc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 40, 74, .6);
    backdrop-filter: blur(3px);
}

.idc-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
    padding: 24px;
    box-sizing: border-box;
}

.idc-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #edf2ff;
    color: #405679;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.idc-modal-close:hover {
    background: #dce4f1;
    color: #10284a;
}

.idc-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2ff;
}

.idc-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #00aaa0;
}

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

.idc-modal-title {
    margin: 0 0 4px;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #10284a;
}

.idc-modal-sub {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #68748a;
}

.idc-modal-body {
    color: #405679;
    font-size: 14px;
    line-height: 1.5;
}

.idc-modal-body input[type=text],
.idc-modal-body input[type=email],
.idc-modal-body input[type=tel],
.idc-modal-body textarea,
.idc-modal-body select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #dce4f1;
    border-radius: 8px;
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}


/* =========================================================
   Continuous scrolling mode (v1.2.0)
   The JS duplicates the original cards and sets the exact
   travel distance/duration to keep the loop seamless.
   ========================================================= */
.idc-carousel.idc-continuous .idc-viewport {
    overflow: hidden;
}

.idc-carousel.idc-continuous .idc-track {
    display: flex;
    width: max-content;
    max-width: none;
    gap: var(--idc-gap);
    transform: translate3d(0, 0, 0);
    transition: none !important;
    animation: idc-continuous-scroll var(--idc-duration, 40s) linear infinite;
    will-change: transform;
}

.idc-carousel.idc-continuous .idc-card {
    flex-shrink: 0;
}

.idc-carousel.idc-continuous.idc-pause-hover:hover .idc-track {
    animation-play-state: paused;
}

.idc-carousel.idc-continuous .idc-arrow,
.idc-carousel.idc-continuous .idc-dots {
    display: none !important;
}

@keyframes idc-continuous-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--idc-distance, -1000px), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .idc-carousel.idc-continuous .idc-track {
        animation: none !important;
        transform: none !important;
    }
}
