/* =========================================================
   OKAZJE PŁOCK — MAPA V2
   Jasny brand Coming Soon
   ========================================================= */

.opm-v2 {
    --opm-navy: #13243a;
    --opm-text: #17263c;
    --opm-muted: #738196;
    --opm-accent: #ffc247;
    --opm-orange: #ff794a;
    --opm-border: #e8edf3;
    --opm-bg: #f7f9fc;

    color: var(--opm-text);
    background: #fff;
}

.opm-v2 *,
.opm-v2 *::before,
.opm-v2 *::after {
    box-sizing: border-box;
}

.opm-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 45px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 194, 71, .18),
            transparent 35%
        ),
        linear-gradient(120deg, #fffaf2, #fff 55%, #f5f9ff);
    border-bottom: 1px solid #f0f2f6;
}

.opm-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -130px;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    border: 65px solid rgba(255, 194, 71, .08);
    pointer-events: none;
}

.opm-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.opm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border-radius: 100px;
    background: #fff0db;
    color: #a96316;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1px;
}

.opm-eyebrow-dot,
.opm-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff9943;
    box-shadow: 0 0 0 4px rgba(255, 153, 67, .13);
}

.opm-hero h1 {
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(34px, 4.5vw, 59px);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -2.2px;
    margin: 21px 0 16px;
    color: #13243a;
}

.opm-hero h1 span {
    display: block;
    width: fit-content;
    background: linear-gradient(100deg, #ffb52f, #ff794a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.opm-hero-content > p {
    max-width: 650px;
    font-size: 15px;
    line-height: 1.85;
    color: #68768b;
    margin: 0;
}

.opm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.opm-stat {
    display: flex;
    flex-direction: column;
    min-width: 145px;
    padding: 12px 19px;
    border: 1px solid #f0e7d9;
    border-radius: 15px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 8px 25px rgba(18, 36, 58, .035);
}

.opm-stat strong {
    font-family: Manrope, sans-serif;
    font-size: 24px;
    font-weight: 850;
    color: #ff8545;
    line-height: 1.2;
}

.opm-stat span {
    color: #778398;
    font-size: 11px;
    margin-top: 5px;
}

.opm-explorer {
    padding: 28px 0 75px;
    background: #f7f9fc;
}

.opm-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 13px;
    padding: 17px;
    border: 1px solid #e9edf3;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(19, 36, 58, .035);
    margin-bottom: 18px;
}

.opm-search {
    flex: 1 1 320px;
    min-width: 0;
    height: 47px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #f9fafc;
    color: #8390a0;
}

.opm-search:focus-within {
    border-color: #ffb44f;
    box-shadow: 0 0 0 3px rgba(255, 194, 71, .12);
}

.opm-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17263c;
    font: inherit;
    font-size: 13px;
}

.opm-category-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 1 240px;
}

.opm-category-wrap label {
    font-size: 10px;
    font-weight: 800;
    color: #738196;
    padding-left: 3px;
}

.opm-category-wrap select {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: #f9fafc;
    color: #17263c;
    font: inherit;
    font-size: 13px;
}

.opm-reset,
.opm-map-reset {
    border: 1px solid #e5eaf1;
    border-radius: 11px;
    background: #fff;
    color: #59697e;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.opm-reset {
    height: 47px;
    padding: 0 17px;
}

.opm-reset:hover,
.opm-map-reset:hover {
    background: #fff6e9;
    border-color: #ffd89a;
    color: #b66b17;
}

.opm-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.opm-map-panel,
.opm-sidebar {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 21px;
    box-shadow: 0 15px 45px rgba(18, 36, 58, .045);
}

.opm-map-topbar {
    min-height: 65px;
    padding: 14px 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.opm-map-topbar > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opm-map-topbar strong {
    font-family: Manrope, sans-serif;
    font-size: 15px;
    color: #17263c;
}

.opm-map-subtitle {
    font-size: 12px;
    color: #8793a3;
}

.opm-map-reset {
    padding: 10px 12px;
}

#opm-map {
    width: 100%;
    height: 640px;
    position: relative;
    z-index: 1;
    background: #e8eff3;
}

#opm-map.leaflet-container {
    font-family: Inter, sans-serif;
}

#opm-map .leaflet-tile,
#opm-map .leaflet-marker-icon,
#opm-map .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
}

.opm-map-footer {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    font-size: 11px;
    color: #8a96a5;
}

.opm-sidebar {
    display: flex;
    flex-direction: column;
    height: 750px;
}

.opm-sidebar-head {
    padding: 23px 22px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0f4;
}

.opm-sidebar-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #e78b2f;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.1px;
}

.opm-sidebar-head h2 {
    margin: 0 0 6px;
    font-family: Manrope, sans-serif;
    font-size: 21px;
    letter-spacing: -.6px;
    color: #17263c;
}

.opm-sidebar-head p {
    margin: 0;
    font-size: 12px;
    color: #8995a5;
}

.opm-sidebar-icon {
    flex: none;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffdc7d, #ffad42);
    color: #3d2a13;
    font-family: Manrope, sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.opm-results {
    padding: 14px;
    overflow-y: auto;
    flex: 1;
}

.opm-business-card {
    padding: 17px;
    margin-bottom: 12px;
    border: 1px solid #e9edf2;
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.opm-business-card:hover {
    border-color: #ffd28a;
    box-shadow: 0 10px 30px rgba(255, 170, 65, .08);
    transform: translateY(-2px);
}

.opm-business-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opm-business-avatar {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff2d6, #ffe5c5);
    color: #d87b28;
    font-family: Manrope, sans-serif;
    font-size: 19px;
    font-weight: 850;
}

.opm-business-head h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.35;
    color: #17263c;
}

.opm-business-head h3 a {
    color: inherit;
    text-decoration: none;
}

.opm-business-head h3 a:hover {
    color: #e77c32;
}

.opm-business-location {
    font-size: 11px;
    color: #8995a5;
}

.opm-business-count {
    display: inline-flex;
    margin-top: 12px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #fff3e4;
    color: #b66b17;
    font-size: 10px;
    font-weight: 800;
}

.opm-business-deals {
    margin-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.opm-deal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f5;
}

.opm-deal-row a {
    min-width: 0;
    color: #46556b;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
}

.opm-deal-row a:hover {
    color: #e77c32;
}

.opm-deal-price {
    flex: none;
    font-size: 12px;
    font-weight: 850;
    color: #e77c32;
    white-space: nowrap;
}

.opm-business-actions {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.opm-location-btn,
.opm-company-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 10px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.opm-location-btn {
    flex: 1;
    border: 0;
    background: linear-gradient(135deg, #ffdc7d, #ffad42);
    color: #34220d;
}

.opm-company-link {
    border: 1px solid #e5eaf1;
    background: #fff;
    color: #59697e;
}

.opm-location-btn:hover {
    filter: brightness(.97);
}

.opm-company-link:hover {
    background: #f7f9fc;
}

.opm-marker {
    width: 42px;
    height: 42px;
    border: 3px solid #fff;
    border-radius: 15px 15px 15px 4px;
    background: linear-gradient(135deg, #ffc247, #ff794a);
    box-shadow: 0 7px 22px rgba(255, 121, 74, .35);
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
}

.opm-marker span {
    transform: rotate(45deg);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.opm-popup {
    min-width: 190px;
}

.opm-popup h3 {
    margin: 0 0 7px;
    font-size: 14px;
    color: #17263c;
}

.opm-popup p {
    margin: 0 0 10px;
    color: #8490a0;
    font-size: 11px;
}

.opm-popup ul {
    margin: 0 0 12px;
    padding-left: 17px;
}

.opm-popup li {
    margin-bottom: 6px;
    font-size: 12px;
}

.opm-popup a {
    color: #cf762a;
    font-weight: 750;
}

.opm-empty {
    padding: 35px 18px;
    text-align: center;
    color: #8490a0;
    font-size: 13px;
    line-height: 1.7;
}

.opm-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 26px;
    padding: 30px 34px;
    border: 1px solid #ffe6bd;
    border-radius: 20px;
    background: linear-gradient(110deg, #fffaf0, #fff 65%);
}

.opm-bottom-badge {
    display: inline-block;
    margin-bottom: 10px;
    color: #e48c2d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1px;
}

.opm-bottom h2 {
    margin: 0 0 8px;
    font-family: Manrope, sans-serif;
    font-size: 22px;
    letter-spacing: -.5px;
    color: #17263c;
}

.opm-bottom p {
    margin: 0;
    color: #7d899a;
    font-size: 13px;
}

.opm-primary-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffdc7d, #ffad42);
    color: #34220d;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

.opm-mobile-switch {
    display: none;
}

@media (max-width: 1050px) {
    .opm-workspace {
        grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
    }
}

@media (max-width: 850px) {
    .opm-workspace {
        display: block;
    }

    .opm-mobile-switch {
        display: flex;
        gap: 5px;
        padding: 5px;
        margin-bottom: 15px;
        border-radius: 13px;
        background: #e9edf3;
    }

    .opm-mobile-switch button {
        flex: 1;
        min-height: 43px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #6d7b8d;
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    .opm-mobile-switch button.is-active {
        background: #fff;
        color: #17263c;
        box-shadow: 0 3px 12px rgba(18, 36, 58, .07);
    }

    .opm-workspace[data-view="map"] .opm-sidebar {
        display: none;
    }

    .opm-workspace[data-view="list"] .opm-map-panel {
        display: none;
    }

    .opm-sidebar {
        height: auto;
        max-height: 720px;
    }

    #opm-map {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .opm-hero {
        padding: 32px 0;
    }

    .opm-hero h1 {
        letter-spacing: -1.3px;
    }

    .opm-stats {
        gap: 8px;
    }

    .opm-stat {
        min-width: 0;
        flex: 1 1 110px;
        padding: 11px 13px;
    }

    .opm-stat strong {
        font-size: 20px;
    }

    .opm-explorer {
        padding-top: 18px;
    }

    .opm-toolbar {
        padding: 13px;
    }

    .opm-search,
    .opm-category-wrap,
    .opm-reset {
        flex: 1 1 100%;
        width: 100%;
    }

    #opm-map {
        height: 420px;
    }

    .opm-map-topbar {
        padding: 12px;
    }

    .opm-map-footer {
        font-size: 10px;
    }

    .opm-bottom {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .opm-primary-btn {
        justify-content: center;
    }
}

/* =========================================================
   V16-F.5.2 — USPRAWNIENIA FUNKCJONALNE
   ========================================================= */

.opm-v2 .opm-business-card.is-selected {
    border-color: #ffbd62;
    box-shadow:
        0 0 0 2px rgba(255, 194, 71, .16),
        0 12px 30px rgba(255, 170, 65, .10);
}

.opm-v2 .opm-deal-main {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.opm-v2 .opm-deal-prices {
    flex: none;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
}

.opm-v2 .opm-deal-prices del {
    color: #9ba5b3;
    font-size: 10px;
}

.opm-v2 .opm-discount {
    display: inline-flex;
    padding: 3px 6px;
    border-radius: 6px;
    background: #fff0e7;
    color: #d96631;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.opm-v2 .opm-expand-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px dashed #ffd39b;
    border-radius: 9px;
    background: #fffaf2;
    color: #b66b17;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.opm-v2 .opm-expand-btn:hover {
    background: #fff0db;
}

.opm-marker-wrapper {
    background: transparent;
    border: 0;
}

.opm-marker-wrapper .opm-marker {
    transition: filter .18s ease, box-shadow .18s ease;
}

.opm-marker-wrapper:hover .opm-marker,
.opm-marker-wrapper.is-selected .opm-marker {
    filter: brightness(1.08) saturate(1.15);
    box-shadow:
        0 0 0 5px rgba(255, 194, 71, .22),
        0 9px 24px rgba(255, 121, 74, .4);
}

.opm-v2 button:focus-visible,
.opm-v2 a:focus-visible,
.opm-v2 input:focus-visible,
.opm-v2 select:focus-visible,
.opm-marker-wrapper:focus-visible {
    outline: 3px solid #ffad42;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .opm-v2 *,
    .opm-v2 *::before,
    .opm-v2 *::after,
    .opm-marker-wrapper .opm-marker {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
