:root {
    --primary-color: #ffcc00;
    --dark-color: #232323;
    --light-bg: #F0F0F0;
    --text-color: #333;
    --border-color: #d6d6d6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    padding: 80px 10%;
}

.top-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 12px 10%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.top-bar__left,
.top-bar__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar i {
    color: var(--primary-color);
    margin-right: 8px;
}

.top-bar a,
.contact-info a {
    display: inline-block;
    transition: transform 0.2s ease;
    transform-origin: left center;
}

.top-bar a:hover,
.contact-info a:hover {
    transform: scale(1.05);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #fff;
    padding: 16px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
    transform: scale(1.4);
    transform-origin: left center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    font-weight: 600;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 10px 18px;
    border-radius: 6px;
}

.main-nav a.btn-nav:hover {
    color: #fff;
}

.hero {
    min-height: 76vh;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../images/kamperowekadry-hero.webp") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero__content {
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.btn-main {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-color);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.features {
    margin: -50px auto 0;
    width: min(1200px, 80%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.feature-item h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.underline {
    width: 64px;
    height: 4px;
    margin: 12px auto 0;
    background: var(--primary-color);
}

.section-title--left {
    text-align: left;
    margin-bottom: 26px;
}

.section-title--left .underline {
    margin-left: 0;
}

.about-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 12px;
}

.about-text p + p {
    margin-top: 14px;
}

.section-light {
    background: var(--light-bg);
}

.styles-grid,
.pricing-grid,
.gallery-grid {
    display: grid;
    gap: 22px;
}

.styles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.style-card,
.pricing-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 26px;
}

.style-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.style-card h3,
.pricing-card h3 {
    margin-bottom: 5px;
}

.style-card p {
    margin-bottom: 30px;
    padding: 0 26px;
}

.style-card h3 {
    padding: 30px 26px 10px;
    margin-bottom: 5px;
}

.style-card__image,
.style-card__image-placeholder {
    width: 100%;
    height: 500px;
    min-height: 500px;
    border-radius: 0 0 10px 10px;
    border: none;
    margin-bottom: -1px;
}

.style-card__image {
    object-fit: cover;
    display: block;
}

.style-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    color: #757575;
    font-weight: 600;
    text-align: center;
    padding: 14px;
}

.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-card__meta {
    color: #666;
    margin-bottom: 6px;
}

.pricing-card__price {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.pricing-card__features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.pricing-card__features li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: var(--primary-color);
    font-weight: 700;
}

.pricing-card__features li:last-child {
    margin-top: 10px;
    margin-bottom: 0;
}

#locations-map {
    background: #fff;
}

.locations-map__counter {
    text-align: center;
    margin: -16px 0 24px;
    font-size: 1.05rem;
    color: #3a3a3a;
}

.locations-map__counter strong {
    color: var(--dark-color);
}

.event-map {
    width: 100%;
    height: 460px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.locations-list-wrap {
    margin-top: 22px;
}

.locations-list-wrap h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.locations-list-controls {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 10px;
    margin-bottom: 12px;
}

.locations-list-controls input,
.locations-list-controls select {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.locations-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    align-content: start;
}

.locations-list__item {
    width: 100%;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.locations-list__item:hover {
    border-color: #b9b9b9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.locations-list__item.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.28);
}

.locations-list__name {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.locations-list__address {
    color: #555;
    font-size: 0.94rem;
}

.leaflet-tooltip.map-tooltip {
    background: #fff;
    border: 1px solid var(--border-color);
    color: #222;
    font-weight: 600;
    padding: 6px 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.brand-map-pin-wrapper {
    background: transparent;
    border: none;
}

.brand-map-pin {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid #3a3200;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.brand-map-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid var(--primary-color);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.leaflet-popup-content {
    margin: 10px 12px;
}

.map-popup {
    max-width: 260px;
}

.map-popup h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.map-popup p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.map-popup img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.map-popup__check {
    margin: 8px auto 0;
    display: block;
    border: none;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 6px;
    padding: 7px 11px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.lightbox.is-active {
    display: flex;
}

.lightbox__image {
    max-width: min(880px, 72vw);
    max-height: 68vh;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    border: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightbox__close {
    top: 18px;
    right: 18px;
}

.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__nav--prev {
    left: 18px;
}

.lightbox__nav--next {
    right: 18px;
}

.map-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 4000;
    padding: 20px;
}

.map-lightbox.is-active {
    display: flex;
}

.map-lightbox__content {
    position: relative;
    width: min(784px, 74vw);
    background: #fff;
    border-radius: 12px;
    padding: 18px;
}

.map-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
}

.map-lightbox__content h3 {
    margin-bottom: 6px;
    padding-right: 40px;
}

.map-lightbox__content p {
    margin-bottom: 14px;
    color: #4a4a4a;
}

.map-lightbox__content img {
    width: 100%;
    max-height: 58vh;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #f5f5f5;
}

.contact-box {
    background: var(--dark-color);
    border-radius: 14px;
    color: #fff;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.contact-info p {
    margin-top: 14px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    font: inherit;
}

.contact-form__message {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.contact-form__message--success {
    background: #e8f8ea;
    color: #1f6a2e;
}

.contact-form__message--error {
    background: #fdecec;
    color: #8e2020;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-form__note {
    font-size: 0.86rem;
    color: #e6dca4;
    margin: 0 0 12px;
}

.contact-form button {
    border: none;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form button.is-loading {
    opacity: 0.8;
    cursor: not-allowed;
}

footer {
    background: #151515;
    color: #b7b7b7;
    text-align: center;
    padding: 30px 10%;
}

@media (max-width: 950px) {
    .top-bar {
        display: none;
    }

    .main-header {
        position: static;
    }

    .main-nav ul {
        gap: 14px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .logo img {
        height: 56px;
    }

    .about-flex,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .features {
        width: min(1200px, 92%);
        padding: 28px;
    }

    .locations-list-controls {
        grid-template-columns: 1fr;
    }

    .locations-list {
        grid-template-columns: 1fr;
        max-height: 320px;
    }

    .event-map {
        height: 360px;
    }
}
