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