/* Современный дизайн посадочной страницы в стиле React приложения */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Скрываем атрибуцию Leaflet */
.leaflet-control-attribution {
    display: none !important;
}

:root {
    --brand-bg: #1a103c;
    --brand-card: #2a1f50;
    --brand-accent: #fbbf24;
    --brand-text: #ffffff;
    --brand-subtext: #9ca3af;
    --brand-success: #4ade80;
    --brand-blue: #3b82f6;
    --brand-red: #ef4444;
    --brand-purple: #6366f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Dynamic Background Accents */
.background-accents {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.accent-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.accent-purple {
    top: -10%;
    right: -10%;
    width: 384px;
    height: 384px;
    background: #9333ea;
}

.accent-blue {
    bottom: 20%;
    left: -10%;
    width: 288px;
    height: 288px;
    background: #2563eb;
}

/* Header */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem;
    background: transparent;
}

.page-header.scrolled {
    background: rgba(26, 16, 60, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.back-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.parking-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 222, 128, 0.2);
    color: var(--brand-success);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.active {
    background: var(--brand-success);
}

.status-dot.inactive {
    background: var(--brand-red);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Main Content */
.page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1rem 2rem;
}

/* Title Section */
.title-section {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.parking-id {
    font-size: 0.875rem;
    color: var(--brand-subtext);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.id-value {
    color: white;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

/* Map Card */
.map-card {
    position: relative;
    width: 100%;
    height: 256px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.parking-map {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    z-index: 0;
}

.map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-card {
    background: rgba(42, 31, 80, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.2s;
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-icon-wrapper {
    padding: 0.625rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.icon-red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-subtext);
    margin-bottom: 0.25rem;
}

.card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

/* Info & Tariffs Card */
.info-tariffs-card {
    background: rgba(42, 31, 80, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-header-icon {
    padding: 0.5rem;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 0.5rem;
    color: var(--brand-accent);
}

.card-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.description-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
}

.description-icon {
    color: #9ca3af;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.description-content {
    color: #d1d5db;
    line-height: 1.75;
    flex: 1;
}

.description-content p {
    margin-bottom: 0.5rem;
}

.description-content p:last-child {
    margin-bottom: 0;
}

.zone-type-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.zone-type-label {
    color: #d1d5db;
}

.zone-type-badge {
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Tariffs Section */
.tariffs-section {
    margin-top: 0.5rem;
}

.tariffs-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.tariffs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tariff-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tariff-item:last-child {
    border-bottom: none;
}

.tariff-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.tariff-vehicle-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.tariff-icon {
    flex-shrink: 0;
    color: var(--brand-purple);
    width: 20px;
    height: 20px;
}

.tariff-vehicle-name {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.tariff-price {
    color: var(--brand-purple);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Availability Section */
.availability-section {
    margin-bottom: 1.5rem;
}

.availability-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .availability-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.availability-card {
    background: rgba(42, 31, 80, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.availability-card:hover {
    transform: translateY(-2px);
}

.card-total {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(67, 56, 202, 0.4) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-common,
.card-handicapped {
    position: relative;
}

.card-icon-bg {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 96px;
    height: 96px;
    color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.availability-card:hover .card-icon-bg {
    transform: scale(1.1);
}

.availability-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.card-total .availability-number {
    color: white;
}

.card-common .availability-number {
    color: var(--brand-success);
}

.card-handicapped .availability-number {
    color: var(--brand-blue);
}

.availability-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.card-total .availability-label {
    color: rgba(255, 255, 255, 0.9);
}

.card-common .availability-label,
.card-handicapped .availability-label {
    color: #9ca3af;
}

.spacer {
    height: 2rem;
}

/* Action Bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to top, var(--brand-bg) 0%, rgba(26, 16, 60, 0.8) 50%, transparent 100%);
    padding: 1rem 1rem 2rem;
    pointer-events: none;
}

.action-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: all;
}

.action-button {
    width: 100%;
    background: var(--brand-accent);
    color: var(--brand-bg);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(251, 191, 36, 0.2), 0 10px 10px -5px rgba(251, 191, 36, 0.1);
    transition: all 0.2s;
}

.action-button:hover {
    background: #fcd34d;
    transform: scale(1.02);
}

.action-button:active {
    transform: scale(0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--brand-bg);
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .map-card {
        height: 200px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .availability-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-handicapped {
        grid-column: span 2;
    }
    
    @media (max-width: 480px) {
        .availability-grid {
            grid-template-columns: 1fr;
        }
        
        .card-handicapped {
            grid-column: span 1;
        }
    }
}

/* Disclaimer Footer */
.disclaimer-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    padding-bottom: calc(1rem + 80px);
    text-align: center;
    z-index: 30;
    pointer-events: none;
    background: linear-gradient(to top, rgba(26, 16, 60, 0.95) 0%, rgba(26, 16, 60, 0.8) 70%, transparent 100%);
}

.disclaimer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0.35;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .disclaimer-footer {
        bottom: 0;
        padding: 0.5rem 0.75rem;
        padding-bottom: calc(0.75rem + 70px);
    }
    
    .disclaimer-text {
        font-size: 0.6875rem;
    }
}
