/**
 * Novavia Core — frontend widget styles.
 *
 * Uses the Novavia design-system variables (--novavia-*) with fallbacks,
 * so the widgets look right even if the theme is not active.
 */

/* -------------------------------------------------------------------------
 * Shared buttons
 * ------------------------------------------------------------------------- */
.novavia-doctor-card__btn,
.novavia-service-card__link,
.novavia-booking-cta__btn {
    display: inline-block;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
 * Doctor card — art-directed: circular portrait, serif name,
 * teal uppercase specialty, gold-underlined booking link.
 * ------------------------------------------------------------------------- */
.novavia-doctor-card {
    background: #ffffff;
    border: 1px solid var(--nv-line, #e9e2d2);
    border-radius: 28px;
    overflow: hidden;
    max-width: 420px;
    margin-inline: auto;
    text-align: center;
    padding: 36px 28px 32px;
    box-shadow: var(--nv-shadow-sm, 0 12px 30px rgba(16, 42, 43, 0.08));
}

.novavia-doctor-card__photo {
    width: min(72%, 240px);
    margin: 0 auto 22px;
}

.novavia-doctor-card__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #fff;
    box-shadow: 0 0 0 2px var(--nv-gold, #c9a96a), var(--nv-shadow-sm, 0 12px 30px rgba(16, 42, 43, 0.08));
}

.novavia-doctor-card__body {
    padding: 0;
}

.novavia-doctor-card__name {
    margin: 0 0 10px;
    font-family: var(--nv-serif, "Cormorant Garamond", Georgia, serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--nv-ink, var(--novavia-ink, #102a2b));
}

.novavia-doctor-card__specialty {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.6;
    color: var(--nv-teal, var(--novavia-primary, #0e7c7b));
}

.novavia-doctor-card__credentials {
    margin: 0 0 20px;
    font-size: 16px;
    color: var(--nv-muted, #5c6f6e);
}

.novavia-doctor-card__btn {
    display: inline-block;
    background: var(--nv-teal, var(--novavia-primary, #0e7c7b));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-family: var(--nv-sans, "Sora", sans-serif);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.novavia-doctor-card__btn:hover {
    background: var(--nv-teal-deep, var(--novavia-primary-dark, #0a5e5d));
    color: #fff;
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
 * Service card
 * ------------------------------------------------------------------------- */
.novavia-service-card {
    background: #ffffff;
    border: 1px solid #e3efef;
    border-radius: 14px;
    overflow: hidden;
    max-width: 380px;
}

.novavia-service-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.novavia-service-card__body {
    padding: 22px;
}

.novavia-service-card__dept {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--novavia-primary, #0e7c7b);
    margin-bottom: 8px;
}

.novavia-service-card__title {
    margin: 0 0 8px;
    font-size: 19px;
}

.novavia-service-card__title a {
    color: var(--novavia-ink, #102a2b);
    text-decoration: none;
}

.novavia-service-card__excerpt {
    margin: 0 0 12px;
    font-size: 15px;
    color: #5a6f6f;
}

.novavia-service-card__meta {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.novavia-service-card__price {
    font-weight: 700;
    font-size: 17px;
    color: var(--novavia-primary, #0e7c7b);
}

.novavia-service-card__duration {
    font-size: 14px;
    color: #5a6f6f;
}

.novavia-service-card__link {
    font-weight: 600;
    color: var(--novavia-primary, #0e7c7b);
}

/* -------------------------------------------------------------------------
 * Before / after slider
 * ------------------------------------------------------------------------- */
.novavia-before-after {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    --novavia-ba-pos: 50%;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.novavia-before-after img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    pointer-events: none;
}

.novavia-ba__before-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--novavia-ba-pos)) 0 0);
}

.novavia-ba__before-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novavia-ba__label {
    position: absolute;
    top: 14px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(16, 42, 43, 0.72);
    border-radius: 6px;
    pointer-events: none;
}

.novavia-ba__label--before {
    left: 14px;
}

.novavia-ba__label--after {
    right: 14px;
}

.novavia-ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--novavia-ba-pos);
    width: 2px;
    margin-left: -1px;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.novavia-ba__knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.novavia-ba__knob::before,
.novavia-ba__knob::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.novavia-ba__knob::before {
    left: 11px;
    border-right: 8px solid var(--novavia-primary, #0e7c7b);
    transform: translateY(-50%);
}

.novavia-ba__knob::after {
    right: 11px;
    border-left: 8px solid var(--novavia-primary, #0e7c7b);
    transform: translateY(-50%);
}

/* The native range input is the interaction layer: invisible, but it
   captures mouse + touch drags and keeps keyboard support. */
.novavia-ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.novavia-ba__range:focus {
    outline: none;
}

.novavia-before-after:has(.novavia-ba__range:focus-visible) .novavia-ba__knob {
    outline: 3px solid var(--novavia-accent, #c9a96a);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Price list
 * ------------------------------------------------------------------------- */
.novavia-price-list {
    background: #ffffff;
    border: 1px solid #e3efef;
    border-radius: 14px;
    padding: 26px;
}

.novavia-price-list__title {
    margin: 0 0 16px;
    font-size: 21px;
    color: var(--novavia-ink, #102a2b);
}

.novavia-price-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.novavia-price-list__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed #d8e6e6;
}

.novavia-price-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.novavia-price-list__treatment {
    font-weight: 600;
    color: var(--novavia-ink, #102a2b);
}

.novavia-price-list__dots {
    flex: 1;
    border-bottom: 2px dotted #c4d8d8;
    transform: translateY(-4px);
}

.novavia-price-list__duration {
    font-size: 13px;
    color: #5a6f6f;
    white-space: nowrap;
}

.novavia-price-list__price {
    font-weight: 700;
    color: var(--novavia-primary, #0e7c7b);
    white-space: nowrap;
}

/* -------------------------------------------------------------------------
 * Booking CTA
 * ------------------------------------------------------------------------- */
.novavia-booking-cta {
    background: var(--novavia-primary, #0e7c7b);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px 34px;
    text-align: center;
}

.novavia-booking-cta__heading {
    margin: 0 0 10px;
    font-size: 26px;
    color: inherit;
}

.novavia-booking-cta__text {
    margin: 0 0 22px;
    font-size: 16px;
    opacity: 0.92;
}

.novavia-booking-cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.novavia-booking-cta__btn {
    padding: 13px 28px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 15px;
}

.novavia-booking-cta__btn--primary {
    background: #ffffff;
    color: var(--novavia-primary, #0e7c7b);
}

.novavia-booking-cta__btn--secondary {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}

/* -------------------------------------------------------------------------
 * Booking plugin companions (Amelia / Bookly / BookingPress)
 * Best-effort accent overrides so embedded booking forms inherit the
 * Novavia palette. These selectors are intentionally light-touch.
 * ------------------------------------------------------------------------- */
.novavia-booking-embed .am-app .am-button--primary,
.novavia-booking-embed .bookly-form .bookly-btn {
    background-color: var(--novavia-primary, #0e7c7b);
    border-color: var(--novavia-primary, #0e7c7b);
}

/* -------------------------------------------------------------------------
 * Doctors Grid widget — auto-lists published doctors
 * ------------------------------------------------------------------------- */
.novavia-doctors-grid {
    display: grid;
    gap: 32px;
}
.novavia-doctors-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.novavia-doctors-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.novavia-doctors-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
    .novavia-doctors-grid--cols-3,
    .novavia-doctors-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .novavia-doctors-grid { grid-template-columns: 1fr; }
}
.novavia-doctors-grid__empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7a7a;
}
