/* Domaćinstva listing - modern design */

:root {
    --hh-accent: #ff545a;
    --hh-accent-2: #f43032;
    --hh-mint: #22c55e;
    --hh-ink: #0b1220;
    --hh-muted: rgba(11, 18, 32, 0.72);
    --hh-line: rgba(15, 23, 42, 0.10);
    --hh-surface: rgba(255, 255, 255, 0.92);
    --hh-radius: 22px;
    --hh-shadow: 0 22px 70px rgba(0, 0, 0, 0.16);
}

.hh-list {
    color: var(--hh-ink);
}

.hh-list-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    background:
        radial-gradient(900px 520px at 20% 20%, rgba(255, 84, 90, 0.30), transparent 55%),
        radial-gradient(720px 520px at 80% 10%, rgba(34, 197, 94, 0.18), transparent 60%),
        linear-gradient(135deg, #0b1020 0%, #121b34 50%, #0e1326 100%);
}

.hh-list-hero::before {
    content: "";
    position: absolute;
    inset: -60px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.12;
    transform: rotate(-2deg);
    pointer-events: none;
}

.hh-list-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
}

.hh-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hh-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hh-accent), var(--hh-mint));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hh-list-hero h1 {
    margin: 16px 0 12px;
    font-size: 52px;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.96);
}

.hh-list-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.hh-trust-strip {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hh-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hh-search {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr 170px;
    gap: 12px;
    padding: 14px;
    border-radius: calc(var(--hh-radius) + 8px);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
    text-align: left;
}

.hh-field {
    min-width: 0;
}

.hh-label {
    display: block;
    margin: 0 0 8px;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.hh-input-wrap {
    position: relative;
}

.hh-input-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.72);
}

.hh-input {
    width: 100%;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    padding: 0 12px 0 40px;
    font-weight: 800;
    outline: none;
}

.hh-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.hh-input:focus {
    border-color: rgba(255, 84, 90, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 84, 90, 0.14);
}

.hh-submit {
    margin-top: 19px;
    height: 46px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, var(--hh-accent), var(--hh-accent-2));
    box-shadow: 0 16px 44px rgba(244, 48, 50, 0.30);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hh-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.hh-alert {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

.hh-list-body {
    padding: 44px 0 90px;
    background:
        radial-gradient(900px 520px at 18% 8%, rgba(255, 84, 90, 0.08), transparent 60%),
        radial-gradient(720px 560px at 84% 18%, rgba(34, 197, 94, 0.06), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.hh-list-body .container {
    max-width: 1180px;
}

.hh-discovery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.hh-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: rgba(11, 18, 32, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.hh-filter-chip.active,
.hh-filter-chip:hover {
    text-decoration: none;
    color: #0b1220;
    border-color: rgba(255, 84, 90, 0.22);
    background: rgba(255, 84, 90, 0.10);
}

.hh-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.hh-results {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: rgba(11, 18, 32, 0.72);
    font-weight: 800;
}

.hh-results strong {
    font-size: 22px;
    color: rgba(11, 18, 32, 0.92);
}

.hh-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hh-sort-form label {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(11, 18, 32, 0.58);
}

.hh-sort-form select {
    min-width: 210px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: rgba(11, 18, 32, 0.88);
    padding: 0 14px;
    font-weight: 800;
    outline: none;
}

.hh-sort-form select:focus {
    border-color: rgba(255, 84, 90, 0.36);
    box-shadow: 0 0 0 4px rgba(255, 84, 90, 0.10);
}

.hh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hh-card {
    border-radius: calc(var(--hh-radius) + 6px);
    background: var(--hh-surface);
    border: 1px solid var(--hh-line);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hh-card:hover {
    border-color: rgba(244, 48, 50, 0.18);
    box-shadow: var(--hh-shadow);
    transform: translateY(-3px);
}

.hh-card-media {
    position: relative;
    display: block;
    background: #eef2f6;
}

.hh-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    transform: scale(1.01);
}

.hh-card:hover .hh-card-media img {
    transform: scale(1.05);
}

.hh-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.hh-card-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.hh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hh-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hh-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hh-card-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.hh-card-title a {
    color: rgba(11, 18, 32, 0.92);
    text-decoration: none;
}

.hh-card-title a:hover {
    color: var(--hh-accent-2);
    text-decoration: none;
}

.hh-fav {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(15, 23, 42, 0.03);
    color: rgba(11, 18, 32, 0.70);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.hh-fav.is-fav {
    background: rgba(255, 84, 90, 0.10);
    border-color: rgba(255, 84, 90, 0.22);
    color: var(--hh-accent-2);
}

.hh-card-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: rgba(11, 18, 32, 0.64);
}

.hh-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hh-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: rgba(11, 18, 32, 0.76);
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hh-meta-pill.ok {
    color: #18794e;
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.16);
}

.hh-card-desc {
    margin: 0;
    color: rgba(11, 18, 32, 0.72);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hh-products {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 12px;
}

.hh-products-title {
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(11, 18, 32, 0.58);
    margin-bottom: 10px;
}

.hh-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hh-chip {
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: rgba(11, 18, 32, 0.78);
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.08);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-products-empty {
    font-size: 13px;
    color: rgba(11, 18, 32, 0.58);
    font-weight: 800;
}

.hh-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hh-action {
    all: unset;
    height: 44px;
    width: 100%;
    border-radius: 16px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: transparent;
    color: rgba(11, 18, 32, 0.86);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 14px;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hh-card-actions a.hh-action,
.hh-card-actions a.hh-action:hover,
.hh-card-actions a.hh-action:focus,
.hh-card-actions a.hh-action:active,
.hh-card-actions a.hh-action:visited {
    all: unset !important;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 44px !important;
    box-sizing: border-box !important;
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: transparent !important;
    color: rgba(11, 18, 32, 0.86) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-family: inherit !important;
    padding: 0 14px !important;
    text-transform: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

.hh-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.hh-action span {
    display: inline-flex;
    align-items: center;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

.hh-action:hover,
.hh-action:focus {
    border-color: rgba(244, 48, 50, 0.22);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: rgba(11, 18, 32, 0.92);
}

.hh-pagination {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hh-page {
    min-width: 44px;
    height: 44px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    line-height: 1;
    color: rgba(11, 18, 32, 0.86);
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hh-page:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    padding: 0;
    text-decoration: none;
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hh-accent), var(--hh-accent-2));
    box-shadow: 0 14px 40px rgba(244, 48, 50, 0.22);
}

.hh-page:focus,
.hh-page:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    padding: 0;
}

.hh-page.active,
.hh-page[aria-current="page"] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--hh-accent), var(--hh-accent-2));
    box-shadow: 0 14px 40px rgba(244, 48, 50, 0.22);
}

.hh-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    pointer-events: none;
}

.hh-toast-inner {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(11, 18, 32, 0.85);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.hh-toast.show .hh-toast-inner {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 992px) {
    .hh-search {
        grid-template-columns: 1fr;
    }

    .hh-submit {
        margin-top: 0;
        width: 100%;
    }

    .hh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hh-list-hero h1 {
        font-size: 40px;
    }

    .hh-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hh-sort-form {
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .hh-grid {
        grid-template-columns: 1fr;
    }

    .hh-list-hero {
        display: none;
    }

    .hh-card-actions {
        grid-template-columns: 1fr;
    }

    .hh-filter-chip,
    .hh-trust-pill {
        width: 100%;
    }

    .hh-sort-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hh-sort-form select {
        min-width: 0;
        width: 100%;
    }
}

/* Mobile inline search (only mobile) */
.mobile-inline-search {
    display: none;
}

.mobile-inline-search-form {
    position: relative;
    overflow: hidden;
    padding: 16px 14px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 84, 90, 0.14), rgba(34, 197, 94, 0.08)), rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(12, 20, 38, 0.08);
    box-shadow: 0 16px 50px rgba(12, 20, 38, 0.12);
    backdrop-filter: blur(10px);
}

.mobile-inline-search-form::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px 260px at 12% 14%, rgba(255, 84, 90, 0.22), transparent 45%),
                radial-gradient(320px 260px at 88% 10%, rgba(34, 197, 94, 0.18), transparent 55%);
    opacity: 0.9;
}

.mobile-inline-search-form::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.mis-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    z-index: 1;
}

.mis-field {
    position: relative;
    padding-left: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(11, 18, 32, 0.06);
    box-shadow: 0 8px 26px rgba(11, 18, 32, 0.08);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.mis-field i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 84, 90, 0.14);
    color: var(--hh-accent-2);
    box-shadow: 0 8px 22px rgba(255, 84, 90, 0.18);
}

.mis-field input {
    width: 100%;
    padding: 12px 12px 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--hh-ink);
    outline: none;
}

.mis-field input::placeholder {
    color: rgba(11, 18, 32, 0.56);
    font-weight: 700;
}

.mis-field:focus-within {
    border-color: rgba(255, 84, 90, 0.30);
    box-shadow: 0 0 0 3px rgba(255, 84, 90, 0.14), 0 10px 28px rgba(11, 18, 32, 0.12);
}

.mis-submit {
    z-index: 1;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 84, 90, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: var(--hh-accent-2);
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(11, 18, 32, 0.12);
    backdrop-filter: blur(10px);
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mis-submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(11, 18, 32, 0.16);
    border-color: rgba(255, 84, 90, 0.65);
}

.mis-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-inline-search {
        display: block;
        position: sticky;
        top: 12px;
        z-index: 8;
        margin: -8px 0 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-submit:hover,
    .hh-card:hover,
    .hh-action:hover,
    .hh-page:hover,
    .hh-back:hover {
        transform: none;
    }
}
