/* ==========================================================================
   Postrzelam — Mapa Strzelnic  |  Styles
   ========================================================================== */

:root {
    --pstr-red: #C8102E;
    --pstr-red-hover: #a00d24;
    --pstr-black: #1A1A1A;
    --pstr-dark: #2a2a2a;
    --pstr-gray: #6b7280;
    --pstr-gray-light: #f3f4f6;
    --pstr-gray-border: #e5e7eb;
    --pstr-white: #ffffff;
    --pstr-gold: #d4a843;
    --pstr-star: #f59e0b;
    --pstr-radius: 8px;
    --pstr-radius-lg: 12px;
    --pstr-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --pstr-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --pstr-transition: .2s ease;
    --pstr-container: 1200px;
}

/* Container
   ========================================================================== */
.pstr-container {
    max-width: var(--pstr-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================================
   Back link
   ========================================================================= */
.pstr-back-link {
    display: inline-block;
    margin: 24px 0 16px;
    color: var(--pstr-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--pstr-transition);
}
.pstr-back-link:hover { color: var(--pstr-red); }

/* =========================================================================
   Buttons
   ========================================================================= */
.pstr-btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--pstr-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--pstr-transition), transform var(--pstr-transition);
}
.pstr-btn:active { transform: scale(.97); }

.pstr-btn--primary {
    background: var(--pstr-red);
    color: var(--pstr-white);
}
.pstr-btn--primary:hover { background: var(--pstr-red-hover); color: var(--pstr-white); }

/* =========================================================================
   Badge
   ========================================================================= */
.pstr-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    vertical-align: middle;
}
.pstr-badge--premium {
    background: var(--pstr-red);
    color: var(--pstr-white);
}

/* =========================================================================
   HERO
   ========================================================================= */
.pstr-hero {
    text-align: center;
    padding: 60px 0 32px;
}
.pstr-hero__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--pstr-black);
    margin: 0 0 8px;
    line-height: 1.2;
}
.pstr-hero__subtitle {
    font-size: 18px;
    color: var(--pstr-gray);
    margin: 0;
}

/* =========================================================================
   SEARCH FORM
   ========================================================================= */
.pstr-search {
    max-width: 800px;
    margin: 0 auto 40px;
}
.pstr-search__main {
    display: flex;
    gap: 0;
    box-shadow: var(--pstr-shadow-lg);
    border-radius: var(--pstr-radius-lg);
    overflow: hidden;
}
.pstr-search__input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--pstr-gray-border);
    border-right: none;
    border-radius: var(--pstr-radius-lg) 0 0 var(--pstr-radius-lg);
    font-size: 16px;
    outline: none;
    transition: border-color var(--pstr-transition);
}
.pstr-search__input:focus { border-color: var(--pstr-red); }

.pstr-search__btn {
    padding: 16px 32px;
    background: var(--pstr-red);
    color: var(--pstr-white);
    border: none;
    border-radius: 0 var(--pstr-radius-lg) var(--pstr-radius-lg) 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--pstr-transition);
}
.pstr-search__btn:hover { background: var(--pstr-red-hover); }

.pstr-search__toggle {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: var(--pstr-gray);
    font-size: 14px;
    cursor: pointer;
    transition: color var(--pstr-transition);
}
.pstr-search__toggle:hover { color: var(--pstr-red); }
.pstr-search__toggle-icon {
    display: inline-block;
    transition: transform var(--pstr-transition);
    font-size: 10px;
}
.pstr-search__toggle.active .pstr-search__toggle-icon {
    transform: rotate(180deg);
}

/* =========================================================================
   FILTERS
   ========================================================================= */
.pstr-filters {
    margin-top: 20px;
    padding: 24px;
    background: var(--pstr-gray-light);
    border-radius: var(--pstr-radius-lg);
    border: 1px solid var(--pstr-gray-border);
}
.pstr-filters__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.pstr-filters__group--full { grid-column: 1 / -1; }

.pstr-filters__label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--pstr-black);
    margin-bottom: 8px;
}
.pstr-filters__radios label,
.pstr-filters__checks label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--pstr-dark);
    cursor: pointer;
}
.pstr-filters__checks--weapons {
    display: flex;
    flex-wrap: wrap;
}

/* =========================================================================
   DUAL RANGE SLIDER
   ========================================================================= */
.pstr-range-slider {
    position: relative;
    padding-top: 10px;
}
.pstr-range-slider__track {
    position: relative;
    height: 6px;
    background: var(--pstr-gray-border);
    border-radius: 3px;
}
.pstr-range-slider__fill {
    position: absolute;
    height: 100%;
    background: var(--pstr-red);
    border-radius: 3px;
}
.pstr-range-slider input[type="range"] {
    position: absolute;
    top: 6px;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}
.pstr-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--pstr-red);
    border-radius: 50%;
    border: 3px solid var(--pstr-white);
    box-shadow: var(--pstr-shadow);
    cursor: pointer;
    pointer-events: all;
}
.pstr-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--pstr-red);
    border-radius: 50%;
    border: 3px solid var(--pstr-white);
    box-shadow: var(--pstr-shadow);
    cursor: pointer;
    pointer-events: all;
}
.pstr-range-slider__values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pstr-black);
}

/* =========================================================================
   RESULTS
   ========================================================================= */
.pstr-results {
    margin-bottom: 48px;
}
.pstr-results__header {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--pstr-gray);
}
.pstr-results__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pstr-results__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--pstr-gray);
    font-size: 15px;
}
.pstr-results__empty {
    text-align: center;
    padding: 48px 0;
    color: var(--pstr-gray);
    font-size: 16px;
}

/* Spinner */
.pstr-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--pstr-gray-border);
    border-top-color: var(--pstr-red);
    border-radius: 50%;
    animation: pstr-spin .7s linear infinite;
}
@keyframes pstr-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   CARD
   ========================================================================= */
.pstr-card {
    background: var(--pstr-white);
    border-radius: var(--pstr-radius-lg);
    border: 1px solid var(--pstr-gray-border);
    overflow: hidden;
    transition: box-shadow var(--pstr-transition), transform var(--pstr-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.pstr-card:hover {
    box-shadow: var(--pstr-shadow-lg);
    transform: translateY(-2px);
}
.pstr-card--premium {
    border: 2px solid var(--pstr-red);
    position: relative;
}
.pstr-card--premium::before {
    content: 'PREMIUM';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--pstr-red);
    color: var(--pstr-white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    z-index: 2;
}
.pstr-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--pstr-gray-light);
}
.pstr-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pstr-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--pstr-black);
    margin: 0 0 6px;
    line-height: 1.3;
}
.pstr-card__location {
    font-size: 13px;
    color: var(--pstr-gray);
    margin: 0 0 8px;
}
.pstr-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--pstr-gray-border);
    font-size: 13px;
    color: var(--pstr-gray);
}
.pstr-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--pstr-star);
    font-weight: 600;
}
.pstr-card__distance { margin-left: auto; }
.pstr-card__price {
    font-weight: 700;
    color: var(--pstr-red);
}

/* =========================================================================
   STARS
   ========================================================================= */
.pstr-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
    color: var(--pstr-gray-border);
}
.pstr-stars .pstr-star--filled { color: var(--pstr-star); }
.pstr-stars .pstr-star--half { color: var(--pstr-star); }

/* =========================================================================
   PAGINATION
   ========================================================================= */
.pstr-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.pstr-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--pstr-gray-border);
    border-radius: var(--pstr-radius);
    background: var(--pstr-white);
    color: var(--pstr-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--pstr-transition);
    text-decoration: none;
}
.pstr-pagination__btn:hover { border-color: var(--pstr-red); color: var(--pstr-red); }
.pstr-pagination__btn.active {
    background: var(--pstr-red);
    color: var(--pstr-white);
    border-color: var(--pstr-red);
}

/* =========================================================================
   PREMIUM BANNER
   ========================================================================= */
.pstr-premium-banner {
    margin-bottom: 48px;
}
.pstr-premium-banner__inner {
    background: linear-gradient(135deg, var(--pstr-black) 0%, var(--pstr-dark) 100%);
    color: var(--pstr-white);
    padding: 48px;
    border-radius: var(--pstr-radius-lg);
    text-align: center;
}
.pstr-premium-banner__inner h2 {
    font-size: 28px;
    margin: 0 0 8px;
}
.pstr-premium-banner__inner p {
    font-size: 16px;
    color: rgba(255,255,255,.7);
    margin: 0 0 24px;
}

/* =========================================================================
   CITIES GRID
   ========================================================================= */
.pstr-cities {
    margin-bottom: 64px;
}
.pstr-cities__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pstr-black);
    margin: 0 0 20px;
    text-align: center;
}
.pstr-cities__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.pstr-cities__link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--pstr-gray-border);
    border-radius: var(--pstr-radius);
    color: var(--pstr-dark);
    font-size: 14px;
    text-decoration: none;
    transition: all var(--pstr-transition);
}
.pstr-cities__link:hover {
    border-color: var(--pstr-red);
    color: var(--pstr-red);
    background: rgba(200,16,46,.04);
}

/* =========================================================================
   CITY PAGE
   ========================================================================= */
.pstr-city__header {
    margin-bottom: 24px;
}
.pstr-city__title {
    font-size: 32px;
    font-weight: 800;
    color: var(--pstr-black);
    margin: 0 0 4px;
}
.pstr-city__count {
    font-size: 15px;
    color: var(--pstr-gray);
    margin: 0;
}

/* =========================================================================
   SINGLE PAGE
   ========================================================================= */
.pstr-single__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0 32px;
    border-bottom: 1px solid var(--pstr-gray-border);
    margin-bottom: 32px;
}
.pstr-single__header-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}
.pstr-single__logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--pstr-radius);
    border: 1px solid var(--pstr-gray-border);
    flex-shrink: 0;
}
.pstr-single__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--pstr-black);
    margin: 0 0 4px;
    line-height: 1.3;
}
.pstr-single__address {
    font-size: 15px;
    color: var(--pstr-gray);
    margin: 0 0 8px;
}
.pstr-single__rating {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pstr-single__rating-text {
    font-size: 14px;
    color: var(--pstr-gray);
}

/* Layout */
.pstr-single__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: flex-start;
}
.pstr-single__main { min-width: 0; }

.pstr-single__section {
    margin-bottom: 40px;
}
.pstr-single__section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--pstr-black);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pstr-red);
}
.pstr-single__content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pstr-dark);
}
.pstr-single__content p { margin: 0 0 16px; }

/* =========================================================================
   TABLES
   ========================================================================= */
.pstr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pstr-table th,
.pstr-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--pstr-gray-border);
}
.pstr-table th {
    font-weight: 600;
    color: var(--pstr-black);
    width: 40%;
}
.pstr-table td { color: var(--pstr-dark); }

.pstr-table--striped thead th {
    background: var(--pstr-gray-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.pstr-table--striped tbody tr:nth-child(even) {
    background: var(--pstr-gray-light);
}

/* =========================================================================
   SIDEBAR CARDS
   ========================================================================= */
.pstr-sidebar-card {
    background: var(--pstr-white);
    border: 1px solid var(--pstr-gray-border);
    border-radius: var(--pstr-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}
.pstr-sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pstr-black);
    margin: 0 0 14px;
}

/* Hours table */
.pstr-hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pstr-hours-table tr { border-bottom: 1px solid var(--pstr-gray-border); }
.pstr-hours-table tr:last-child { border-bottom: none; }
.pstr-hours-table td { padding: 8px 0; }
.pstr-hours-table__day { font-weight: 500; color: var(--pstr-dark); }
.pstr-hours-table__time { text-align: right; color: var(--pstr-gray); }
.pstr-hours-table__today { background: rgba(200,16,46,.05); border-radius: var(--pstr-radius); }
.pstr-hours-table__today td { padding-left: 8px; padding-right: 8px; }
.pstr-hours-table__today .pstr-hours-table__day { color: var(--pstr-red); font-weight: 700; }
.pstr-hours-table__today .pstr-hours-table__time { color: var(--pstr-red); font-weight: 600; }
.pstr-hours-table__closed { color: var(--pstr-gray); font-style: italic; }

/* Contact list */
.pstr-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pstr-contact-list__item {
    padding: 8px 0 8px 28px;
    border-bottom: 1px solid var(--pstr-gray-border);
    position: relative;
    font-size: 14px;
}
.pstr-contact-list__item:last-child { border-bottom: none; }
.pstr-contact-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .5;
}
.pstr-contact-list__item--phone::before { content: '\260E'; font-size: 16px; background: none; opacity: 1; }
.pstr-contact-list__item--email::before { content: '\2709'; font-size: 16px; background: none; opacity: 1; }
.pstr-contact-list__item--website::before { content: '\1F310'; font-size: 14px; background: none; opacity: 1; }
.pstr-contact-list__item--facebook::before { content: 'f'; font-size: 14px; font-weight: 800; background: none; opacity: 1; color: #1877f2; }
.pstr-contact-list__item--instagram::before { content: '\1F4F7'; font-size: 14px; background: none; opacity: 1; }

.pstr-contact-list__item a {
    color: var(--pstr-dark);
    text-decoration: none;
    transition: color var(--pstr-transition);
}
.pstr-contact-list__item a:hover { color: var(--pstr-red); }

/* Price highlight */
.pstr-sidebar-card--price {
    background: var(--pstr-black);
    color: var(--pstr-white);
    text-align: center;
}
.pstr-sidebar-card--price h3 { color: rgba(255,255,255,.7); }
.pstr-price-highlight__amount {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--pstr-red);
}
.pstr-price-highlight__label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
}

/* =========================================================================
   MAP (LEAFLET)
   ========================================================================= */
.pstr-map {
    width: 100%;
    height: 400px;
    border-radius: var(--pstr-radius-lg);
    overflow: hidden;
    border: 1px solid var(--pstr-gray-border);
}

/* =========================================================================
   GALLERY (SWIPER)
   ========================================================================= */
.pstr-gallery-swiper {
    border-radius: var(--pstr-radius-lg);
    overflow: hidden;
}
.pstr-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pstr-gray-light);
}
.pstr-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.pstr-gallery-swiper .swiper-button-prev,
.pstr-gallery-swiper .swiper-button-next {
    color: var(--pstr-white);
    background: rgba(26,26,26,.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.pstr-gallery-swiper .swiper-button-prev::after,
.pstr-gallery-swiper .swiper-button-next::after {
    font-size: 16px;
}
.pstr-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--pstr-red);
}

/* =========================================================================
   REVIEWS
   ========================================================================= */
.pstr-reviews { margin-bottom: 24px; }

.pstr-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--pstr-gray-border);
}
.pstr-review:last-child { border-bottom: none; }

.pstr-review__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.pstr-review__author {
    font-weight: 700;
    font-size: 15px;
    color: var(--pstr-black);
}
.pstr-review__date {
    font-size: 13px;
    color: var(--pstr-gray);
}
.pstr-review__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pstr-dark);
}

/* Star select */
.pstr-star-select {
    display: flex;
    gap: 4px;
}
.pstr-star-select__star {
    font-size: 28px;
    color: var(--pstr-gray-border);
    cursor: pointer;
    transition: color var(--pstr-transition);
    user-select: none;
}
.pstr-star-select__star.active,
.pstr-star-select__star:hover { color: var(--pstr-star); }

/* Review form */
.pstr-review-form {
    background: var(--pstr-gray-light);
    padding: 24px;
    border-radius: var(--pstr-radius-lg);
}
.pstr-review-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pstr-black);
    margin: 0 0 16px;
}
.pstr-form__row {
    margin-bottom: 14px;
}
.pstr-form__row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pstr-black);
    margin-bottom: 4px;
}
.pstr-form__row input[type="text"],
.pstr-form__row input[type="email"],
.pstr-form__row textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--pstr-gray-border);
    border-radius: var(--pstr-radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--pstr-transition);
    box-sizing: border-box;
}
.pstr-form__row input:focus,
.pstr-form__row textarea:focus {
    outline: none;
    border-color: var(--pstr-red);
}
.pstr-form__message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}
.pstr-form__message--success { color: #16a34a; }
.pstr-form__message--error { color: var(--pstr-red); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .pstr-single__layout {
        grid-template-columns: 1fr;
    }
    .pstr-single__sidebar {
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .pstr-hero__title { font-size: 28px; }
    .pstr-hero__subtitle { font-size: 15px; }
    .pstr-hero { padding: 40px 0 24px; }

    .pstr-search__main { flex-direction: column; }
    .pstr-search__input {
        border-right: 2px solid var(--pstr-gray-border);
        border-radius: var(--pstr-radius-lg) var(--pstr-radius-lg) 0 0;
    }
    .pstr-search__btn {
        border-radius: 0 0 var(--pstr-radius-lg) var(--pstr-radius-lg);
    }

    .pstr-filters__grid { grid-template-columns: 1fr; }

    .pstr-results__grid { grid-template-columns: 1fr; }

    .pstr-premium-banner__inner { padding: 32px 20px; }
    .pstr-premium-banner__inner h2 { font-size: 22px; }

    .pstr-single__header { flex-direction: column; }
    .pstr-single__header-left { flex-direction: column; }
    .pstr-single__title { font-size: 22px; }

    .pstr-single__sidebar {
        grid-template-columns: 1fr;
    }

    .pstr-gallery-swiper .swiper-slide img { height: 260px; }
    .pstr-map { height: 300px; }

    .pstr-city__title { font-size: 24px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pstr-results__grid { grid-template-columns: repeat(2, 1fr); }
}
