/* Стили страницы события афиши. Вынесены из inline <style> шаблона
   templates/event-template.html — чтобы кэшировались между страницами. */
        /* Event Detail Page */
        body {
            background: #000;
            color: #fff;
            font-family: 'Montserrat', sans-serif;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Breadcrumbs */
        .breadcrumbs {
            padding: 20px 0;
            font-size: 14px;
            color: #999;
        }
        
        .breadcrumbs a {
            color: #999;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .breadcrumbs a:hover {
            color: #fff;
        }
        
        .breadcrumbs span {
            margin: 0 8px;
        }
        
        /* Page Title */
        .event-page-title {
            font-size: 36px;
            font-weight: 800;
            margin: 20px 0 40px;
            line-height: 1.2;
            text-transform: uppercase;
        }
        
        .mobile-title {
            display: none;
        }
        
        /* Main Content Block */
        .event-main-block {
            display: grid;
            grid-template-columns: 400px 1fr;
            gap: 40px;
            margin-bottom: 20px;
        }
        
        .event-image-container {
            width: 100%;
        }
        
        .event-image-container img {
            width: 100%;
            height: auto;
            border-radius: 24px;
            display: block;
        }
        
        .event-actions-container {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        /* Buttons - Dark Style */
        .btn-event {
            background: #1a1a1a;
            color: #fff;
            border: none;
            padding: 16px 24px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            text-decoration: none;
            cursor: pointer;
            font-family: 'Montserrat', sans-serif;
            transition: background 0.2s;
            display: block;
            width: 100%;
        }
        
        .btn-event:hover {
            background: #2a2a2a;
        }
        
        .btn-event:active {
            background: #0a0a0a;
        }
        
        /* White button for "Buy Ticket" */
        .btn-buy-ticket {
            background: #fff;
            color: #000;
        }
        
        .btn-buy-ticket:hover {
            background: #f0f0f0;
        }
        
        .btn-buy-ticket:active {
            background: #e0e0e0;
        }
        
        /* Past Event Badge */
        .past-event-badge {
            background: #fff;
            color: #000;
            padding: 12px 24px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            text-align: center;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        
        .past-event-badge svg {
            width: 24px;
            height: 24px;
            stroke: #000;
        }
        
        /* Feedback Form for Past Events */
        .feedback-section-event {
            background: #1a1a1a;
            border-radius: 16px;
            padding: 30px;
            margin-top: 40px;
            margin-bottom: 40px;
        }
        
        .feedback-section-event h2 {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .feedback-section-event .subtitle {
            color: #999;
            margin-bottom: 25px;
            font-size: 14px;
        }
        
        .feedback-form-event .form-group {
            margin-bottom: 20px;
        }
        
        .feedback-form-event label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #ccc;
        }
        
        .feedback-form-event input,
        .feedback-form-event textarea {
            width: 100%;
            padding: 14px 16px;
            background: #0d0d0d;
            border: 1px solid #333;
            border-radius: 8px;
            color: #fff;
            font-size: 16px;
            font-family: 'Montserrat', sans-serif;
        }
        
        .feedback-form-event input:focus,
        .feedback-form-event textarea:focus {
            outline: none;
            border-color: #667eea;
        }
        
        .feedback-form-event textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .feedback-submit-btn-event {
            background: #000;
            color: #fff;
            border: none;
            padding: 16px 32px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            font-family: 'Montserrat', sans-serif;
            transition: background 0.3s, color 0.3s;
        }
        
        .feedback-submit-btn-event:hover {
            background: #fff;
            color: #000;
        }
        
        .privacy-checkbox-wrapper-event {
            display: none;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .privacy-checkbox-wrapper-event.visible {
            display: flex;
        }
        
        .privacy-checkbox-wrapper-event input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 2px;
        }
        
        .privacy-checkbox-wrapper-event label {
            font-size: 13px;
            color: #999;
            margin-bottom: 0;
        }
        
        .privacy-checkbox-wrapper-event a {
            color: #fff;
        }
        
        .phone-group-event {
            display: none;
            margin-bottom: 20px;
        }
        
        .phone-group-event.visible {
            display: block;
        }
        
        .feedback-success-event {
            display: none;
            text-align: center;
            padding: 40px;
        }
        
        .feedback-success-event.active {
            display: block;
        }
        
        .feedback-success-event .success-icon {
            font-size: 48px;
            margin-bottom: 20px;
        }
        
        .feedback-form-event.hidden {
            display: none;
        }
        
        /* Info Block - Compact version before buttons */
        .event-info-compact {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
        }
        
        .event-info-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
        }
        
        .event-info-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .event-info-label {
            font-size: 11px;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }
        
        .event-info-value {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
        }
        
        /* Description Block */
        .event-description {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 40px;
        }
        
        .event-description h2 {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
        }
        
        .event-description p {
            line-height: 1.8;
            color: #ccc;
            font-size: 16px;
            white-space: pre-line;
        }
        
        /* Additional Buttons Block */
        .event-secondary-actions {
            display: flex;
            gap: 15px;
            margin-bottom: 40px;
        }
        
        .btn-secondary {
            flex: 1;
        }
        
        /* Location Block */
        .event-location-block {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 40px;
            margin-bottom: 60px;
        }
        
        .event-location-block h2 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 30px;
        }
        
        .address {
            margin-bottom: 30px;
        }
        
        .address {
            font-size: 16px;
            color: #ccc;
        }
        
        .address strong {
            color: #fff;
            font-size: 18px;
            margin-right: 10px;
        }
        
        .map-container {
            margin-bottom: 30px;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .map-container iframe {
            width: 100%;
            height: 400px;
            border: none;
            filter: grayscale(100%);
            pointer-events: none;
        }
        
        .taxi-button-wrapper {
            text-align: center;
            margin-top: 20px;
        }
        
        .taxi-button {
            display: inline-block;
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #000;
            border: none;
            padding: 12px 30px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .taxi-button:hover {
            transform: translateY(-2px);
        }
        
        /* Related Events Section */
        .related-events {
            margin-top: 80px;
            padding-bottom: 60px;
        }
        
        .related-events h2 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 40px;
            text-align: center;
        }
        
        /* Related Events - Mobile First (Horizontal Cards) */
        .related-events .events-grid {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .related-events .event-card {
            background: #1a1a1a;
            border-radius: 12px;
            border: 1px solid #333;
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 0.75rem;
            gap: 0.75rem;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        
        .related-events .event-card:hover {
            background: #222;
        }
        
        .related-events .event-card:active {
            transform: scale(0.98);
        }
        
        .related-events .event-image {
            width: 80px;
            height: 80px;
            min-width: 80px;
            flex-shrink: 0;
            border-radius: 8px;
            overflow: hidden;
            background: #222;
            position: relative;
        }
        
        .related-events .event-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .related-events .event-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            min-width: 0;
        }
        
        .related-events .event-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            line-height: 1.3;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .related-events .event-date {
            font-size: 13px;
            color: #999;
        }
        
        /* Desktop: Grid 3 колонки с вертикальными карточками */
        @media (min-width: 769px) {
            .related-events .events-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 1.5rem;
            }
            
            .related-events .event-card {
                flex-direction: column;
                align-items: stretch;
                padding: 0;
                cursor: pointer;
                overflow: hidden;
            }
            
            .related-events .event-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
            }
            
            .related-events .event-image {
                width: 100%;
                height: 0;
                padding-bottom: 100%;
                min-width: auto;
                border-radius: 0;
                position: relative;
            }
            
            .related-events .event-image img {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
            
            .related-events .event-content {
                padding: 1rem;
                text-align: center;
                gap: 0.5rem;
            }
            
            .related-events .event-title {
                font-size: 20px;
                font-weight: 700;
                white-space: normal;
                overflow: visible;
                text-overflow: unset;
                line-height: 1.4;
            }
            
            .related-events .event-date {
                font-size: 16px;
            }
        }
        
        /* Modal Styles */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 9999;
            display: none;
        }
        
        .modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
        }
        
        .modal-content {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 500px;
            width: 90%;
            background: #1a1a1a;
            padding: 40px;
            border-radius: 12px;
            z-index: 10000;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 30px;
            cursor: pointer;
            color: #999;
            transition: color 0.3s;
            line-height: 1;
        }
        
        .modal-close:hover {
            color: #fff;
        }
        
        .modal-content h2 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #fff;
        }
        
        .modal-content p {
            font-size: 16px;
            line-height: 1.6;
            color: #ccc;
            margin-bottom: 30px;
        }
        
        .modal-actions {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .modal-actions .btn-event {
            border: 1px solid #444;
        }
        
        /* Mobile Breadcrumbs */
        .breadcrumbs-mobile {
            display: none;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            /* Hide desktop breadcrumbs and title */
            .breadcrumbs {
                display: none;
            }
            
            .event-page-title {
                display: none;
            }
            
            /* Show mobile title */
            .mobile-title {
                display: block;
                font-size: 24px;
                font-weight: 800;
                margin: 30px 0 20px 0;
                text-align: center;
                text-transform: uppercase;
                line-height: 1.2;
            }
            
            /* Show mobile breadcrumbs at bottom */
            .breadcrumbs-mobile {
                display: block;
                padding: 30px 0;
                font-size: 12px;
                color: #999;
                text-align: center;
            }
            
            .breadcrumbs-mobile a {
                color: #999;
                text-decoration: none;
            }
            
            .breadcrumbs-mobile span {
                margin: 0 6px;
            }
            
            .container {
                padding: 0 20px;
            }
            
            .event-main-block {
                grid-template-columns: 1fr;
                gap: 20px;
                margin-top: 50px;
            }
            
            .event-image-container {
                order: 1;
            }
            
            .event-actions-container {
                order: 2;
            }
            
            .event-info-compact {
                margin-top: 15px;
            }
            
            .event-info-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .event-secondary-actions {
                flex-direction: column;
            }
            
            .event-location-block {
                padding: 20px;
            }
            
            .map-container iframe {
                height: 300px;
            }
            
            .taxi-button {
                display: block;
                width: 100%;
                text-align: center;
            }
            
            .modal-content {
                width: 90%;
                padding: 30px 20px;
            }
            
            .related-events .events-grid {
                gap: 1.5rem;
            }
        }
