/* Стили для страницы карты мастерских */
body {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.main-content {
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    grid-row: 3;
    position: relative;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 1000;
}

.map-crosshair::before,
.map-crosshair::after {
    content: '';
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный черный */
}

/* Стиль для маркера кластера */
.cluster-marker {
    width: 40px;
    height: 40px;
    background-color: #1e98ff;
    border-radius: 50%;
    outline: 5px dashed white;
    outline-offset: 0;
    box-shadow: 0 0 10px black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Стиль для одиночного маркера */
.single-marker {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 8px;
    outline: 3px solid #4CAF50;
    outline-offset: 0;
    box-shadow: 0 0 10px black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-marker.noModerate {
    outline-color: #c62828;
}

/* Иконка внутри маркера */
.single-marker svg {
    width: 30px;
    height: 30px;
}

.map-crosshair::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.map-crosshair::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ========== НОВЫЕ СТИЛИ ДЛЯ ANDROID-ПОДОБНОГО ИНТЕРФЕЙСА ========== */

/* Панель поиска */
.map-search-card {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 8px 16px;
    background-color: #f0f0f0;
}

.map-search-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-search-icon {
    color: #1e98ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-search-icon svg {
    width: 24px;
    height: 24px;
}

.map-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 0;
    background: transparent;
    color: #333;
}

.map-search-input::placeholder {
    color: #888;
}

.map-filter-button {
    background: none;
    border: none;
    color: #1e98ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
}

.map-filter-button svg {
    width: 24px;
    height: 24px;
}

.map-search-button {
    background: #1e98ff;
    border: none;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px 12px;
    transition: background-color 0.2s;
}

.map-search-button:hover {
    background: #0d8bf0;
}

.map-search-button svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.map-search-button-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* Кнопки zoom */
.map-zoom-buttons {
    position: absolute;
    top: 100px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.from_map {
    opacity: 0.8;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.5);
}

.map-added-buttons {
    position: absolute;
    top: 100px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.map-zoom-button {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #333333d5;
    border: none;
    color: #ccc;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.1s;
}

.map-zoom-button:hover {
    background: #0d8bf0;
}

.map-zoom-button:active {
    transform: scale(0.95);
}

.map-zoom-button svg {
    width: 24px;
    height: 24px;
}

/* Bottom sheet */
.map-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 70vh;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.map-bottom-sheet-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
}

.map-bottom-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.map-bottom-sheet-title {
    font-weight: bold;
    font-size: 18px;
    margin-left: 16px;
    flex: 1;
    text-align: center;
}

.map-bottom-sheet-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.map-bottom-sheet-content {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(70vh - 80px);
}

/* Элемент мастерской */
.workshop-item {
    margin-bottom: 16px;
}

.workshop-item-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.workshop-item-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.workshop-item-logo {
    flex-shrink: 0;
}

.workshop-item-logo img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
}

.workshop-item-details {
    flex: 1;
    min-width: 0; /* Для корректного обрезания текста */
}

.workshop-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.workshop-item-name {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workshop-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.workshop-item-services {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workshop-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.workshop-item-address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workshop-item-address svg {
    flex-shrink: 0;
    color: #1e98ff;
}

.workshop-item-distance {
    font-weight: bold;
    color: #1e98ff;
    white-space: nowrap;
    margin-left: 8px;
}

.workshop-item-actions {
    display: flex;
    gap: 8px;
}

.workshop-item-call,
.workshop-item-details {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

.workshop-item-call {
    background: #1e98ff;
    color: white;
}

.workshop-item-call:hover {
    background: #0d8bf0;
}

.workshop-item-details {
    background: #f0f0f0;
    color: #333;
}

.workshop-item-details:hover {
    background: #e0e0e0;
}

/* Кнопка "На карте" с иконкой маркера и синим фоном */
.workshop-item-details.workshop-item-call {
    background: #1e98ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.workshop-item-details.workshop-item-call:hover {
    background: #0d8bf0;
}

/* Прогресс-бар */
.map-progress-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    background: rgba(255,255,255,0.9);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.map-progress-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e98ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Скрытие bottom sheet по умолчанию */
.map-bottom-sheet-hidden,
.hidden {
    display: none !important;
}

/* Ограничение ширины на больших экранах ( > 800px ) */
@media (min-width: 801px) {
    .map-search-card {
        background-color: #f0f0f0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 510px;
        right: auto;
    }
    
    .map-bottom-sheet {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 510px;
        right: auto;
        border-radius: 12px;
        box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
    }
    
    .map-bottom-sheet-header {
        border-radius: 12px 12px 0 0;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 510px) {
    .map-search-card {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 6px 12px;
        background-color: #f0f0f0;
    }
    
    .map-zoom-buttons {
        top: 80px;
        right: 8px;
    }

    .map-added-buttons {
        top: 80px;
        left: 8px;
    }
    
    .map-zoom-button {
        width: 44px;
        height: 44px;
    }
    
    .map-bottom-sheet {
        max-height: 80vh;
    }
    
    .map-bottom-sheet-content {
        max-height: calc(80vh - 80px);
    }
    
    .workshop-item-card {
        flex-direction: column;
        gap: 12px;
    }
    
    .workshop-item-logo {
        align-self: center;
    }
    
    .workshop-item-logo img {
        width: 80px;
        height: 80px;
    }
}

/* ========== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ДОБАВЛЕНИЯ МАСТЕРСКОЙ ========== */
.workshop-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.workshop-modal-container {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.workshop-modal-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workshop-modal-card input {
    max-width: none !important;
}

.workshop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background-color: #1e88e5;
    color: white;
}

.workshop-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.workshop-modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.workshop-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.workshop-modal-content {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

#workshopForm {
    padding: 8px 16px;
}

.workshop-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.workshop-logo-preview img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.workshop-logo-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.workshop-logo-button {
    padding: 10px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s;
}

.workshop-logo-button:hover {
    background-color: #f0f0f0;
}

.workshop-input-group {
    margin-bottom: 8px;
}

.workshop-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.workshop-input-group label::after {
    content: " *";
    color: #d32f2f;
    opacity: 0.8;
}

.workshop-input-group:has(input:not([required])) label::after,
.workshop-input-group:has(textarea:not([required])) label::after {
    content: "";
}

.workshop-input-wrapper {
    position: relative;
}

.workshop-input-wrapper input,
.workshop-input-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.workshop-input-wrapper input:focus,
.workshop-input-wrapper textarea:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.workshop-input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

.workshop-input-error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 4px;
    /* min-height: 20px; */
}

.workshop-coordinates-row {
    display: flex;
    gap: 16px;
}

.workshop-input-group.half {
    flex: 1;
}

.workshop-geocode-button {
    width: 100%;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.workshop-geocode-button:hover {
    background-color: #e0e0e0;
}

.workshop-api-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 20px 16px 0px 16px;
    display: none;
}

.workshop-modal-actions {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.workshop-modal-button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.workshop-modal-button-cancel {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
}

.workshop-modal-button-cancel:hover {
    background-color: #f0f0f0;
}

.workshop-modal-button-save {
    background-color: #1e88e5;
    color: white;
}

.workshop-modal-button-save:hover {
    background-color: #1565c0;
}

/* Стили для блока модерации */
.workshop-moderation-block {
    margin: 20px 16px 0px 16px;
    padding: 16px;
    border-radius: 8px;
    background-color: #FFF3E0;
    border: 1px solid #FFB74D;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workshop-moderation-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.workshop-moderation-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.workshop-moderation-text {
    flex: 1;
}

.workshop-moderation-text strong {
    display: block;
    font-size: 16px;
    color: #E65100;
    margin-bottom: 4px;
}

.workshop-moderation-text p {
    margin: 0;
    font-size: 14px;
    color: #5D4037;
    line-height: 1.4;
}

.workshop-moderation-button {
    align-self: center;
    padding: 10px 20px;
    background-color: #FF9800;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.workshop-moderation-button:hover {
    background-color: #F57C00;
}

/* Контейнер для кнопки редактирования */
.workshop-edit-button-container {
    margin: 20px 16px;
    display: flex;
    justify-content: center;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .workshop-modal-container {
        max-height: 95vh;
        padding: 0;
    }

    .workshop-modal-content {
        padding: 16px;
    }

    .workshop-logo-section {
        flex-direction: column;
        text-align: center;
    }

    .workshop-coordinates-row {
        flex-direction: column;
        gap: 12px;
    }

    .workshop-modal-actions {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ПРОСМОТРА МАСТЕРСКОЙ ========== */
.workshop-modal-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    margin-right: 12px;
}

.workshop-modal-back:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.workshop-detail-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    padding: 0 16px;
}

.workshop-detail-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.workshop-detail-tab.active {
    color: #1e88e5;
    border-bottom-color: #1e88e5;
}

.workshop-detail-tab-content {
    display: none;
    padding: 16px;
}

.workshop-detail-tab-content.active {
    display: block;
}

.workshop-view-wrapper {
    padding: 4px 6px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 4px;
    color: #333;
}

.workshop-view-wrapper h4 {
    margin: 0;
    font-weight: 500;
}

.workshop-view-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    word-break: break-word;
    margin: 0px; 
    list-style-type: none;
    padding-left: 4px;
}

.workshop-no-data {
    text-align: center;
    padding: 40px 16px;
    color: #999;
    font-size: 16px;
}

.workshop-minimap-card {
    margin: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workshop-minimap-container {
    display: flex;
    height: 120px;
}

.workshop-minimap-placeholder {
    width: 120px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.workshop-minimap-info {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.workshop-minimap-address {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.workshop-minimap-distance {
    font-size: 13px;
    color: #666;
}

.workshop-minimap-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #1e88e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
}

.workshop-minimap-button:hover {
    background-color: #1565c0;
}

/* Стили для Android-подобной информации о мастерской */
.workshop-info-header {
    display: flex;
    align-items: center;
    color: #333;
}

.workshop-info-header .workshop-item-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    border: 1px solid #e0e0e0;
}

.workshop-info-title {
    flex: 1;
    display: flex;
    flex-direction: row;
}

.workshop-info-title .workshop-item-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.workshop-item-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.workshop-item-star {
    color: #FFC107;
    font-size: 16px;
}

.workshop-item-star.empty {
    color:#ccc;
}

.workshop-info-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.workshop-info-field {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.workshop-info-field:last-child {
    border-bottom: none;
}

.workshop-info-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #1e88e5;
    min-width: 24px;
    text-align: center;
}

.workshop-info-moderation {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #FFF3E0;
    border-radius: 8px;
    border: 1px solid #FFB74D;
    margin: 16px 0;
}

.workshop-info-moderation-icon {
    margin-right: 8px;
    font-size: 20px;
    color: #F57C00;
}

.workshop-info-call-icon {
    margin-right: 8px;
}

/* Адаптивность для мини-карты */
@media (max-width: 600px) {
    .workshop-minimap-container {
        flex-direction: column;
        height: auto;
    }
    .workshop-minimap-placeholder {
        width: 100%;
        height: 100px;
    }
}

/* Переопределение глобальных стилей label для модального окна мастерской */
#workshopModalOverlay .workshop-input-group label,
.workshop-modal-container .workshop-input-group label,
#workshopForm .workshop-input-group label {
    position: static !important;
    left: auto !important;
    top: auto !important;
    pointer-events: auto !important;
    color: #333 !important;
    font-size: inherit !important;
    transition: none !important;
    -moz-transition: none !important;
    -webkit-transition: none !important;
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Убираем звёздочки для необязательных полей (уже есть стили выше, но на всякий случай) */
#workshopModalOverlay .workshop-input-group:has(input:not([required])) label::after,
#workshopModalOverlay .workshop-input-group:has(textarea:not([required])) label::after {
    content: "" !important;
}

.workshop-service-group p {
    margin: 0 6px;
}

/* Стили для списка отзывов */
.workshop-review-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.workshop-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.workshop-review-author {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

.workshop-review-date {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.workshop-review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.workshop-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.workshop-review-edited {
    font-size: 12px;
    color: #888;
    font-style: italic;
    text-align: right;
}

.loading-reviews,
.no-reviews,
.error-reviews {
    text-align: center;
    padding: 24px;
    font-size: 16px;
    color: #666;
}

.error-reviews {
    color: #d32f2f;
}

/* Адаптивность */
@media (max-width: 600px) {
    .workshop-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .workshop-review-date,
    .workshop-review-rating {
        align-self: flex-start;
    }
}

/* Стили для диалога добавления отзыва */
.rating-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-star {
    font-size: 32px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.rating-star.active {
    color: #ffc107;
}

.rating-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.workshop-input-counter {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}