.pk-hero {
    position: relative;
    z-index: 2;
    border-radius: 1rem;
    background: var(--b4-color-info-tint);
    padding: 1.5rem 1rem 1rem;
    isolation: isolate;
    container-type: inline-size;
}

.pk-hero-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center 35%;
}

.pk-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(90deg, rgb(var(--b4-color-surface-rgb) / 0.92), rgb(var(--b4-color-surface-rgb) / 0.55) 42%, rgb(var(--b4-color-surface-rgb) / 0) 70%);
    content: "";
}

.pk-hero-title {
    color: var(--b4-color-primary-dark);
    font-size: 2.25rem;
    line-height: 1.05;
}

.pk-hero-subtitle {
    margin-top: 0.5rem;
    color: var(--b4-color-text);
    font-size: 0.875rem;
    font-weight: 500;
}

@container (min-width: 40rem) {
    .pk-hero {
        padding: 2rem 1.75rem 1.25rem;
    }

    .pk-hero-title {
        font-size: 3rem;
    }
}

.pk-trusted {
    display: none;
}

@container (min-width: 50rem) {
    .pk-trusted {
        position: absolute;
        top: 3.5rem;
        right: 1.75rem;
        display: block;
        border-radius: 0.75rem;
        background: rgb(var(--b4-color-surface-rgb) / 0.95);
        padding: 0.625rem 0.875rem;
        box-shadow: 0 8px 20px -10px rgb(15 23 42 / 0.4);
    }
}

.pk-trusted-avatar {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--b4-color-surface);
    border-radius: 9999px;
    background: #065f46;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
}

.pk-trusted-avatar + .pk-trusted-avatar {
    margin-left: -0.5rem;
}

.pk-search {
    position: relative;
    margin-top: 1.25rem;
    border-radius: 0.875rem;
    background: var(--b4-color-surface);
    padding: 0.75rem;
    box-shadow: 0 12px 30px -16px rgb(15 23 42 / 0.45);
    container-type: inline-size;
}

.pk-search .errorlist {
    margin-top: 0.25rem;
    color: var(--b4-color-danger-text);
    font-size: 0.6875rem;
    font-weight: 600;
}

.pk-themes {
    display: flex;
    min-width: 0;
    gap: 0.25rem;
    overflow-x: auto;
    margin: 0 0 0.625rem;
    border: 0;
    padding: 0 0 0.25rem;
    scrollbar-width: thin;
}

.pk-theme {
    position: relative;
    display: inline-flex;
    min-height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    gap: 0.375rem;
    border-radius: 0.625rem;
    padding: 0 0.875rem;
    color: var(--b4-color-text);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}

.pk-theme input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pk-theme:hover {
    background: var(--b4-color-neutral-bg);
}

.pk-theme:has(input:checked) {
    background: #065f46;
    color: #fff;
}

.pk-theme:has(input:focus-visible) {
    outline: 2px solid var(--b4-color-primary);
    outline-offset: 2px;
}

.pk-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    border-top: 1px solid var(--b4-color-border);
    padding-top: 0.625rem;
}

@container (min-width: 32rem) {
    .pk-search-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 50rem) {
    .pk-search-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr) auto;
        align-items: center;
    }

    .pk-cell + .pk-cell {
        border-left: 1px solid var(--b4-color-border);
    }
}

.pk-cell {
    position: relative;
    min-width: 0;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
}

.pk-cell:focus-within {
    background: var(--b4-color-page);
}

.pk-cell .pk-select,
.pk-cell .st-pop-panel select {
    width: 100%;
}

.mod-field > .pk-select {
    display: block;
}

.pk-search-btn {
    min-height: 3rem;
    gap: 0.5rem;
    white-space: nowrap;
}

.pk-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 0.75rem;
    background: rgb(var(--b4-color-surface-rgb) / 0.94);
    padding: 0.75rem 1rem;
}

@container (min-width: 50rem) {
    .pk-trust {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.pk-trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.875rem;
}

@container (min-width: 28rem) {
    .pk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (min-width: 44rem) {
    .pk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (min-width: 58rem) {
    .pk-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.pk-grid > li {
    display: flex;
}

.pk-duration {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    border-radius: 9999px;
    background: rgb(var(--b4-color-surface-rgb) / 0.95);
    padding: 0.125rem 0.5rem;
    color: var(--b4-color-text);
    font-size: 0.6875rem;
    font-weight: 600;
}

.pk-compare-slot {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
}

.pk-compare-toggle {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 9999px;
    background: rgb(var(--b4-color-surface-rgb) / 0.95);
    padding: 0.25rem 0.5rem;
    color: var(--b4-color-text-muted);
    font-size: 0.6875rem;
    font-weight: 600;
}

a.pk-compare-toggle:hover {
    border-color: var(--b4-color-primary);
    color: var(--b4-color-primary);
}

.pk-compare-on {
    border-color: var(--b4-color-primary);
    background: var(--b4-color-success-bg);
    color: var(--b4-color-primary-dark);
}

.pk-compare-off {
    cursor: not-allowed;
}

.pk-discover {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

@container main (min-width: 44rem) {
    .pk-discover {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pk-why {
        grid-column: 1 / -1;
    }
}

@container main (min-width: 56rem) {
    .pk-discover {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.25fr);
    }

    .pk-why {
        grid-column: auto;
    }
}

.pk-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.25rem 0.75rem;
    margin-top: 0.75rem;
}

.pk-theme-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.5rem;
    padding: 0.375rem;
    color: var(--b4-color-text-muted);
}

.pk-theme-link:hover,
.pk-theme-link-active {
    background: var(--b4-color-success-bg);
    color: var(--b4-color-primary-dark);
}

.pk-duration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.pk-duration-link {
    display: block;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.625rem;
    padding: 0.625rem 0.75rem;
}

.pk-duration-link:hover,
.pk-duration-link-active {
    border-color: var(--b4-color-primary);
    background: var(--b4-color-success-bg);
}

.pk-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.5rem;
    margin-top: 1rem;
    text-align: center;
}

.pk-why {
    container-type: inline-size;
}

@container (min-width: 22rem) {
    .pk-why-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.pk-why-grid li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}

.pk-why-icon {
    color: var(--b4-color-primary);
}

.pk-help {
    border-radius: 1rem;
    background: #065f46;
    padding: 1.25rem;
    color: #fff;
}

.pk-help-title {
    color: #fff;
    font-size: 1.0625rem;
}

.pk-help-avatars {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.pk-help-avatars > span {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(var(--b4-color-surface-rgb) / 0.8);
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.15);
}

.pk-help-btn {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border-radius: 0.625rem;
    background: #fbbf24;
    padding: 0 1rem;
    color: #422006;
    font-size: 0.8125rem;
    font-weight: 700;
}

.pk-help-btn:disabled {
    cursor: not-allowed;
}

.pk-dest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.pk-dest {
    display: block;
    border-radius: 0.5rem;
}

.pk-dest-media {
    display: flex;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--b4-color-tint-strong), var(--b4-color-info-tint));
    color: var(--b4-color-primary);
}

.pk-dest-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pk-review-track {
    grid-auto-columns: 100%;
}

.pk-review {
    border-top: 1px solid var(--b4-color-border);
    padding-top: 0.75rem;
}

.pk-compare-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: 1px solid var(--b4-color-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
}

.pk-compare-thumb {
    display: flex;
    width: 3rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    object-fit: cover;
}

.pk-compare-remove {
    display: flex;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--b4-color-danger-bg);
    color: var(--b4-color-danger-text);
}

.pk-compare-btn {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    border-radius: 0.625rem;
    background: #fbbf24;
    color: #422006;
    font-size: 0.8125rem;
    font-weight: 700;
}

.pk-compare-btn:hover {
    background: #f59e0b;
}

#compare-table {
    scroll-margin-top: 1rem;
}

.pk-table-wrap {
    overflow-x: auto;
    border-radius: 0.5rem;
}

.pk-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.pk-table th,
.pk-table td {
    border-bottom: 1px solid var(--b4-color-border);
    padding: 0.625rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.pk-table thead th {
    color: var(--b4-color-text);
    font-weight: 700;
}

.pk-table tbody th {
    width: 8rem;
    color: var(--b4-color-text-muted);
    font-weight: 600;
}


.pk-region-chip {
    display: inline-flex;
    border: 1px solid var(--b4-color-border);
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    color: var(--b4-color-text);
}

.pk-region-chip:hover {
    border-color: var(--b4-color-primary);
}
