/* =========================================================
   PromptEye Partners – Frontend Styles
   Brand: #fd723a accent, #666 text, Plus Jakarta Sans
   Aesthetic: Clean editorial / B2B SaaS – PromptEye style
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --pep-orange:       #fd723a;
    --pep-orange-dark:  #e85a24;
    --pep-orange-light: #fff3ef;
    --pep-orange-mid:   #fde8df;
    --pep-text:         #1a1a1a;
    --pep-text-muted:   #666;
    --pep-text-light:   #999;
    --pep-border:       #e8e8e8;
    --pep-border-light: #f2f2f2;
    --pep-bg:           #f7f7f5;
    --pep-white:        #ffffff;
    --pep-card-shadow:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --pep-card-shadow-hover: 0 4px 12px rgba(253,114,58,.12), 0 12px 32px rgba(0,0,0,.08);
    --pep-radius:       12px;
    --pep-radius-sm:    8px;
    --pep-font:         'Plus Jakarta Sans', sans-serif;

    /* Level colors */
    --pep-strategic:    #fd723a;
    --pep-expert:       #2563eb;
    --pep-associate:    #16a34a;
}

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

.pep-directory,
.pep-single,
.pep-city-archive {
    font-family: var(--pep-font);
    color: var(--pep-text);
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.pep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .6rem 1.25rem;
    border-radius: 99px;
    font-family: var(--pep-font);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all .18s ease;
    white-space: nowrap;
    letter-spacing: .01em;
}
.pep-btn--primary {
    background: var(--pep-orange);
    color: #fff;
    border-color: var(--pep-orange);
}
.pep-btn--primary:hover {
    background: var(--pep-orange-dark);
    border-color: var(--pep-orange-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253,114,58,.3);
}
.pep-btn--outline {
    background: transparent;
    color: var(--pep-orange);
    border-color: var(--pep-orange);
}
.pep-btn--outline:hover {
    background: var(--pep-orange);
    color: #fff;
}
.pep-btn--ghost {
    background: transparent;
    color: var(--pep-text-muted);
    border-color: var(--pep-border);
}
.pep-btn--ghost:hover {
    background: var(--pep-bg);
    color: var(--pep-text);
    border-color: #ccc;
}
.pep-btn--lg   { padding: .8rem 1.75rem; font-size: .95rem; }
.pep-btn--full { width: 100%; }
.pep-btn--sm   { padding: .4rem .9rem; font-size: .78rem; }

/* -----------------------------------------------------------------------
   Badges – partner level (bez emoji, tylko kolor)
   --------------------------------------------------------------------- */
.pep-badge {
    display: inline-flex;
    align-items: center;
    padding: .22rem .7rem;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pep-badge--strategic-partner {
    background: #fd723a;
    color: #fff;
}
.pep-badge--expert-partner {
    background: #2563eb;
    color: #fff;
}
.pep-badge--associate-partner {
    background: #16a34a;
    color: #fff;
}
/* Zweryfikowany – ukryty */
.pep-badge--verified { display: none !important; }

/* -----------------------------------------------------------------------
   Tags
   --------------------------------------------------------------------- */
.pep-tag {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 500;
    margin: .1rem .1rem 0 0;
    background: var(--pep-bg);
    color: var(--pep-text-muted);
    border: 1px solid var(--pep-border);
}
.pep-tag--service { background: #fff3ef; color: #c94f1e; border-color: #fccfbc; }
.pep-tag--lang    { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.pep-tag--spec    { background: var(--pep-bg); color: var(--pep-text-muted); border-color: var(--pep-border); }

/* -----------------------------------------------------------------------
   Directory layout: sidebar left, content right
   --------------------------------------------------------------------- */
.pep-directory {
    
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Top bar: city + level + sort */
.pep-topbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--pep-border);
}
.pep-topbar__label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--pep-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.pep-topbar__group {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.pep-topbar__sep {
    width: 1px;
    height: 20px;
    background: var(--pep-border);
    flex-shrink: 0;
}
.pep-topbar__spacer { flex: 1; }

.pep-select {
    height: 40px;
    padding: 0 2rem 0 .85rem;
    border: 1.5px solid var(--pep-border);
    border-radius: 99px;
    font-family: var(--pep-font);
    font-size: .83rem;
    font-weight: 500;
    color: var(--pep-text);
    background: var(--pep-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .65rem center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color .15s;
    line-height: 40px;
}
.pep-select:focus {
    outline: none;
    border-color: var(--pep-orange);
}
.pep-select:hover { border-color: #ccc; }

/* Active filter pill */
.pep-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
    align-items: center;
}
.pep-active-filter {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    height: 28px;
    line-height: 28px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 99px;
    padding: 0 .65rem 0 .8rem;
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}
.pep-active-filter__remove {
    height: 16px !important;
    width: 16px !important;
    line-height: 16px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: var(--pep-orange) !important;
    cursor: pointer;
    font-size: .8rem !important;
    font-weight: 700;
    opacity: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s;
}
.pep-active-filter__remove:hover {
    background: rgba(253,114,58,.15) !important;
}
/* Main body: sidebar + grid */
.pep-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}

/* -----------------------------------------------------------------------
   Sidebar filters
   --------------------------------------------------------------------- */
.pep-sidebar {
    position: sticky;
    top: 2rem;
}
.pep-sidebar__section {
    margin-bottom: 1.75rem;
}
.pep-sidebar__title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--pep-text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pep-sidebar__clear {
    font-size: .7rem;
    font-weight: 600;
    color: var(--pep-orange);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.pep-sidebar__section.has-active .pep-sidebar__clear {
    opacity: 1;
    pointer-events: auto;
}
.pep-sidebar__section + .pep-sidebar__section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--pep-border-light);
}

.pep-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.pep-checkbox-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    padding: .3rem .4rem;
    border-radius: var(--pep-radius-sm);
    transition: background .12s;
}
.pep-checkbox-item:hover { background: var(--pep-bg); }
.pep-checkbox-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--pep-border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all .12s;
    background: var(--pep-white);
}
.pep-checkbox-item input[type="checkbox"]:checked {
    background: var(--pep-orange);
    border-color: var(--pep-orange);
}
.pep-checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1.5px;
    width: 5px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.pep-checkbox-item__label {
    font-size: .83rem;
    color: var(--pep-text);
    font-weight: 500;
    flex: 1;
    line-height: 1.3;
}
.pep-checkbox-item__count {
    font-size: .72rem;
    color: var(--pep-text-light);
    font-weight: 400;
}
.pep-checkbox-item:has(input:checked) .pep-checkbox-item__label {
    color: var(--pep-orange);
    font-weight: 600;
}

/* Show more toggle */
.pep-sidebar__showmore {
    font-size: .78rem;
    color: var(--pep-orange);
    cursor: pointer;
    margin-top: .4rem;
    display: inline-block;
    font-weight: 600;
}

/* -----------------------------------------------------------------------
   Results area
   --------------------------------------------------------------------- */
.pep-results-area { min-width: 0; }

.pep-count {
    font-size: .85rem;
    color: var(--pep-text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.pep-count strong { color: var(--pep-text); font-weight: 700; }

/* -----------------------------------------------------------------------
   Partner Grid / Cards
   --------------------------------------------------------------------- */
.pep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pep-card {
    background: var(--pep-white);
    border: 1px solid var(--pep-border);
    border-radius: var(--pep-radius);
    box-shadow: var(--pep-card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
    position: relative;
}
.pep-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pep-card-shadow-hover);
    border-color: #e0d8d5;
}

/* Pasek koloru na górze – zgodny z poziomem partnera */
.pep-card__level-bar {
    height: 4px;
    width: 100%;
    background: var(--pep-border);
}
.pep-card--strategic .pep-card__level-bar { background: #fd723a; }
.pep-card--expert    .pep-card__level-bar { background: #2563eb; }
.pep-card--associate .pep-card__level-bar { background: #16a34a; }

/* Featured ribbon */
.pep-card--featured::after {
    content: 'Polecany';
    position: absolute;
    top: 4px;
    right: 1rem;
    background: var(--pep-orange);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 0 0 6px 6px;
}

.pep-card__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    padding: 1rem 1.1rem .85rem;
    gap: .5rem;
}

.pep-card__logo {
    height: 44px;
    display: flex;
    align-items: center;
}
.pep-card__logo img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}
.pep-card__logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pep-card__badges { display: flex; flex-wrap: wrap; gap: .25rem; min-height: auto; }

.pep-card__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--pep-text);
    margin: 0;
    line-height: 1.3;
}
.pep-card:hover .pep-card__title { color: var(--pep-orange); }

.pep-card__city {
    font-size: .78rem;
    color: var(--pep-text-muted);
    display: flex;
    align-items: center;
    gap: .3rem;
    margin: 0;
}

.pep-card__spec { margin: 0; }
.pep-card__spec .pep-tag { font-size: .7rem; padding: .13rem .45rem; }

.pep-card__footer {
    padding: .75rem 1.1rem;
    border-top: 1px solid var(--pep-border-light);
    background: var(--pep-bg);
}
.pep-card__footer .pep-btn {
    width: 100%;
    font-size: .82rem;
    padding: .5rem .75rem;
    height: 36px;
    line-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

/* -----------------------------------------------------------------------
   No results
   --------------------------------------------------------------------- */
.pep-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--pep-text-muted);
    background: var(--pep-bg);
    border-radius: var(--pep-radius);
    border: 1px dashed var(--pep-border);
}
.pep-no-results p { margin: 0; font-size: .95rem; }

/* -----------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------- */
.pep-pagination {
    display: flex;
    gap: .35rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.pep-page {
    min-width: 36px;
    height: 36px;
    border: 1.5px solid var(--pep-border);
    border-radius: 8px;
    background: var(--pep-white);
    font-family: var(--pep-font);
    font-size: .83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    color: var(--pep-text);
    padding: 0 .5rem;
}
.pep-page:hover { border-color: var(--pep-orange); color: var(--pep-orange); }
.pep-page--active {
    background: var(--pep-orange);
    border-color: var(--pep-orange);
    color: #fff;
}

/* -----------------------------------------------------------------------
   Cities Section
   --------------------------------------------------------------------- */
.pep-cities {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--pep-border);
}
.pep-cities__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--pep-text);
}
.pep-cities__grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.pep-city-card {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: var(--pep-white);
    border: 1.5px solid var(--pep-border);
    border-radius: 99px;
    text-decoration: none;
    color: var(--pep-text);
    font-weight: 600;
    font-size: .85rem;
    transition: all .15s;
}
.pep-city-card:hover {
    border-color: var(--pep-orange);
    color: var(--pep-orange);
    background: var(--pep-orange-light);
}
.pep-city-card__count {
    font-size: .72rem;
    color: var(--pep-text-light);
    font-weight: 400;
    background: var(--pep-bg);
    padding: .1rem .4rem;
    border-radius: 99px;
}

/* Loading state */
.pep-results--loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* -----------------------------------------------------------------------
   Breadcrumb
   --------------------------------------------------------------------- */
.pep-breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    color: var(--pep-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.pep-breadcrumb a {
    color: var(--pep-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.pep-breadcrumb a:hover { color: var(--pep-orange); }
.pep-breadcrumb span { color: var(--pep-text-light); }

/* -----------------------------------------------------------------------
   Single Partner Page
   --------------------------------------------------------------------- */
.pep-single { font-family: var(--pep-font); }

.pep-single__hero {
    background: #fafafa;
    border-bottom: 1px solid var(--pep-border);
    padding: 2.5rem 0;
}
.pep-single__hero-inner {
    
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pep-single__hero-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pep-single__logo {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pep-white);
    border: 1px solid var(--pep-border);
    border-radius: var(--pep-radius);
    padding: .75rem;
}
.pep-single__logo img { max-width: 100%; max-height: 60px; object-fit: contain; }
.pep-single__hero-text { flex: 1; min-width: 260px; }
.pep-single__badges { margin-bottom: .65rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.pep-single__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 .4rem;
    color: var(--pep-text);
    line-height: 1.2;
}
.pep-single__city {
    font-size: .9rem;
    color: var(--pep-text-muted);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.pep-single__hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.pep-single__body {
    
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.pep-single__main { display: flex; flex-direction: column; gap: 2rem; }

/* Stats */
.pep-single__stats {
    background: var(--pep-orange-light);
    border: 1px solid var(--pep-orange-mid);
    border-radius: var(--pep-radius);
    padding: 1.5rem;
}
.pep-stats-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.pep-stat { text-align: left; }
.pep-stat__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pep-orange);
    line-height: 1;
}
.pep-stat__label {
    font-size: .78rem;
    color: var(--pep-text-muted);
    margin-top: .25rem;
}
.pep-kpi-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    border-top: 1px solid var(--pep-orange-mid);
    padding-top: 1rem;
}
.pep-kpi-list__item {
    font-size: .88rem;
    color: var(--pep-text);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pep-kpi-list__item::before {
    content: '↑';
    color: var(--pep-orange);
    font-weight: 700;
}

/* Description */
.pep-single__desc {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--pep-text);
}
.pep-single__desc h2, .pep-single__desc h3 { font-weight: 700; }

/* Tags sections */
.pep-single__tags { display: flex; flex-direction: column; gap: 1.25rem; }
.pep-tag-group h3 {
    font-size: .72rem;
    font-weight: 700;
    color: var(--pep-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 .5rem;
}

/* Contact card sidebar */
.pep-single__sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.pep-contact-card {
    background: var(--pep-white);
    border: 1px solid var(--pep-border);
    border-radius: var(--pep-radius);
    padding: 1.5rem;
    box-shadow: var(--pep-card-shadow);
    position: sticky;
    top: 2rem;
}
.pep-contact-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--pep-text);
}
.pep-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.pep-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: var(--pep-text);
}
.pep-contact-list__icon { flex-shrink: 0; font-size: 1rem; margin-top: .05rem; }
.pep-contact-list a {
    color: var(--pep-orange);
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
}
.pep-contact-list a:hover { text-decoration: underline; }

.pep-inline-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pep-border); }
.pep-inline-form h3 { font-size: .9rem; margin: 0 0 .75rem; font-weight: 700; }

.pep-sidebar-cities { background: var(--pep-bg); border-radius: var(--pep-radius); padding: 1.25rem; }
.pep-sidebar-cities h3 { font-size: .8rem; font-weight: 700; margin: 0 0 .75rem; color: var(--pep-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.pep-sidebar-cities ul { list-style: none; padding: 0; margin: 0; }
.pep-sidebar-cities li { padding: .3rem 0; border-bottom: 1px solid var(--pep-border-light); }
.pep-sidebar-cities li:last-child { border-bottom: none; }
.pep-sidebar-cities a { color: var(--pep-text); text-decoration: none; font-size: .88rem; font-weight: 500; }
.pep-sidebar-cities a:hover { color: var(--pep-orange); }

.pep-back-link {
    
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* City archive hero */
.pep-city-archive__hero {
    background: #fafafa;
    border-bottom: 1px solid var(--pep-border);
    padding: 2.5rem 0;
}
.pep-city-archive__hero-inner {
    
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pep-city-archive__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: .5rem 0 .5rem;
    color: var(--pep-text);
}
.pep-city-archive__desc { color: var(--pep-text-muted); font-size: .95rem; margin: 0; }

/* -----------------------------------------------------------------------
   Modal
   --------------------------------------------------------------------- */
.pep-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.pep-modal[aria-hidden="false"] { display: flex; }
.pep-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.pep-modal__box {
    position: relative;
    background: var(--pep-white);
    border-radius: 16px;
    padding: 2rem;
    width: min(560px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    z-index: 1;
}
.pep-modal__box h3 { margin: 0 0 1.25rem; font-size: 1.15rem; font-weight: 700; }
.pep-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--pep-bg);
    border: 1.5px solid var(--pep-border);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pep-text-muted);
    transition: background .15s, border-color .15s;
    line-height: 1;
    z-index: 2;
    flex-shrink: 0;
}
.pep-modal__close:hover {
    background: #fee;
    border-color: #fca;
    color: var(--pep-orange);
}

/* -----------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .pep-body { grid-template-columns: 1fr; }
    .pep-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 1.5rem; }
    .pep-sidebar__section { margin-bottom: 0; min-width: 180px; flex: 1; }
    .pep-sidebar__section + .pep-sidebar__section { padding-top: 0; border-top: none; border-left: 1px solid var(--pep-border-light); padding-left: 1.5rem; }
    .pep-single__body { grid-template-columns: 1fr; }
    .pep-contact-card { position: static; }
}

@media (max-width: 640px) {
    .pep-directory { padding: 1.25rem 1rem 3rem; }
    .pep-grid { grid-template-columns: 1fr; }
    .pep-topbar { gap: .5rem; }
    .pep-topbar__sep { display: none; }
    .pep-single__title { font-size: 1.4rem; }
    .pep-single__hero-content { flex-direction: column; }
    .pep-sidebar { flex-direction: column; }
    .pep-sidebar__section + .pep-sidebar__section { border-left: none; border-top: 1px solid var(--pep-border-light); padding-left: 0; padding-top: 1rem; }
}

/* -----------------------------------------------------------------------
   FIX: Topbar alignment
   --------------------------------------------------------------------- */
.pep-topbar__group { align-items: center; }

/* Przycisk reset – pomarańczowy, 40px */
#pep-reset-filters {
    height: 40px;
    line-height: 38px;
    padding: 0 1.25rem;
    background: var(--pep-orange);
    color: #fff;
    border-color: var(--pep-orange);
    border-radius: 99px;
    font-weight: 600;
    font-size: .83rem;
}
#pep-reset-filters:hover {
    background: var(--pep-orange-dark);
    border-color: var(--pep-orange-dark);
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* -----------------------------------------------------------------------
   Karta – uproszczona (tylko logo/badge/nazwa/miasto/spec)
   --------------------------------------------------------------------- */
.pep-card__inner {
    padding: 1rem 1.1rem 0.85rem;
    gap: .5rem;
}
.pep-card__logo { height: 44px; }
.pep-card__logo img { max-height: 40px; max-width: 120px; }
.pep-card__logo-placeholder {
    width: 40px; height: 40px; font-size: .95rem;
    background: #000;
}
.pep-card__badges { min-height: auto; }
.pep-card__title { font-size: .95rem; }
.pep-card__city  { font-size: .78rem; }
.pep-card__spec  { margin: 0; }
.pep-card__spec .pep-tag {
    font-size: .7rem;
    padding: .13rem .45rem;
}

/* -----------------------------------------------------------------------
   Mapa na stronie partnera
   --------------------------------------------------------------------- */
.pep-single__section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: var(--pep-text);
}
.pep-single__map {
    border: 1px solid var(--pep-border);
    border-radius: var(--pep-radius);
    overflow: hidden;
    background: var(--pep-bg);
    padding: 1.25rem;
}
.pep-map-address {
    font-size: .85rem;
    color: var(--pep-text-muted);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.pep-map-iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
    display: block;
}

/* -----------------------------------------------------------------------
   Stats title
   --------------------------------------------------------------------- */
.pep-single__stats-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--pep-text);
}

/* -----------------------------------------------------------------------
   Własny formularz kontaktowy
   --------------------------------------------------------------------- */
.pep-contact-form { display: flex; flex-direction: column; gap: 1rem; }

.pep-form-row { display: flex; gap: .85rem; }
.pep-form-row--2col > * { flex: 1; min-width: 0; }

.pep-form-group { display: flex; flex-direction: column; gap: .3rem; }

.pep-form-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--pep-text);
}
.pep-form-label span { color: var(--pep-orange); }

.pep-form-input {
    padding: .6rem .85rem;
    border: 1.5px solid var(--pep-border);
    border-radius: 8px;
    font-family: var(--pep-font);
    font-size: .88rem;
    color: var(--pep-text);
    background: var(--pep-white);
    transition: border-color .15s;
    width: 100%;
}
.pep-form-input:focus {
    outline: none;
    border-color: var(--pep-orange);
    box-shadow: 0 0 0 3px rgba(253,114,58,.1);
}
.pep-form-input::placeholder { color: #bbb; }
.pep-form-input.pep-form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
    cursor: pointer;
}
.pep-form-textarea { resize: vertical; min-height: 100px; }

.pep-form-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    cursor: pointer;
    font-size: .8rem;
    color: var(--pep-text-muted);
    line-height: 1.4;
}
.pep-form-check input[type="checkbox"] {
    width: 15px; height: 15px; flex-shrink: 0; margin-top: .1rem;
    accent-color: var(--pep-orange);
}

.pep-form-alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.4;
}
.pep-form-alert--success {
    background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
}
.pep-form-alert--error {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
}

/* Modal – większy dla formularza */
.pep-modal__box { width: min(640px, 96vw); }
.pep-modal__header { margin-bottom: 1.25rem; }
.pep-modal__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; }
.pep-modal__subtitle { font-size: .85rem; color: var(--pep-text-muted); margin: 0; }

@media (max-width: 560px) {
    .pep-form-row--2col { flex-direction: column; }
}

/* -----------------------------------------------------------------------
   Przykładowi partnerzy – CLI import notice
   --------------------------------------------------------------------- */
.pep-admin-import-notice {
    background: #fff3ef;
    border-left: 4px solid var(--pep-orange);
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: .85rem;
    margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------
   Sidebar city select – pełna szerokość
   --------------------------------------------------------------------- */
.pep-select--full {
    width: 100%;
    border-radius: var(--pep-radius-sm);
    padding-left: .75rem;
}

/* -----------------------------------------------------------------------
   Przycisk "Poproś o ofertę" na stronie partnera – mniejszy
   --------------------------------------------------------------------- */
.pep-single__hero-cta .pep-btn--lg {
    padding: .6rem 1.4rem;
    font-size: .88rem;
    height: 42px;
    line-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
}
.pep-contact-card .pep-btn--primary {
    height: 42px;
    line-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: .88rem;
}

/* -----------------------------------------------------------------------
   Modal – większy box dla formularza, fix padding pod X
   --------------------------------------------------------------------- */
.pep-modal__box { width: min(640px, 96vw); padding: 2rem 2rem 1.75rem; }
.pep-modal__header { padding-right: 2rem; margin-bottom: 1.25rem; }
.pep-modal__title { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; }
.pep-modal__subtitle { font-size: .85rem; color: var(--pep-text-muted); margin: 0; }

@media (max-width: 560px) {
    .pep-form-row--2col { flex-direction: column; }
}

/* ================================================================
   OVERRIDES – motyw może nadpisywać kolory, dodajemy !important
   ================================================================ */

/* Wszystkie primary buttony w pluginie – pomarańczowe */
.pep-single .pep-btn--primary,
.pep-directory .pep-btn--primary,
.pep-modal .pep-btn--primary,
.pep-btn--primary {
    background: #fd723a !important;
    border-color: #fd723a !important;
    color: #fff !important;
}
.pep-single .pep-btn--primary:hover,
.pep-directory .pep-btn--primary:hover,
.pep-modal .pep-btn--primary:hover,
.pep-btn--primary:hover {
    background: #e85a24 !important;
    border-color: #e85a24 !important;
    color: #fff !important;
}

/* Hero CTA – właściwy rozmiar (nie --lg) */
.pep-single__hero-cta .pep-btn {
    height: 42px;
    line-height: 42px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: .9rem;
}

/* ================================================================
   Sidebar tags – specjalizacje/usługi/języki po prawej
   ================================================================ */
.pep-sidebar-tags {
    background: var(--pep-white);
    border: 1px solid var(--pep-border);
    border-radius: var(--pep-radius);
    padding: 1.25rem;
    box-shadow: var(--pep-card-shadow);
}
.pep-sidebar-tags .pep-tag-group {
    margin-bottom: 1rem;
}
.pep-sidebar-tags .pep-tag-group:last-child {
    margin-bottom: 0;
}
.pep-sidebar-tags .pep-tag-group h3 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--pep-text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: 0 0 .5rem;
}
.pep-sidebar-tags .pep-tag {
    margin: .1rem .1rem 0 0;
}

/* ================================================================
   Karta – badge nad logo (kolejność flex)
   ================================================================ */
.pep-card__inner {
    flex-direction: column;
}
/* badge jest pierwszym dzieckiem po inner – już ok przez HTML */

/* ================================================================
   Usuń padding z .pxl-main (motyw)
   ================================================================ */
.pxl-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Lub węziej – tylko na stronach pluginu */
.pep-single ~ .pxl-main,
body:has(.pep-single) .pxl-main,
body:has(.pep-directory) .pxl-main,
body:has(.pep-city-archive) .pxl-main {
    padding: 0 !important;
}

/* ================================================================
   Font Awesome ikony – pomarańczowe
   ================================================================ */
.pep-single .pep-icon,
.pep-contact-list__icon i,
.pep-card__city i,
.pep-single__city i {
    color: var(--pep-orange);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Ikona przy mieście w karcie */
.pep-card__city i {
    font-size: .75rem;
    margin-right: .2rem;
}

/* Ikony w sekcjach headingów */
.pep-single__stats-title i,
.pep-single__section-title i {
    color: var(--pep-orange);
    margin-right: .35rem;
}

/* Ikony w liście kontaktów */
.pep-contact-list__icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    font-style: normal;
}
.pep-contact-list__icon i {
    color: var(--pep-orange);
    font-size: .9rem;
}

