/* ================================================================
   CIJENE-COMPARE.CSS v3  (NOVA datoteka)
   Dodatak za cijene.php: "Usporedi cijenu" + "Podijeli".
   Učitava se NAKON preis.css. Ne mijenja nijedno postojeće pravilo,
   sve klase imaju prefiks .cmp-. Koristi varijable iz new.css.
   Flat, bez sjena i gradijenata.
   ================================================================ */

/* ---------- Gumbi (desktop + mobile) ---------- */
.cmp-btn,
.cmp-share-btn,
.cmp-share-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--paper, #fff);
    color: var(--ink, #1A1A1A);
    border: 1px solid var(--rule-strong, #CFCFCA);
    border-radius: 0;
    font-family: var(--font, inherit);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}

.cmp-btn .icon,
.cmp-share-btn .icon,
.cmp-share-list .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.cmp-btn:hover,
.cmp-share-btn:hover,
.cmp-share-list:hover {
    border-color: var(--ink, #1A1A1A);
}

.cmp-btn[aria-expanded="true"] {
    background: var(--ink, #1A1A1A);
    border-color: var(--ink, #1A1A1A);
    color: var(--paper, #fff);
}

.cmp-btn:focus-visible,
.cmp-share-btn:focus-visible,
.cmp-share-list:focus-visible,
.cmp-act:focus-visible,
.cmp-link:focus-visible {
    outline: 2px solid var(--accent, #8B2E2E);
    outline-offset: 2px;
}

/* mobilni red gumba: koristi postojeći .mobile-action-btn raspored (2 u redu) */
.mobile-action-btn.cmp-btn,
.mobile-action-btn.cmp-share-btn {
    background: var(--paper, #fff);
    color: var(--ink, #1A1A1A);
    border-color: var(--rule-strong, #CFCFCA);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    padding: 12px 8px;
}

.mobile-action-btn.cmp-btn[aria-expanded="true"] {
    background: var(--ink, #1A1A1A);
    border-color: var(--ink, #1A1A1A);
    color: var(--paper, #fff);
}

/* desktop: gumbi u action-cell zauzimaju punu širinu stupca */
.action-cell .cmp-btn,
.action-cell .cmp-share-btn {
    width: 100%;
}

/* ---------- Panel ---------- */
.cmp-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    padding: 14px;
    background: var(--paper-warm, #F7F6F2);
    border: 1px solid var(--rule, #E8E8E5);
    border-left: 3px solid var(--accent, #8B2E2E);
    color: var(--ink, #1A1A1A);
    font-family: var(--font, inherit);
    font-size: 0.85rem;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
}

tr.cmp-row > td {
    padding: 0 15px 15px;
    background: var(--paper, #fff);
    border-bottom: 1px solid var(--rule, #E8E8E5);
}

tr.cmp-row .cmp-panel {
    margin-top: 0;
}

.cmp-standalone {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 15px;
}

.cmp-standalone .cmp-panel {
    margin-top: 12px;
}

.cmp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cmp-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink, #1A1A1A);
}

.cmp-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--star, #B8860B);
    color: var(--ink, #1A1A1A);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cmp-basebar {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: var(--ink-mid, #4A4A4A);
}

.cmp-note,
.cmp-msg {
    margin: 0 0 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-mid, #4A4A4A);
}

.cmp-msg--good {
    color: var(--price, #2D5A3D);
    font-weight: 600;
}

.cmp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmp-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 10px 0;
    border-top: 1px solid var(--rule, #E8E8E5);
}

.cmp-item:first-child {
    border-top: 0;
}

.cmp-main {
    min-width: 0;
}

.cmp-place {
    display: block;
    font-weight: 700;
    color: var(--ink, #1A1A1A);
}

.cmp-city {
    font-weight: 400;
    color: var(--ink-muted, #6B6B6B);
}

.cmp-itemname {
    display: block;
    font-size: 0.75rem;
    color: var(--ink-muted, #6B6B6B);
}

.cmp-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent, #8B2E2E);
    text-align: right;
    white-space: nowrap;
}

.cmp-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.75rem;
    color: var(--ink-mid, #4A4A4A);
}

.cmp-diff {
    font-weight: 700;
}

.cmp-diff--less {
    color: var(--price, #2D5A3D);
}

.cmp-diff--more,
.cmp-diff--same {
    color: var(--ink-mid, #4A4A4A);
}

.cmp-tag {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid var(--rule-strong, #CFCFCA);
    background: var(--paper, #fff);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-mid, #4A4A4A);
}

.cmp-link {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent, #8B2E2E);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cmp-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule, #E8E8E5);
}

.cmp-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    min-height: 40px;
    background: var(--paper, #fff);
    color: var(--ink, #1A1A1A);
    border: 1px solid var(--rule-strong, #CFCFCA);
    border-radius: 0;
    font-family: var(--font, inherit);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s;
}

.cmp-act .icon {
    width: 14px;
    height: 14px;
}

.cmp-act:hover {
    border-color: var(--ink, #1A1A1A);
}

.cmp-act--primary {
    background: var(--accent, #8B2E2E);
    border-color: var(--accent, #8B2E2E);
    color: var(--paper, #fff);
}

.cmp-act--primary:hover {
    background: var(--ink, #1A1A1A);
    border-color: var(--ink, #1A1A1A);
}

/* ---------- Podijeli rezultate (traka iznad liste) ---------- */
.cmp-listshare {
    display: flex;
    justify-content: flex-end;
    padding: 8px 15px 0;
    max-width: 100%;
    box-sizing: border-box;
}

.desktop-layout .cmp-listshare {
    padding: 0 0 10px;
}

.cmp-listshare .cmp-share-list {
    padding: 9px 14px;
    min-height: 40px;
}


/* ---------- v2: razine A/B/C/D, filtar količina, pretraga bez rezultata ---------- */
.cmp-group {
    margin: 0 0 14px;
}

.cmp-group:last-of-type {
    margin-bottom: 0;
}

.cmp-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink, #1A1A1A);
}

.cmp-group-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--ink, #1A1A1A);
    color: var(--paper, #fff);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.cmp-group--A .cmp-group-badge {
    background: var(--price, #2D5A3D);
}

.cmp-group--D .cmp-group-badge {
    background: var(--ink-muted, #6B6B6B);
}

.cmp-group-stats {
    margin: 0 0 2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-mid, #4A4A4A);
}

.cmp-group-note {
    margin: 0 0 4px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--ink-muted, #6B6B6B);
}

.cmp-title--q {
    margin-bottom: 8px;
}

.cmp-tag--pl {
    border-color: var(--ink, #1A1A1A);
    color: var(--ink, #1A1A1A);
}

.cmp-tag--note {
    background: transparent;
    font-weight: 500;
    color: var(--ink-muted, #6B6B6B);
}

.cmp-sizes {
    margin: 0 0 12px;
}

.cmp-sizes-title {
    display: block;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6B6B);
}

.cmp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cmp-chip {
    min-height: 36px;
    padding: 6px 12px;
    background: var(--paper, #fff);
    color: var(--ink, #1A1A1A);
    border: 1px solid var(--rule-strong, #CFCFCA);
    border-radius: 0;
    font-family: var(--font, inherit);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cmp-chip:hover {
    border-color: var(--ink, #1A1A1A);
}

.cmp-chip.is-active {
    background: var(--ink, #1A1A1A);
    border-color: var(--ink, #1A1A1A);
    color: var(--paper, #fff);
}

.cmp-chip:focus-visible {
    outline: 2px solid var(--accent, #8B2E2E);
    outline-offset: 2px;
}

.cmp-noresults {
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
}

.cmp-noresults .cmp-panel {
    margin-top: 0;
}

.desktop-layout .cmp-noresults {
    padding: 0;
}


.cmp-statnote {
    margin: 8px 0 0;
    padding: 0 15px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--ink-muted, #6B6B6B);
}

.desktop-layout .cmp-statnote {
    margin: 0 0 14px;
    padding: 0;
}

@media (max-width: 480px) {
    .cmp-panel {
        padding: 12px;
    }
    .cmp-item {
        grid-template-columns: 1fr;
    }
    .cmp-price {
        text-align: left;
    }
}


/* ================================================================
   v3: novi izgled panela (kartice, pill filteri, upozorenje), karta, lokacija
   ================================================================ */
.cmp-panel {
    background: var(--pozadina, #F8F9FA);
    border: 1px solid #E9ECEF;
    border-top: 3px solid var(--accent, #8B2E2E);
    border-left: 1px solid #E9ECEF;
    border-radius: 12px;
}

/* pill gumbi (filteri, karta, lokacija, sortiranje) */
.cmp-pill,
.cmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 16px;
    background: #fff;
    color: var(--ink, #1A1A1A);
    border: 1px solid #CED4DA;
    border-radius: 20px;
    font-family: var(--font, inherit);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.cmp-pill .icon { width: 15px; height: 15px; flex-shrink: 0; }
.cmp-pill:hover,
.cmp-chip:hover { border-color: var(--ink, #1A1A1A); }
.cmp-pill.is-active,
.cmp-chip.is-active {
    background: var(--ink, #1A1A1A);
    border-color: var(--ink, #1A1A1A);
    color: #fff;
}
.cmp-pill:focus-visible { outline: 2px solid var(--accent, #8B2E2E); outline-offset: 2px; }

.cmp-sizes-title { margin-bottom: 8px; }
.cmp-chips { gap: 8px; }
.cmp-chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cmp-chips--scroll::-webkit-scrollbar { display: none; }
.cmp-chips--scroll .cmp-pill { flex: 0 0 auto; }

/* filter količina iznad liste rezultata */
.cmp-pagesizes {
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 10px 15px 4px;
}
.desktop-layout .cmp-pagesizes { padding: 0 0 12px; }
.cmp-sizecount {
    display: block;
    min-height: 1em;
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--ink-muted, #6B6B6B);
}
.cmp-filtered-out { display: none !important; }

/* upozorenje (nema točnog rezultata…) */
.cmp-panel .cmp-note {
    padding: 12px;
    background: #FFF3CD;
    border-left: 4px solid #FFC107;
    border-radius: 6px;
    color: #856404;
    font-size: 0.8rem;
    line-height: 1.4;
}
.cmp-panel .cmp-msg--good {
    padding: 10px 12px;
    background: #E6F2EA;
    border-left: 4px solid var(--price, #2D5A3D);
    border-radius: 6px;
}
.cmp-hint {
    margin: 6px 0 0;
    font-size: 0.7rem;
    color: var(--ink-muted, #6B6B6B);
}

/* alatna traka: karta, lokacija, sortiranje */
.cmp-toolwrap { margin: 0 0 12px; }
.cmp-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cmp-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.cmp-sort-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6B6B);
}
.cmp-locmsg { margin: 8px 0 0; }

/* karta */
.cmp-map {
    position: relative;
    z-index: 0;
    isolation: isolate;
    height: 280px;
    margin: 0 0 14px;
    border: 1px solid #DEE2E6;
    border-radius: 12px;
    overflow: hidden;
    background: #E9ECEF;
}
.cmp-pin-wrap { background: transparent; border: 0; }
.cmp-pin {
    box-sizing: border-box;
    display: inline-block;
    min-width: 46px;
    padding: 3px 6px;
    border: 2px solid #fff;
    border-radius: 14px;
    background: var(--accent, #8B2E2E);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.cmp-pin--A { background: var(--price, #2D5A3D); }
.cmp-pin--B { background: var(--accent, #8B2E2E); }
.cmp-pin--C, .cmp-pin--D { background: #6B6B6B; }
.cmp-pin--base { background: #1A1A1A; }
.cmp-pop { min-width: 140px; font-family: var(--font, inherit); }
.cmp-pop-line { margin-top: 2px; font-size: 12px; color: #6B6B6B; }
.cmp-pop-price { margin: 4px 0; font-size: 16px; font-weight: 800; color: var(--accent, #8B2E2E); }

/* skupine */
.cmp-group-badge { border-radius: 6px; }
.cmp-group-title { font-size: 0.95rem; }

/* kartice ponuda */
.cmp-item {
    display: block;
    margin: 0 0 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #E9ECEF;
    border-top: 1px solid #E9ECEF;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
}
.cmp-item:first-child { border-top: 1px solid #E9ECEF; }
.cmp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.cmp-top .cmp-place { min-width: 0; font-size: 1rem; font-weight: 700; }
.cmp-top .cmp-price { flex: 0 0 auto; font-size: 1.25rem; font-weight: 800; }
.cmp-itemname { margin: 2px 0 8px; font-size: 0.8rem; color: var(--ink-muted, #6B6B6B); }
.cmp-item .cmp-meta { margin-bottom: 10px; }
.cmp-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #E9ECEF;
}
.cmp-dist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-muted, #6B6B6B);
}
.cmp-dist .icon { width: 14px; height: 14px; flex-shrink: 0; }
.cmp-bottom .cmp-link {
    grid-column: auto;
    justify-self: auto;
    margin-left: auto;
    padding: 8px 0;
    font-size: 0.8rem;
    text-decoration: none;
}
.cmp-tag { border-radius: 6px; }

/* podnožje: gumbi */
.cmp-act { border-radius: 10px; }

@media (max-width: 480px) {
    .cmp-item .cmp-meta { gap: 6px; }
    .cmp-sort { margin-left: 0; width: 100%; }
    .cmp-map { height: 240px; }
    .cmp-top .cmp-price { text-align: right; }
}


/* ================================================================
   v4: vizualna usporedba cijena (raspon + trake) i novi redoslijed vrha na mobitelu
   ================================================================ */
.pv-card {
    box-sizing: border-box;
    max-width: 100%;
    margin: 12px 0;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #E9ECEF;
    border-radius: 14px;
    color: var(--ink, #1A1A1A);
    font-family: var(--font, inherit);
}
.mobile-layout .pv-card { margin: 12px 12px; }
.desktop-layout .pv-card { margin: 0 0 20px; padding: 22px 24px; }
.pv-title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.pv-sub { margin: 0 0 16px; font-size: 0.8rem; color: var(--ink-muted, #6B6B6B); }

/* horizontalni grafikon raspona */
.pv-range { position: relative; margin: 0 0 20px; padding: 0 0 4px; }
.pv-range-head {
    margin: 0 0 22px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted, #6B6B6B);
}
.pv-avgflag {
    position: absolute;
    top: 22px;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}
.pv-avgflag span {
    display: block;
    padding: 2px 8px;
    background: var(--ink, #1A1A1A);
    color: #fff;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.pv-track {
    position: relative;
    height: 12px;
    margin: 28px 7px 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #2D5A3D 0%, #C49A47 50%, #851B2F 100%);
}
.pv-zone {
    position: absolute;
    top: -4px;
    bottom: -4px;
    background: rgba(255, 255, 255, .28);
    border: 2px solid rgba(26, 26, 26, .55);
    border-radius: 8px;
    box-sizing: border-box;
}
.pv-dot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--ink, #1A1A1A);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    box-sizing: border-box;
}
.pv-dot--lo { background: #2D5A3D; }
.pv-dot--hi { background: #851B2F; }
.pv-dot--avg { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #1A1A1A; }
.pv-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.pv-end { display: flex; flex-direction: column; min-width: 0; }
.pv-end b { font-size: 1.1rem; font-weight: 800; line-height: 1.2; }
.pv-end small { font-size: 0.7rem; color: var(--ink-muted, #6B6B6B); }
.pv-end--lo b { color: #2D5A3D; }
.pv-end--hi { text-align: right; }
.pv-end--hi b { color: #851B2F; }
.pv-legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.72rem; color: var(--ink-muted, #6B6B6B); }
.pv-key { display: inline-block; width: 18px; height: 10px; border: 2px solid rgba(26, 26, 26, .55); border-radius: 5px; box-sizing: border-box; }

/* trake po lokalima */
.pv-bars { list-style: none; margin: 0; padding: 0; }
.pv-row { margin: 0 0 14px; }
.pv-rowtop { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pv-name { min-width: 0; font-weight: 700; font-size: 0.95rem; }
.pv-name a { color: inherit; text-decoration: none; }
.pv-name a:hover { text-decoration: underline; }
.pv-name small { display: block; margin-top: 1px; font-size: 0.78rem; font-weight: 400; color: var(--ink-muted, #6B6B6B); overflow-wrap: anywhere; }
.pv-val { flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.pv-val--g { color: #2D5A3D; }
.pv-val--y { color: var(--ink, #1A1A1A); }
.pv-val--r { color: #851B2F; }
.pv-bar { height: 10px; border-radius: 5px; background: #EFEAE3; overflow: hidden; }
.pv-fill { display: block; height: 100%; border-radius: 5px; }
.pv-fill--g { background: #2D5A3D; }
.pv-fill--y { background: #C49A47; }
.pv-fill--r { background: #851B2F; }
.pv-ends { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-muted, #6B6B6B); }
.pv-diff {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E9ECEF;
    font-size: 0.85rem;
    font-weight: 600;
}
.pv-diff strong { font-size: 1.15rem; font-weight: 800; color: #851B2F; }

@media (min-width: 769px) {
    .desktop-layout .pv-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
    .desktop-layout .pv-title, .desktop-layout .pv-sub { grid-column: 1 / -1; }
    .desktop-layout .pv-range { grid-column: 1; margin: 0; }
    .desktop-layout .pv-bars, .desktop-layout .pv-ends, .desktop-layout .pv-diff { grid-column: 2; }
    .desktop-layout .pv-bars { grid-row: 3 / span 3; }
}

/* mobitel: tražilica → popularna jela → statistika → ostalo (redoslijed samo vizualno, markup ostaje) */
@media (max-width: 768px) {
    .mobile-layout { display: flex; flex-direction: column; }
    .mobile-layout > * { order: 20; }
    .mobile-layout > .mobile-page-title { order: 1; }
    .mobile-layout > .mobile-search-section { order: 2; }
    .mobile-layout > .mobile-categories-section { order: 3; }
    .mobile-layout > .mobile-stats-row { order: 4; }
    .mobile-layout > .cmp-statnote { order: 5; }
    .mobile-layout > .pv-card { order: 6; }
    .mobile-layout > .sort-bar { order: 7; }
    .mobile-layout > .open-now-toggle { order: 8; }
    .mobile-layout > .mobile-tabs { order: 9; }
}


/* ================================================================
   v4.1: mobitel – "Usporedi cijene" kao dropdown; desktop – kompaktniji vrh stranice
   ================================================================ */
.pv-card--m { padding: 0; }
.pv-card--m .pv-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
}
.pv-card--m .pv-sum::-webkit-details-marker { display: none; }
.pv-card--m .pv-sum::marker { content: ''; }
.pv-card--m .pv-sum-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-card--m .pv-sum .pv-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.pv-card--m .pv-sum .pv-sub { margin: 0; font-size: 0.78rem; color: var(--ink-muted, #6B6B6B); }
.pv-chev {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #CED4DA;
    border-radius: 50%;
    position: relative;
    background: #fff;
}
.pv-chev::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink, #1A1A1A);
    border-bottom: 2px solid var(--ink, #1A1A1A);
    transform: rotate(45deg);
    transition: transform .2s;
}
.pv-card--m[open] .pv-chev::after { top: 13px; transform: rotate(-135deg); }
.pv-card--m .pv-sum:focus-visible { outline: 2px solid var(--accent, #8B2E2E); outline-offset: -2px; border-radius: 14px; }
.pv-card--m .pv-body { padding: 0 16px 16px; border-top: 1px solid #E9ECEF; padding-top: 14px; }
.pv-card--m .pv-body > .pv-sub { margin: 0 0 14px; font-size: 0.8rem; color: var(--ink-muted, #6B6B6B); }
.mobile-layout .pv-card--m { margin: 8px 12px; }
@media (min-width: 769px) { .pv-card--m { display: none; } }

@media (min-width: 769px) {
    /* tražilica: kompaktna, bez natpisa (placeholder je dovoljan) */
    .desktop-price-search { padding: 14px 0; }
    .desktop-price-search-label { display: none; }

    /* brza pretraga: jedan red chipova umjesto dvije mreže s naslovima */
    .desktop-quick-search-below { padding: 12px 0 14px; }
    .desktop-quick-search-title,
    .desktop-quick-search-section h4 { display: none; }
    .desktop-quick-search-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .desktop-quick-search-section,
    .desktop-quick-search-buttons { display: contents; }
    .quick-search-btn {
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 0.78rem;
    }

    /* naslov + statistika: tanji */
    main.price-search-container { padding-top: 0; margin-top: 0; }
    .desktop-layout { padding-top: 12px; }
    .desktop-header-section { margin-bottom: 12px; padding: 14px 20px; }
    .desktop-header-section h1 { margin-bottom: 0; font-size: clamp(1.1rem, 2vw, 1.45rem); }
    .desktop-header-section .subtitle { display: none; }
    .desktop-stats-row { gap: 12px; margin-bottom: 10px; }
    .desktop-stat-item { padding: 12px 10px; border-bottom-width: 3px; }
    .desktop-stat-number { margin-bottom: 2px; font-size: 1.35rem; }
    .desktop-stat-label { font-size: 0.65rem; }
    .desktop-layout .cmp-statnote { margin: 0 0 10px; }

    /* grafikon: niži */
    .desktop-layout .pv-card { margin: 0 0 10px; padding: 12px 20px 10px; gap: 0 32px; }
    .desktop-layout .pv-title { font-size: 1.05rem; }
    .desktop-layout .pv-sub { margin: 0 0 10px; }
    .desktop-layout .pv-range { align-self: center; }
    .desktop-layout .pv-row { margin: 0 0 8px; }
    .desktop-layout .pv-rowtop { margin-bottom: 3px; }
    .desktop-layout .pv-name { font-size: 0.88rem; }
    .desktop-layout .pv-name small { display: inline; margin-left: 8px; font-size: 0.75rem; }
    .desktop-layout .pv-val { font-size: 1rem; }
    .desktop-layout .pv-bar { height: 8px; }
    .desktop-layout .pv-diff { margin-top: 8px; padding-top: 8px; }
    .desktop-layout .pv-ends { margin: 0; }
}

/* ===== v5 (2026-10): Pizza metarska napomena + Price Info + kompaktne mobilne kartice ===== */
.cmp-meter { display: block; margin-top: 4px; padding: 4px 8px; border-left: 3px solid #BE9440; background: rgba(190,148,64,.12); color: #851B2F; font-size: .78rem; font-weight: 600; line-height: 1.3; font-style: normal; }
.cmp-meter b { font-weight: 800; letter-spacing: .04em; color: #851B2F; }

/* Price Info (crveni balončić) – samo mobilne kartice; desktop nema .mobile-card-media */
.mobile-card-media .mg-pp { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.mobile-card-media .mg-pp-chip { pointer-events: auto; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.94); color: #851B2F; font-size: .82rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: pointer; line-height: 1; }
.mobile-card-media .mg-pp-bubble { box-shadow: 0 4px 14px rgba(74,16,32,.35); border: 1px solid rgba(190,148,64,.55); position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(133,27,47,.95); color: #fff; font-size: .64rem; line-height: 1.25; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.mobile-card-media .mg-pp-row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.mobile-card-media .mg-pp-row span { color: rgba(255,255,255,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-card-media .mg-pp-row b { font-weight: 700; color: #F2D78C; white-space: nowrap; }
.mobile-card-media .mg-pp-rate { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.3); color: #F2D78C; font-weight: 600; }
.mobile-card-media .mg-pp-cm { margin-top: 2px; font-style: italic; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-card-media .mg-pp-ft { max-height: 1.5em; overflow: hidden; gap: 0 8px; }
.mobile-card-media .mg-pp-ft span::before { content: '✓ '; color: #7ED3A0; }
.mobile-card-media .mg-pp-chip:hover ~ .mg-pp-bubble, .mobile-card-media .mg-pp.is-open .mg-pp-bubble { opacity: 1; transform: none; }

@media (max-width: 768px) {
    .mobile-card-media { position: relative; }
    .mobile-result-card { padding: 12px !important; margin-bottom: 10px !important; }
    .mobile-card-content { gap: 8px !important; margin-bottom: 6px !important; padding-top: 18px !important; }
    .mobile-card-media { margin-bottom: 0 !important; }
    .mobile-card-media .mobile-card-image-single,
    .mobile-card-media .mobile-card-gallery { height: 120px !important; }
    .mobile-meta-row { margin-top: 4px !important; gap: 4px 8px !important; }
    .ratings-detail { margin-top: 4px !important; }
    .mobile-features { display: none !important; }
    .mobile-card-actions { margin-top: 6px !important; gap: 5px !important; }
    .mobile-action-btn { padding: 8px 6px !important; font-size: 11.5px !important; }
    .mobile-action-btn.price-find-btn { flex: 1 1 calc(50% - 3px) !important; }
}

/* ===== v6 (2026-10): udaljenost do plaže/znamenitosti u panelu + nježno treperenje gumba "Usporedi cijenu" ===== */
.cmp-poi { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: .76rem; color: #5b5b5b; }
.cmp-poi-i { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.cmp-poi-i svg { color: #BE9440; flex: none; }

@keyframes cmpBlink {
    0%, 100% { box-shadow: 0 0 0 0 rgba(190,148,64,0); border-color: currentColor; }
    50%      { box-shadow: 0 0 0 4px rgba(190,148,64,.45); border-color: #BE9440; }
}
.cmp-btn:not([aria-expanded="true"]) { animation: cmpBlink 2.6s ease-in-out infinite; }
.cmp-btn:hover, .cmp-btn:focus, .cmp-btn:active { animation: none; }
@media (prefers-reduced-motion: reduce) { .cmp-btn:not([aria-expanded="true"]) { animation: none; } }
.cmp-poi-you{display:flex;align-items:center;gap:4px}.cmp-poi-you svg{color:#BE9440;flex:none}