.klp-gallery {
    --klp-green: #00953f;
    --klp-light-green: #eef8f2;
    --klp-text: #000000;
    --klp-border: #e5ebe7;

    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    color: var(--klp-text);
}

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

/* =====================================================
   HERO
===================================================== */

.klp-gallery__hero {
    position: relative;
    display: grid;
    min-height: 270px;
    padding: 45px 20px;
    place-items: center;
    overflow: hidden;
    background-color: #173b2b;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    text-align: center;
}

.klp-gallery__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(3, 26, 16, 0.76),
        rgba(3, 26, 16, 0.28),
        rgba(3, 26, 16, 0.68)
    );
}

.klp-gallery__hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.klp-gallery__hero-content > span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.klp-gallery__hero-content h2 {
    margin: 12px 0 10px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
}

.klp-gallery__hero-content p {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
}

/* =====================================================
   DISTRICT NAVIGATION
===================================================== */

.klp-gallery__district-nav-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 max(18px, 6vw);
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.klp-gallery__district-nav {
    display: flex;
    flex: 1;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.klp-gallery__district-nav::-webkit-scrollbar {
    display: none;
}

.klp-gallery__district-tab {
    flex: 0 0 auto;
    padding: 19px 9px 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #222222;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.klp-gallery__district-tab:hover,
.klp-gallery__district-tab.is-active {
    border-bottom-color: var(--klp-green);
    color: var(--klp-green);
}

.klp-gallery__district-tab:disabled {
    cursor: wait;
    opacity: 0.6;
}

/* =====================================================
   RESULTS AND LOADER
===================================================== */

.klp-gallery__results {
    min-height: 220px;
    padding: 28px 80px 48px;
}

.klp-gallery__results.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.klp-gallery__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f8fbf9;
    color: var(--klp-green);
    font-weight: 700;
}

.klp-gallery__loading[hidden] {
    display: none;
}

.klp-gallery__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #cfe5d8;
    border-top-color: var(--klp-green);
    border-radius: 50%;
    animation: klp-spin 0.8s linear infinite;
}

@keyframes klp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   SECTION TITLE
===================================================== */

.klp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 7px 0 20px;
}

.klp-section-title > span {
    width: 32px;
    height: 2px;
    background: var(--klp-green);
}

.klp-section-title h3 {
    margin: 0;
    color: var(--klp-green);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* =====================================================
   CAROUSEL SHELL AND ARROWS
===================================================== */

.klp-carousel-shell {
    position: relative;
    width: 100%;
    min-width: 0;
    margin-bottom: 44px;
}

.klp-arrow {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid #dce5df;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #222222;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
    z-index: 5;
}

.klp-carousel-shell > .klp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.klp-carousel-shell > .klp-arrow--left {
    left: -18px;
}

.klp-carousel-shell > .klp-arrow--right {
    right: -18px;
}

/* Do not manually set Owl stage width */
.klp-highlights .owl-stage,
.klp-premium .owl-stage {
    display: flex;
    align-items: stretch;
}

.klp-highlights .owl-item,
.klp-premium .owl-item {
    display: flex;
    flex: 0 0 auto;
}

/* =====================================================
   DISTRICT HIGHLIGHTS
===================================================== */

.klp-highlight-card {
    display: flex;
    width: 100%;
    min-height: 120px;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--klp-border);
    border-radius: 10px;
}

.klp-highlight-card__content {
    flex: 1;
    min-width: 0;
}

/* Featured image version */

.klp-highlight-card__image {
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef3f0;
}

.klp-highlight-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.klp-highlight-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #eef3f0;
}

/* Old icon version support */

.klp-highlight-card__icon {
    display: grid;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: var(--klp-light-green);
    color: var(--klp-green);
}

.klp-highlight-card__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.klp-highlight-card h4 {
    margin: 0 0 7px;
    color: #111111;
    font-size: 15px;
    line-height: 1.35;
}

.klp-highlight-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #333333;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* =====================================================
   PREMIUM ATTRACTIONS
===================================================== */

.klp-premium {
    width: 100%;
    min-width: 0;
}

/*
 * Owl autoWidth requires an exact width on each direct card.
 * Do not use flex-basis or width: min() here.
 */
.klp-premium-card {
    position: relative;
    width: 285px;
    min-width: 285px;
    height: 280px;
    min-height: 280px;
    overflow: hidden;
    border-radius: 9px;
    background-color: #1e392d;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
}

/* .klp-premium-card--large {
    width: 760px;
    min-width: 760px;
} */

.klp-premium-card--small {
    width: 285px;
    min-width: 285px;
}

.klp-premium-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.88),
        rgba(0, 0, 0, 0.1) 78%
    );
}

.klp-premium-card__content {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
}

.klp-premium-card__label {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--klp-green);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.klp-premium-card h4 {
    margin: 9px 0 5px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
}

.klp-premium-card--small h4 {
    font-size: 18px;
}

.klp-premium-card p {
    display: -webkit-box;
    max-width: 580px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.klp-premium-card--small p {
    -webkit-line-clamp: 3;
}

/* Important: never override .owl-stage width */
.klp-premium.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.klp-premium.owl-carousel .owl-item {
    display: flex;
    flex: 0 0 auto;
}

/* =====================================================
   OWL DOTS
===================================================== */

.klp-gallery .owl-theme .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 18px;
    margin-top: 14px;
}

.klp-gallery .owl-theme .owl-dots .owl-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 18px;
}

.klp-gallery .owl-theme .owl-dots .owl-dot span {
    width: 7px;
    height: 7px;
    margin: 0;
    border-radius: 50%;
    background: #c8c8c8;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.klp-gallery .owl-theme .owl-dots .owl-dot.active span {
    width: 18px;
    border-radius: 10px;
    background: var(--klp-green);
}

/* =====================================================
   PLACE TYPE CARDS
===================================================== */

.klp-place-types {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.klp-type-card {
    min-width: 0;
    padding: 15px;
    background: #ffffff;
    border: 1px solid var(--klp-border);
    border-radius: 9px;
}

.klp-type-card__header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.klp-type-card__header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.klp-type-card__header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.klp-type-card__items {
    display: grid;
    gap: 9px;
}

.klp-type-card__item {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    line-height: 1.4;
}

.klp-type-card__item img,
.klp-type-card__placeholder {
    width: 31px;
    height: 25px;
    border-radius: 3px;
    background: #eef3f0;
    object-fit: cover;
}

.klp-type-card__item > span:nth-child(2) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.klp-type-card__item strong {
    color: var(--klp-green);
    font-size: 10px;
    white-space: nowrap;
}

/* =====================================================
   EMPTY MESSAGE
===================================================== */

.klp-gallery-message {
    padding: 22px;
    background: #f5faf7;
    border: 1px solid #dcece2;
    border-radius: 8px;
    color: #305c44;
    text-align: center;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1400px) {
    .klp-gallery__results {
        padding-right: 55px;
        padding-left: 55px;
    }

    .klp-premium-card--large {
        width: 650px;
        min-width: 650px;
    }
}

@media (max-width: 1200px) {
    .klp-place-types {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .klp-premium-card--large {
        width: 620px;
        min-width: 620px;
    }
}

@media (max-width: 991px) {
    .klp-gallery__results {
        padding-right: 32px;
        padding-left: 32px;
    }

    .klp-premium-card--large {
        width: 70vw;
        min-width: 70vw;
    }
}

@media (max-width: 767px) {
    .klp-gallery__hero {
        min-height: 225px;
    }

    .klp-gallery__hero-content p {
        font-size: 14px;
    }

    .klp-gallery__district-nav-wrap {
        padding: 0 8px;
    }

    .klp-gallery__results {
        padding-right: 18px;
        padding-left: 18px;
    }

    .klp-place-types {
        grid-template-columns: 1fr;
    }

.klp-premium-card,
.klp-premium-card--large,
.klp-premium-card--small {
    width: 100%;
    min-width: 0;
    height: 280px;
}

.klp-premium .owl-item {
    display: flex;
}

.klp-premium .owl-item > .klp-premium-card {
    width: 100%;
}

    .klp-carousel-shell > .klp-arrow {
        display: none;
    }

    .klp-highlight-card {
        padding: 16px;
    }

    .klp-highlight-card__image {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }
}