/* ==========================================================================
   Vetclinics Aggregator — pet911.ru
   Mobile-first, BEM methodology
   ========================================================================== */

/* --- 0. Custom Properties --- */
:root {
    --vc-primary: #258a56;
    --vc-primary-hover: #29985f;
    --vc-primary-active: #247f50;
    --vc-text: #000000;
    --vc-text-secondary: #979799;
    --vc-text-muted: #979799;
    --vc-link: #067aff;
    --vc-border: #e6e6e6;
    --vc-bg: #fff;
    --vc-bg-card: #ffffff;
    --vc-bg-muted: #f5f5f7;
    --vc-bg-light: #eef5ef;
    --vc-input-border: #cacaca;
    --vc-placeholder: #9e9e9f;
    --vc-star-full: #f5c518;
    --vc-star-empty: #d4d4d4;
    --vc-radius: 12px;
    --vc-radius-sm: 8px;
    --vc-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    --vc-transition: 300ms ease;
    --vc-sidebar-width: 340px;
    --vc-open: #258a56;
    --vc-closed: #e8361e;
    --vc-badge-bg: #eef5ef;
    --vc-badge-radius: 6px;
    --vc-font-museo: 'Museo Cyrillic', 'Roboto', sans-serif;
}

/* --- 1. Two-column Layout --- */
.vet-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 75px);
    overflow-x: hidden;
}
.vet-layout__sidebar {
    background: var(--vc-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.vet-layout__main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.vet-layout__map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    transition: height var(--vc-transition);
}
.vet-map-expand {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: var(--vc-radius-sm);
    font-size: 13px;
    color: var(--vc-text);
    text-decoration: underline;
    cursor: pointer;
    border: none;
}
.vet-layout__card {
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile states: sidebar-header */
.vet-mobile--list .vet-sidebar-header   { display: block; }
.vet-mobile--map .vet-sidebar-header    { display: none; }
.vet-mobile--detail .vet-sidebar-header { display: none; }
/* Mobile states: tabs */
.vet-mobile--detail .vet-tabs { display: none; }
/* Mobile states: sidebar (clinic list) */
.vet-mobile--list .vet-layout__sidebar { display: block; border-top: 1px solid var(--vc-border); }
.vet-mobile--list .vet-layout__main    { display: none; }
.vet-mobile--map .vet-layout__sidebar  { display: none; }
.vet-mobile--map .vet-layout__main     { display: flex; }
.vet-mobile--map .vet-layout__map      { height: 100%; flex: 1 1 auto; }
.vet-mobile--map .vet-layout__card     { display: none; }
.vet-mobile--detail .vet-layout__sidebar { display: none; }
.vet-mobile--detail .vet-layout__main    { display: flex; flex-direction: column; overflow-y: auto; }
.vet-mobile--detail .vet-layout__map     { display: block; flex: 0 0 200px; height: 200px; min-height: 200px; }
.vet-mobile--detail .vet-layout__card    { display: block; flex: 0 0 auto; }

/* Desktop (>= 768px) */
@media (min-width: 768px) {
    .vet-layout {
        display: grid;
        grid-template-columns: var(--vc-sidebar-width) 1fr;
        grid-template-rows: auto 1fr;
        height: calc(100vh - 75px);
        min-height: 0;
        overflow: hidden;
    }
    .vet-sidebar-header {
        grid-column: 1;
        grid-row: 1;
        display: block !important;
        border-right: 1px solid var(--vc-border);
    }
    .vet-layout__sidebar {
        grid-column: 1;
        grid-row: 2;
        display: block !important;
        border-right: 1px solid var(--vc-border);
        height: 100%;
    }
    .vet-layout__main {
        grid-column: 2;
        grid-row: 1 / -1;
        display: flex !important;
        height: 100%;
    }
    .vet-layout__map { min-height: 0; }

    /* list — map full height */
    .vet-layout--list .vet-layout__map  { flex: 1 1 auto; height: auto; }
    .vet-layout--list .vet-layout__card { display: none; }
    /* detail — map compressed, card visible; whole column scrolls */
    .vet-layout--detail .vet-layout__main { overflow-y: auto; }
    .vet-layout--detail .vet-layout__map  { flex: 0 0 200px; height: 200px; display: block !important; }
    .vet-layout--detail .vet-layout__card { display: block; flex: 0 0 auto; overflow-y: visible; }
    /* loading — map compressed, skeleton visible */
    .vet-layout--loading .vet-layout__main { overflow-y: auto; }
    .vet-layout--loading .vet-layout__map  { flex: 0 0 200px; height: 200px; display: block !important; }
    .vet-layout--loading .vet-layout__card { display: block; flex: 0 0 auto; overflow-y: visible; }
}

/* --- 2. Mobile Tabs --- */
.vet-tabs {
    display: flex;
    background: var(--vc-bg-light);
    height: 44px;
    border-radius: 8px;
    margin: 12px 16px;
    padding: 3px;
    align-items: center;
    box-sizing: border-box;
}
.vet-tabs__btn {
    flex: 1;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--vc-text);
    cursor: pointer;
    transition: background .2s, color .2s;
    text-align: center;
    line-height: 38px;
    padding: 0;
}
.vet-tabs__btn--active {
    background: #ffffff;
    color: var(--vc-text);
}

/* Search button: hidden by default, visible in map mode */
.vet-tabs__search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--vc-text);
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}
.vet-tabs__search:hover { background: rgba(0, 0, 0, .05); }
.vet-mobile--map .vet-tabs__search { display: flex; }

@media (min-width: 768px) {
    .vet-tabs { display: none !important; }
}

/* --- 3. Search Bar --- */
.vet-search {
    position: relative;
    padding: 12px 24px;
    background: transparent;
}
.vet-search__input {
    width: 100%;
    height: 30px;
    padding: 0 36px 0 12px;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    background: #ffffff;
    outline: none;
    box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.vet-search__input:focus { box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.3); }
.vet-search__input::placeholder { color: var(--vc-placeholder); }
.vet-search__icon {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    color: var(--vc-text-muted);
}
.vet-search__icon::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* --- Sidebar Header (breadcrumbs + title + search) --- */
.vet-sidebar-header {
    background: var(--vc-bg-light);
    padding: 16px 24px 16px;
    border-bottom: 1px solid var(--vc-border);
}
.vet-sidebar-header .vet-search {
    padding: 0;
    margin-top: 12px;
}
.vet-city {
    padding-top: 12px;
}
.vet-city__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    box-shadow: var(--vc-shadow);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    text-align: left;
    box-sizing: border-box;
}
.vet-city__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--vc-primary);
    position: relative;
}
.vet-city__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 21s-6-4.35-6-9a6 6 0 1 1 12 0c0 4.65-6 9-6 9z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 21s-6-4.35-6-9a6 6 0 1 1 12 0c0 4.65-6 9-6 9z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.vet-city__label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vet-city__caret {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--vc-text-muted);
    position: relative;
}
.vet-city__caret::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.vet-search__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--vc-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}
.vet-search__item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--vc-border);
}
.vet-search__item:last-child { border-bottom: none; }
.vet-search__item:hover { background: var(--vc-bg-muted, #f5f5f5); }
.vet-search__item-title { display: block; font-weight: 500; }
.vet-search__item-address { display: block; font-size: 13px; color: var(--vc-text-muted); margin-top: 2px; }
.vet-search__no-results { padding: 12px 16px; color: var(--vc-text-muted); }
.vet-layout__h1 {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: var(--vc-text);
    margin: 6px 0 0;
    line-height: 1.3;
}

/* --- 4. Clinic Card in List --- */
.vc-item {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--vc-border);
    cursor: pointer;
    transition: background .15s;
    background: var(--vc-bg-card);
}
.vc-item:hover { background: var(--vc-bg-muted); }
.vc-item--active {
    background: #eef7f1;
    border-left: 3px solid var(--vc-primary);
}
.vc-item__body { flex: 1; min-width: 0; }
.vc-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.vc-item__header-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vc-item__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.vc-item__photo {
    flex-shrink: 0;
    display: block;
    width: 75px;
    height: 75px;
}
.vc-item__photo img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--vc-bg-muted);
    display: block;
}
.vc-item__title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--vc-text);
    text-decoration: none;
    line-height: 1.3;
}
.vc-item__title:hover { color: var(--vc-primary); }
.vc-item__category {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text-secondary);
}
.vc-item__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
}
.vc-item__stars { display: inline-flex; gap: 0; }
.vc-item__stars .vc-star,
.vc-clinic-header__rating .vc-star
{ font-size: 18px; }
.vc-item__score { font-weight: 600; font-size: 14px; line-height: 1; }
.vc-item__reviews-count {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text-secondary);
}
/* Info rows with icons */
.vc-item__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.vc-item__info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text);
    line-height: 1.4;
}
.vc-item__info-row a {
    color: var(--vc-text);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}
.vc-item__info-row a:hover { text-decoration: underline; }
.vc-item__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--vc-primary);
}
.vc-item__icon .material-icons {
    font-size: 18px;
    line-height: 1;
}
.vc-item__branches {
    color: var(--vc-primary);
    text-decoration: none;
    font-size: 14px;
}
.vc-item__branches:hover { text-decoration: underline; }
.vc-item__info-row--indent { margin-top: -2px; }
.vc-item__schedule--open { color: var(--vc-open); font-weight: 500; }
.vc-item__schedule--closed { color: var(--vc-closed); font-weight: 500; }
.vc-item__website {
    color: var(--vc-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}
.vc-item__website:hover { text-decoration: underline; }
/* Action buttons */
.vc-item__actions {
    display: none;
    gap: 8px;
}
.vc-item__btn-call,
.vc-item__btn-map {
    flex: 1;
    height: 38px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
    text-align: center;
    line-height: 38px;
    padding: 0;
    text-decoration: none;
}
.vc-item__btn-call { background: var(--vc-primary); color: #fff; }
.vc-item__btn-call:hover { background: var(--vc-primary-hover); }
.vc-item__btn-map {
    background: var(--vc-bg-light);
    color: var(--vc-text);
}
.vc-item__btn-map:hover { background: #ddeede; }

/* --- 4b. Clinic Header (Detail View) --- */
.vc-clinic-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.vc-clinic-header__minimap {
    display: none;
    width: 100%;
    height: 130px;
    border-radius: var(--vc-radius-sm);
    overflow: hidden;
    margin-bottom: 4px;
}
.vc-clinic-header__logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}
.vc-clinic-header__logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--vc-bg-muted);
    display: block;
}
.vc-clinic-header__info {
    flex: 1;
    min-width: 0;
}
.vc-clinic-header__title {
    font-family: var(--vc-font-museo);
    font-size: 22px;
    font-weight: 700;
    color: var(--vc-text);
    margin: 0 0 4px;
    line-height: 1.3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.vc-clinic-header__subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text-secondary);
    margin-bottom: 8px;
}
.vc-clinic-header__category {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text-secondary);
    margin-bottom: 8px;
}
.vc-clinic-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.vc-clinic-header__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.vc-clinic-header__rating-value {
    font-weight: 600;
    color: var(--vc-text);
}
.vc-clinic-header__review-count {
    color: var(--vc-text-secondary);
    font-weight: 400;
}
.vc-clinic-header__rating-top {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 16px;
}
.vc-clinic-header__rating-top .vc-clinic-header__rating-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--vc-text);
}
.vc-clinic-header__rating-top .vc-clinic-header__review-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--vc-text-secondary);
}
.vc-clinic-header__rating-top .vc-star {
    font-size: 20px;
}
.vc-clinic-header__schedule-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text);
    white-space: nowrap;
}
.vc-clinic-header__schedule-status svg {
    color: var(--vc-primary);
    flex-shrink: 0;
}
.vc-clinic-header__phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--vc-text);
    text-decoration: none;
    white-space: nowrap;
}
.vc-clinic-header__phone-link svg {
    color: var(--vc-primary);
    flex-shrink: 0;
}
.vc-clinic-header__phone-link:hover { color: var(--vc-primary); }
@media (min-width: 768px) {
    .vc-clinic-header__rating-top { display: none; }
}
.vc-clinic-header__photo {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
}
.vc-clinic-header__img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--vc-bg-muted);
    display: block;
}

/* --- 5. Clinic Detail Card --- */
.vc-card {
    position: relative;
    background: var(--vc-bg);
    padding: 20px 16px 24px;
}
.vc-card__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--vc-bg-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--vc-text-secondary);
    transition: background .15s;
    line-height: 1;
    z-index: 1;
}
.vc-card__close:hover { background: var(--vc-border); }
.vc-card__header { padding-right: 40px; margin-bottom: 24px; }
.vc-card__tabs {
    display: flex;
    border-top: 1px solid var(--vc-border);
    border-bottom: 1px solid var(--vc-border);
    margin: 16px -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vc-card__tabs::-webkit-scrollbar { display: none; }
.vc-card__tab {
    flex-shrink: 0;
    padding: 10px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: var(--vc-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.vc-card__tab:hover { color: var(--vc-text); }
.vc-card__tab--active {
    color: var(--vc-primary);
    border-bottom-color: var(--vc-primary);
    font-weight: 500;
}
.vc-card__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--vc-badge-bg);
    border-radius: var(--vc-badge-radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--vc-primary);
    margin-left: 4px;
}
.vc-card__section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    position: relative;
}
.vc-card__section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: var(--vc-border);
}
.vc-card__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
.vc-card__section:last-child::after {
    display: none;
}

/* --- 6. Contacts --- */
.vc-clinic-contacts { display: flex; flex-direction: column; gap: 10px; }
.vc-clinic-contacts__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--vc-text);
    line-height: 1.4;
}
.vc-clinic-contacts__label {
    flex-shrink: 0;
    width: 110px;
    color: var(--vc-text-secondary);
    font-size: 14px;
}
.vc-clinic-contacts__value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.vc-clinic-contacts__phone { color: var(--vc-link); text-decoration: none; }
.vc-clinic-contacts__phone:hover { text-decoration: underline; }
.vc-clinic-contacts__website { color: var(--vc-link); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-clinic-contacts__website:hover { text-decoration: underline; }
.vc-clinic-contacts__schedule { margin-top: 4px; }
.vc-clinic-contacts__actions { display: flex; gap: 8px; margin-top: 16px; }
.vc-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vc-text-muted);
    padding: 2px;
    display: inline-flex;
    transition: color .15s;
}
.vc-copy-btn:hover { color: var(--vc-primary); }

/* Schedule */
.vc-schedule-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.vc-schedule-indicator--open { background: var(--vc-open); }
.vc-schedule-indicator--closed { background: var(--vc-closed); }
.vc-schedule-status { font-size: 14px; }
.vc-schedule-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.vc-schedule-table td { padding: 4px 0; }
.vc-schedule-table__day { color: var(--vc-text-secondary); width: 40px; }
.vc-schedule-table__hours { color: var(--vc-text); }
.vc-schedule-table__dayoff td { color: var(--vc-text-muted); }

/* Buttons */
.vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
    text-decoration: none;
    text-align: center;
    line-height: 38px;
    box-sizing: border-box;
}
.vc-btn--primary { background: var(--vc-primary); color: #fff; }
.vc-btn--primary:hover { background: var(--vc-primary-hover); }
.vc-btn--outlined { background: transparent; border: 1px solid var(--vc-border); color: var(--vc-text); }
.vc-btn--outlined:hover { background: var(--vc-bg-muted); }
.vc-btn--text { background: none; border: none; color: var(--vc-primary); padding: 0; height: auto; line-height: 1.4; font-weight: 500; }
.vc-btn--text:hover { text-decoration: underline; }

/* Section title */
.vc-section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--vc-text);
    margin: 0 0 16px;
}

/* --- 7. Gallery --- */
.vc-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.vc-gallery::-webkit-scrollbar { display: none; }
.vc-gallery__item { flex: 0 0 auto; scroll-snap-align: start; }
.vc-gallery__img {
    display: block;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--vc-radius-sm);
    background: var(--vc-bg-muted);
}

/* --- 8. Specialists --- */
.vc-specialists {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.vc-specialists::-webkit-scrollbar { display: none; }
.vc-specialist {
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-align: center;
    width: 100px;
}
.vc-specialist__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    background: var(--vc-bg-muted);
}
.vc-specialist__name { font-size: 13px; font-weight: 500; color: var(--vc-text); margin-bottom: 2px; }
.vc-specialist__position { font-size: 12px; color: var(--vc-text-muted); }

/* --- 9. Services --- */
.vc-services { display: flex; flex-direction: column; }
.vc-services__group { margin-bottom: 16px; }
.vc-services__group:last-of-type { margin-bottom: 0; }
.vc-services__category {
    font-size: 13px;
    color: var(--vc-text-muted);
    margin-bottom: 4px;
}
.vc-services__items {
    font-size: 15px;
    color: var(--vc-text);
    line-height: 1.4;
}
/* Fallback: flat list */
.vc-services__flat { display: flex; flex-direction: column; gap: 8px; }
.vc-services__flat-item { font-size: 15px; color: var(--vc-text); }
/* Hidden elements & toggle */
.vc-services__hidden { display: none; }
.vc-services--expanded .vc-services__hidden { display: block; }
.vc-services__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--vc-primary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0 0;
    font-weight: 500;
}
.vc-services__toggle:hover { text-decoration: underline; }

/* --- 10. Rating Block --- */
.vc-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.vc-rating__summary {
    display: flex;
    align-items: center;
    gap: 16px;
}
.vc-rating__score {
    font-family: var(--vc-font-museo);
    font-size: 48px;
    font-weight: 700;
    color: var(--vc-text);
    line-height: 1;
}
.vc-rating__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vc-rating__stars { display: flex; gap: 2px; }
.vc-rating__stars .vc-star { width: 18px; height: 18px; }
.vc-rating__count { font-size: 13px; color: var(--vc-text-muted); }
.vc-rating__histogram {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vc-rating__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--vc-text-muted);
}
.vc-rating__bar-label { width: 16px; text-align: right; flex-shrink: 0; }
.vc-rating__bar-track {
    flex: 1;
    height: 6px;
    background: var(--vc-bg-muted);
    border-radius: 3px;
    overflow: hidden;
    min-width: 120px;
}
.vc-rating__bar-fill {
    height: 100%;
    background: var(--vc-star-full);
    border-radius: 3px;
    transition: width var(--vc-transition);
}

/* --- 11. Reviews --- */
.vc-reviews { display: flex; flex-direction: column; gap: 16px; }

/* Two-column layout */
.vc-reviews__layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.vc-reviews__main { flex: 1; min-width: 0; }
.vc-reviews__sidebar { order: -1; }

/* Photos gallery */
.vc-reviews__photos-gallery { margin-bottom: 20px; }
.vc-reviews__photos-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.vc-reviews__photos-grid::-webkit-scrollbar { display: none; }
.vc-reviews__photos-grid a {
    flex-shrink: 0;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.vc-reviews__photos-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Sort buttons */
.vc-reviews__sort {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.vc-reviews__sort-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--vc-border);
    border-radius: 20px;
    background: var(--vc-bg);
    color: var(--vc-text-secondary);
    cursor: pointer;
    transition: all var(--vc-transition);
}
.vc-reviews__sort-btn:hover { border-color: var(--vc-primary); color: var(--vc-primary); }
.vc-reviews__sort-btn--active,
.vc-reviews__sort-btn--active:hover {
    background: var(--vc-primary);
    color: #fff;
    border-color: var(--vc-primary);
}

/* Reviews list */
.vc-reviews__list { display: flex; flex-direction: column; gap: 0; }

/* Load more button */
.vc-reviews__load-more {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    background: var(--vc-bg-muted);
    border: 1px solid var(--vc-border);
    border-radius: 8px;
    color: var(--vc-text);
    cursor: pointer;
    transition: all var(--vc-transition);
}
.vc-reviews__load-more:hover { background: #eee; }

/* Single review */
.vc-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--vc-border);
}
.vc-review:last-child { border-bottom: none; padding-bottom: 0; }
.vc-review__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.vc-review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e8e8e8;
    flex-shrink: 0;
}
.vc-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vc-review__avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--vc-primary);
    background: var(--vc-bg-light);
}
.vc-review__meta { flex: 1; }
.vc-review__name-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.vc-review__rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--vc-primary);
    border-radius: 6px;
}
.vc-review__name {
    font-weight: 500;
    font-size: 14px;
    color: var(--vc-text);
    margin: 0;
}
.vc-review__verified {
    font-size: 11px;
    font-weight: 500;
    color: var(--vc-primary);
    background: var(--vc-bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.vc-review__sub-line {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vc-review__stars { display: flex; gap: 2px; }
.vc-review__stars--large .vc-star { width: 18px; height: 18px; }
.vc-review__date { font-size: 12px; color: #999; }
.vc-review__text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}
.vc-review__text--truncated {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}
.vc-review__text--truncated::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, var(--vc-bg));
}
.vc-review__more {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--vc-primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-weight: 500;
}
.vc-review__more:hover { text-decoration: underline; }
.vc-review__photos {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vc-review__photos::-webkit-scrollbar { display: none; }
.vc-review__photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Review actions (likes/dislikes/reply) */
.vc-review__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.vc-review__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--vc-text-secondary);
    cursor: default;
}
.vc-review__action svg { opacity: .6; }
.vc-review__action-count { font-weight: 500; }
.vc-review__action--reply { margin-left: auto; font-size: 12px; }

/* Review response */
.vc-review__response {
    margin-top: 12px;
    padding: 12px;
    background: var(--vc-bg-muted);
    border-radius: var(--vc-radius-sm);
}
.vc-review__response-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.vc-review__response-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--vc-primary);
}
.vc-review__response-date {
    font-size: 11px;
    color: #999;
}
.vc-review__response-text {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}
.vc-reviews__empty { color: var(--vc-text-secondary); font-size: 14px; }
.vc-show-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--vc-primary);
    cursor: pointer;
}
.vc-show-more:hover { text-decoration: underline; }

/* --- 11b. Reviews Sidebar --- */
.vc-reviews-sidebar {
    background: var(--vc-bg-muted);
    border-radius: var(--vc-radius);
    padding: 20px;
}
.vc-reviews-sidebar__score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.vc-reviews-sidebar__score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--vc-text);
}
.vc-reviews-sidebar__score-stars { display: flex; gap: 2px; }
.vc-star--sidebar { width: 25px; height: 25px; }
.vc-reviews-sidebar__counts {
    font-size: 13px;
    color: var(--vc-text-secondary);
    margin-bottom: 20px;
}

/* CTA block */
.vc-reviews-sidebar__cta {
    border-top: 1px solid var(--vc-border);
    padding-top: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.vc-reviews-sidebar__cta-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--vc-text);
    margin: 0 0 12px;
}
.vc-reviews-sidebar__cta-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.vc-reviews-sidebar__cta-star {
    width: 41px;
    height: 41px;
    color: var(--vc-star-empty);
    cursor: pointer;
    transition: color .15s, transform .15s;
}
.vc-reviews-sidebar__cta-star:hover,
.vc-reviews-sidebar__cta-star.vc-cta-star--active { color: var(--vc-star-full); transform: scale(1.1); }
.vc-reviews-sidebar__write-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--vc-primary);
    border: none;
    border-radius: var(--vc-radius-sm);
    cursor: pointer;
    transition: background var(--vc-transition);
}
.vc-reviews-sidebar__write-btn:hover { background: var(--vc-primary-hover); }

/* Histogram */
.vc-reviews-sidebar__histogram {
    border-top: 1px solid var(--vc-border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vc-reviews-sidebar__bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vc-reviews-sidebar__bar-label {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 28px;
    font-size: 13px;
    color: var(--vc-text-secondary);
    flex-shrink: 0;
}
.vc-reviews-sidebar__bar-label--text {
    width: auto;
    min-width: 28px;
    font-size: 11px;
    white-space: nowrap;
}
.vc-star--tiny { width: 12px; height: 12px; }
.vc-reviews-sidebar__bar-track {
    flex: 1;
    height: 8px;
    background: var(--vc-border);
    border-radius: 4px;
    overflow: hidden;
}
.vc-reviews-sidebar__bar-fill {
    height: 100%;
    background: var(--vc-star-full);
    border-radius: 4px;
    transition: width var(--vc-transition);
}
.vc-reviews-sidebar__bar-count {
    width: 24px;
    font-size: 12px;
    color: var(--vc-text-secondary);
    text-align: right;
    flex-shrink: 0;
}

/* --- 12. Review Modal & Form --- */
.vc-review-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.vc-review-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}
.vc-review-modal__dialog {
    position: relative;
    background: var(--vc-bg);
    border-radius: var(--vc-radius);
    width: 100%;
    max-width: 768px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 24px 24px;
    box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.25);
}
.vc-review-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--vc-bg-muted);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-text-secondary);
    transition: background .15s;
    z-index: 1;
}
.vc-review-modal__close:hover { background: var(--vc-border); }
.vc-review-modal__close .material-icons { font-size: 20px; }
.vc-review-modal__title {
    font-family: 'Museo Cyrillic', 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--vc-text);
    text-align: center;
    margin: 0 0 24px;
    padding: 0 32px;
}
/* Form layout */
.vc-review-form__form { display: flex; flex-direction: column; gap: 0; }
.vc-review-form__section {
    margin-bottom: 20px;
}
.vc-review-form__section-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--vc-text);
    margin-bottom: 12px;
}
.vc-review-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

/* --- City Modal --- */
.vet-city-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.vet-city-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}
.vet-city-modal__dialog {
    position: relative;
    background: var(--vc-bg);
    border-radius: var(--vc-radius);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    padding: 20px 16px 16px;
    box-sizing: border-box;
}
.vet-city-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--vc-bg-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--vc-text-secondary);
    transition: background .15s;
}
.vet-city-modal__close:hover {
    background: var(--vc-border);
}
.vet-city-modal__header {
    margin-bottom: 16px;
}
.vet-city-modal__search {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--vc-input-border);
    padding: 0 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    box-sizing: border-box;
}
.vet-city-modal__search::placeholder {
    color: var(--vc-placeholder);
}
.vet-city-modal__current {
    margin-bottom: 16px;
}
.vet-city-modal__current-label {
    font-size: 12px;
    color: var(--vc-text-muted);
    margin-bottom: 6px;
}
.vet-city-modal__current-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--vc-border);
    padding: 8px 12px;
    background: var(--vc-bg-light);
    cursor: default;
    box-sizing: border-box;
}
.vet-city-modal__current-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--vc-primary);
    position: relative;
}
.vet-city-modal__current-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 21s-6-4.35-6-9a6 6 0 1 1 12 0c0 4.65-6 9-6 9z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 21s-6-4.35-6-9a6 6 0 1 1 12 0c0 4.65-6 9-6 9z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.vet-city-modal__current-text {
    font-size: 14px;
    color: var(--vc-text);
}
.vet-city-modal__body {
    padding-top: 4px;
}
.vet-city-modal__section {
    margin-bottom: 16px;
}
.vet-city-modal__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--vc-text);
}
.vet-city-modal__list {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--vc-border);
}
.vet-city-modal__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    text-align: left;
    box-sizing: border-box;
}
.vet-city-modal__item + .vet-city-modal__item {
    border-top: 1px solid var(--vc-border);
}
.vet-city-modal__item:hover {
    background: var(--vc-bg-muted);
}
.vet-city-modal__item-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vet-city-modal__item-count {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--vc-text-muted);
}
.vet-city-modal__empty {
    font-size: 14px;
    color: var(--vc-text-muted);
    padding: 8px 2px;
}

.vc-review-form__field:last-child { margin-bottom: 0; }
.vc-review-form__label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--vc-text);
}
.vc-review-form__stars { display: flex; gap: 4px; margin-bottom: 4px; }
.vc-review-form__star {
    font-size: 41px;
    line-height: 1;
    cursor: pointer;
    color: var(--vc-star-empty);
    transition: color .15s, transform .15s;
}
.vc-review-form__star:hover { transform: scale(1.15); }
.vc-review-form__star--active { color: var(--vc-star-full); }
.vc-review-form__input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--vc-input-border);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    background: var(--vc-bg);
    box-sizing: border-box;
}
.vc-review-form__input::placeholder { color: var(--vc-placeholder); }
.vc-review-form__input:focus { outline: none; border-color: var(--vc-primary); }
.vc-review-form__textarea {
    width: 100%;
    height: 90px;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid var(--vc-input-border);
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: var(--vc-text);
    resize: vertical;
    background: var(--vc-bg);
    box-sizing: border-box;
}
.vc-review-form__textarea::placeholder { color: var(--vc-placeholder); }
.vc-review-form__textarea:focus { outline: none; border-color: var(--vc-primary); }
.vc-review-form__upload {
    border: 1px dashed var(--vc-input-border);
    border-radius: 6px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--vc-text-muted);
    background: var(--vc-bg);
    transition: border-color .2s;
    position: relative;
}
.vc-review-form__upload:hover { border-color: var(--vc-primary); }
.vc-review-form__upload-icon { font-size: 28px; color: var(--vc-text-muted); }
.vc-review-form__upload-text { font-size: 13px; color: var(--vc-text-muted); }
.vc-review-form__upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.vc-review-form__counter {
    font-size: 12px;
    color: var(--vc-text-muted);
    text-align: right;
    margin-top: 4px;
}
.vc-review-form__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.vc-review-form__submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 182px;
    height: 38px;
    background: var(--vc-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
    padding: 0 24px;
}
.vc-review-form__submit-btn:hover { background: var(--vc-primary-hover); }
.vc-review-form__submit-btn:active { background: var(--vc-primary-active); }
.vc-review-form__guest {
    text-align: center;
    padding: 24px 16px;
}
.vc-review-form__guest p {
    font-size: 14px;
    color: var(--vc-text-secondary);
    margin: 0 0 16px;
}
.vc-review-form__field {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
}
.vc-review-form__label {
    flex: 0 0 130px;
    text-align: right;
}
.vc-review-form__input,
.vc-review-form__textarea { flex: 1; }
@media (max-width: 576px) {
    .vc-review-form__field {
        flex-direction: column;
        gap: 6px;
    }
    .vc-review-form__label {
        flex: none;
        text-align: left;
    }
    .vc-review-form__input,
    .vc-review-form__textarea { flex: none; }
}

/* --- 13. FAQ Accordion --- */
.vc-faq__list {
    display: flex;
    flex-direction: column;
}
.vc-faq__item { border-bottom: 1px solid var(--vc-border); }
.vc-faq__item:last-child { border-bottom: none; }
.vc-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--vc-text);
    cursor: pointer;
    text-align: left;
}
.vc-faq__question > span { flex: 1; }
.vc-faq__question::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform .2s;
    color: #999;
}
.vc-faq__item--open .vc-faq__question::after { transform: rotate(180deg); }
.vc-faq__answer {
    display: none;
    padding-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}
.vc-faq__item--open .vc-faq__answer { display: block; }

/* --- 14. Promotions --- */
.vc-promotions { display: flex; flex-direction: column; gap: 12px; }
.vc-promotion {
    padding: 14px 16px;
    border: 1px solid var(--vc-border);
    border-left: 4px solid var(--vc-primary);
    border-radius: var(--vc-radius-sm);
    background: var(--vc-bg);
    display: flex;
    align-items: center;
    gap: 12px;
}
.vc-promotion__title { font-size: 14px; color: var(--vc-text); flex: 1; }
.vc-promotion__discount {
    flex-shrink: 0;
    padding: 4px 10px;
    background: #eef7f1;
    color: var(--vc-primary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* --- 15. Payment Methods --- */
.vc-payments { display: flex; flex-wrap: wrap; gap: 24px; }
.vc-payment-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.vc-payment-card__icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eef7f1;
    border-radius: 12px;
}
.vc-payment-card__icon img { width: 53px; height: auto; }
.vc-payment-card__label {
    font-size: 15px;
    color: var(--vc-text);
    line-height: 1.3;
}

/* --- 16. Verified Badge --- */
.vc-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--vc-primary);
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* --- 17. Skeleton Loader --- */
@keyframes vc-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.vc-skeleton { padding: 16px; }
.vc-skeleton__line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--vc-bg-muted) 25%, #ececec 37%, var(--vc-bg-muted) 63%);
    background-size: 800px 100%;
    animation: vc-shimmer 1.5s infinite linear;
}
.vc-skeleton__line:nth-child(1) { width: 70%; }
.vc-skeleton__line:nth-child(2) { width: 90%; }
.vc-skeleton__line:nth-child(3) { width: 50%; }
.vc-skeleton__line:nth-child(4) { width: 80%; }
.vc-skeleton__circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--vc-bg-muted) 25%, #ececec 37%, var(--vc-bg-muted) 63%);
    background-size: 800px 100%;
    animation: vc-shimmer 1.5s infinite linear;
}

/* --- 18. Stars SVG Styling --- */
.vc-stars { display: inline-flex; align-items: center; gap: 2px; }
.vc-star { font-size: 16px; line-height: 1; flex-shrink: 0; }
.vc-star--full  { color: var(--vc-star-full); }
.vc-star--half  { color: var(--vc-star-full); }
.vc-star--empty { color: var(--vc-star-empty); }

/* --- 19. Toast Notification --- */
.vc-toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--vc-text);
    color: #fff;
    border-radius: var(--vc-radius-sm);
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
    z-index: 100001;
    transition: bottom var(--vc-transition);
    white-space: nowrap;
    pointer-events: none;
}
.vc-toast--show { bottom: 24px; pointer-events: auto; }

/* --- 20. Card Two-Column Layout --- */
.vc-card__content {
    display: flex;
    gap: 32px;
}
.vc-card__main {
    flex: 1;
    min-width: 0;
}
.vc-card__aside {
    width: 280px;
    flex-shrink: 0;
}

/* --- 21. Contacts Sidebar Card --- */
.vc-contacts-card {
    position: sticky;
    top: 16px;
    align-self: flex-start;
    background: var(--vc-bg);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    padding: 20px;
}
.vc-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.vc-contact-item:last-child { margin-bottom: 0; }
.vc-contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vc-primary);
    font-size: 18px;
    margin-top: 2px;
}
.vc-contact-label {
    font-size: 12px;
    color: var(--vc-text-secondary);
    margin-bottom: 2px;
}
.vc-contact-value {
    font-size: 15px;
    color: var(--vc-text);
    word-break: break-word;
}
.vc-contact-value a { color: var(--vc-primary); text-decoration: none; }
.vc-contact-value a:hover { text-decoration: underline; }
.vc-contact-schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--vc-bg-muted);
    font-size: 14px;
}
.vc-contact-schedule-row:last-child { border-bottom: none; }
.vc-contacts-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.vc-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--vc-bg-muted);
    border-radius: 20px;
    font-size: 13px;
    color: var(--vc-text);
    text-decoration: none;
}
.vc-social-link:hover { background: var(--vc-border); }
.vc-contacts-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.vc-contacts-card__actions .vc-btn { text-align: center; }
.vc-btn--call-mobile {
    display: none;
    width: 100%;
    height: 48px;
    margin-top: 12px;
    text-align: center;
}

/* --- 22. Gallery Grid --- */
.vc-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.vc-gallery__grid .vc-gallery__item {
    display: block;
    aspect-ratio: 1;
    border-radius: var(--vc-radius-sm);
    overflow: hidden;
    background: var(--vc-bg-muted);
    cursor: pointer;
    flex: none;
    scroll-snap-align: unset;
}
.vc-gallery__grid .vc-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s;
}
.vc-gallery__grid .vc-gallery__item:hover .vc-gallery__img { transform: scale(1.05); }
/* Кнопка "Ещё фото" с фоновым изображением */
.vc-gallery__more {
    position: relative;
    border: none;
    cursor: pointer;
}
.vc-gallery__grid .vc-gallery__more {
    background-size: cover;
    background-position: center;
}
.vc-gallery__more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, .5);
    border-radius: var(--vc-radius-sm);
    color: #fff;
    transition: background var(--vc-transition);
}
.vc-gallery__more:hover .vc-gallery__more-overlay {
    background: rgba(0, 0, 0, .35);
}
.vc-gallery__more-icon {
    font-size: 28px;
    opacity: .9;
}
.vc-gallery__more-count {
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}
.vc-gallery__more-label {
    font-size: 12px;
    font-weight: 400;
    opacity: .8;
    text-transform: lowercase;
}
.vc-gallery__hidden { display: none; }
.vc-section-title__count { font-weight: 400; color: var(--vc-text-muted); }

/* --- 23. Specialists Grid --- */
.vc-specialists__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.vc-specialist-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    align-items: flex-start;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.vc-specialist-card__photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}
.vc-specialist-card__img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--vc-bg-muted);
}
.vc-specialist-card__placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--vc-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--vc-primary);
}
.vc-specialist-card__info { flex: 1; min-width: 0; }
.vc-specialist-card__name { font-size: 15px; font-weight: 700; color: var(--vc-text); margin-bottom: 8px; }
.vc-specialist-card__meta { font-size: 13px; line-height: 1.5; margin-bottom: 3px; }
.vc-specialist-card__label { color: var(--vc-text-secondary); }
.vc-specialist-card__value { color: var(--vc-text); }
.vc-specialist-card__position { font-size: 13px; color: var(--vc-text-secondary); margin-bottom: 3px; }
.vc-specialist-card__experience { font-size: 13px; color: var(--vc-text-muted); }
.vc-specialist-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--vc-text);
    margin-top: 4px;
}
.vc-specialist-card__reviews { color: var(--vc-text-secondary); }
.vc-specialists__hidden { display: none; }
.vc-btn-show-all-specialists {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-top: 12px;
    margin-bottom: 8px;
    background: var(--vc-bg-muted);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vc-text);
    cursor: pointer;
}
.vc-btn-show-all-specialists:hover { background: var(--vc-border); text-decoration: none; }

/* --- 24. Prices Table --- */
.vc-prices__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--vc-border);
    gap: 12px;
}
.vc-prices__row:first-child { padding-top: 0; }
.vc-prices__row:last-child { border-bottom: none; }
.vc-prices__name { flex: 1; font-size: 15px; color: var(--vc-text); min-width: 0; }
.vc-prices__value { font-size: 15px; font-weight: 400; color: var(--vc-text); white-space: nowrap; flex-shrink: 0; }
.vc-prices__hidden { display: none; }
.vc-prices--expanded .vc-prices__hidden { display: flex; }
.vc-btn-show-all-prices {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-top: 12px;
    margin-bottom: 8px;
    background: var(--vc-bg-muted);
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--vc-text);
    cursor: pointer;
}
.vc-btn-show-all-prices:hover { background: var(--vc-border); text-decoration: none; }
.vc-section-title__count { color: var(--vc-text-muted); font-weight: 700; }

/* --- 26. Map Highlight Marker --- */
.vc-map-pin {
    width: 24px;
    height: 24px;
    background: var(--vc-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 138, 86, .35), 0 2px 6px rgba(0,0,0,.25);
}
.vc-map-pin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--vc-primary);
}

/* --- 27. Responsive Adjustments --- */
@media (min-width: 768px) {
    .vc-review { padding: 20px 0; }
    .vc-rating__score { font-size: 56px; }
    .vc-gallery__grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
    /* Reviews two-column layout */
    .vc-reviews__layout { flex-direction: row; gap: 32px; }
    .vc-reviews__sidebar { order: 0; width: 300px; flex-shrink: 0; }
    .vc-reviews-sidebar { position: sticky; top: 16px; }
}
@media (min-width: 992px) {
    .vet-layout { grid-template-columns: 380px 1fr; }
    .vc-card { padding: 24px; }
    .vc-card__tabs { margin: 20px -24px 20px; padding: 0 24px; }
    .vc-card__section::after { left: -24px; right: -32px; }
    .vc-card__aside { position: relative; padding-left: 32px; }
    .vc-card__aside::before {
        content: '';
        position: absolute;
        left: 0;
        top: -20px;
        bottom: -24px;
        width: 1px;
        background: var(--vc-border);
    }
    .vc-contacts-card { border: none; border-radius: 0; padding: 0; }
}
@media (min-width: 1200px) {
    .vet-layout { grid-template-columns: 420px 1fr; }
    .vc-gallery__grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 991px) {
    .vc-card__content { flex-direction: column; }
    .vc-card__aside { width: 100%; order: -1; }
    .vc-contacts-card { position: static; border: none; padding: 0; }
    .vc-btn--call-mobile { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 767px) {
    /* Payment methods — compact on mobile */
    .vc-payments { gap: 16px; }
    .vc-payment-card__icon { width: 56px; height: 56px; border-radius: 10px; }
    .vc-payment-card__icon img { width: 40px; }
    .vc-payment-card__label { font-size: 14px; }

    /* Specialists section title — full-width dividers above and below */
    #section-specialists .vc-section-title {
        border-bottom: 1px solid var(--vc-border);
        margin: 0 -16px 16px;
        padding: 16px 16px;
    }
    /* Specialists grid — full-width dividers */
    .vc-specialists__grid { grid-template-columns: 1fr; gap: 0; margin: 0 -16px; }
    .vc-specialist-card { border: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--vc-border); padding: 16px; }
    .vc-specialist-card:last-child { border-bottom: 1px solid var(--vc-border); }
    .vc-specialist-card__name { font-size: 16px; margin-bottom: 8px; }
    .vc-specialist-card__meta { font-size: 14px; }
    .vc-clinic-header__minimap { display: block; }
    .vc-clinic-header__logo { width: 45px; height: 45px; }
    .vc-clinic-header__logo-img { width: 45px; height: 45px; }
    .vc-clinic-header__title { font-size: 20px; }
    .vc-clinic-header__meta .vc-clinic-header__rating { display: none; }
    .vc-clinic-header__schedule-status { display: none; }
    .vc-clinic-header__phone-link { display: none; }
    .vc-specialist-card__photo { width: 100px; height: 100px; }
    .vc-specialist-card__img { width: 100px; height: 100px; border-radius: 8px; }
    .vc-specialist-card__placeholder { width: 100px; height: 100px; border-radius: 8px; }
    /* Show more button — outlined, slight rounding, centered, full-width divider below */
    .vc-btn-show-all-specialists,
    .vc-btn-show-all-prices {
        float: none;
        display: block;
        width: 100%;
        margin-top: 16px;
        padding: 12px 16px;
        background: var(--vc-bg-muted);
        border: 1px solid var(--vc-border);
        border-radius: 8px;
        text-align: center;
        font-size: 15px;
    }
    #section-specialists {
        padding-bottom: 20px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--vc-border);
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        margin-top: -20px;
    }
    #section-prices {
        padding-top: 20px;
        padding-bottom: 20px;
        margin-bottom: 0;
        border-bottom: 1px solid var(--vc-border);
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --- 28. Full-page layout (view.php): single page scroll, footer reachable --- */
.vet-layout.vet-layout--fullpage {
    min-height: auto;
}
.vet-layout--fullpage.vet-mobile--detail .vet-layout__main {
    overflow-y: visible;
}
@media (min-width: 768px) {
    .vet-layout.vet-layout--fullpage {
        height: auto;
        overflow: visible;
    }
    .vet-layout--fullpage .vet-layout__sidebar {
        position: sticky;
        top: 0;
        max-height: 100vh;
        overflow-y: auto;
        align-self: start;
    }
    .vet-layout--fullpage .vet-layout__main {
        height: auto;
    }
    .vet-layout--fullpage.vet-layout--detail .vet-layout__main {
        overflow-y: visible;
    }
}

/* --- 29. Clients Say --- */
.vc-clients-say {
    padding: 0;
    margin-top: 24px;
}
.vc-clients-say .vc-section-title {
    margin: 0 0 16px;
}
.vc-clients-say__content p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--vc-text);
}
.vc-clients-say__content p:last-child {
    margin-bottom: 0;
}

/* --- 30. Pagination in sidebar --- */
.vet-layout__sidebar .pagination {
    margin-top: 24px;
    margin-bottom: 24px;
}

