/* ==========================================================================
   Blok_01.css - PODSTRONA OFERTY OGÓLNEJ (Pełna adaptacja i izolacja stylu)
   ========================================================================== */

.offer-space-section {
    padding: 60px 20px;
    max-width: 1250px;
    margin: 0 auto;
    background-color: #000000; /* Głęboka czerń z Twojego pliku */
    box-sizing: border-box;
}

.offer-space-section * {
    box-sizing: border-box;
}

.offer-space-section h2 {
    font-family: 'Playfair Display', serif;
    color: #a4b2a4; /* Szałwiowa zieleń */
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
}

.offer-space-lead {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: #cccccc;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Przycisk Główny Spaceru / Akcji */
.offer-main-spacer-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.offer-btn-main-spacer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0a0f0f;
    color: #ffffff;
    font-family: 'Lora', serif;
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid #a4b2a4;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.offer-btn-main-spacer:hover {
    background: #a4b2a4;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 178, 164, 0.3);
}

.offer-btn-main-spacer:hover .offer-icon-map {
    fill: #000000;
}

.offer-icon-map {
    width: 20px;
    height: 20px;
    fill: #a4b2a4;
    transition: fill 0.3s;
}

/* Nagłówki Pięter / Grup */
.offer-floor-title {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 3px solid #a4b2a4;
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-floor-group {
    margin-bottom: 60px;
}

/* Siatka CSS Grid */
.offer-space-grid {
    display: grid;
    gap: 30px;
    justify-content: center; 
    width: 100%;
}

/* Kafelki bazowe */
.offer-space-card {
    background: #0a0f0f;
    border: 1px solid rgba(164, 178, 164, 0.1);
    width: 100%;
    max-width: 360px; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* SZTYWNE WYMUSZENIE UKŁADU DLA DESKTOPU */
@media (min-width: 1150px) {
    /* 3 kolumny po 360px na parterze */
    [data-floor="parter"] .offer-space-grid {
        grid-template-columns: repeat(3, 360px);
        max-width: 1140px;
        margin: 0 auto;
    }

    /* 2 kolumny po 360px na piętrze */
    [data-floor="pietro"] .offer-space-grid {
        grid-template-columns: repeat(2, 360px);
        max-width: 750px;
        margin: 0 auto;
    }
}

.offer-space-card:hover {
    transform: translateY(-5px);
    border-color: rgba(164, 178, 164, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.offer-space-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #111;
}

.offer-space-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    transition: transform 0.5s ease;
}

.offer-space-card:hover .offer-space-img-wrapper img {
    transform: scale(1.04);
    filter: grayscale(0%) contrast(1.05);
}

.offer-space-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.offer-space-info h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.offer-space-capacity {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.offer-space-capacity span {
    color: #a4b2a4;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Style list wewnątrz kafelków tekstowych */
.offer-list-wrapper ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.offer-list-wrapper ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
}

.offer-list-wrapper ul li strong {
    color: #ffffff;
}

.offer-list-wrapper ul li::before {
    content: "•";
    color: #a4b2a4;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.offer-btn-card-spacer {
    display: block;
    text-align: center;
    background: #141a1a;
    color: #a4b2a4;
    border: 1px solid rgba(164, 178, 164, 0.2);
    padding: 12px 20px;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.offer-space-card:hover .offer-btn-card-spacer {
    background: rgba(164, 178, 164, 0.1);
    border-color: #a4b2a4;
    color: #ffffff;
}

/* --- INTEGRACJA DANYCH KONTAKTOWYCH (Dopasowane do reszty) --- */
.offer-cta-box {
    background: #0a0f0f;
    border: 1px solid rgba(164, 178, 164, 0.15);
    padding: 45px 30px;
    text-align: center;
    margin-top: 40px;
}

.offer-cta-box h3 {
    font-family: 'Playfair Display', serif;
    color: #a4b2a4;
    font-size: 2rem;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.offer-cta-box p {
    font-family: 'Lora', serif;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.05rem;
}

.offer-cta-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.offer-cta-contacts a {
    color: #ffffff;
    font-family: 'Lora', serif;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

.offer-cta-contacts a:hover {
    color: #a4b2a4;
    border-color: #a4b2a4;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1149px) and (min-width: 768px) {
    .offer-space-grid {
        grid-template-columns: repeat(2, minmax(290px, 360px));
        max-width: 750px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .offer-space-grid {
        grid-template-columns: repeat(1, minmax(290px, 360px));
        max-width: 360px;
        margin: 0 auto;
    }
    /* .offer-space-section h2 { font-size: 2rem; } */

    /* Zmodyfikowana reguła dla nagłówka na telefonie: */
    .offer-space-section h2 { 
        font-size: 1.8rem; /* Delikatnie zmniejszamy font, żeby tekst miał szansę się zmieścić */
        word-break: break-word; /* W razie ostateczności bezpiecznie przełamie słowo */
        hyphens: auto; /* Włączy automatyczne polskie przenoszenie wyrazów (z dywizem) jeśli przeglądarka to wspiera */
    }


    .offer-cta-contacts { flex-direction: column; gap: 15px; }
}
