/* R308D — Global Search */

.r308d-global-search-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.r308d-global-search-link svg {
    width: 17px;
    height: 17px;
}

.r308d-mobile-search-btn {
    display: none;
}

.r308d-search-page {
    padding: 34px 0 72px;
}

.r308d-search-container {
    max-width: 1180px;
}

.r308d-search-hero {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(34, 211, 238, .22),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(99, 102, 241, .24),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #071225,
            #10274c
        );
    box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
}

.r308d-search-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 900;
}

.r308d-search-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
}

.r308d-search-hero > p {
    max-width: 720px;
    margin: 10px 0 22px;
    color: rgba(226, 232, 240, .82);
    line-height: 2;
}

.r308d-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 820px;
}

.r308d-search-form input {
    min-height: 54px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 17px;
    font: inherit;
    color: #0f172a;
    background: #fff;
    outline: none;
}

.r308d-search-form input:focus {
    box-shadow: 0 0 0 4px rgba(103, 232, 249, .16);
}

.r308d-search-form button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 21px;
    border: 0;
    border-radius: 17px;
    color: #071225;
    background: linear-gradient(135deg, #67e8f9, #93c5fd);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.r308d-search-form button svg {
    width: 18px;
    height: 18px;
}

.r308d-search-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
}

.r308d-search-quick > span {
    color: rgba(226, 232, 240, .72);
}

.r308d-search-quick a {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    color: #e0f2fe;
    text-decoration: none;
    background: rgba(255, 255, 255, .07);
}

.r308d-search-summary,
.r308d-search-notice,
.r308d-search-start,
.r308d-search-empty {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid #dbe5f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.r308d-search-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.r308d-search-summary > div {
    display: grid;
    gap: 4px;
}

.r308d-search-summary span {
    color: #64748b;
    font-size: 13px;
}

.r308d-search-summary > a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.r308d-result-section {
    margin-top: 28px;
}

.r308d-result-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: end;
    margin-bottom: 13px;
}

.r308d-result-head span {
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.r308d-result-head h2 {
    margin: 3px 0 0;
    font-size: 21px;
}

.r308d-result-head > a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.r308d-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.r308d-result-card {
    position: relative;
    padding: 19px;
    border: 1px solid #e2e8f0;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.r308d-result-type {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 10.5px;
    font-weight: 900;
}

.r308d-result-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.8;
}

.r308d-result-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.r308d-result-card h3 a:hover {
    color: #2563eb;
}

.r308d-result-meta {
    margin-bottom: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.r308d-result-card p {
    margin: 7px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.r308d-result-card small {
    color: #64748b;
    line-height: 1.8;
}

.r308d-available {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 10.5px;
    font-weight: 900;
}

.r308d-search-empty div,
.r308d-search-start div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.r308d-search-empty a,
.r308d-search-start a {
    padding: 7px 11px;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


@media (max-width: 800px) {

    .r308d-mobile-search-btn {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        display: inline-grid !important;
        place-items: center !important;
        border: 1px solid rgba(255, 255, 255, .14) !important;
        border-radius: 13px !important;
        color: #e0f2fe !important;
        background: rgba(255, 255, 255, .09) !important;
        text-decoration: none !important;
    }

    .r308d-mobile-search-btn svg {
        width: 18px !important;
        height: 18px !important;
    }

    .r308d-mobile-search-btn > span {
        display: none !important;
    }

    .r308d-search-page {
        padding: 8px 0 calc(105px + env(safe-area-inset-bottom, 0px));
    }

    .r308d-search-hero {
        padding: 22px 15px;
        border-radius: 27px;
    }

    .r308d-search-hero h1 {
        font-size: 28px;
    }

    .r308d-search-form {
        grid-template-columns: 1fr;
    }

    .r308d-search-form input,
    .r308d-search-form button {
        min-height: 50px;
    }

    .r308d-result-grid {
        grid-template-columns: 1fr;
    }

    .r308d-result-head {
        align-items: center;
    }

    .r308d-search-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
