/*
 * De ce exista:
 * Acest fisier contine stilurile specifice ecranului Client Search Offers.
 *
 * Responsabilitate:
 * Face selectia de filtre si scanarea rezultatelor mai clara, mai calma si
 * mai usor de parcurs pe mobil.
 *
 * Ce NU face:
 * Nu schimba logica discovery-ului si nu stilizeaza alte flow-uri worker.
 *
 * Depinde de:
 * tpl-screen-client-search-offers si cardurile shared din app-v2.
 */

.v2-screen--client-search-offers {
    display: grid;
    gap: 14px;
}

.v2-offers-hero {
    margin-bottom: 0;
    display: grid;
    gap: 4px;
}

.v2-offers-hero .v2-copy {
    margin: 0;
    max-width: 31ch;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.45;
}

.v2-filter-card,
.v2-results-card {
    border-radius: 24px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: rgba(255, 255, 255, 0.98);
    padding: 14px;
    box-shadow: var(--z-shadow-soft);
}

.v2-offers-filter-card {
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 34%),
        #ffffff;
}

.v2-offers-filter-shell,
.v2-offers-filter-stage,
.v2-offers-filter-action-shell {
    display: grid;
    gap: 10px;
}

.v2-offers-filter-action-shell {
    padding-top: 10px;
    border-top: 1px solid rgba(229, 231, 235, 0.88);
}

.v2-offers-step-indicator {
    padding: 0;
}

.v2-offers-step-indicator .v2-step-indicator-row {
    gap: 6px;
}

.v2-offers-step-indicator .v2-step-pill {
    gap: 4px;
    padding: 9px 10px;
    border-radius: 16px;
}

.v2-offers-step-indicator .v2-step-pill strong {
    font-size: 0.8rem;
}

.v2-offers-step-indicator .v2-step-pill span {
    font-size: 0.78rem;
    line-height: 1.35;
}

.v2-offers-filter-head {
    display: grid;
    gap: 8px;
}

.v2-offers-filter-head-copy {
    display: grid;
    gap: 4px;
}

.v2-offers-filter-head-copy h2 {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.15;
}

.v2-discovery-query-form .v2-field {
    display: grid;
    gap: 6px;
}

.v2-discovery-query-form .v2-copy {
    margin: 0;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.45;
}

.v2-filter-summary {
    display: grid;
    gap: 10px;
}

.v2-offers-filter-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v2-filter-item {
    display: grid;
    gap: 5px;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(229, 231, 235, 0.96);
    background: rgba(249, 250, 251, 0.96);
}

.v2-offers-filter-item {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.v2-offers-filter-item:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 163, 74, 0.2);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.v2-offers-filter-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.v2-filter-item strong {
    font-size: 0.84rem;
    color: #111827;
}

.v2-filter-item span {
    color: #4b5563;
    font-size: 0.84rem;
}

.v2-filter-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.v2-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.v2-offers-filter-actions {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
}

.v2-offers-filter-actions .v2-button {
    width: 100%;
}

.v2-offers-filter-actions .v2-button {
    min-height: 48px;
}

.v2-offers-map-button {
    width: auto;
    min-height: 36px;
    justify-self: start;
}

.v2-results-card {
    display: grid;
    gap: 12px;
}

.v2-results-card--intro {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 250, 251, 0.96));
}

.v2-results-grid {
    display: grid;
    gap: 12px;
}

.v2-results-card .v2-empty-state-card .v2-screen-head {
    margin-bottom: 0;
}

.v2-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.v2-results-head-copy {
    display: grid;
    gap: 6px;
}

.v2-results-head-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.5;
}

.v2-results-head h3,
.v2-offer-card h3 {
    margin: 0;
}

.v2-screen--client-search-offers .v2-offer-card {
    gap: 12px;
    padding: 16px;
}

.v2-screen--client-search-offers .v2-offer-card-head {
    gap: 12px;
}

.v2-screen--client-search-offers .v2-offer-card-facts {
    gap: 12px;
}

.v2-screen--client-search-offers .v2-offer-card-summary {
    gap: 10px;
}

.v2-screen--client-search-offers .v2-offer-card-actions {
    justify-content: flex-start;
}

.v2-screen--client-search-offers .v2-offer-card-actions .v2-button {
    width: auto;
    justify-content: center;
}

.v2-screen--client-search-offers .v2-offer-line {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

@media (max-width: 430px) {
    .v2-offers-filter-summary {
        grid-template-columns: 1fr;
    }

    .v2-results-head {
        flex-direction: column;
    }
}

@media (max-width: 389px) {
    .v2-filter-card,
    .v2-results-card,
    .v2-screen--client-search-offers .v2-offer-card {
        padding: 16px;
    }
}
