/* ==========================================================================
   ODWIEDZONE MIEJSCA – przycisk „Dodaj do odwiedzonych”, komunikat, panel „Moje podróże”
   ========================================================================== */

/* --- Przycisk w hero (dziedziczy .object-btn .object-btn--glass) --- */
.zwp-visit-btn { position: relative; }
.zwp-visit-btn.is-visited {
    border-color: rgba(134, 239, 172, .75) !important;
    background: rgba(22, 163, 74, .9) !important;
    color: #fff !important;
}
.zwp-visit-btn.is-loading { opacity: .7; pointer-events: none; }
.zwp-visit-btn.is-popping i { animation: zwp-visit-pop .45s ease; }

@keyframes zwp-visit-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

/* --- Pasek mobilny --- */
.zwp-visit-btn--mobile.is-visited { color: #86efac !important; background: rgba(22, 163, 74, .18) !important; }

/* --- Przycisk na kartach w panelu --- */
.zwp-visit-btn--card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #cfe3da;
    border-radius: 10px;
    background: #fff;
    color: #245f52;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.zwp-visit-btn--card.is-visited { border-color: #16a34a; background: #ecfdf3; color: #15803d; }
.zwp-visit-btn--card:hover { border-color: #245f52; }

/* --- Licznik w hero --- */
.zwp-visit-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 650;
}
.zwp-visit-social i { color: #86efac; }

/* --- Komunikat (toast) --- */
.zwp-visit-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100000;
    display: grid;
    gap: 4px;
    width: min(440px, calc(100vw - 24px));
    padding: 18px 44px 18px 20px;
    border-radius: 16px;
    background: #12392d;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}
.zwp-visit-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.zwp-visit-toast strong { font-size: 16px; }
.zwp-visit-toast span { color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.5; }
.zwp-visit-toast__hint { color: #86efac !important; font-weight: 700; }
.zwp-visit-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.zwp-visit-toast__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.zwp-visit-toast__btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #12392d !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.zwp-visit-toast__link { color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
    /* Nad przyklejonym paskiem akcji na karcie obiektu. */
    .single-object .zwp-visit-toast,
    .modern-object-page ~ .zwp-visit-toast { bottom: 84px; }
    .zwp-visit-toast { bottom: 84px; }
}

/* ==========================================================================
   PANEL „MOJE PODRÓŻE”
   ========================================================================== */

.zwp-trips__notice { border: 1px solid #c7dcf5; background: #eef5fd; color: #1d4b80; }
.zwp-trips__notice a { color: inherit; font-weight: 800; }

.zwp-trips__hero h1 { font-size: clamp(28px, 3.6vw, 42px); }
.zwp-trips__hero p { max-width: 640px; color: rgba(255, 255, 255, .86); line-height: 1.65; }

.zwp-trips-level {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    backdrop-filter: blur(12px);
}
.zwp-trips-level__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fbbf24;
    color: #4a2c00;
    font-size: 24px;
}
.zwp-trips-level__copy { display: grid; gap: 2px; }
.zwp-trips-level__copy small { color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.zwp-trips-level__copy strong { font-size: 22px; }
.zwp-trips-level__copy span { color: rgba(255, 255, 255, .82); font-size: 13.5px; }
.zwp-trips-level .zwp-trips-progress { grid-column: 1 / -1; background: rgba(255, 255, 255, .2); }
.zwp-trips-level .zwp-trips-progress span { background: #fbbf24; }

.zwp-trips-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #e6efeb;
}
.zwp-trips-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f8f6f, #22a06b);
    transition: width .6s ease;
}

.zwp-trips-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.zwp-trips-stat {
    display: grid;
    gap: 2px;
    padding: 18px 20px;
    border: 1px solid #e1ebe7;
    border-radius: 18px;
    background: #fff;
    color: #23332f;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(31, 70, 60, .05);
}
a.zwp-trips-stat:hover { border-color: #9cc9b8; }
.zwp-trips-stat i { color: #2f8f6f; font-size: 18px; }
.zwp-trips-stat strong { font-size: 28px; line-height: 1.15; }
.zwp-trips-stat span { color: #6b7a76; font-size: 13px; font-weight: 650; }

.zwp-trips-panel { margin-bottom: 22px; }
.zwp-trips-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 18px;
}
.zwp-trips-panel h2 { margin: 4px 0 0; color: #1d332d; font-size: clamp(19px, 2vw, 23px); line-height: 1.25; }
.zwp-trips-muted { margin: 0; color: #6b7a76; line-height: 1.6; }

.zwp-trips-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.zwp-trips-grid .zwp-trips-panel { margin-bottom: 0; }

/* Mapa */
.zwp-trips-map { height: 420px; border-radius: 16px; overflow: hidden; z-index: 0; }
.zwp-trips-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; font-weight: 700; color: #3d4f4a; }
.zwp-trips-legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.zwp-trips-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; }
.zwp-trips-dot--visited { background: #22a06b; border-color: #0f5132; }
.zwp-trips-dot--wish { background: #fbbf24; border-color: #b45309; }
.zwp-trips-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; border: 2px dashed #d6e4de; border-radius: 16px; text-align: center; color: #6b7a76; }
.zwp-trips-empty i { font-size: 34px; color: #9cc9b8; }
.zwp-trips-empty p { max-width: 420px; margin: 0; }

/* Paski postępu */
.zwp-trips-bars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.zwp-trips-bars__label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.zwp-trips-bars__label a { color: #1d332d; font-weight: 750; text-decoration: none; }
.zwp-trips-bars__label a:hover { text-decoration: underline; }
.zwp-trips-bars__label span { color: #6b7a76; font-weight: 700; white-space: nowrap; }
.zwp-trips-bars li.is-done .zwp-trips-progress span { background: linear-gradient(90deg, #d4872e, #fbbf24); }
.zwp-trips-bars li.is-done .zwp-trips-bars__label span { color: #b45309; }
.zwp-trips-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff4e5; color: #9a4f05; font-size: 13px; font-weight: 800; }

/* Województwa */
.zwp-trips-provinces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.zwp-trips-provinces li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5ece9;
    border-radius: 12px;
    background: #f8faf9;
    color: #8a9793;
    font-size: 13px;
    font-weight: 700;
}
.zwp-trips-provinces li.is-done { border-color: #a7d7c2; background: #ecfdf3; color: #1d4d3d; }
.zwp-trips-provinces strong { font-size: 15px; }

/* Lista kart */
.zwp-trips-filter { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #d6e4de; border-radius: 12px; background: #fff; color: #6b7a76; }
.zwp-trips-filter input { min-width: 220px; min-height: 40px; border: 0; outline: 0; background: transparent; font: inherit; }
.zwp-trips-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zwp-trips-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e5ece9;
    border-radius: 16px;
    background: #fff;
    transition: opacity .25s ease;
}
.zwp-trips-card.is-removed { opacity: .45; }
.zwp-trips-card__image { display: block; width: 76px; height: 64px; overflow: hidden; border-radius: 11px; background: #edf2f0; }
.zwp-trips-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zwp-trips-card__image span { display: grid; place-items: center; height: 100%; color: #8b9994; font-size: 22px; }
.zwp-trips-card__body { min-width: 0; }
.zwp-trips-card__body small { display: block; overflow: hidden; color: #7a8783; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; text-overflow: ellipsis; }
.zwp-trips-card__body h3 { margin: 3px 0 4px; font-size: 15.5px; line-height: 1.3; }
.zwp-trips-card__body h3 a { color: #1d332d; text-decoration: none; }
.zwp-trips-card__body h3 a:hover { text-decoration: underline; }
.zwp-trips-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #7a8783; font-size: 12.5px; }
.zwp-trips-card__rating { color: #f5a300; letter-spacing: 1px; }
.zwp-trips-card__rate { color: #2f8f6f; font-weight: 800; text-decoration: none; }
.zwp-trips-card [hidden], .zwp-trips-card[hidden] { display: none; }

/* Oceny */
.zwp-trips-ratings { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.zwp-trips-ratings li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border: 1px solid #e5ece9; border-radius: 14px; background: #fff; }
.zwp-trips-ratings a { color: #1d332d; font-weight: 750; text-decoration: none; }
.zwp-trips-ratings__status { grid-column: 1 / -1; color: #b45309; font-size: 12.5px; font-weight: 700; }
.zwp-trips-ratings p { grid-column: 1 / -1; margin: 0; color: #4b5b57; font-size: 14px; line-height: 1.55; }

/* Odznaki */
.zwp-trips-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.zwp-trips-badges li { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border: 1px dashed #d6e4de; border-radius: 16px; text-align: center; color: #9aa6a2; }
.zwp-trips-badges__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #eef2f0; font-size: 20px; }
.zwp-trips-badges strong { font-size: 13.5px; }
.zwp-trips-badges small { font-size: 12px; }
.zwp-trips-badges li.is-unlocked { border-style: solid; border-color: #f3d9a8; background: #fffaf0; color: #5b3a0b; }
.zwp-trips-badges li.is-unlocked .zwp-trips-badges__icon { background: #fbbf24; color: #4a2c00; }

@media (max-width: 1040px) {
    .zwp-trips-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zwp-trips-grid,
    .zwp-trips-list { grid-template-columns: 1fr; }
    .zwp-trips-provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .zwp-trips-map { height: 320px; }
    .zwp-trips-card { grid-template-columns: 60px minmax(0, 1fr); }
    .zwp-trips-card__image { width: 60px; height: 54px; }
    .zwp-trips-card .zwp-visit-btn--card { grid-column: 1 / -1; justify-content: center; }
    .zwp-trips-filter, .zwp-trips-filter input { width: 100%; min-width: 0; }
}

/* Przyciski na białych panelach „Moich podróży” (w hero zostają białe/szklane). */
.zwp-trips-panel .zwp-dashboard__button--primary { border-color: #245f52; background: #245f52; color: #fff; }
.zwp-trips-panel .zwp-dashboard__button--secondary { border: 1px solid #c9dbd4; background: #fff; color: #245f52; }
