/* =========================================================
   LUMISCHEMA PHONE FINDER  (page-phone-finder.php)
   Component styles only. Page width, gutter, the main/sidebar columns and
   top gap come from layout-system.css. The page sits in the 900px main
   column next to the GeneratePress sidebar.
   ========================================================= */

.ls-pf { color: #111827; }
.ls-pf *,
.ls-pf *::before,
.ls-pf *::after { box-sizing: border-box; }
.ls-pf a { text-decoration: none; }

/* Breadcrumb: shared .ls-crumbs in global.css. */

/* ---------- Heading ---------- */
/* No side padding: the title and description line up with the breadcrumb and filters. */
.ls-pf-head { margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid #e5e7eb; }
.ls-pf-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ls-pf-head h1 { margin: 0; color: #0b0b1e; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; font-weight: 800; }
.ls-pf-count { margin: 0; color: #0b0b1e; font-size: 14px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ls-pf-count strong { color: #2a8be8; font-size: 15px; }
.ls-pf-intro p { margin: 0; max-width: none; color: #374151; font-size: 14px; line-height: 1.7; }

/* ---------- Layout ---------- */
.ls-pf-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); column-gap: 24px; align-items: start; }

/* ---------- Filters ---------- */
.ls-pf-filter-box > summary { display: none; list-style: none; }
.ls-pf-filter-box > summary::-webkit-details-marker { display: none; }
.ls-pf-field { margin: 0 0 18px; }
.ls-pf-field label { display: block; margin: 0 0 8px; color: #0b0b1e; font-size: 15px; line-height: 1.2; font-weight: 700; }

.ls-pf-field select,
.ls-pf-input input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 38px 0 12px;
    background-color: #fff;
    border: 1px solid #cdd3dd;
    border-radius: 7px;
    color: #111827;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}
.ls-pf-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.ls-pf-input { position: relative; display: block; }
.ls-pf-field select,
.ls-pf-input input[list],
.ls-pf-input input[type="search"],
.ls-pf-input input[type="text"],
.ls-pf-input input[type="number"] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 14px;
}
.ls-pf-input input[type="number"] { -moz-appearance: textfield; }
.ls-pf-input input[type="number"]::-webkit-outer-spin-button,
.ls-pf-input input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ls-pf-input input[type="search"]::-webkit-search-cancel-button { display: none; }
.ls-pf-has-icon .ls-pf-input svg {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    fill: none;
    stroke: #4b5563;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.ls-pf-has-icon .ls-pf-input input { padding-left: 34px; }
.ls-pf-field select:focus,
.ls-pf-input input:focus { outline: 2px solid #2a8be8; outline-offset: 0; border-color: #2a8be8; }
.ls-pf-field ::placeholder { color: #8b93a1; opacity: 1; }
.ls-pf-field select:invalid,
.ls-pf-field select option[value=""] { color: #8b93a1; }

/* Reset + Search */
.ls-pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ls-pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.ls-pf-btn svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ls-pf-reset { background: #dc2626; color: #fff; }
.ls-pf-reset:hover,
.ls-pf-reset:focus-visible { background: #b91c1c; color: #fff; }
.ls-pf-search { background: #12125a; color: #fff; }
.ls-pf-search svg { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.ls-pf-search:hover { background: #0a0a3d; color: #fff; }

/* ---------- Sort bar ---------- */
.ls-pf-sortbar { display: flex; justify-content: flex-end; margin: 0 0 20px; }
.ls-pf-sort {
    width: 210px;
    max-width: 100%;
    height: 40px;
    padding: 0 38px 0 18px;
    border: 0;
    border-radius: 8px;
    background-color: #eeeff1;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    color: #111827;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Results grid ---------- */
.ls-pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.ls-pf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 252px;
    padding: 14px 7px 14px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .09);
}

/* Rumored pill: top right of the card. */
.ls-pf-rumored {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 4px 10px;
    background: #dc2626;
    border-radius: 0 8px 0 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* New pill (released in the last 90 days): same place, site blue. */
.ls-pf-rumored.ls-pf-new { background: #0b5fd8; }

.ls-pf-thumb { display: flex; align-items: center; justify-content: center; height: 76px; margin: 0 0 12px; }
.ls-pf-thumb img { display: block; width: auto; height: auto; max-width: 70%; max-height: 76px; object-fit: contain; }

.ls-pf-name { min-height: 36px; margin: 0 0 14px; padding: 0 6px; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 700; }
.ls-pf-name a { color: #0b0b1e; }
.ls-pf-card:hover .ls-pf-name a,
.ls-pf-name a:hover { color: #2a8be8; }

.ls-pf-buttons { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding: 0 8px; }
.ls-pf-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 0 8px;
    background: #fff;
    border: 1.5px solid #1b1a63;
    border-radius: 6px;
    color: #11114d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}
.ls-pf-card-btn svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: #1b1a63; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ls-pf-card-btn:hover { background: #f1f2ff; color: #11114d; }
.ls-pf-card .ls-pf-price-btn { background: #071D33; border-color: #071D33; color: #fff; font-size: 12px; font-weight: 700; }
.ls-pf-card .ls-pf-price-btn:hover,
.ls-pf-card .ls-pf-price-btn:focus-visible { background: #0f3357; border-color: #0f3357; color: #fff; }

.ls-pf-empty { padding: 36px 16px; text-align: center; color: #4b5563; }
.ls-pf-empty a { color: #2a8be8; }

/* Pagination */
.ls-pf-pagination { margin-top: 28px; text-align: center; }
.ls-pf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 3px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    text-decoration: none;
}
.ls-pf-pagination .page-numbers.current { background: #2057c4; border-color: #2057c4; color: #fff; }
.ls-pf-pagination .page-numbers.dots { border: 0; background: transparent; }

.ls-pf-ad { min-height: 1px; margin-top: 24px; text-align: center; color: #9ca3af; font-size: 10px; }

/* ---------- Responsive ---------- */
/* 1001-1200px: narrow main column beside the sidebar. */
@media (min-width: 1001px) and (max-width: 1200px) {
    .ls-pf-layout { grid-template-columns: 220px minmax(0, 1fr); column-gap: 18px; }
    .ls-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .ls-pf-layout { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
    .ls-pf-filter-box { background: #fff; border: 1px solid #dcdde1; border-radius: 8px; }
    .ls-pf-filter-box > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        color: #0b0b1e;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
    }
    .ls-pf-filter-box > summary::after { content: "+"; font-size: 20px; line-height: 1; }
    .ls-pf-filter-box[open] > summary::after { content: "\2212"; }
    .ls-pf-filter-box[open] > summary { border-bottom: 1px solid #e5e7eb; margin-bottom: 14px; }
    .ls-pf-filter-box > .ls-pf-field,
    .ls-pf-filter-box > .ls-pf-actions { margin-left: 14px; margin-right: 14px; }
    .ls-pf-filter-box > .ls-pf-actions { margin-bottom: 14px; }
    .ls-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
    .ls-pf-head h1 { font-size: 22px; }
    .ls-pf-head-row { flex-wrap: wrap; }
    .ls-pf-card { min-height: 236px; }
    .ls-pf-buttons { padding: 0 4px; }
    .ls-pf-card-btn { font-size: 12px; gap: 6px; }
}
