/* ============= Lokalneponude: zajednički stilovi ============= */
/* Baze varijable (po potrebi promeni nijanse) */
:root {
    --lp-blue: #2563eb;
    --lp-blue-d: #1d4ed8;
    --lp-green: #16a34a;
    --lp-green-100: #d1fae5;
    --lp-gold: #efdca1;
    --lp-gold-shadow: 0 6px 16px rgba(239, 220, 161, .6);
    --lp-text: #0f172a;
    --lp-muted: #6b7280;
    --lp-border: #e5e7eb;
    --lp-focus: #3b82f6;
    --lp-danger: #ef4444;
    --lp-ok: #10b981;
    --lp-radius: 12px;
    --lp-pad: 10px;
}

/* Reset za LP scope */
.lp * {
    box-sizing: border-box
}

.lp a {
    text-decoration: none
}

.lp img {
    max-width: 100%;
    height: auto;
    display: block
}

/* Utilities */
.lp .hidden {
    display: none !important
}

.lp .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.lp .text-muted {
    color: var(--lp-muted)
}

.lp .mt-1 {
    margin-top: 4px
}

.lp .mt-2 {
    margin-top: 8px
}

.lp .mt-3 {
    margin-top: 12px
}

.lp .mb-1 {
    margin-bottom: 4px
}

.lp .mb-2 {
    margin-bottom: 8px
}

.lp .mb-3 {
    margin-bottom: 12px
}

.lp .gap-1 {
    gap: 4px
}

.lp .gap-2 {
    gap: 8px
}

.lp .gap-3 {
    gap: 12px
}

/* Inputs */
.lp-input,
.lp-select,
.lp-textarea {
    appearance: none;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    background: #fff;
    color: var(--lp-text);
    line-height: 1.2;
}

.lp-input:focus,
.lp-select:focus,
.lp-textarea:focus {
    border-color: var(--lp-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
    outline: 0;
}

.lp-select {
    background-image: linear-gradient(45deg, transparent 50%, var(--lp-muted) 50%), linear-gradient(135deg, var(--lp-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(1.2em), calc(100% - 13px) calc(1.2em);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Buttons */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--lp-radius);
    border: 1px solid var(--lp-border);
    background: #fff;
    color: var(--lp-text);
    font-weight: 600;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .15s ease, filter .15s, border-color .15s ease;
    min-height: 40px;
}

.lp-btn:hover {
    transform: translateY(-1px)
}

.lp-btn-primary {
    background: var(--lp-blue);
    color: #fff;
    border-color: var(--lp-blue-d);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .2)
}

.lp-btn-green {
    background: var(--lp-green-100);
    color: #065f46;
    border-color: #a7f3d0
}

.lp-btn-gold {
    background: var(--lp-gold);
    color: #7c4a03;
    border-color: #e5c97a;
    box-shadow: var(--lp-gold-shadow)
}

.lp-btn-danger {
    background: var(--lp-danger);
    border-color: #dc2626;
    color: #fff
}

.lp-btn-ghost {
    background: #fff;
    color: var(--lp-text)
}

.lp-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

/* Badge / Pill */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    font-size: .85rem;
    color: #334155;
    background: #fff;
}

/* Note/Notify bar (unifikovano za sve auth stranice) */
.lp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--lp-border);
    background: #f8fafc;
    color: #0f172a;
    font-size: .95rem;
}

.lp-note.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #064e3b
}

.lp-note.warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e
}

.lp-note.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #7f1d1d
}

.lp-note.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a
}

/* ================== AUTH forme (prijava/registracija/reset/nalog) ================== */
.lp-auth-wrap {
    padding: 15px;
    margin: 0 auto;
    max-width: 520px
}

.lp-auth-card {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(10, 40, 80, .06);
}

.lp-auth-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a3070;
    line-height: 1.2
}

.lp-auth-sub {
    margin: 0 0 8px 0;
    color: var(--lp-muted)
}

.lp-auth-form {
    display: grid;
    gap: 8px
}

.lp-field {
    display: grid;
    gap: 6px
}

.lp-label {
    font-weight: 600;
    color: #111827
}

.lp-help {
    font-size: .9rem;
    color: var(--lp-muted)
}

.lp-auth-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px
}

.lp-inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px
}

.lp-error {
    color: #7f1d1d;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 10px
}

.lp-ok {
    color: #064e3b;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 10px
}

/* Prikaz/sakrivanje lozinke — ikon dugme */
.lp-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #475569;
    font-size: .95rem;
}

/* Polja sa ikonama (wrap) */
.lp-input-wrap {
    position: relative
}

.lp-input-wrap .lp-input {
    padding-right: 42px
}

/* Disable spinner na input[type=number] (po potrebi) */
.lp-input::-webkit-outer-spin-button,
.lp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.lp-input[type="number"] {
    -moz-appearance: textfield;
}

/* ================== Listing – bazični zajednički delovi ================== */
/* (Specifični layout (grid kartica) za listing i dalje u shortcode-u dok ga ne prebacimo) */
.lp-title {
    margin: 6px 0 6px 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0a3070;
    line-height: 1.2;
    position: relative;
}

.lp-title::after {
    content: "";
    display: block;
    height: 2px;
    width: 56px;
    border-radius: 2px;
    margin-top: 4px;
    background: var(--lp-blue);
}

/* Filter okvir (osnovni izgled; akcent boja se menja inline varijablama) */
.lp-filter-wrap {
    margin: 0 0 8px 0;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

/* Kartica za listu (bazični okvir; detaljni grid ostaje u shortcode-u dok ne migriramo) */
.lp-card {
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(10, 40, 80, .06);
}

/* ================== Uredi / Dodaj oglas – osnove ================== */
.lp-form-grid {
    display: grid;
    gap: 10px
}

@media (min-width:720px) {
    .lp-form-grid {
        grid-template-columns: 1fr 1fr
    }
}

.lp-form-row {
    display: grid;
    gap: 6px
}

.lp-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px
}

/* ================== Sitnice ================== */
.lp-muted {
    color: var(--lp-muted)
}

.lp-center {
    text-align: center
}

.lp-right {
    text-align: right
}




/* === OGLAS: detalji (single) ============================================== */
.lp-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(0px, 0vw, 0px);
}


.lp-card--single {
    overflow: visible;
    padding: clamp(12px, 2.2vw, 22px);
}

/* Back link na vrhu kartice */
.lp-back {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.lp-back .arr {
    font-size: 1.1rem;
    line-height: 1;
}

/* Layout */
.lp-single {
    display: grid;
    gap: 16px;
}

@media (min-width: 960px) {
    .lp-single {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
    }
}

/* Galerija */
.lp-gallery {
    display: grid;
    gap: 10px;
}

.lp-mainimg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.lp-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    color: #6b7280;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #fff;
}

.lp-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}

.lp-thumbbtn {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
    transition: box-shadow .15s ease, transform .05s ease;
}

.lp-thumbbtn:hover {
    box-shadow: 0 6px 16px rgba(10, 40, 80, .12);
    transform: translateY(-1px);
}

/* Info blok */
.lp-card--single .lp-title {
    margin: 0 0 8px 0;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 800;
    color: #0a3070;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.lp-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.lp-badge--price {
    font-weight: 800;
    color: #0a3070;
}

.lp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Sadržaj – “safe area” protiv prelivanja */
.lp-content {
    margin-top: 10px;
    line-height: 1.6;
    color: #1f2937;
    overflow: visible;
}

.lp-content p,
.lp-content ul,
.lp-content ol {
    margin: 0 0 10px 0;
}

.lp-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
}

.lp-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.lp-content table td,
.lp-content table th {
    padding: 6px 8px;
    border: 1px solid var(--lp-border);
    word-break: break-word;
}

/* Globalna zaštita od prelivanja unutar single kartice */
.lp-card--single .lp-content,
.lp-card--single .lp-badge,
.lp-card--single .lp-btn,
.lp-card--single .lp-mainimg {
    word-break: break-word;
    overflow-wrap: anywhere;
}