/* Wybór Miasta - Style */
#wm-wybor-miasta-widget {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 0 12px 12px 0;
    padding: 16px 12px;
    transition: all 0.3s ease;
    border-left: 2px solid #ED1C24;
}

#wm-wybor-miasta-widget:hover {
    box-shadow: 2px 0 25px rgba(237, 28, 36, 0.4);
    transform: translateY(-50%) translateX(3px);
}

/* Header z ikoną budynku */
.wm-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(237, 28, 36, 0.2);
}

.wm-header i {
    font-size: 12px;
    color: #ED1C24;
}

.wm-header h3 {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wm-container {
    display: flex;
    flex-direction: column;
}

.wm-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Przyciski miast */
.wm-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #ED1C24;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.wm-btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.wm-btn-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.wm-btn-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wm-btn-nazwa {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.wm-btn-opis {
    display: block;
    font-size: 9px;
    opacity: 0.9;
    line-height: 1;
}

.wm-btn-arrow {
    font-size: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.wm-btn:hover {
    transform: translateX(3px);
    color: white !important;
}

.wm-btn:hover .wm-btn-icon {
    transform: scale(1.1);
    color: white !important;
}

.wm-btn:hover .wm-btn-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: white !important;
}

.wm-btn:hover .wm-btn-nazwa,
.wm-btn:hover .wm-btn-opis {
    color: white !important;
}

.wm-btn:active {
    transform: translateX(3px) scale(0.98);
}

/* Style dla Lublina */
.wm-lublin-btn {
    background: #ED1C24;
}

.wm-lublin-btn:hover {
    background: #ff3540;
}

/* Style dla Szczecina */
.wm-szczecin-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(237, 28, 36, 0.5);
}

.wm-szczecin-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ED1C24;
}

/* Badge ostatnia wizyta */
.wm-badge-ostatnia {
    display: none;
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ED1C24;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Animacja wejścia */
#wm-wybor-miasta-widget {
    opacity: 0;
    transform: translateY(-50%) translateX(-100%);
}

#wm-wybor-miasta-widget.wm-loaded {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Mobile Trigger Button */
.wm-mobile-trigger {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #ED1C24;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.wm-mobile-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(237, 28, 36, 0.6);
}

.wm-mobile-trigger:active {
    transform: scale(0.95);
}

/* Mobile Modal */
.wm-mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999999;
}

.wm-mobile-modal.wm-active {
    display: block;
}

.wm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: wm-fadeIn 0.3s ease;
    z-index: 1;
}

@keyframes wm-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wm-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 20px 20px 0 0;
    padding: 24px;
    animation: wm-slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@keyframes wm-slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.wm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(237, 28, 36, 0.3);
}

.wm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.wm-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wm-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.wm-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wm-modal-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #ED1C24;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 15px;
}

.wm-modal-btn i:first-child {
    font-size: 24px;
    color: white;
}

.wm-modal-btn-info {
    flex: 1;
    text-align: left;
}

.wm-modal-btn-nazwa {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.wm-modal-btn-opis {
    display: block;
    font-size: 12px;
    opacity: 0.85;
    color: white;
}

.wm-modal-btn i:last-child {
    font-size: 18px;
    opacity: 0.6;
    transition: transform 0.3s ease;
    color: white;
}

.wm-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.4);
    color: white !important;
    text-decoration: none;
}

.wm-modal-btn:hover i:first-child {
    color: white !important;
}

.wm-modal-btn:hover i:last-child {
    transform: translateX(5px);
    opacity: 1;
    color: white !important;
}

.wm-modal-btn:hover .wm-modal-btn-nazwa,
.wm-modal-btn:hover .wm-modal-btn-opis {
    color: white !important;
}

.wm-modal-btn:active {
    transform: translateY(0);
}

.wm-lublin-modal-btn {
    background: #ED1C24;
}

.wm-lublin-modal-btn:hover {
    background: #ff3540;
}

.wm-szczecin-modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ED1C24;
}

.wm-szczecin-modal-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff3540;
}

/* Responsywność */
@media (max-width: 768px) {
    #wm-wybor-miasta-widget.wm-desktop-widget {
        display: none;
    }

    .wm-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .wm-mobile-trigger,
    .wm-mobile-modal {
        display: none !important;
    }
}

/* Mniejsze ekrany mobilne */
@media (max-width: 480px) {
    .wm-modal-content {
        padding: 20px;
    }

    .wm-modal-header h3 {
        font-size: 16px;
    }

    .wm-modal-btn {
        padding: 16px 18px;
    }

    .wm-modal-btn i:first-child {
        font-size: 20px;
    }

    .wm-modal-btn-nazwa {
        font-size: 14px;
    }

    .wm-modal-btn-opis {
        font-size: 11px;
    }
}
