/* Strona oferty — treść oferty, galeria i formularz kontaktowy. */

/* ── Treść oferty ───────────────────────────────────────────────────────── */

.offer-detail__header {
    margin-bottom: 26px;
}

.offer-detail__title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #232323;
}

/* Pigułki i daty w jednym rzędzie — daty oddzielone pionową kreską,
   żeby nie zlewały się z etykietami kategorii i typu. */
.offer-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
}

.offer-detail__fact {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: #5f6368;
}

/* Kreska tylko przed pierwszą datą. Nie :first-of-type — pigułki też są
   elementami span, więc trafiłaby w etykietę kategorii. */
.offer-pill + .offer-detail__fact {
    padding-left: 14px;
    border-left: 1px solid #dcdfe2;
}

.offer-detail__fact strong {
    font-weight: 600;
    color: #232323;
    font-variant-numeric: tabular-nums;
}

.offer-detail__section {
    margin-top: 32px;
}

.offer-detail__section-title {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6f6f6f;
}

.offer-detail__description {
    font-size: 16.5px;
    line-height: 1.7;
    color: #333;
}

.offer-detail__description p {
    margin-bottom: 14px;
}

.offer-detail__description ul,
.offer-detail__description ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.offer-detail__description li {
    margin-bottom: 6px;
}

.offer-detail__description a {
    color: var(--tw-brand);
}

/* Galeria: trzy kolumny — komplet sześciu zdjęć układa się w dwa równe wiersze,
   a kafel jest o jedną trzecią szerszy niż przy czterech kolumnach. */
.offer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 767px) {
    .offer-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .offer-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.offer-gallery-grid img {
    display: block;
    width: 100%;
    /* 3:2 to mediana proporcji zdjęć w bazie (72 z 99 to poziome ~1,50),
       więc większość wypełnia kafel bez pustych pasów. */
    aspect-ratio: 3 / 2;
    /* contain, nie cover — kafel pokazuje całe zdjęcie, także pionowe. */
    object-fit: contain;
    background: #f1f2f3;
    cursor: pointer;
    transition: opacity .15s ease;
}

.offer-gallery-grid img:hover {
    opacity: .88;
}

/* Formularz kontaktowy */
.offer-contact {
    margin-top: 36px;
    padding: 24px;
    background: #f7f8f9;
}

.offer-contact__hint {
    margin: -4px 0 18px;
    font-size: 13px;
    color: #5f6368;
}

.offer-contact .form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #4a4a4a;
}

.offer-contact .form-control {
    width: 100%;
    padding: 9px 12px;
    /* Kontrast ramki min. 3:1 — WCAG 1.4.11. */
    border: 1px solid #8f959b;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
    font-size: 14px;
    color: #232323;
}

.offer-contact .form-control:focus {
    border-color: var(--tw-brand);
    box-shadow: none;
    outline: 2px solid rgba(29, 78, 216, .18);
}

.offer-contact__submit {
    padding: 11px 28px;
    border: 0;
    background: var(--tw-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s ease;
}

.offer-contact__submit:hover,
.offer-contact__submit:focus {
    background: var(--tw-brand-dark);
    color: #fff;
}
