/* =============================================
   ZWP Maps & Planner v1.0.0
   zwiedzajwpolsce.pl
   
   Prefix: zwp-
   ============================================= */

/* ─── RESET ─── */
.zwp-wrap,
.zwp-wrap * {
    box-sizing: border-box;
}

.zwp-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ─── Komunikaty błędów ─── */
.zwp-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0;
}

.zwp-msg--error {
    background: #fce4ec;
    border-left: 4px solid #e53935;
    color: #b71c1c;
}

/* ═══════════════════════════════════════
   MAPA
   ═══════════════════════════════════════ */
.zwp-canvas {
    width: 100%;
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #dde4d5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.zwp-canvas--single {
    border-radius: 14px 14px 0 0;
}

/* Przycisk nawigacji pod pojedynczym szlakiem */
.zwp-nav-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: #fff;
    border: none;
    border-radius: 0 0 14px 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.zwp-nav-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* ═══════════════════════════════════════
   MARKER PIN
   ═══════════════════════════════════════ */
.zwp-div-icon {
    background: transparent !important;
    border: none !important;
}

.zwp-pin {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 3px solid #4a8c1c;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    transition: box-shadow 0.2s;
    cursor: pointer;
}

/* Badge numer na markerze */
.zwp-mbadge {
    width: 24px;
    height: 24px;
    background: #e65100;
    color: #fff;
    border: 2.5px solid #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: zwpBadgePop 0.3s ease;
}

@keyframes zwpBadgePop {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* ═══════════════════════════════════════
   POPUP
   ═══════════════════════════════════════ */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 220px !important;
    max-width: 280px !important;
}

.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    z-index: 10;
}

.zwp-popup__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.zwp-popup__body {
    padding: 10px 14px 14px;
}

.zwp-popup__title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
    margin-bottom: 4px;
}

.zwp-popup__meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.zwp-popup__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 6px 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 6px;
}

.zwp-popup__link {
    display: inline-block;
    font-size: 13px;
    color: #4a8c1c;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 8px;
}

.zwp-popup__link:hover {
    text-decoration: underline;
}

/* Przycisk planera w popup */
.zwp-popup__plan {
    display: block;
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.zwp-popup__plan--add {
    background: linear-gradient(135deg, #4a8c1c, #5ca625);
    color: #fff;
    box-shadow: 0 2px 6px rgba(74, 140, 28, 0.25);
}

.zwp-popup__plan--add:hover {
    background: linear-gradient(135deg, #3a7015, #4a8c1c);
    transform: translateY(-1px);
}

.zwp-popup__plan--rem {
    background: linear-gradient(135deg, #e53935, #ef5350);
    color: #fff;
}

.zwp-popup__plan--rem:hover {
    background: linear-gradient(135deg, #c62828, #e53935);
}

/* ═══════════════════════════════════════
   FILTRY SZLAKÓW
   ═══════════════════════════════════════ */
.zwp-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: #f8faf5;
    border: 2px solid #d4e8c2;
    border-radius: 12px;
}

.zwp-filters__title {
    font-size: 13px;
    font-weight: 800;
    color: #2d5016;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.zwp-filters__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zwp-filters__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    background: #fff;
    border: 2px solid #d4e8c2;
    border-radius: 20px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.zwp-filters__item:hover {
    border-color: #4a8c1c;
    background: #f0f8e8;
}

.zwp-filters__cb {
    width: 16px;
    height: 16px;
    accent-color: #4a8c1c;
    cursor: pointer;
    margin: 0;
}

.zwp-filters__item:has(input:checked) {
    border-color: #4a8c1c;
    background: #e8f5d6;
    color: #2d5016;
    font-weight: 600;
}

.zwp-filters__emoji {
    font-size: 16px;
    line-height: 1;
}

.zwp-filters__count {
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: #e8e8e8;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    color: #777;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.zwp-filters__item:has(input:checked) .zwp-filters__count {
    background: #4a8c1c;
    color: #fff;
}

/* ═══════════════════════════════════════
   PASEK PLANERA (sticky)
   ═══════════════════════════════════════ */
.zwp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 11px 18px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #2d5016, #4a8c1c);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 3px 12px rgba(45, 80, 22, 0.25);
    position: sticky;
    top: 32px;
    z-index: 990;
    transition: box-shadow 0.3s;
}

body:not(.admin-bar) .zwp-topbar {
    top: 0;
}

.zwp-topbar--on {
    box-shadow: 0 4px 18px rgba(45, 80, 22, 0.4);
}

.zwp-topbar__left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.zwp-topbar__icon {
    font-size: 20px;
}

.zwp-topbar__label {
    font-size: 14px;
    font-weight: 700;
}

.zwp-topbar__count {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.zwp-topbar__count--on {
    background: #ff6d00;
    animation: zwpPop 0.4s ease;
}

@keyframes zwpPop {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.3)
    }
}

.zwp-topbar__right {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.zwp-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.zwp-topbar__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.zwp-topbar__btn--gmaps {
    background: rgba(66, 133, 244, 0.3);
    border-color: rgba(66, 133, 244, 0.5);
}

.zwp-topbar__btn--gmaps:hover {
    background: rgba(66, 133, 244, 0.55);
}

.zwp-topbar__btn--nav {
    background: rgba(52, 168, 83, 0.3);
    border-color: rgba(52, 168, 83, 0.5);
}

.zwp-topbar__btn--nav:hover {
    background: rgba(52, 168, 83, 0.5);
}

.zwp-topbar__btn--del {
    border-color: rgba(255, 100, 100, 0.4);
}

.zwp-topbar__btn--del:hover {
    background: rgba(255, 50, 50, 0.25);
}

.zwp-only-plan {
    display: none;
}

#zwp-topbar-btns.has-plan .zwp-only-plan {
    display: inline-flex;
}

/* ═══════════════════════════════════════
   PLAN WYCIECZKI – SEKCJA
   ═══════════════════════════════════════ */
.zwp-plan {
    margin-top: 25px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: border-color 0.3s;
}

.zwp-plan--active {
    border-color: #4a8c1c;
}

/* Nagłówek */
.zwp-plan__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f8faf5, #eef5e6);
    border-bottom: 2px solid #e0e0e0;
}

.zwp-plan__head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zwp-plan__title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 800;
    color: #2d5016;
}

.zwp-plan__badge {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #e65100;
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.zwp-plan__clear {
    padding: 7px 14px;
    border: 2px solid #e53935;
    background: transparent;
    color: #e53935;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.zwp-plan__clear:hover {
    background: #e53935;
    color: #fff;
}

/* Stan pusty */
.zwp-plan__empty {
    text-align: center;
    padding: 44px 22px;
}

.zwp-plan__empty-icon {
    font-size: 50px;
    margin-bottom: 12px;
    opacity: 0.35;
}

.zwp-plan__empty h3 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 8px;
}

.zwp-plan__empty p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.zwp-plan__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.zwp-plan__step {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 13px;
    color: #555;
}

.zwp-plan__step-n {
    width: 24px;
    height: 24px;
    background: #4a8c1c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ─── Lista / karta ─── */
.zwp-plan__list {
    padding: 16px 20px;
}

.zwp-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    margin-bottom: 8px;
    background: #fafbfc;
    border: 2px solid #eaeaea;
    border-radius: 12px;
    transition: all 0.25s;
    animation: zwpFadeIn 0.35s ease-out;
}

@keyframes zwpFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zwp-card:hover {
    border-color: #c5d9b2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.zwp-card--drag {
    opacity: 0.4;
    border-color: #e65100;
}

.zwp-card--over {
    border-color: #4a8c1c;
    border-style: dashed;
    background: #f0f8e8;
}

/* Numer */
.zwp-card__num {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.zwp-card__circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
}

.zwp-card__drag {
    cursor: grab;
    color: #ccc;
    font-size: 16px;
    user-select: none;
    transition: color 0.2s;
}

.zwp-card__drag:hover {
    color: #888;
}

.zwp-card__drag:active {
    cursor: grabbing;
    color: #e65100;
}

/* Zdjęcie */
.zwp-card__img {
    width: 140px;
    height: 105px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.25s;
}

.zwp-card__img:hover {
    transform: scale(1.03);
}

.zwp-card__img-ph {
    width: 140px;
    height: 105px;
    border-radius: 9px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ccc;
    flex-shrink: 0;
    cursor: pointer;
}

/* Treść */
.zwp-card__body {
    flex: 1;
    min-width: 0;
}

.zwp-card__title {
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
}

.zwp-card__title a {
    color: inherit;
    text-decoration: none;
}

.zwp-card__title a:hover {
    color: #4a8c1c;
    text-decoration: underline;
}

.zwp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.zwp-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 12px;
    color: #777;
}

.zwp-card__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zwp-card__desc--open {
    -webkit-line-clamp: unset;
    display: block;
}

.zwp-card__more {
    background: none;
    border: none;
    color: #4a8c1c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
}

.zwp-card__more:hover {
    text-decoration: underline;
}

/* Przyciski */
.zwp-card__btns {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.zwp-cbtn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zwp-cbtn--loc {
    background: #e3f2fd;
    color: #1976d2;
}

.zwp-cbtn--up {
    background: #f0f0f0;
    color: #555;
}

.zwp-cbtn--down {
    background: #f0f0f0;
    color: #555;
}

.zwp-cbtn--del {
    background: #fce4ec;
    color: #e53935;
}

.zwp-cbtn--loc:hover {
    background: #1976d2;
    color: #fff;
}

.zwp-cbtn--up:hover {
    background: #4a8c1c;
    color: #fff;
}

.zwp-cbtn--down:hover {
    background: #4a8c1c;
    color: #fff;
}

.zwp-cbtn--del:hover {
    background: #e53935;
    color: #fff;
}

/* Łącznik */
.zwp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2px 0;
    margin-bottom: 8px;
}

.zwp-link::before,
.zwp-link::after {
    content: '';
    flex: 1;
    border-top: 2px dashed #e0e0e0;
}

.zwp-link__km {
    white-space: nowrap;
    padding: 2px 10px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

/* ─── Footer ─── */
.zwp-plan__foot {
    padding: 20px 22px;
    background: linear-gradient(135deg, #f8faf5, #f0f4eb);
    border-top: 2px solid #e0e0e0;
    display: none;
}

.zwp-plan--active .zwp-plan__foot {
    display: block;
}

/* Statystyki */
.zwp-plan__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.zwp-stat {
    text-align: center;
    padding: 12px 6px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.zwp-stat__i {
    font-size: 20px;
    margin-bottom: 2px;
}

.zwp-stat__v {
    font-size: 1.35em;
    font-weight: 800;
    color: #2d5016;
}

.zwp-stat__l {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Akcje */
.zwp-plan__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.zwp-plan__action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    text-align: left;
    transition: all 0.25s;
    text-decoration: none;
}

.zwp-plan__action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.zwp-plan__action-i {
    font-size: 18px;
    flex-shrink: 0;
}

.zwp-plan__action-t {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.zwp-plan__action-t strong {
    font-size: 13px;
}

.zwp-plan__action-t small {
    font-size: 10px;
    opacity: 0.8;
}

.zwp-act--gmaps {
    background: linear-gradient(135deg, #4285F4, #34A853);
}

.zwp-act--nav {
    background: linear-gradient(135deg, #34A853, #0D652D);
}

.zwp-act--gpx {
    background: linear-gradient(135deg, #7b1fa2, #ab47bc);
}

.zwp-act--print {
    background: linear-gradient(135deg, #616161, #424242);
}

.zwp-act--share {
    background: linear-gradient(135deg, #e65100, #ff6d00);
}

.zwp-act--clear {
    background: linear-gradient(135deg, #c62828, #ef5350);
}

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.zwp-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.zwp-modal-bg--on {
    opacity: 1;
    visibility: visible;
}

.zwp-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 420px;
    width: 92%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.zwp-modal-bg--on .zwp-modal {
    transform: scale(1);
}

.zwp-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zwp-modal__close:hover {
    background: #ddd;
}

.zwp-modal h3 {
    font-size: 1.1em;
    margin-bottom: 4px;
    color: #333;
}

.zwp-modal__sub {
    font-size: 13px;
    color: #999;
    margin-bottom: 14px;
}

.zwp-modal__row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.zwp-modal__input {
    flex: 1;
    padding: 9px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.zwp-modal__input:focus {
    border-color: #4a8c1c;
}

.zwp-modal__copy {
    padding: 9px 14px;
    background: #4a8c1c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.zwp-modal__copy:hover {
    background: #3a7015;
}

.zwp-modal__sep {
    text-align: center;
    position: relative;
    margin: 12px 0;
}

.zwp-modal__sep::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #eee;
}

.zwp-modal__sep span {
    position: relative;
    background: #fff;
    padding: 0 10px;
    font-size: 12px;
    color: #bbb;
}

.zwp-modal__social {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.zwp-social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s;
}

.zwp-social:hover {
    transform: scale(1.12);
}

.zwp-social--fb {
    background: #1877f2;
}

.zwp-social--wa {
    background: #25d366;
}

.zwp-social--mail {
    background: #666;
}

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.zwp-toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
    pointer-events: none;
}

.zwp-toast {
    pointer-events: auto;
    padding: 11px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    max-width: 320px;
    animation: zwpTI 0.3s ease-out;
}

.zwp-toast--success {
    background: #2e7d32;
}

.zwp-toast--info {
    background: #1565c0;
}

.zwp-toast--warning {
    background: #e65100;
}

.zwp-toast--error {
    background: #c62828;
}

@keyframes zwpTI {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.zwp-toast--out {
    animation: zwpTO 0.25s ease-in forwards;
}

@keyframes zwpTO {
    to {
        opacity: 0;
        transform: translateX(40px)
    }
}

/* ═══════════════════════════════════════
   FLOAT (mobile)
   ═══════════════════════════════════════ */
.zwp-float {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e65100, #ff6d00);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.4);
    cursor: pointer;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.zwp-float:hover {
    transform: scale(1.1);
}

.zwp-float__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #c62828;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .zwp-card {
        flex-wrap: wrap;
    }

    .zwp-card__img,
    .zwp-card__img-ph {
        width: 100%;
        height: 170px;
        order: -1;
    }

    .zwp-card__num {
        flex-direction: row;
        width: 100%;
    }

    .zwp-card__btns {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 600px) {
    .zwp-canvas {
        height: 380px;
    }

    .zwp-topbar {
        flex-direction: column;
        text-align: center;
        padding: 10px 12px;
    }

    .zwp-topbar__left,
    .zwp-topbar__right {
        justify-content: center;
    }

    .zwp-topbar__btn span {
        display: none;
    }

    .zwp-plan__head {
        padding: 14px;
    }

    .zwp-plan__list {
        padding: 10px;
    }

    .zwp-plan__actions {
        grid-template-columns: 1fr 1fr;
    }

    .zwp-plan__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .zwp-float {
        display: flex;
    }

    .zwp-plan__steps {
        flex-direction: column;
        align-items: center;
    }

    .zwp-filters {
        padding: 10px 12px;
    }

    .zwp-filters__item {
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .zwp-plan__actions {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════
   DRUKOWANIE
   ═══════════════════════════════════════ */
@media print {

    .zwp-topbar,
    .zwp-card__btns,
    .zwp-card__drag,
    .zwp-plan__actions,
    .zwp-float,
    .zwp-card__more,
    .zwp-plan__clear,
    .zwp-toasts,
    .zwp-modal-bg,
    .zwp-filters,
    .zwp-nav-btn {
        display: none !important;
    }

    .zwp-plan {
        box-shadow: none !important;
        border: 2px solid #333 !important;
    }

    .zwp-card {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
    }

    .zwp-card__desc {
        -webkit-line-clamp: unset !important;
        display: block !important;
    }
}

/* ═══════════════════════════════════════
   KONFIGURACJA TRASY
   ═══════════════════════════════════════ */
.zwp-route-config {
    margin: 20px 0;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f8faf5, #fff);
    border: 2px solid #d4e8c2;
    border-radius: 14px;
    display: none;
    /* pokazuje się gdy są obiekty w planie */
}

.zwp-plan--active .zwp-route-config {
    display: block;
    animation: zwpFadeIn 0.3s ease;
}

.zwp-route-config__header {
    margin-bottom: 18px;
}

.zwp-route-config__title {
    font-size: 1.1em;
    font-weight: 800;
    color: #2d5016;
    margin: 0 0 4px;
}

.zwp-route-config__sub {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Grid start/end */
.zwp-route-config__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
}

.zwp-route-arrow {
    font-size: 24px;
    color: #4a8c1c;
    padding-top: 32px;
    text-align: center;
    font-weight: 700;
}

/* Pojedynczy punkt */
.zwp-route-point__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
}

.zwp-route-point__icon {
    font-size: 16px;
}

.zwp-route-point__optional {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
}

/* Input + GPS */
.zwp-route-point__input-row {
    display: flex;
    gap: 8px;
}

.zwp-route-point__input {
    flex: 1;
    padding: 10px 13px;
    border: 2px solid #ddd;
    border-radius: 9px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.zwp-route-point__input:focus {
    border-color: #4a8c1c;
    box-shadow: 0 0 0 3px rgba(74, 140, 28, 0.1);
}

.zwp-route-point__gps {
    padding: 10px 14px;
    background: #4a8c1c;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.zwp-route-point__gps:hover {
    background: #3a7015;
}

.zwp-route-point__gps:disabled {
    background: #aaa;
    cursor: wait;
}

/* Wybrany adres */
.zwp-route-point__selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #e8f5d6;
    border: 2px solid #4a8c1c;
    border-radius: 9px;
    margin-top: 8px;
}

.zwp-route-point__selected-text {
    flex: 1;
    font-size: 13px;
    color: #2d5016;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zwp-route-point__clear-btn {
    background: none;
    border: none;
    color: #e53935;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    flex-shrink: 0;
    line-height: 1;
}

.zwp-route-point__clear-btn:hover {
    color: #c62828;
}

.zwp-route-point__coords {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    padding-left: 2px;
}

/* Toggle (własny koniec) */
.zwp-route-point__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.zwp-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.zwp-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.zwp-toggle__slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.2s;
}

.zwp-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.zwp-toggle input:checked+.zwp-toggle__slider {
    background: #4a8c1c;
}

.zwp-toggle input:checked+.zwp-toggle__slider::before {
    transform: translateX(20px);
}

.zwp-toggle__label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
}

/* ── Autouzupełnianie ── */
.zwp-autocomplete {
    position: relative;
    z-index: 9999;
}

.zwp-autocomplete__item {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
}

.zwp-autocomplete__item:first-child {
    border-top: 1px solid #e0e0e0;
    border-radius: 8px 8px 0 0;
}

.zwp-autocomplete__item:last-child {
    border-radius: 0 0 8px 8px;
}

.zwp-autocomplete__item:hover,
.zwp-autocomplete__item--active {
    background: #f0f8e8;
    color: #2d5016;
}

.zwp-autocomplete__item--empty {
    color: #aaa;
    cursor: default;
}

/* ── Podgląd trasy ── */
.zwp-route-preview {
    margin-top: 20px;
    padding: 14px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
}

.zwp-route-preview__title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zwp-route-preview__items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.zwp-preview__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.zwp-preview__label {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.zwp-preview__item--start .zwp-preview__label {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #4caf50;
}

.zwp-preview__item--end .zwp-preview__label {
    background: #fce4ec;
    color: #c62828;
    border: 2px solid #ef5350;
}

.zwp-preview__arrow {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    color: #bbb;
    margin: 0 2px;
}

.zwp-preview__dist {
    font-size: 10px;
    color: #aaa;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.zwp-preview__total {
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: #888;
    font-weight: 700;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* ── Markery start/end ── */
.zwp-route-marker {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: zwpBadgePop 0.3s ease;
}

/* ── Menu kontekstowe ── */
.zwp-ctx-menu {
    position: fixed;
    z-index: 99998;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    min-width: 220px;
    animation: zwpFadeIn 0.15s ease;
}

.zwp-ctx-menu__title {
    padding: 8px 14px;
    font-size: 11px;
    color: #999;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.zwp-ctx-menu__item {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: #fff;
    text-align: left;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.zwp-ctx-menu__item:hover {
    background: #f0f8e8;
    color: #2d5016;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .zwp-route-config__grid {
        grid-template-columns: 1fr;
    }

    .zwp-route-arrow {
        padding-top: 0;
        font-size: 20px;
        transform: rotate(90deg);
    }

    .zwp-route-preview__items {
        flex-direction: column;
        align-items: flex-start;
    }

    .zwp-preview__label {
        max-width: 100%;
    }

    .zwp-preview__arrow {
        transform: rotate(90deg);
    }
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.zwp-hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 30px;
    margin-top: -120px;
}

.zwp-hero__bg {
    position: absolute;
    inset: 0;
    background:
        url('data:image/svg+xml,\
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600">\
                <rect fill="%232d5016" width="1200" height="600"/>\
                <circle cx="200" cy="150" r="300" fill="%23345a18" opacity="0.5"/>\
                <circle cx="900" cy="400" r="250" fill="%233a6a1a" opacity="0.4"/>\
                <circle cx="600" cy="100" r="200" fill="%23407020" opacity="0.3"/>\
                <circle cx="100" cy="500" r="350" fill="%23345a18" opacity="0.3"/>\
                <circle cx="1100" cy="100" r="280" fill="%233a6a1a" opacity="0.25"/>\
            </svg>') center/cover no-repeat;
    background-color: #2d5016;
}

.zwp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(45, 80, 22, 0.92) 0%,
            rgba(74, 140, 28, 0.85) 50%,
            rgba(106, 176, 48, 0.88) 100%);
}

.zwp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 30px;
    max-width: 800px;
    color: #fff;
    margin-top: 90px;
}

.zwp-hero__badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.zwp-hero__title {
    font-size: 2.8em;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 8px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.zwp-hero__title-accent {
    display: block;
    background: linear-gradient(90deg, #ffd54f, #ffb300, #ffd54f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.15em;
}

.zwp-hero__subtitle {
    font-size: 1.1em;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 28px;
    font-weight: 400;
}

/* Hero statystyki */
.zwp-hero__stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.zwp-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(4px);
    min-width: 110px;
    transition: transform 0.2s, background 0.2s;
}

.zwp-hero__stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
}

.zwp-hero__stat-icon {
    font-size: 22px;
}

.zwp-hero__stat-num {
    font-size: 1.8em;
    font-weight: 900;
    line-height: 1.1;
}

.zwp-hero__stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    opacity: 0.75;
}

/* Hero przyciski */
.zwp-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.zwp-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.zwp-hero__btn--primary {
    background: #fff;
    color: #2d5016;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.zwp-hero__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: #f8faf5;
}

.zwp-hero__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.zwp-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* Scroll hint */
.zwp-hero__scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.5;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.zwp-hero__scroll-arrow {
    font-size: 18px;
    animation: zwpScrollBounce 2s infinite;
}

@keyframes zwpScrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ═══════════════════════════════════════
   SEKCJA WPROWADZAJĄCA
   ═══════════════════════════════════════ */
.zwp-intro {
    margin-bottom: 30px;
    padding: 35px 30px;
    background: #fff;
    border-radius: 18px;
    border: 2px solid #e8eee2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.zwp-intro__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.zwp-intro__title {
    font-size: 1.6em;
    font-weight: 800;
    color: #2d5016;
    margin: 0 0 10px;
}

.zwp-intro__desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Kroki */
.zwp-intro__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.zwp-intro__step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: 20px 16px;
    background: #f8faf5;
    border: 2px solid #e8f0de;
    border-radius: 14px;
    transition: all 0.25s;
}

.zwp-intro__step:hover {
    border-color: #4a8c1c;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(74, 140, 28, 0.1);
}

.zwp-intro__step-icon {
    position: relative;
    font-size: 32px;
    margin-bottom: 10px;
    display: inline-block;
}

.zwp-intro__step-num {
    position: absolute;
    top: -6px;
    right: -10px;
    width: 22px;
    height: 22px;
    background: #e65100;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.zwp-intro__step-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}

.zwp-intro__step-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.55;
    margin: 0;
}

.zwp-intro__step-arrow {
    font-size: 22px;
    color: #4a8c1c;
    font-weight: 700;
    padding-top: 45px;
    flex-shrink: 0;
}

/* Funkcje */
.zwp-intro__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 22px;
    border-top: 2px solid #f0f0f0;
}

.zwp-intro__feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
}

.zwp-intro__feature:hover {
    background: #e8f5d6;
    color: #2d5016;
}

.zwp-intro__feature-icon {
    font-size: 16px;
}

/* ═══════════════════════════════════════
   HERO - RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    .zwp-hero {
        min-height: 450px;
        border-radius: 14px;
    }

    .zwp-hero__content {
        padding: 35px 20px;
    }

    .zwp-hero__title {
        font-size: 2em;
    }

    .zwp-hero__title-accent {
        font-size: 1.1em;
    }

    .zwp-hero__subtitle {
        font-size: 1em;
    }

    .zwp-hero__stats {
        gap: 12px;
    }

    .zwp-hero__stat {
        padding: 10px 14px;
        min-width: 90px;
    }

    .zwp-hero__stat-num {
        font-size: 1.5em;
    }

    .zwp-hero__btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .zwp-hero__scroll-hint {
        display: none;
    }
}

@media (max-width: 600px) {
    .zwp-hero {
        min-height: 400px;
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
    }

    .zwp-hero__title {
        font-size: 1.7em;
    }

    .zwp-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .zwp-hero__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════
   INTRO - RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
    .zwp-intro__step-arrow {
        display: none;
    }

    .zwp-intro__steps {
        gap: 10px;
    }

    .zwp-intro__step {
        min-width: 140px;
    }
}

@media (max-width: 600px) {
    .zwp-intro {
        padding: 25px 18px;
        border-radius: 14px;
    }

    .zwp-intro__title {
        font-size: 1.3em;
    }

    .zwp-intro__steps {
        flex-direction: column;
        align-items: center;
    }

    .zwp-intro__step {
        max-width: 100%;
        width: 100%;
    }

    .zwp-intro__features {
        gap: 6px;
    }

    .zwp-intro__feature {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════
   DRUKOWANIE - ukryj hero i intro
   ═══════════════════════════════════════ */
@media print {

    .zwp-hero,
    .zwp-intro {
        display: none !important;
    }
}

/* ═══════════════════════════════════════
   GALERIA ZDJĘĆ
   ═══════════════════════════════════════ */
.zwp-gallery {
    padding: 50px 0;
    margin: 40px 0;
    background: linear-gradient(135deg, #f8faf5 0%, #f0f4eb 100%);
    border-radius: 20px;
    border: 2px solid #e0e8d6;
}

.zwp-gallery__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.zwp-gallery__header {
    text-align: center;
    margin-bottom: 30px;
}

.zwp-gallery__badge {
    display: inline-block;
    padding: 5px 16px;
    background: #fff;
    border: 2px solid #d4e8c2;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #4a8c1c;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.zwp-gallery__title {
    font-size: 1.8em;
    font-weight: 900;
    color: #2d5016;
    margin: 0 0 8px;
}

.zwp-gallery__desc {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* ── Grid ── */
.zwp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* ── Pojedynczy item ── */
.zwp-gallery__item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    text-decoration: none;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.zwp-gallery__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Zdjęcie */
.zwp-gallery__img {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.zwp-gallery__item:hover .zwp-gallery__img {
    transform: scale(1.06);
}

/* Overlay */
.zwp-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(45, 80, 22, 0.1) 0%,
            rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zwp-gallery__item:hover .zwp-gallery__overlay {
    opacity: 1;
}

/* Info w overlay */
.zwp-gallery__info {
    color: #fff;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.zwp-gallery__item:hover .zwp-gallery__info {
    transform: translateY(0);
}

.zwp-gallery__item-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.zwp-gallery__location {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zwp-gallery__region {
    opacity: 0.7;
    font-size: 12px;
}

.zwp-gallery__region::before {
    content: '•';
    margin: 0 5px;
}

/* Strzałka */
.zwp-gallery__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.zwp-gallery__item:hover .zwp-gallery__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.zwp-gallery__footer {
    text-align: center;
}

.zwp-gallery__refresh {
    padding: 12px 28px;
    background: #fff;
    color: #4a8c1c;
    border: 2px solid #4a8c1c;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(74, 140, 28, 0.15);
}

.zwp-gallery__refresh:hover {
    background: #4a8c1c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(74, 140, 28, 0.25);
}

/* ═══════════════════════════════════════
   GALERIA - RESPONSIVE
   ═══════════════════════════════════════ */

/* 3 kolumny na tabletach */
@media (max-width: 1024px) {
    .zwp-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .zwp-gallery__img {
        height: 240px;
    }

    /* Ukryj 7 i 8 element na 3 kolumny (żeby grid był pełny) */
    .zwp-gallery__item:nth-child(n+7) {
        display: none;
    }
}

/* 2 kolumny na mniejszych tabletach */
@media (max-width: 768px) {
    .zwp-gallery {
        padding: 35px 0;
        margin: 25px 0;
        border-radius: 14px;
    }

    .zwp-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .zwp-gallery__img {
        height: 220px;
    }

    .zwp-gallery__title {
        font-size: 1.5em;
    }

    /* Pokaż 6 elementów na 2 kolumny */
    .zwp-gallery__item:nth-child(n+7) {
        display: none;
    }

    /* Overlay zawsze widoczny na mobile (nie ma hover) */
    .zwp-gallery__overlay {
        opacity: 1;
        background: linear-gradient(to bottom,
                transparent 0%,
                transparent 40%,
                rgba(0, 0, 0, 0.7) 100%);
    }

    .zwp-gallery__info {
        transform: translateY(0);
    }

    .zwp-gallery__arrow {
        display: none;
    }
}

/* 1 kolumna na telefonach */
@media (max-width: 480px) {
    .zwp-gallery {
        padding: 25px 0;
        margin: 20px 0;
        border-radius: 0;
    }

    .zwp-gallery__inner {
        padding: 0 12px;
    }

    .zwp-gallery__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .zwp-gallery__img {
        height: 200px;
    }

    .zwp-gallery__item-title {
        font-size: 15px;
    }

    /* Pokaż 4 elementy na 1 kolumnę */
    .zwp-gallery__item:nth-child(n+5) {
        display: none;
    }

    .zwp-gallery__title {
        font-size: 1.3em;
    }

    .zwp-gallery__desc {
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════
   GALERIA - DRUKOWANIE
   ═══════════════════════════════════════ */
@media print {
    .zwp-gallery {
        display: none !important;
    }
}