/* ===== ОСНОВНЫЕ СТИЛИ ===== */
.mv-shops {
    margin: 0;
    padding: 0;
    width: 100%;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.mv-container-full {
    width: 100%;
    max-width: 100% !important;
    padding: 24px 32px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* ===== СЕТКА МАГАЗИНОВ ===== */
.mv-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin: 0 0 48px 0;
    align-items: stretch;
}

/* ===== КАРТОЧКА МАГАЗИНА С ВЫРАВНИВАНИЕМ ===== */
.mv-shop-card {
    background: white;
    border: 1px solid #eaeef2;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mv-shop-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #d0d7de;
}

/* Основное фото */
.mv-shop-main-photo {
    position: relative;
    height: 200px;
    background: #f6f8fa;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
}

.mv-shop-main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.mv-shop-card:hover .mv-shop-main-photo img {
    transform: scale(1.02);
}

/* Счетчик дополнительных фото */
.mv-photo-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    border: 2px solid white;
    z-index: 5;
}

.mv-photo-counter:hover {
    background: #f2c94c;
    color: #1f2a3a;
}

.mv-photo-counter span {
    line-height: 1;
}

/* Контент */
.mv-shop-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mv-shop-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.mv-shop-desc {
    font-size: 14px;
    color: #54656f;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeef2;
}

/* Информация - этот блок будет растягиваться */
.mv-shop-info {
    margin-bottom: 16px;
    flex: 1;
}

.mv-info-row {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.mv-info-label {
    font-size: 13px;
    color: #7e8c9e;
    font-weight: 400;
    min-width: 70px;
}

.mv-info-value {
    font-size: 14px;
    color: #1f2a3a;
    font-weight: 500;
    word-break: break-word;
}

.mv-info-metro {
    font-size: 13px;
    color: #0284c7;
    background: #e5f2ff;
    padding: 2px 8px;
    border-radius: 16px;
    margin-left: 4px;
    white-space: nowrap;
}

.mv-info-phone {
    font-size: 14px;
    color: #1f2a3a;
    font-weight: 500;
    text-decoration: none;
    word-break: break-word;
}

.mv-info-phone:hover {
    color: #f2c94c;
}

.mv-info-hours {
    font-size: 14px;
    color: #1f2a3a;
    font-weight: 500;
    white-space: pre-line;
}

/* ===== СТАТУС РАБОТЫ С ТОЧКОЙ (как в Google) ===== */
.mv-working-status {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.mv-working-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1f2a3a;
    transition: color 0.2s;
    padding: 2px 0;
    flex-wrap: wrap;
}

.mv-working-badge:hover {
    color: #000;
}

/* Маленькая точка */
.mv-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mv-status-dot.open {
    background: #34a853;
    box-shadow: 0 0 5px rgba(52, 168, 83, 0.3);
}

.mv-status-dot.closed {
    background: #ea4335;
    box-shadow: 0 0 5px rgba(234, 67, 53, 0.3);
}

/* Текст статуса */
.mv-status-message {
    font-weight: 500;
}

.mv-status-until,
.mv-status-next {
    color: #5f6368;
    font-size: 13px;
    margin-left: 4px;
    font-weight: normal;
}

/* Детальное расписание */
.mv-schedule-detailed {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    width: 100%;
    animation: fadeIn 0.2s ease;
    border: 1px solid #eaeef2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mv-schedule-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.mv-schedule-table tr {
    border-bottom: 1px solid #eaeef2;
}

.mv-schedule-table tr:last-child {
    border-bottom: none;
}

.mv-schedule-table td {
    padding: 8px 0;
}

.mv-schedule-day {
    width: 40px;
    color: #5f6368;
    font-weight: 500;
}

.mv-schedule-time {
    color: #1f2a3a;
    text-align: right;
}

/* ===== ТЕГИ ОСОБЕННОСТЕЙ ===== */
.mv-info-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mv-feature-tag {
    font-size: 12px;
    color: #54656f;
    background: #f6f8fa;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #eaeef2;
}

/* ===== КНОПКИ КАРТ - фиксированные внизу ===== */
.mv-shop-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-shrink: 0;
}

.mv-action-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #d0d7de;
    color: #1f2a3a;
}

.mv-action-btn:hover {
    background: #f6f8fa;
    border-color: #9aa9b9;
}

.mv-action-yandex {
    background: #f2c94c;
    border-color: #f2c94c;
    color: #1f2a3a;
}

.mv-action-yandex:hover {
    background: #ebbb2c;
    border-color: #ebbb2c;
}

/* ===== КНОПКА ПОДРОБНЕЕ И ПЛЕЙСХОЛДЕР ===== */
.mv-shop-detail-link {
    margin-top: 16px;
    text-align: right;
    border-top: 1px solid #eaeef2;
    padding-top: 16px;
    flex-shrink: 0;
    min-height: 53px;
    box-sizing: border-box;
}

.mv-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: gap 0.2s;
    height: 37px;
}

.mv-detail-link:hover {
    gap: 8px;
    color: #1557b0;
}

/* Плейсхолдер для выравнивания */
.mv-detail-placeholder {
    height: 37px;
    width: 100%;
}

/* ===== FAQ ===== */
.mv-faq-section {
    max-width: 900px;
    margin: 48px auto 0;
    padding: 32px 0 0;
    border-top: 1px solid #eaeef2;
}

.mv-faq-main-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 24px 0;
    letter-spacing: -0.01em;
    text-align: center;
}

.mv-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mv-faq-item {
    border: 1px solid #eaeef2;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.mv-faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2a3a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.2s;
}

.mv-faq-question:hover {
    background: #f6f8fa;
}

.mv-faq-question.active {
    background: #f6f8fa;
}

.mv-faq-icon {
    font-size: 20px;
    color: #7e8c9e;
    font-weight: 400;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.mv-faq-answer-content {
    padding: 0 20px 20px 20px;
}

.mv-faq-answer p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #54656f;
    line-height: 1.6;
}

.mv-faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
    font-size: 14px;
    color: #54656f;
    line-height: 1.6;
}

.mv-faq-answer li {
    margin-bottom: 5px;
}

.mv-faq-link {
    color: #1f2a3a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mv-faq-link:hover {
    color: #f2c94c;
}

/* ===== УЛУЧШЕННЫЕ МОДАЛЬНЫЕ ОКНА ===== */

/* Затемнение фона */
.mv-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.mv-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mv-gallery-modal-content {
    max-width: 100vw;
    max-height: 100vh;
}

/* Шапка модалки с крестиком и счетчиком */
.mv-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.mv-modal-close {
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    line-height: 1;
}

.mv-modal-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.mv-modal-counter {
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    pointer-events: none;
    font-weight: 500;
}

/* Галерея в модалке */
.mv-gallery-swiper {
    width: 100%;
    height: 100%;
}

.mv-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-gallery-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mv-gallery-nav-prev,
.mv-gallery-nav-next {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.mv-gallery-nav-prev:hover,
.mv-gallery-nav-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.mv-gallery-nav-prev:after,
.mv-gallery-nav-next:after {
    font-size: 18px;
}

.mv-gallery-pagination {
    bottom: 20px !important;
}

.mv-gallery-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.mv-gallery-pagination .swiper-pagination-bullet-active {
    background: #f2c94c;
    opacity: 1;
}

/* Анимация для модалки */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mv-modal {
    animation: modalFadeIn 0.2s ease;
}

/* ===== SEO-БЛОК ===== */
.mv-seo-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #eaeef2;
    background: #ffffff;
}

.mv-seo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mv-seo-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.mv-seo-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 16px 0;
}

.mv-seo-content {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

.mv-seo-intro {
    font-size: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eaeef2;
}

/* Список адресов */
.mv-seo-addresses {
    margin: 24px 0;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eaeef2;
}

.mv-address-list {
    columns: 2;
    column-gap: 30px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.mv-address-list li {
    padding: 8px 0 8px 20px;
    break-inside: avoid;
    font-size: 14px;
    color: #1f2a3a;
    position: relative;
}

.mv-address-list li:before {
    content: "•";
    color: #f2c94c;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 4px;
    top: 7px;
}

/* ===== КАТЕГОРИИ БЕЗ ТОЧЕК ===== */
.mv-seo-categories {
    margin: 32px 0;
}

.mv-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.mv-category-group {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #eaeef2;
}

.mv-category-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2a3a;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f2c94c;
}

.mv-category-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mv-category-item {
    font-size: 14px;
    line-height: 1.4;
    color: #54656f;
}

.mv-category-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.mv-category-link:hover {
    text-decoration: underline;
    color: #1557b0;
}

.mv-category-desc {
    color: #54656f;
    margin-left: 4px;
}

/* Блок доставки */
.mv-seo-delivery {
    background: #f0f7ff;
    border-left: 4px solid #1a73e8;
    padding: 20px;
    border-radius: 12px;
    margin: 32px 0 24px;
}

.mv-seo-delivery p {
    margin: 8px 0;
    font-size: 15px;
}

.mv-seo-delivery p:first-child {
    margin-top: 0;
}

.mv-seo-delivery p:last-child {
    margin-bottom: 0;
}

.mv-seo-delivery a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.mv-seo-delivery a:hover {
    text-decoration: underline;
}

/* Примечание */
.mv-seo-note {
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px dashed #9aa9b9;
}

.mv-seo-note p {
    margin: 0;
    font-size: 14px;
    color: #5f6368;
    font-style: italic;
}

/* ===== АЛЕРТ ===== */
.mv-alert {
    padding: 60px 20px;
    text-align: center;
    background: #f6f8fa;
    border-radius: 16px;
    color: #54656f;
    font-size: 16px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .mv-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mv-address-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .mv-container-full {
        padding: 16px 20px !important;
    }
    
    .mv-shops-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mv-shop-actions {
        flex-direction: column;
    }
    
    .mv-faq-section {
        padding: 24px 0 0;
    }
    
    .mv-seo-title {
        font-size: 22px;
    }
    
    .mv-categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .mv-seo-delivery {
        padding: 16px;
    }
    
    .mv-category-item {
        font-size: 13px;
    }
    
    /* Мобильная навигация галереи */
    .mv-gallery-nav-prev,
    .mv-gallery-nav-next {
        width: 36px;
        height: 36px;
    }
    
    .mv-gallery-nav-prev:after,
    .mv-gallery-nav-next:after {
        font-size: 16px;
    }
    
    .mv-modal-header {
        padding: 12px 16px;
    }
    
    .mv-modal-close {
        width: 44px;
        height: 44px;
        font-size: 36px;
    }
    
    .mv-modal-counter {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .mv-working-badge {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mv-shop-content {
        padding: 16px;
    }
    
    .mv-info-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .mv-info-label {
        min-width: auto;
    }
    
    .mv-faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .mv-photo-counter {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .mv-schedule-table {
        font-size: 13px;
    }
    
    .mv-schedule-day {
        width: 35px;
    }
    
    .mv-detail-link {
        width: 100%;
        justify-content: flex-end;
    }
    
    .mv-seo-title {
        font-size: 20px;
    }
    
    .mv-category-group {
        padding: 12px;
    }
    
    .mv-category-item {
        font-size: 12px;
    }
    
    /* Еще более удобное закрытие на маленьких экранах */
    .mv-modal-close {
        width: 48px;
        height: 48px;
        font-size: 40px;
    }
    
    .mv-modal-header {
        padding: 8px 12px;
    }
}

/* Поддержка свайпа для закрытия (подсказка) */
.mv-modal::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: none;
}

@media (max-width: 768px) {
    .mv-modal::after {
        display: block;
    }
}