/* CH Provider Slider — structural styles.
   Colours, typography, sizes and spacing are driven by the Elementor
   controls, which emit their own rules scoped to the widget wrapper. */

.ch-tmp-wrapper {
    --ch-ps-per-view: 2;
    --ch-ps-gap: 20px;
    background: #ffffff;
}

/* ---------- Filter bar ---------- */
.ch-tmp-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 40px 0;
}
.ch-tmp-select-wrap { position: relative; }
.ch-tmp-select-wrap select,
.ch-tmp-search input {
    width: 100%;
    height: 52px;
    padding: 14px 40px 14px 20px;
    border: 1px solid #E2E2E2;
    border-radius: 12px;
    background-color: #fff;
    color: #4A4A4A;
    font-size: 15px;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ch-tmp-select-wrap select:focus,
.ch-tmp-search input:focus { border-color: #0d9fce; }

.ch-tmp-select-wrap select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 14px;
}
.ch-tmp-search { position: relative; }
.ch-tmp-search input {
    padding-left: 20px;
    padding-right: 48px;
    cursor: text;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px 18px;
}

/* ---------- Slider ---------- */
.ch-tmp-slider-wrap {
    position: relative;
    margin: 40px 0 60px;
}
.ch-tmp-slider {
    display: flex;
    gap: var(--ch-ps-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}
.ch-tmp-slider::-webkit-scrollbar { display: none; }
.ch-tmp-slider.is-dragging { cursor: grabbing; user-select: none; }
.ch-tmp-slider .ch-tmp-card {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - (var(--ch-ps-gap) * (var(--ch-ps-per-view) - 1))) / var(--ch-ps-per-view));
}

/* ---------- Card ---------- */
.ch-tmp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ch-tmp-card[hidden] { display: none; }
.ch-tmp-card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.ch-tmp-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ECF8FE;
    border-radius: 34px;
    overflow: hidden;
}
.ch-tmp-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}
.ch-tmp-card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
/* Themes commonly style bare h3 with a compound selector (e.g. `.elementor-kit-7 h3`),
   which outranks a single class — hence the two-class selectors here. */
.ch-tmp-card-info .ch-tmp-card-name {
    font-family: "Futura Std", Sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.264px;
    line-height: 1.6;
    color: #2A2929;
    margin: 0;
}
.ch-tmp-card-info .ch-tmp-card-role {
    font-size: 16px;
    letter-spacing: -0.192px;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0;
}

/* ---------- Action buttons ---------- */
.ch-tmp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin-top: 14px;
}
/* Two classes deep so the theme's `.elementor-kit-N a` rules don't win the colours. */
.ch-tmp-card-actions .ch-tmp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ch-tmp-card-actions .ch-tmp-btn-book {
    gap: 10px;
    background-color: #0D9FCE;
    border-color: #0D9FCE;
    color: #FFFFFF;
}
.ch-tmp-card-actions .ch-tmp-btn-book:hover,
.ch-tmp-card-actions .ch-tmp-btn-book:focus {
    background-color: #045E88;
    border-color: #045E88;
    color: #FFFFFF;
}
.ch-tmp-card-actions .ch-tmp-btn-more {
    background-color: transparent;
    border-color: #045E88;
    color: #045E88;
}
.ch-tmp-card-actions .ch-tmp-btn-more:hover,
.ch-tmp-card-actions .ch-tmp-btn-more:focus {
    background-color: #045E88;
    border-color: #045E88;
    color: #FFFFFF;
}
.ch-tmp-card-actions .ch-tmp-btn-book svg {
    width: 12px;
    height: 12px;
    flex: none;
    display: block;
    stroke: currentColor;
    fill: none;
}
.ch-tmp-card-actions .ch-tmp-btn:focus-visible { outline: 2px solid #0d9fce; outline-offset: 2px; }

/* ---------- Arrows ---------- */
/* The nav box spans the row and is `per-view` times shorter, so its centre
   lands on the square photos whatever the card count. Set by JS. */
/* display:flex below would otherwise beat the browser's [hidden] rule */
.ch-tmp-nav[hidden] { display: none; }
.ch-tmp-nav {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: var(--ch-ps-nav-height, 50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}
.ch-tmp-nav .ch-tmp-arrow {
    pointer-events: auto;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.ch-tmp-nav .ch-tmp-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
    stroke: #2A2929;
    fill: none;
}
.ch-tmp-nav .ch-tmp-arrow:hover,
.ch-tmp-nav .ch-tmp-arrow:focus { background-color: #045E88; }
.ch-tmp-nav .ch-tmp-arrow:hover svg,
.ch-tmp-nav .ch-tmp-arrow:focus svg { stroke: #FFFFFF; }
.ch-tmp-nav .ch-tmp-arrow:focus-visible { outline: 2px solid #0d9fce; outline-offset: 2px; }

/* ---------- Empty state ---------- */
.ch-tmp-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    width: 100%;
}
.ch-tmp-notice {
    padding: 20px;
    background: #fff8e5;
    border: 1px solid #f0c36d;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .ch-tmp-slider-wrap { margin: 30px 0 40px; }
    .ch-tmp-nav .ch-tmp-arrow { width: 44px; height: 44px; }
    .ch-tmp-nav .ch-tmp-arrow svg { width: 20px; height: 20px; }
    .ch-tmp-card-photo { border-radius: 24px; }
    .ch-tmp-card-info .ch-tmp-card-name { font-size: 19px; }
    .ch-tmp-card-info .ch-tmp-card-role { font-size: 15px; }
    .ch-tmp-card-actions .ch-tmp-btn { padding: 10px 18px; font-size: 14px; }
}
