/* catalog.css — style dla stron katalogu / wyszukiwarki trenerów (city, gym, online) */

/* =====================================================================
   City hero
   ===================================================================== */

.p-city-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
}

.p-city-hero .p-breadcrumbs {
    margin: 0;
}
.p-city-hero .p-seo-lead {
    max-width: 768px;
}
.p-city-hero .p-search-component-wrap {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
}

/* --- KPI stats — inline z kropkami --- */

/* Stary grid-stats zastąpiony przez inline */
.p-search-hero-stats-row {
    display: none;
}
.p-search-hero-results-text {
    display: block;
}

.p-search-hero-stats-inline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 12px;
}

.p-search-hero-stats-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.p-search-hero-stats-item ~ .p-search-hero-stats-item::before {
    content: "•";
    color: var(--low-emphasis-1);
    font-weight: 700;
    margin-right: 8px;
}

/* Flex line-break — ukryty na desktop, widoczny na mobile (wymusza 2 statsy w rzędzie) */
.p-stats-flex-break {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Intent pills (swiper) --- */

.p-city-intent-bar {
    margin-top: 32px;
}

.p-city-intent-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.p-city-intent-swiper {
    width: 100%;
}

.p-city-intent-swiper .p-city-intent-pill {
    width: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 64px;
    border: 1px solid var(--low-emphasis-2);
    font-size: 14px;
    font-weight: 500;
    transition: all 200ms;
    white-space: nowrap;
}

.p-city-intent-swiper .p-city-intent-pill:hover {
    border-color: var(--low-emphasis-1);
}
.p-city-intent-swiper .p-city-intent-pill:hover .p-city-intent-pill-title {
    color: var(--brand-02);
}

/* --- Stats numbers --- */

.p-city-stats-numbers {
    padding: 64px 0;
}

.p-city-stats-numbers-title {
    text-align: center;
}

.p-city-stats-numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    max-width: 768px;
    margin: 48px auto 0;
}

.p-city-stats-numbers-cell {
    text-align: center;
}

.p-city-stats-numbers-services {
    margin-top: 56px;
    text-align: center;
}

.p-city-stats-numbers-services-label {
    margin-bottom: 24px;
}

.p-city-stats-numbers-services-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.p-city-stats-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid var(--off-white-0);
    border-radius: 64px;
    white-space: nowrap;
    transition: all 200ms ease;
}

.p-city-stats-pill:hover {
    border-color: var(--brand-02);
}

/* --- Transformations --- */

.p-city-transformations-section {
    padding: 64px 0;
}

.p-city-transformations-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.p-city-transformation-wrap {
    position: relative;
}

.p-trainer-transformation-trainer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    text-decoration: none;
    color: inherit;
}

.p-trainer-transformation-trainer-static {
    cursor: default;
}

.p-trainer-transformation-trainer-avatar {
    flex: 0 0 auto;
    width: 80px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: var(--off-white-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.p-trainer-transformation-trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- FAQ --- */

.p-city-faq-section {
    padding: 64px 0;
}

.p-city-faq-section-title {
    text-align: center;
}

/* --- Reviews --- */

.p-city-reviews-section {
    padding: 64px 0;
}

.p-city-reviews-section-title {
    margin-bottom: 48px;
    text-align: center;
}
.p-city-reviews-wrap {
    position: relative;
}
.p-city-reviews-swiper {
    overflow: hidden;
}
.p-city-reviews-swiper .swiper-wrapper {
    align-items: stretch;
}
.p-city-reviews-swiper .swiper-slide {
    height: auto;
}

.p-city-reviews-nav-prev,
.p-city-reviews-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.p-city-reviews-nav-prev {
    left: -22px;
}
.p-city-reviews-nav-next {
    right: -22px;
}

.p-city-reviews-nav-prev.swiper-button-disabled,
.p-city-reviews-nav-next.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.p-city-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 32px auto 0;
}

.p-city-review-card {
    background: var(--off-white-blue);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p-city-review-card-trainer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.p-city-review-card-trainer-avatar {
    flex: 0 0 auto;
    width: 80px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: var(--off-white-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.p-city-review-card-trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-city-review-card-comment {
    flex: 1 1 auto;
}

.p-city-review-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.p-city-review-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- SEO content blocks --- */

.p-city-seo-blocks {
    padding: 64px 0;
}

.p-city-seo-blocks-inner {
    margin: 0 auto;
}

.p-city-seo-block {
    margin-left: auto;
    margin-right: auto;
}
.p-city-seo-block + .p-city-seo-block {
    margin-top: 48px;
}

.p-city-seo-block-title,
.p-city-seo-block h2 {
    margin-bottom: 24px;
    text-align: center;
}

.p-city-seo-block-paragraph,
.p-city-seo-block p {
    margin-bottom: 24px;
    text-align: center;
}

/* --- Nearby cities --- */

.p-city-nearby-section {
    padding: 64px 0;
}

.p-city-nearby-section-title {
    margin-bottom: 48px;
    text-align: center;
}

.p-city-nearby-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.p-city-nearby-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid var(--off-white-0);
    border-radius: 64px;
    white-space: nowrap;
    transition: all 200ms ease;
}

.p-city-nearby-pill:hover {
    border-color: var(--brand-02);
}

.p-city-nearby-pill-more {
    color: var(--brand-02);
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 768px) {
    /* Intent pills swiper: edge spacing handled by Swiper JS (slidesOffsetBefore/After) */
    .p-city-intent-bar .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Flex line-break widoczny na mobile — KPI statsy 2 w rzędzie */
    .p-stats-flex-break {
        display: block;
        flex: 0 0 100%;
        height: 0;
    }

    /* Pierwszy item po breaku (row 2) bez kropki */
    .p-stats-flex-break + .p-search-hero-stats-item::before {
        display: none;
    }

    .p-city-stats-numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
