/* Alap wrapper */
.jjm-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 10px;
}
.jjm-title {
    font-size: 1.8rem;
    margin: 10px 0 20px;
}

/* Grid kártyákhoz */
.jjm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Kártya */
.jjm-card {
    background: #1d1f23;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    width: calc(33.333% - 20px);
    min-width: 260px;
    display: flex;
    flex-direction: column;
}
.jjm-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.jjm-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jjm-car-title {
    font-size: 1.1rem;
    margin: 0 0 4px;
}
.jjm-price {
    font-weight: 600;
}
.jjm-price span {
    font-weight: 700;
}
.jjm-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}
.jjm-meta-line {
    margin-bottom: 2px;
}
.jjm-date {
    margin-top: 4px;
}
.jjm-actions {
    margin-top: 8px;
}
.jjm-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: #ff9800;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}
.jjm-btn:hover {
    background: #ffc107;
}

/* Részletes nézet */
.jjm-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 10px;
}
.jjm-back {
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}
.jjm-detail-date {
    font-size: 0.95rem;
    opacity: 0.9;
}
.jjm-detail-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 15px;
}
.jjm-detail-info {
    flex: 1 1 320px;
}
.jjm-detail-gallery {
    flex: 1 1 320px;
}
.jjm-detail-row {
    margin-bottom: 6px;
}
.jjm-detail-row.jjm-long {
    margin-top: 10px;
}
.jjm-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.jjm-gallery-grid img {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

/* Reszponzív */
@media (max-width: 900px) {
    .jjm-card {
        width: calc(50% - 20px);
    }
}
@media (max-width: 600px) {
    .jjm-card {
        width: 100%;
    }
    .jjm-detail-main {
        flex-direction: column;
    }
}


/* --- Kártya világos háttér --- */
.jjm-card {
    background: #f2f2f2 !important;
    color: #000 !important;
}

.jjm-card .jjm-body,
.jjm-card .jjm-meta,
.jjm-card .jjm-meta-line {
    color: #333 !important;
}

/* --- Részletes nézet képarány javítása --- */
.jjm-gallery-grid img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
}


/* --- Árnyék + hover + szegély --- */
.jjm-card {
    border: 2px solid #d0d0d0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.jjm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.25);
}

/* Gomb hover finomítás */
.jjm-btn:hover {
    background: #ffb733 !important;
}

/* --- Password védelem frontendhez --- */
.jjm-protect {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #ccc;
    max-width: 350px;
    margin: 40px auto;
}
