.kb-search-hero,
.kb-cabin-search,
.kb-cabin-search * {
    box-sizing: border-box;
}

.kb-search-hero {
    --kb-search-accent: #ffb000;
    --kb-search-ink: #111827;
    --kb-search-muted: #4b5563;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 92%, rgba(255, 176, 0, 0.23), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(255, 176, 0, 0.17), transparent 32%),
        #f3f4f6;
    color: var(--kb-search-ink);
    padding: clamp(24px, 4vw, 52px) 0;
}

.kb-search-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    grid-template-areas:
        "copy widget"
        "links widget";
    align-items: start;
    gap: 20px clamp(28px, 4vw, 54px);
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.kb-search-hero-copy {
    grid-area: copy;
    align-self: end;
}

.kb-search-hero-widget {
    grid-area: widget;
    min-width: 0;
}

.kb-search-hero-links {
    grid-area: links;
}

.kb-search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    border: 1px solid rgba(17, 24, 39, 0.09);
    border-radius: 999px;
    background: #fff;
    padding: 8px 13px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 800;
}

.kb-search-eyebrow > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kb-search-accent);
}

.kb-search-hero h1 {
    max-width: 720px;
    margin: 0 0 14px;
    color: var(--kb-search-ink);
    font-size: clamp(32px, 4.2vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-transform: none;
    text-shadow: none;
}

.kb-search-lead {
    max-width: 700px;
    margin: 0;
    color: var(--kb-search-muted);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.62;
}

.kb-search-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.kb-search-benefits a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    padding: 8px 13px;
    font-size: 14px;
    text-decoration: none;
}

.kb-search-benefits a:hover,
.kb-search-benefits a:focus-visible {
    border-color: #ffb000;
    box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.20);
    outline: 0;
}

.kb-search-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.kb-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 2px solid transparent;
    border-radius: 13px;
    padding: 12px 17px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: #111827;
    font-weight: 850;
    text-decoration: none;
}

.kb-search-button--primary {
    background: #ffb000;
}

.kb-search-button--secondary {
    border-color: #ffb000;
    background: #fff;
}

.kb-search-button:hover,
.kb-search-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
    outline: 0;
}

.kb-cabin-search,
.kb-cabin-search * {
    color: #111827;
    font-family: Arial, Helvetica, sans-serif !important;
}

.kb-cabin-search--hero {
    border: 1px solid rgba(17, 24, 39, 0.09);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    padding: 20px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}

.kb-cabin-search--full,
.kb-cabin-search--compact {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: #fff;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.kb-search-form {
    display: grid;
    gap: 9px;
    margin: 0;
}

.kb-search-form > label {
    color: #1f2937;
    font-size: 15px;
    font-weight: 850;
}

.kb-search-input-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    background: #f9fafb;
    padding: 5px 5px 5px 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.kb-search-input-row:focus-within {
    border-color: #ffb000;
    box-shadow: 0 0 0 4px rgba(255, 176, 0, 0.20);
}

.kb-search-input-row input {
    width: 100%;
    min-width: 0;
    min-height: 45px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    padding: 0 4px;
    font: inherit;
    font-size: 16px;
}

.kb-search-input-row button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #ffb000;
    color: #111827;
    padding: 10px 15px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.kb-search-input-row button:hover,
.kb-search-input-row button:focus-visible {
    background: #eaa100;
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.kb-search-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.kb-cabin-search.is-loading .kb-search-output {
    opacity: 0.55;
}

.kb-search-output {
    transition: opacity 140ms ease;
}

.kb-search-output:not(:empty) {
    margin-top: 14px;
}

.kb-cabin-search--hero .kb-search-output,
.kb-cabin-search--compact .kb-search-output {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #9ca3af #f3f4f6;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.kb-cabin-search--hero .kb-search-output {
    max-height: clamp(260px, 53.5vh, 460px);
}

.kb-cabin-search--compact .kb-search-output {
    max-height: clamp(260px, 55vh, 455px);
}

.kb-cabin-search--hero .kb-search-output::-webkit-scrollbar,
.kb-cabin-search--compact .kb-search-output::-webkit-scrollbar {
    width: 10px;
}

.kb-cabin-search--hero .kb-search-output::-webkit-scrollbar-track,
.kb-cabin-search--compact .kb-search-output::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #f3f4f6;
}

.kb-cabin-search--hero .kb-search-output::-webkit-scrollbar-thumb,
.kb-cabin-search--compact .kb-search-output::-webkit-scrollbar-thumb {
    border: 2px solid #f3f4f6;
    border-radius: 999px;
    background: #9ca3af;
}

.kb-cabin-search--hero .kb-search-results-heading,
.kb-cabin-search--compact .kb-search-results-heading {
    position: sticky;
    z-index: 2;
    top: 0;
    margin: 0;
    background: #fff;
    padding: 0 0 9px;
}

.kb-search-empty {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.kb-search-results-heading,
.kb-search-alternatives h3,
.kb-search-no-results h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
    text-transform: none;
    text-shadow: none;
}

.kb-search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kb-cabin-search--hero .kb-search-results-grid {
    grid-template-columns: 1fr;
    padding: 2px 3px 3px 1px;
}

.kb-search-result {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 106px;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    padding: 10px;
    color: #111827;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.kb-search-result-media {
    width: 108px;
    height: 82px;
    overflow: hidden;
    border-radius: 10px;
    background: #e5e7eb;
}

.kb-search-result-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-search-result:hover,
.kb-search-result:focus-visible {
    border-color: #ffb000;
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.11);
    transform: translateY(-1px);
    outline: 0;
}

.kb-search-result-copy {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.kb-search-result-copy > strong {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.25;
}

.kb-search-result-meta {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

.kb-search-result-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.kb-search-stars,
.kb-search-stars > span {
    color: #f59e0b !important;
}

.kb-search-stars {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.kb-search-result-rating b {
    color: #111827 !important;
    font-size: 13px;
    font-weight: 800;
}

.kb-search-result-arrow {
    color: #6b7280;
    font-size: 23px;
}

.kb-search-no-results {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 13px;
    background: #f8fafc;
    padding: 17px;
}

.kb-search-no-results p,
.kb-search-alternatives > p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.kb-search-alternatives {
    margin-top: 22px;
}

.kb-search-alternatives > p {
    margin-bottom: 11px;
}

.kb-cabin-search-page {
    max-width: 1120px;
}

.kb-search-page-hero,
.kb-search-page-widget {
    scroll-margin-top: 24px;
}

.kb-search-page-hero {
    border-radius: 22px;
    background:
        radial-gradient(circle at 86% 5%, rgba(255, 176, 0, 0.22), transparent 34%),
        #f3f4f6;
    padding: clamp(26px, 5vw, 54px);
}

.kb-search-page-hero h1 {
    max-width: 850px;
    margin: 0 0 15px;
    color: #111827;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.kb-search-page-hero > p:last-child {
    max-width: 820px;
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.65;
}

.kb-search-page-widget {
    margin-top: 24px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 18px;
    background: #fff;
    padding: clamp(22px, 4vw, 36px);
}

.kb-search-page-widget > h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 30px;
}

@media (max-width: 1050px) {
    .kb-search-hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "widget"
            "links";
        gap: 16px;
    }

    .kb-search-hero h1 {
        font-size: clamp(30px, 5.3vw, 42px);
    }

    .kb-search-lead {
        font-size: 16px;
        line-height: 1.5;
    }

}

@media (max-width: 760px) {
    .kb-search-hero {
        padding: 20px 0 28px;
    }

    .kb-search-hero-inner {
        width: min(100% - 28px, 1200px);
        gap: 14px;
    }

    .kb-search-eyebrow {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.3;
    }

    .kb-search-hero h1,
    .kb-search-page-hero h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .kb-search-lead,
    .kb-search-page-hero > p:last-child {
        font-size: 15px;
        line-height: 1.5;
    }

    .kb-cabin-search--hero,
    .kb-cabin-search--full,
    .kb-cabin-search--compact {
        border-radius: 16px;
        padding: 15px;
    }

    .kb-search-input-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 5px 7px 5px 12px;
    }

    .kb-search-input-row button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .kb-search-benefits {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kb-search-benefits a {
        border-radius: 12px;
    }

    .kb-search-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kb-search-button {
        width: 100%;
    }

    .kb-search-results-grid {
        grid-template-columns: 1fr;
    }

    .kb-search-result {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 100px;
        gap: 10px;
        padding: 9px;
    }

    .kb-search-result-media {
        width: 82px;
        height: 74px;
    }

    .kb-search-result-arrow {
        display: none;
    }

    .kb-search-page-hero,
    .kb-search-page-widget {
        border-radius: 14px;
        padding: 21px 17px;
    }

    .kb-search-page-hero {
        padding: 18px 15px;
    }

    .kb-search-page-hero h1 {
        font-size: 27px;
    }

    .kb-search-page-hero > p:last-child {
        font-size: 14px;
        line-height: 1.42;
    }

    .kb-search-page-widget {
        margin-top: 14px;
        padding: 18px 15px;
    }

    .kb-search-page-widget > h2 {
        margin-bottom: 12px;
        font-size: 25px;
    }
}

@media (min-width: 761px) and (max-width: 1050px) and (max-height: 560px) {
    .kb-search-hero {
        padding: 14px 0 22px;
    }

    .kb-search-hero-inner {
        width: min(100% - 36px, 1200px);
        gap: 10px;
    }

    .kb-search-eyebrow {
        margin-bottom: 7px;
        padding: 6px 11px;
        font-size: 12px;
    }

    .kb-search-hero h1 {
        max-width: none;
        margin-bottom: 8px;
        font-size: 29px;
        line-height: 1.08;
    }

    .kb-search-lead {
        max-width: none;
        font-size: 14px;
        line-height: 1.38;
    }

    .kb-cabin-search--hero {
        padding: 13px;
    }

    .kb-search-input-row input,
    .kb-search-input-row button {
        min-height: 42px;
    }

    .kb-search-hero-links {
        margin-top: 2px;
    }

    .kb-cabin-search-page .kb-search-page-hero {
        padding: 13px 18px;
    }

    .kb-cabin-search-page .kb-search-page-hero .kb-seo-eyebrow {
        margin-bottom: 4px;
        font-size: 11px;
    }

    .kb-cabin-search-page .kb-search-page-hero h1 {
        max-width: none;
        margin-bottom: 5px;
        font-size: 28px;
        line-height: 1.08;
    }

    .kb-cabin-search-page .kb-search-page-hero > p:last-child {
        max-width: none;
        font-size: 13px;
        line-height: 1.35;
    }

    .kb-cabin-search-page .kb-search-page-widget {
        margin-top: 9px;
        padding: 11px 15px;
    }

    .kb-cabin-search-page .kb-search-page-widget > h2 {
        margin-bottom: 7px;
        font-size: 22px;
    }

    .kb-cabin-search-page .kb-cabin-search--full {
        border-radius: 13px;
        padding: 10px 12px;
    }

    .kb-cabin-search-page .kb-search-form {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-search-button,
    .kb-search-result,
    .kb-search-output {
        transition: none;
    }

    .kb-search-button:hover,
    .kb-search-result:hover {
        transform: none;
    }
}
