/* css/locations.css */
.location-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 50px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 26, 36, 0.70) 0%, rgba(31, 55, 80, 0.65) 100%);
    /* Nowoczesny delikatny gradient, przyciemnienie */
    z-index: 1;
}

.location-hero-title {
    position: relative;
    z-index: 2;
    color: #ffffff !important;
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    padding: 0 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

/* Sekcje tekst-obrazek */
.location-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.location-section.reverse {
    flex-direction: row-reverse;
}

.location-text {
    text-align: left !important;
    flex: 1 1 500px;
}

/* Allow flex children to shrink below their content width to avoid wrapping */
.location-text,
.location-image {
    min-width: 0;
}

.location-text h2 {
    font-size: 3rem !important;
    color: #222 !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

.location-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #004bd6;
    /* Dopasowany głęboki niebieski */
    border-radius: 2px;
}

.location-text p, .location-text ul {
    font-size: 2.2rem !important;
    line-height: 1.8 !important;
    color: #444 !important;
    text-align: justify;
}

.location-section-below {
    flex: 1 1 100%;
    width: 100%;
    font-size: 2.2rem !important;
    line-height: 1.8 !important;
    color: #444 !important;
    text-align: justify;
    margin: 0;
}

.location-image {
    flex: 1 1 400px;
    position: relative;
}

.location-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
    max-height: 400px;
}

.location-image img:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

@media (max-width: 991px) {
    .location-section {
        flex-direction: column !important;
        gap: 20px;
    }

    .location-image,
    .location-text {
        flex: 1 1 100%;
        width: 100%;
    }

    .location-image img {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .location-hero {
        height: 250px;
        margin-bottom: 30px;
    }

    .location-hero-title {
        font-size: 2.75rem;
    }
}