.oglas-card {
    min-width: 0;
}

.oglas-media {
    position: relative;
    display: block;
    /* Cena sega čez spodnji rob slike; naslov ostane pod obrobo. */
    margin-bottom: 3.5rem;
}

.oglas-media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f7f2;
}

.oglas-media--brez-slike {
    min-height: 7rem;
}

.oglas-cena {
    position: absolute;
    right: .5rem;
    bottom: -.35rem;
    width: max-content;
    padding: .46rem .8rem .46rem 1.65rem;
    background: transparent;
    color: #c62828;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    transform: rotate(-45deg);
    isolation: isolate;
}

.oglas-cena--zgoraj-levo {
    top: -.35rem;
    left: 1.75rem;
    right: auto;
    bottom: auto;
    transform-origin: top left;
    /* Obrat okoli središča ohrani lego cenovke v levem zgornjem kotu. */
    transform: rotate(45deg) translate(50%, 50%) rotate(270deg) translate(-50%, -50%);
}

.oglas-cena-oblika {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: visible;
}

.oglas-cena-oblika path {
    fill: #ffebee;
    stroke: currentColor;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.oglas-cena::before {
    content: "";
    position: absolute;
    width: .3rem;
    height: .3rem;
    left: .65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: #fff;
}
