:root {
    --navy: #16233F;
    --navy-hover: #1C2C4D;
    --gold: #C6A253;
    --gold-soft: #E7D9B4;
    --ink: #1C2A44;
    --bg-light: #F8F9FA;
    --border-color: rgba(22, 35, 63, 0.12);
    --radius: 12px;
    --shadow: 0 15px 35px -10px rgba(22, 35, 63, 0.15);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
}

/* --- KONTENER FORMULARZA --- */
.aj-reservation-box {
    margin: 30px auto;
    font-family: var(--font-body);
}

.aj-frontend-accordion-wrap {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* --- NAGŁÓWEK AKORDEONU (Nowy, granatowy) --- */
.aj-frontend-accordion-header {
    background: var(--navy);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    color: #ffffff;
}

.aj-frontend-accordion-header:hover {
    background: var(--navy-hover);
}

.aj-acc-title {
    font-family: var(--font-display) !important;
    font-style: italic !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: #ffffff !important;
}

.aj-acc-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(247,239,222,0.72);
    margin: 0 !important;
}

.aj-acc-btn-closed {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    font-family: var(--font-body) !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center !important;
    transition: background 0.3s !important;
}

.aj-acc-btn-closed svg {
    position: relative;
    top: 3px;
}

.aj-acc-btn-closed:hover {
    background: #d4b46c;
}

.aj-acc-btn-open {
    background: transparent !important;
    color: var(--gold) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex;
    align-items: center !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px;
}
.aj-acc-btn-open svg {
    stroke-width: 1.1;
    width: 100%;
    height: 100%;
}

.aj-frontend-accordion-content {
    padding: 40px 30px;
    background: #ffffff;
}

/* --- POLA FORMULARZA I ETYKIETY --- */
.aj-field {
    display: flex;
    flex-direction: column;
}

.aj-field label {
    font-size: 10.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.aj-req {
    color: var(--gold); /* Złota gwiazdka */
    font-size: 12px;
}

.aj-label-hint {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0;
}

.aj-field input, 
.aj-field select {
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.aj-field input:focus, 
.aj-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 162, 83, 0.1);
}

.aj-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.aj-form-grid.aj-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.aj-field.aj-full-width {
    grid-column: span 2;
}

/* --- KARTY UCZESTNIKÓW --- */
.aj-participant-row {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.aj-participant-header {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--navy);
}

.aj-participant-header strong {
    font-weight: 800;
}
.aj-p-type-label {
    color: rgba(28,42,68,0.55);
    font-weight: 400;
    font-size: 12.5px;
}

.aj-orderer-check-wrap {
    margin-top: 20px;
}

.aj-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(28,42,68,0.7);
    cursor: pointer;
}
.aj-checkbox-label strong {
    color: var(--navy);
}

.aj-checkbox-label input {
    margin-top: 2px;
    accent-color: var(--gold);
    flex: none;
    top: -2px !important;
}

/* --- DANE ZAMAWIAJĄCEGO (Złota Ramka) --- */
.aj-orderer-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px !important;
    color: var(--navy);
    margin: 0 0 25px 0;
    font-weight: 700;
}

/* --- ZGODY --- */
.aj-consents-section {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aj-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(28, 42, 68, 0.7);
    cursor: pointer;
}

.aj-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
}

.aj-consent-label a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.aj-disclaimer-text {
    font-size: 11px;
    line-height: 1.6;
    color: #999;
    margin-top: 10px;
}

/* --- STOPKA Z CENĄ --- */
.aj-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.aj-final-price-wrapper {
    display: flex;
    flex-direction: column;
}

.aj-final-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.price-main {
    font-family: var(--font-display);
    font-size: 38px;
    font-style: italic;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.price-sub {
    font-size: 13px;
    color: #888;
}

.aj-btn-submit {
    background: var(--navy) !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 40px !important;
    padding: 16px 32px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
}

.aj-btn-submit:hover {
    background: var(--navy-hover) !important;
    box-shadow: 0 5px 15px rgba(22, 35, 63, 0.2) !important;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    .aj-frontend-accordion-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aj-acc-trigger {
        width: 100%;
    }
    
    .aj-acc-btn-closed {
        width: 100%;
        justify-content: center;
    }
    
    .aj-frontend-accordion-content {
        padding: 25px 20px;
    }

    .aj-form-grid, .aj-form-grid.aj-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .aj-field.aj-full-width {
        grid-column: span 1;
    }
    
    .aj-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aj-submit-wrapper, .aj-btn-submit {
        width: 100%;
    }
}

.aj-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

#aj-submit-booking-btn {
    border-radius: 6px;
}

.aj-box-header h3 {
    margin: 0;
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
}

.aj-price-badge {
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
}

.aj-price-badge span {
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
}

/* --- KARTY UCZESTNIKÓW --- */
.aj-p-type-dude {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    margin-right: 4px;
}

.aj-participant-header {
    display: flex;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--navy);
}

.aj-remove-row {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-weight: 600;
}

.aj-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.aj-field {
    display: flex;
    flex-direction: column;
}

.aj-field.aj-full-width {
    grid-column: span 2;
}

.aj-field input, 
.aj-field select {
    padding: 10px 14px;
    border: 1px solid rgba(22, 35, 63, 0.2);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.aj-field input:focus, 
.aj-field select:focus {
    border-color: var(--gold);
}

.aj-orderer-check-wrap {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

/* --- DANE ZAMAWIAJĄCEGO --- */
.aj-orderer-section {
    background: #FFFDF7;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    padding: 20px;
    margin-top: 25px;
}

.aj-orderer-section h4 {
    margin-top: 0;
    color: var(--navy);
    margin-bottom: 15px;
}

/* --- PRZYCISKI --- */
.aj-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-block;
}

.aj-btn-primary {
    background: var(--navy) !important;
    color: #fff !important;
    width: 100% !important;
    font-size: 16px !important;
    border: none !important;
    margin-top: 20px !important;
}

.aj-btn-primary:hover {
    background: var(--navy-hover);
}

.aj-btn-outline {
    background: transparent;
    border: 2px dashed var(--navy);
    color: var(--navy);
    margin-top: 10px;
}

.aj-btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

.aj-alert {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
}

.aj-alert-success { background: #d4edda; color: #155724; }
.aj-alert-danger { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 600px) {
    .aj-form-grid { grid-template-columns: 1fr; }
    .aj-field.aj-full-width { grid-column: span 1; }
    .aj-box-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================
   SIATKA OFERT (WIDOK ARCHIWUM / SHORTCODE)
========================================= */

.aj-offers-wrapper {
    width: 100%;
    margin: 40px 0;
    font-family: 'Work Sans', sans-serif;
}

/* --- Siatka Grid (3 kolumny) --- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Karty Ofert --- */
.offer-card {
    border-radius: var(--radius, 14px); /* Fallback dla zmiennej na wypadek braku wpisu w root */
    overflow: hidden;
    box-shadow: 0 20px 50px -24px rgba(22, 35, 63, 0.22);
    background: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    box-shadow: 0 30px 70px -30px rgba(22, 35, 63, 0.32);
    transform: translateY(-4px);
}

.offer-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.offer-photo img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.offer-card:hover .offer-photo img {
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--navy);
    color: #fff;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    padding: 5px 12px;
    border-radius: 8px;
    z-index: 2;
    pointer-events: none;
}

.offer-body {
    padding: 16px 18px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-body h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: var(--navy);
    font-family: 'Playfair Display', serif; /* Podmień jeśli używasz innego nagłówkowego fontu */
    font-weight: 700;
}

.offer-body p {
    font-size: 13px;
    color: rgba(28, 42, 68, 0.7);
    line-height: 1.5;
    margin: 0 0 20px;
    flex-grow: 1;
}

/* --- Przycisk "Zobacz szczegóły" --- */
.offer-body a.offer-cta-lg {
    font-size: 15px;
    padding-bottom: 3px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.offer-body a.offer-cta-lg:hover {
    color: var(--navy);
    border-color: var(--navy);
}

/* --- Paginacja Ofert --- */
.offers-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.offers-pagination a,
.offers-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background-color: #fff;
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.offers-pagination a:hover {
    background-color: var(--gold-soft, #E7D9B4);
    color: var(--navy);
}

.offers-pagination span.current {
    background-color: var(--navy);
    color: #fff;
    box-shadow: none;
}

/* --- Responsywność dla grida --- */
@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   STYLE PANELU ADMINA - META BOX OFERTY
========================================= */

.aj-admin-meta-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
    padding: 10px 0;
}

/* Główne sekcje */
.aj-meta-section {
    background: #f8f9f9; /* Delikatne szare tło */
    border: 1px solid #c3c4c7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.aj-meta-section h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1d2327;
    border-bottom: 1px solid #dcdcdc;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.aj-meta-section h4 {
    font-size: 14px;
    margin: 20px 0 10px 0;
    color: #1d2327;
}

.aj-meta-section hr {
    border: 0;
    border-top: 1px solid #dcdcdc;
    margin: 25px 0;
}

/* Ustawienia maksymalnej liczby osób */
.aj-form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    margin-bottom: 20px;
}

.aj-form-group input[type="number"] {
    max-width: 80px;
}

/* Lista Akordionów */
.aj-accordions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.aj-accordion-item {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.aj-accordion-header {
    background: #f0f0f1;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dcdcdc;
    font-weight: 600;
    color: #1d2327;
}

.aj-accordion-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Wnętrze akordionu - układa elementy obok siebie i zapobiega nachodzeniu */
.aj-accordion-content {
    padding: 20px 16px;
    display: flex;
    flex-wrap: wrap; /* Pozwala zawinąć do nowej linii na bardzo małych ekranach */
    gap: 24px;
    align-items: center;
}

.aj-accordion-content label {
    font-weight: 500;
    margin-right: 6px;
    color: #50575e;
}

.aj-accordion-content input[type="number"],
.aj-accordion-content select {
    padding: 4px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    line-height: 1.5;
    min-height: 30px;
}

/* Grupowanie pół w środku akordionu */
.aj-price-field, 
.aj-age-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9f9;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.aj-age-fields input[type="number"] {
    max-width: 70px;
}

/* Informacja o Shortcodzie na dole */
.aj-shortcode-info {
    background: #e6f0fa; /* Jasnoniebieskie tło */
    border-left: 4px solid #2271b1; /* Niebieski akcent z WP */
    padding: 15px;
    border-radius: 4px;
    margin-top: 25px;
}

.aj-shortcode-info p {
    margin: 0;
    font-size: 14px;
    color: #1d2327;
}

.aj-shortcode-info code {
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    color: #d63638; /* Czerwony wyróżnik z WP */
    margin-left: 10px;
    border: 1px solid #c3c4c7;
}

/* =========================================
   NOWE ZMIANY: PAKIET BAZOWY I CENA W STOPCE
========================================= */

/* Pakiet bazowy na górze formularza */
.aj-base-offer-summary {
    background: #FFFDF7;
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
}

.aj-base-offer-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--navy);
    font-size: 16px;
}

.aj-base-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.aj-base-items-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(22, 35, 63, 0.1);
    font-size: 14.5px;
}

.aj-base-items-list li:last-child {
    border-bottom: none;
}

.aj-base-icon {
    color: var(--gold);
    font-weight: bold;
    margin-right: 10px;
}

.aj-base-name {
    flex-grow: 1;
    font-weight: 500;
}

.aj-base-price {
    font-weight: 600;
    color: var(--navy);
}

.aj-base-total {
    text-align: right;
    font-size: 16px;
    color: var(--navy);
    border-top: 2px solid var(--gold-soft);
    padding-top: 15px;
}

.aj-base-total strong {
    font-size: 18px;
    color: var(--gold);
}

/* Przebudowana stopka z ceną łączną (Flexbox) */
.aj-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.aj-final-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aj-form-footer .aj-btn-primary {
    width: auto; /* Zmiana z 100% na auto, by stał obok ceny */
    min-width: 250px;
}

/* Responsywność stopki na małych ekranach */
@media (max-width: 600px) {
    .aj-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .aj-form-footer .aj-btn-primary {
        width: 100%;
    }
}

/* =========================================
   ZMIANA 4: STYLE DLA FILTRÓW KATEGORII
========================================= */
.aj-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.aj-filter-btn {
    background-color: #ffffff;
    color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 50px; /* Okrągłe krawędzie (pill shape) */
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
    outline: none;
}

.aj-filter-btn:hover {
    background-color: var(--gold-soft); /* Delikatnie ciemniejsze tło przy najechaniu */
}

/* Stan Aktywny (Złote tło, biały tekst, cień) */
.aj-filter-btn.active {
    background-color: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 10px 20px -8px rgba(198, 162, 83, 0.6); /* Złota poświata z obrazka */
}

.aj-offers-ajax-container {
    transition: opacity 0.3s ease; /* Płynne ściemnianie podczas ładowania AJAX */
}

/* =========================================
   CHECKBOXY ZGÓD (RODO I REGULAMIN)
========================================= */
.aj-consents-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed rgba(22, 35, 63, 0.15); /* Delikatna przerywana linia oddzielająca */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aj-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(28, 42, 68, 0.75); /* Zgaszony odcień granatowego */
    font-weight: 400;
    cursor: pointer;
}

.aj-consent-label input[type="checkbox"] {
    margin-top: -3px; /* Wyrównanie kwadracika do pierwszej linijki tekstu */
    flex-shrink: 0; /* Zapobiega spłaszczaniu checkboxa na małych ekranach */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.aj-consent-label a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aj-consent-label a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Styl dla zgód wewnątrz akordeonu, żeby odsunąć je od pól u góry */
.aj-frontend-accordion-content .aj-consents-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed rgba(22, 35, 63, 0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px dashed rgba(22, 35, 63, 0.15);
}

.aj-disclaimer-text {
    font-size: 10px;
}

/* =========================================
   RESPONSYWNOŚĆ FORMULARZA OFERT (MOBILE)
========================================= */

@media (max-width: 768px) {
    /* Zmniejszenie paddingów w głównym kontenerze na telefonach */
    .aj-reservation-box {
        padding: 15px;
        margin: 15px 0;
    }

    /* Dopasowanie siatki pól (imię / nazwisko) do jednej kolumny na małych ekranach */
    .aj-participant-body .aj-form-grid,
    .aj-orderer-section .aj-form-grid {
        grid-template-columns: 1fr !important;
    }

    .aj-field.aj-full-width {
        grid-column: span 1 !important;
    }

    /* Stopka formularza wewnątrz akordeonu (cena i przycisk) */
    .aj-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding-top: 20px;
    }

    /* Wycentrowanie / rozciągnięcie elementu ceny na mobile */
    .aj-final-price-wrapper {
        justify-content: space-between;
        align-items: center;
        background: var(--bg-light);
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .aj-btn-submit { width: 100% !important; }

    .aj-submit-wrapper {
        width: 100%;
        max-width: 100%;
        align-items: stretch;
    }

    .aj-btn-primary {
        width: 100% !important;
        font-size: 14px !important;
        padding: 12px 16px !important;
    }

    .aj-disclaimer-text {
        text-align: center;
        font-size: 10.5px;
    }

    /* Nagłówek akordeonu na mobile */
    .aj-frontend-accordion-header {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .aj-frontend-accordion-content {
        padding: 15px 12px;
    }
}

/* =========================================
   NOWY WIDOK - KARTY I FILTRY (Załączniki)
========================================= */

/* FILTRY */
.aj-new-filters-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--gold-soft);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 20px 50px -24px rgba(22,35,63,0.22);
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aj-filter-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 180px;
}

.aj-filter-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.aj-filter-group select {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 12px 15px;
    font-size: 15px;
    color: var(--navy);
    font-weight: 600;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23C6A253" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-color: #fff;
    background-size: 20px;
}

.aj-filter-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.filter-btn-group {
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    flex-grow: 0;
}

.aj-filter-submit-btn {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 30px !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    height: 100% !important;
}
.aj-filter-submit-btn:hover {
    background: #d4b46c !important;
}

.aj-filters-info-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--navy);
}
.aj-filters-info-bar a {
    font-size: 12.5px !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #C6A253 !important;
}

/* SIATKA (2 Kolumny) */
.aj-new-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.aj-card-new:last-child:nth-child(odd) {
    grid-column: 1 / -1; 
    max-width: calc(50% - 15px); 
    margin: 0 auto; 
    width: 100%;
}

@media(max-width: 900px) {
    .aj-new-grid { grid-template-columns: 1fr; }
    .aj-card-new:last-child:nth-child(odd) {
        max-width: 100%;
    }
    .aj-new-filters-form { flex-direction: column; border-radius: 20px; }
    .aj-filter-group { width: 100%; }
    .filter-btn-group { width: 100%; margin-top:10px; }
    .aj-filter-submit-btn { width: 100%; }
}

/* KARTA OFERTY */
.aj-card-new {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; /* Dodane płynne przejścia */
}

.aj-card-new:hover {
    transform: translateY(-6px); /* Lekkie podniesienie karty */
    box-shadow: 0 20px 40px rgba(22, 35, 63, 0.12); /* Pogłębiony cień */
    border-color: var(--gold-soft);
}

/* --- ANIMACJA ZOOMU NA ZDJĘCIACH --- */
.aj-card-gallery-item {
    flex: 1;
    position: relative;
    border-right: 2px solid #000;
    overflow: hidden; /* Zatrzymuje zoom wewnątrz ramki */
}

.aj-card-gallery-item:last-child {
    border-right: none;
}

/* Nowy element trzymający samo zdjęcie */
.aj-card-gallery-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease; /* Czas trwania animacji zoomu */
    z-index: 1;
}

/* Efekt najechania tylko na dany obrazek */
.aj-card-gallery-item:hover .aj-card-gallery-bg {
    transform: scale(1.08); /* Powiększenie obrazka o 8% */
}

/* MEDIA & GALERIA */
.aj-card-media {
    position: relative;
    height: 300px;
}

.aj-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--navy);
    color: var(--gold-soft);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 10;
}

.aj-card-gallery-wrap {
    display: flex;
    width: 100%;
    height: 100%;
}

/* --- RESPONSYWNOŚĆ GALERII NA KARTACH (MOBILE) --- */
@media(max-width: 768px) {

    .aj-card-gallery-wrap {
        flex-direction: column !important;
        height: auto !important;
    }

    .aj-card-gallery-item {
        height: 220px !important;
        min-height: 220px;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 2px solid #000 !important; 
    }

    .aj-card-gallery-item:last-child {
        border-bottom: none !important;
    }

    .aj-card-media {
        height: auto !important;
    }
}

.aj-card-gallery-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    border-right: 2px solid #000; /* Czarna linia przedzielająca sekcje wg. specyfikacji */
}

.aj-card-gallery-item:last-child {
    border-right: none;
}

.aj-gallery-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0; 
    right: 0;
    text-align: center;
    padding: 30px 5px 15px 5px; 
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2; /* Musi być wyżej niż .aj-card-gallery-bg */
    pointer-events: none; /* Zapobiega blokowaniu hovera przez tekst */
}

.aj-overlay-bottom {
    display: block;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-style: italic;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    padding: 0 6px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.aj-overlay-top {
    display: block;
    font-family: var(--font-body, 'Work Sans', sans-serif);
    font-style: normal;
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold-soft, #E7D9B4);
    margin-bottom: 3px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* TREŚĆ KARTY */
.aj-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aj-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--navy);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.aj-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}
.aj-card-desc p { margin: 0; }

.aj-card-desc h3 {
    font-size: 21px !important;
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
    font-style: unset !important;
}

/* IKONY INFO */
.aj-card-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    margin-bottom: 20px;
}

.aj-icon-item {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.aj-icon-item .dashicons {
    color: var(--gold);
    font-size: 18px;
    width: 18px; height: 18px;
}

/* STOPKA KARTY (CENA + PRZYCISK) */
.aj-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.aj-card-price-box {
    display: flex;
    flex-direction: column;
}

.price-main {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 5px;
}

.price-sub {
    font-size: 12px;
    color: #888;
}

.aj-card-btn {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.aj-card-btn:hover {
    background: #d4b46c;
}

.aj-card-footer .aj-card-btn {
    font-size: 12px !important;
}

/* =========================================
   BANNERY - SLIDERY SWIPER (Z 1180px Kontenerem)
========================================= */

.aj-banner-wrapper {
    width: 100%;
    position: relative;
    font-family: var(--font-body);
}

.aj-banner-wrapper .swiper {
    width: 100%;
    height: 310px; 
    position: relative;
}

/* WSPÓLNE ELEMENTY KARTY */
.aj-banner-slide {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important; 
}

.aj-banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Niebieska poświata z gradientu */
.aj-banner-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(31, 54, 96, 0.80) 0%, rgba(31, 54, 96, 0.58) 28%, rgba(31, 54, 96, 0.32) 60%, rgba(31, 54, 96, 0.07) 78%, rgba(31, 54, 96, 0) 80%);
    z-index: 2;
}

/* KONTENER OGRANICZAJĄCY (1180px) */
.aj-banner-inner-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
}

/* KONTENER NAWIGACJI (Ogranicza ui do 1180px) */
.ot-ui-wrap {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    max-width: 1180px;
    margin: 0 auto;
    z-index: 10;
    pointer-events: none; /* Clicks przechodzą niżej do slajdu */
}

/* =========================================
   TYPOGRAFIA I DETALE (Z ORYGINAŁU)
========================================= */
.ot-body {
    max-width: 600px;
    color: #fff;
}

.ot-kraj {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2em !important;
    margin-bottom: 13px;
    color: #EDC873;
    text-transform: uppercase;
}
.ot-kraj::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #EDC873;
    flex: none;
    box-shadow: 0 0 10px rgba(18, 30, 55, 0.7);
}

.ot-body h3 {
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-style: italic !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
    margin: 0 0 15px !important;
}

.ot-desc p,
.ot-desc p span {
    max-width: 450px !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
    color: rgba(247, 239, 222, 0.84) !important;
    margin-bottom: 25px !important;
}

/* STOPKA CENOWA */
.ot-foot {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.ot-cena b {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 34px;
    color: #EDC873;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(18, 30, 55, 0.85), 0 0 1px rgba(18, 30, 55, 0.6);
}
.ot-cena em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: rgba(247, 239, 222, 0.7);
    margin-top: 4px;
}

.ot-termin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: rgba(247, 239, 222, 0.9);
    text-shadow: 0 1px 12px rgba(18, 30, 55, 0.75);
}
.ot-termin svg {
    color: #EDC873;
    flex: none;
    width: 20px;
    height: 20px;
}

.ot-cta {
    background: #EDC873;
    color: var(--navy);
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    transition: background 0.2s;
    display: inline-block;
}
.aj-banner-slide:hover .ot-cta {
    background: #d4b46c;
}

/* =========================================
   NAWIGACJA (OT-UI Z ORYGINAŁU)
========================================= */
.ot-ui {
    position: absolute;
    right: 20px;
    bottom: 26px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(22, 35, 63, 0.34);
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Aktywacja kliknięć */
}

/* Reset styli swiperowych przycisków */
.ot-ui .swiper-button-prev,
.ot-ui .swiper-button-next {
    position: static;
    margin-top: 0;
}
.ot-ui .swiper-button-prev::after,
.ot-ui .swiper-button-next::after {
    display: none; /* Ukrywa domyślne ikony Swipera */
}

.ot-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(231, 217, 180, 0.45);
    background: rgba(22, 35, 63, 0.42);
    color: #EDC873;
    font-size: 22px;
    line-height: 1;
    padding-bottom: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease;
}
.ot-arrow:hover {
    border-color: #EDC873;
    background: rgba(22, 35, 63, 0.6);
}

.ot-dots {
    display: flex;
    align-items: center;
    gap: 9px;
    position: static;
    width: auto;
}

/* Nadpisanie klasycznych kropek Swipera na Twoje .ot-dot */
.ot-ui .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(231, 217, 180, 0.7);
    background: transparent;
    opacity: 1;
    transition: background .2s ease, transform .2s ease;
}

.ot-ui .swiper-pagination-bullet-active {
    background: #EDC873;
    border-color: #EDC873;
    transform: scale(1.25);
}

/* =========================================
   SPECYFIKACJA BANNERA 1 i 2 (Zaokrąglone)
========================================= */
.aj-banner-type-rounded {
    margin: 40px auto;
    max-width: 1400px; /* Przyjazne zwężenie dla krągłości na ultrawide */
    padding: 0 20px;
}
.aj-banner-type-rounded .swiper {
    border-radius: 20px;
    overflow: hidden;
}

/* =========================================
   SPECYFIKACJA BANNERA 3 i 4 (Pełna szerokość)
========================================= */
.aj-banner-type-flat {
    margin: 60px 0;
    width: 100%;
}
.aj-banner-type-flat .swiper {
    border-radius: 0;
    border-top: 3px solid #EDC873;
    border-bottom: 3px solid #EDC873;
}

/* =========================================
   RESPONSYWNOŚĆ
========================================= */
@media(max-width: 768px) {
    .aj-banner-wrapper .swiper { height: 460px; }
    .ot-body h3 { font-size: 28px !important; }
    .ot-foot { gap: 15px; }
    .ot-ui { display: none !important; } /* Mobile swipe */
    .aj-banner-inner-container {padding: 0 20px;}
}

/* =========================================
   TYP 1: ZAOKRĄGLONE ROGI (Bannery 1 i 2)
========================================= */
.aj-banner-type-rounded .swiper {
    border-radius: 20px;
    overflow: hidden;
}

/* Panel nawigacyjny - szara pigułka */
.aj-banner-type-rounded .aj-banner-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    gap: 15px;
}

.aj-banner-type-rounded .swiper-button-prev,
.aj-banner-type-rounded .swiper-button-next {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 36px; height: 36px;
    margin: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    border-color: var(--gold-soft);
    padding: 0;
}
.aj-banner-type-rounded .swiper-button-prev::after,
.aj-banner-type-rounded .swiper-button-next::after {
    font-size: 12px;
}
.aj-banner-type-rounded .swiper-button-prev:focus,
.aj-banner-type-rounded .swiper-button-next:focus {
    background: rgba(255,255,255,0.4);
}
.aj-banner-type-rounded .swiper-button-prev:hover,
.aj-banner-type-rounded .swiper-button-next:hover {
    background: rgba(255,255,255,0.4);
}

.aj-banner-type-rounded .swiper-pagination {
    position: relative;
    bottom: auto !important;
    width: auto !important;
}
.aj-banner-type-rounded .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.aj-banner-type-rounded .swiper-pagination-bullet-active {
    background: var(--gold);
}


/* =========================================
   TYP 2: PEŁNA SZEROKOŚĆ I ZŁOTE PASKI (3 i 4)
========================================= */
.aj-banner-type-flat {
    margin: 0;
}

/* Nawigacja w prawym dolnym rogu (bez szarego tła) */
.aj-banner-type-flat .aj-banner-controls {
    position: absolute;
    bottom: 40px;
    right: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Strzałki jako okręgi z obramowaniem (Zgodnie z obrazkiem 2) */
.aj-banner-type-flat .swiper-button-prev,
.aj-banner-type-flat .swiper-button-next {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 36px; height: 36px;
    margin: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    color: #fff;
}
.aj-banner-type-flat .swiper-button-prev::after,
.aj-banner-type-flat .swiper-button-next::after {
    font-size: 12px;
}
.aj-banner-type-flat .swiper-button-prev:focus,
.aj-banner-type-flat .swiper-button-next:focus {
    border-color: #fff;
    background: transparent !important;
}
.aj-banner-type-flat .swiper-button-prev:hover,
.aj-banner-type-flat .swiper-button-next:hover {
    border-color: #fff;
    background: transparent !important;
}

.aj-banner-type-flat .swiper-pagination {
    position: relative;
    bottom: auto !important;
    width: auto !important;
}
.aj-banner-type-flat .swiper-pagination-bullet {
    background: rgba(255,255,255,0.4);
    opacity: 1;
}
.aj-banner-type-flat .swiper-pagination-bullet-active {
    background: var(--gold);
}

/* =========================================
   RESPONSYWNOŚĆ BANNERÓW
========================================= */
@media(max-width: 768px) {
    .aj-banner-wrapper .swiper { height: 420px; }
    .aj-banner-content-box {
        padding-left: 20px;
        padding-right: 20px;
    }
    .aj-b-title { font-size: 36px !important; }
    .aj-b-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .aj-banner-controls {
        display: none !important; /* Na mobile zazwyczaj strzałki przeszkadzają (slider można przesuwać palcem) */
    }
}

/* =========================================
   HERO GALERIA OFERTY Z PLAKIETKĄ NA ŚRODKU
========================================= */
.aj-hero-gallery-wrapper {
    width: 100%;
}

.aj-hero-gallery-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 480px;
    overflow: hidden;
}

.aj-hero-gallery-item {
    flex: 1;
    position: relative;
    border-right: 2px solid #000;
    overflow: hidden;
}

.aj-hero-gallery-item:last-child {
    border-right: none;
}

.aj-hero-gallery-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.aj-hero-gallery-item:hover .aj-hero-gallery-bg {
    transform: scale(1.05);
}

/* Teksty nakładane na zdjęcia */
.aj-hero-overlay-text {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    text-align: center;
    padding: 30px 15px 25px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    pointer-events: none;
}

.aj-hero-overlay-top {
    font-family: var(--font-body, 'Work Sans', sans-serif);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-soft, #E7D9B4);
    margin-bottom: 4px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.aj-hero-overlay-bottom {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-style: italic;
    font-weight: 600;
    font-size: 22px;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Plakietka (Badge) bazująca na Twoim kodzie */
.insp-hero-badge {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: 26px;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14);
}

/* =========================================
   RESPONSYWNOŚĆ NA MOBILE
========================================= */
@media(max-width: 768px) {
    .aj-hero-gallery-container {
        flex-direction: column !important;
        height: auto !important;
        position: relative !important;
    }

    .aj-hero-gallery-item {
        height: 240px !important;
        min-height: 240px !important;
        flex: 0 0 240px !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 2px solid #000 !important;
        position: relative !important;
    }

    .aj-hero-gallery-item:last-child {
        border-bottom: none !important;
    }

    .aj-hero-gallery-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .aj-hero-overlay-text {
        justify-content: center !important;
        padding: 15px !important;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.1) 100%) !important;
    }

    .insp-hero-badge {
        position: absolute !important;
        top: 240px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; 
        margin: 0 !important;
        z-index: 10;
        width: 76px;
        height: 76px;
        min-width: 76px;
        font-size: 20px;
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.25);
    }
}