.dentoria-cenovnik-wrap { margin: 1.5em 0; }
.dentoria-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    line-height: 1;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    overflow: hidden;
}
.dentoria-cenovnik-wrap .dentoria-filter-btn .dentoria-cat-icon.dashicons,
.dentoria-cenovnik-wrap .dentoria-filter-btn .dashicons.dentoria-cat-icon { font-size: 20px !important; width: 22px !important; height: 22px !important; line-height: 22px !important; }
.dentoria-cat-icon-svg svg { display: block; width: 20px !important; height: 20px !important; max-width: 22px; max-height: 22px; }
.dentoria-cat-icon-img img { width: 20px !important; height: 20px !important; max-width: 22px; max-height: 22px; object-fit: contain; display: block; }
.dentoria-cenovnik-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: -6px -10px 1.75em -10px !important;
    padding: 6px 10px !important;
    align-items: center !important;
}
.dentoria-cenovnik-wrap .dentoria-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center;
    gap: 8px;
    padding: 0 20px !important;
    margin: 6px 10px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25 !important;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.dentoria-filter-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}
.dentoria-filter-btn.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
/* Desktop: wrapped pill grid - clean, modern */
@media (min-width: 769px) {
    .dentoria-cenovnik-filters {
        flex-wrap: wrap;
    }
}
/* Optional: horizontal scroll layout (use shortcode layout="scroll") */
@media (min-width: 769px) {
    .dentoria-filters-scroll.dentoria-cenovnik-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .dentoria-filters-scroll.dentoria-cenovnik-filters::-webkit-scrollbar { height: 6px; }
    .dentoria-filters-scroll.dentoria-cenovnik-filters::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
    .dentoria-filters-scroll.dentoria-cenovnik-filters::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
}
/* Mobile: hide desktop filters & list, show ONLY tab accordion */
@media (max-width: 768px) {
    .dentoria-cenovnik-filters,
    .dentoria-cenovnik-list,
    .dentoria-desktop-only { display: none !important; }
    .dentoria-mobile-tabs,
    .dentoria-mobile-only { display: block !important; }
}
@media (min-width: 769px) {
    .dentoria-mobile-only { display: none !important; }
    .dentoria-desktop-only { display: block !important; }
}
/* Mobile tabs: category = tab, content directly below */
.dentoria-mobile-tabs {
    display: none;
}
@media (max-width: 768px) {
    .dentoria-mobile-tabs {
        display: block;
    }
    .dentoria-tab-item {
        margin-bottom: 8px;
        border: 1px solid #e9ecef;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }
    .dentoria-tab-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        padding: 16px 20px;
        border: none;
        background: #f8f9fa;
        color: #2c3e50;
        font-size: 16px;
        font-weight: 500;
        text-align: left;
        cursor: pointer;
        transition: background 0.2s;
    }
    .dentoria-tab-trigger > span:first-child {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .dentoria-tab-trigger:hover { background: #e9ecef; }
    .dentoria-tab-trigger.active {
        background: #0d6efd;
        color: #fff;
    }
    .dentoria-tab-icon {
        display: inline-block;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid currentColor;
        margin-left: 8px;
        transition: transform 0.2s;
    }
    .dentoria-tab-trigger.active .dentoria-tab-icon {
        transform: rotate(180deg);
    }
    .dentoria-tab-panel {
        display: none;
        padding: 0;
        border-top: 1px solid #e9ecef;
    }
    .dentoria-tab-panel.active {
        display: block;
    }
    .dentoria-tab-panel .dentoria-cenovnik-table {
        margin: 0;
    }
    .dentoria-tab-panel {
        padding: 0 16px 16px;
    }
    .dentoria-tab-cat-block {
        padding: 16px 20px;
        margin-bottom: 12px;
        background: #f8f9fa;
        border-radius: 10px;
        border: 1px solid #e9ecef;
    }
    .dentoria-tab-cat-block:last-child { margin-bottom: 0; }
    .dentoria-tab-cat-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    /* Мобилен приказ: картa по ставка (услуга + цени) */
    .dentoria-mobile-tabs .dentoria-cenovnik-table {
        display: block;
        border: none;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table thead {
        display: none;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table tbody tr:last-child {
        border-bottom: none;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td {
        display: block;
        padding: 0;
        border: none;
        width: auto;
        min-width: 0;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-service {
        flex: 1 1 100%;
        font-size: 15px;
        line-height: 1.4;
        font-weight: 500;
        color: #1d2327;
        margin-bottom: 8px;
        padding: 0;
        text-align: left;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-price,
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-price-eur {
        display: inline-block;
        width: fit-content;
        font-size: 13px;
        font-weight: 600;
        color: #0d6efd;
        background: #e8f0fe;
        padding: 4px 8px 4px 6px;
        border-radius: 6px;
        margin-right: 10px;
        margin-top: 2px;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-price:has(+ td.dentoria-price-eur)::after {
        content: none;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-price-eur {
        margin-right: 0;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table td.dentoria-booking-cell {
        flex: 1 1 100%;
        margin-top: 10px;
    }
    .dentoria-mobile-tabs .dentoria-cenovnik-table .dentoria-booking-btn {
        width: 100%;
    }
}
.dentoria-cenovnik-category { margin-bottom: 2em; }
.dentoria-cat-title {
    font-size: 1.25em;
    margin-bottom: 0.5em;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dentoria-cenovnik-table {
    width: 100%;
    border-collapse: collapse;
}
.dentoria-cenovnik-table th,
.dentoria-cenovnik-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}
.dentoria-cenovnik-table th:first-child,
.dentoria-cenovnik-table td.dentoria-service {
    padding-left: 30px;
}
.dentoria-cenovnik-table th:nth-child(2),
.dentoria-cenovnik-table th:nth-child(3),
.dentoria-cenovnik-table td.dentoria-price,
.dentoria-cenovnik-table td.dentoria-price-eur {
    padding-right: 30px;
}
.dentoria-cenovnik-table th:nth-child(2),
.dentoria-cenovnik-table td.dentoria-price {
    white-space: nowrap;
    text-align: right;
    min-width: 100px;
}
.dentoria-cenovnik-table th:nth-child(3),
.dentoria-cenovnik-table td.dentoria-price-eur {
    white-space: nowrap;
    text-align: right;
    min-width: 75px;
}
.dentoria-cenovnik-table th {
    background: #f6f7f7;
    font-weight: 600;
}
.dentoria-cenovnik-table th.dentoria-th-nowrap {
    white-space: nowrap;
}
.dentoria-cenovnik-table tbody tr:hover {
    background: #f9f9f9;
}
.dentoria-price { white-space: nowrap; font-weight: 500; }
.dentoria-service-title { display: block; font-weight: 500; }
.dentoria-service-desc {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 400;
    margin-top: 4px;
}
.dentoria-booking-btn {
    padding: 8px 16px;
    background: #446084;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.dentoria-booking-btn:hover { background: #5a7a9e; }
.dentoria-th-booking { width: 1%; white-space: nowrap; }

/* Popup */
.dentoria-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.dentoria-booking-overlay.active {
    opacity: 1;
    visibility: visible;
}
#dentoria-booking-popup * {
    box-sizing: border-box !important;
}
#dentoria-booking-popup .dentoria-booking-modal,
#dentoria-booking-popup .dentoria-booking-form,
#dentoria-booking-popup input,
#dentoria-booking-popup textarea,
#dentoria-booking-popup label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
#dentoria-booking-popup .dentoria-booking-modal {
    position: relative !important;
    background: #fff !important;
    border-radius: 12px !important;
    max-width: 420px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 20px 24px !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2) !important;
}
@media (max-width: 480px) {
    #dentoria-booking-popup .dentoria-booking-modal { padding: 16px 18px !important; max-width: 100% !important; }
    #dentoria-booking-popup .dentoria-booking-form p { margin-bottom: 8px !important; }
    #dentoria-booking-popup .dentoria-booking-form input,
    #dentoria-booking-popup .dentoria-booking-form input[type="date"] { padding: 8px 10px !important; }
}
.dentoria-booking-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
}
#dentoria-booking-popup .dentoria-booking-close:hover { color: #1d2327 !important; }
#dentoria-booking-popup .dentoria-booking-title { margin: 0 0 8px !important; font-size: 1.25em !important; }
#dentoria-booking-popup .dentoria-booking-service {
    margin: 0 0 14px !important;
    padding: 10px 12px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #495057 !important;
}
#dentoria-booking-popup .dentoria-booking-form label { display: block !important; margin-bottom: 3px !important; font-size: 14px !important; font-weight: 500 !important; }
.dentoria-field-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
}
.dentoria-field-check {
    flex-shrink: 0 !important;
    width: 22px !important;
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    color: #28a745 !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
}
.dentoria-field-wrap.valid .dentoria-field-check {
    opacity: 1 !important;
}
.dentoria-field-check::before {
    content: "\2713" !important;
}
#dentoria-booking-popup .dentoria-booking-form input,
#dentoria-booking-popup .dentoria-booking-form input[type="date"],
#dentoria-booking-popup .dentoria-booking-form textarea {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}
#dentoria-booking-popup .dentoria-booking-form p { margin-bottom: 10px !important; }
#dentoria-booking-popup .dentoria-booking-form .dentoria-booking-submit-wrap {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    padding-top: 14px !important;
    border-top: 1px solid #eee !important;
}
#dentoria-booking-popup .dentoria-booking-form .required { color: #c00 !important; }
#dentoria-booking-popup .dentoria-booking-submit {
    padding: 12px 24px !important;
    background: #446084 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}
#dentoria-booking-popup .dentoria-booking-submit:hover { background: #5a7a9e !important; }
#dentoria-booking-popup .dentoria-booking-submit:disabled { opacity: 0.7 !important; cursor: not-allowed !important; }
.dentoria-booking-success {
    padding: 20px 0 10px !important;
    text-align: center !important;
}
.dentoria-booking-success-msg {
    font-size: 17px !important;
    color: #28a745 !important;
    margin: 0 0 20px !important;
    font-weight: 500 !important;
}
.dentoria-booking-success-close {
    padding: 12px 28px !important;
    background: #446084 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}
.dentoria-booking-success-close:hover {
    background: #5a7a9e !important;
    color: #fff !important;
}

/* ——— Понуди (Offers) ——— 1080×1350 пропорција на сите уреди */
.dentoria-offers-wrap { margin: 1.5em 0; }
.dentoria-offers-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.dentoria-offers-filter { display: flex; align-items: center; gap: 0.5rem; }
.dentoria-offers-filter-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}
.dentoria-offers-cat-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    min-width: 180px;
    background: #fff;
    cursor: pointer;
}
.dentoria-offers-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.dentoria-offers-pagination .dentoria-offers-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #374151;
    background: #fff;
}
.dentoria-offers-pagination .dentoria-offers-page:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.dentoria-offers-pagination .dentoria-offers-page.current {
    background: #446084;
    border-color: #446084;
    color: #fff;
    cursor: default;
}
.dentoria-offers-empty {
    color: #6b7280;
    margin: 1.5rem 0;
    font-size: 15px;
}
.dentoria-offers-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 769px) {
    .dentoria-offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.dentoria-offer-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #f0f0f0;
}
/* 1080×1350 = 4:5 (портрет); висината се пресметува пропорционално од ширината на екранот */
.dentoria-offer-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    aspect-ratio: 1080 / 1350;
    width: 100%;
}
.dentoria-offer-image-wrap {
    position: absolute;
    inset: 0;
    display: block;
}
.dentoria-offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.dentoria-offer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
}
.dentoria-offer-link:hover .dentoria-offer-overlay {
    background: rgba(0,0,0,0.4);
}
.dentoria-offer-link:hover .dentoria-offer-image {
    transform: scale(1.03);
}
.dentoria-offer-zakazi {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: #446084;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
.dentoria-offer-link:hover .dentoria-offer-zakazi {
    opacity: 1;
    visibility: visible;
}
.dentoria-offer-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #555;
    background: #e9ecef;
}
