/* Podstawowe style dla wtyczki Lista Restauracji */

.lr-plugin-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Filtr restauracji */
.lr-restaurant-filter {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.lr-restaurant-filter label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.lr-form-control {
    display: block;
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out;
}

.lr-form-control:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Badge filtering */
.lr-city-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lr-city-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    background-color: #e9ecef;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.lr-city-badge:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

.lr-city-badge.active {
    background-color: #007bff;
    color: #fff;
    border-color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Mapa */
.lr-restaurant-map {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

/* System siatki */
.lr-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.lr-row-equal-height {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Kolumny */
.lr-col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.lr-col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 15px;
    display: flex;
}

.lr-col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.lr-col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Karty restauracji */
.lr-card {
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.lr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.lr-card__img-container {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 60% !important;
    overflow: hidden !important;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.lr-card__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.lr-card:hover .lr-card__img {
    transform: scale(1.05);
}

.lr-card__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
}

.lr-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.lr-card__text {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

.lr-card__text:last-child {
    margin-bottom: 0;
}

/* Modal */
.lr-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.lr-modal__content {
    background-color: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lr-modal__close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lr-modal__close:hover,
.lr-modal__close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.lr-modal__image-container {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.lr-modal__image {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    display: block;
}

.lr-modal__info {
    padding: 25px;
    color: #333 !important;
}

.lr-modal__info * {
    color: #333 !important;
}

.lr-modal__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333 !important;
    line-height: 1.3;
}

.lr-modal__info p {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
    padding: 0 !important;
}

.lr-modal__info p:last-child {
    margin-bottom: 0;
}

.lr-modal__info strong {
    font-weight: 600;
}

/* Blur effect */
.lr-blur {
    filter: blur(5px);
    transition: filter 0.3s ease-out;
}

/* Komunikaty */
.lr-no-restaurants {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.lr-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 15px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .lr-col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .lr-restaurant-filter {
        padding: 12px;
    }
    
    .lr-form-control {
        max-width: 100%;
    }
    
    .lr-city-badges {
        gap: 6px;
    }
    
    .lr-city-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .lr-card__body {
        padding: 15px;
    }
    
    .lr-card__title {
        font-size: 16px;
    }
    
    .lr-modal__content {
        width: 95%;
        max-width: none;
        margin: 0;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        max-height: 90vh;
        position: fixed;
    }
    
    .lr-modal__info {
        padding: 15px;
    }
    
    .lr-modal__title {
        font-size: 18px;
    }
    
    .lr-modal__image-container {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .lr-col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .lr-card__img-container {
        padding-bottom: 50% !important;
    }
    
    .lr-restaurant-filter {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .lr-city-badges {
        gap: 4px;
    }
    
    .lr-city-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .lr-modal__content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        margin: 0;
        position: fixed;
        overflow-y: auto;
    }
    
    .lr-modal__close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
        z-index: 20;
    }
    
    .lr-modal__image-container {
        max-height: 180px;
        border-radius: 0;
    }
    
    .lr-modal__info {
        padding: 20px 15px 30px 15px;
    }
    
    .lr-modal__title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}