:root {
    --bg: #f8f6f0;
    --card-bg: #ffffff;
    --primary: #3d2314;
    --primary-hover: #29170d;
    --accent: #8c2a1c;
    --text: #222222;
    --muted: #666666;
    --border: #dcd6cd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. Biztosítjuk, hogy a HTML és a BODY teljes magasságú legyen */
html, body {
    height: 100%;
    margin: 0;
}

/* Alapstílusok és háttér - Sticky Footer Flexbox beállítás */
body {
    background-color: var(--bg);
    background-image: url('/uploads/core/bg.jpg');
    background-repeat: repeat;
    background-position: top left;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Logo mérete állítható magasság */
.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Tartalom konténer, ami kitölti az üres helyet a fejléc és lábléc között */
.site-content {
    flex: 1;
    width: 100%;
}

/* Fejléc */
header {
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-bottom: 3px solid var(--accent);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand span {
    color: #e5a93c;
}

/* Navigáció és Reszponzív Mobil Menü stílusok */
.main-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #dfd8cc;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle:hover {
    color: #ffffff;
}

.nav-links {
    display: flex;
    align-items: center;
}

/* Asztali linkek stílusa */
nav a, .user-nav a, .nav-links a {
    color: #dfd8cc;
    text-decoration: none;
    margin-left: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

nav a:hover, .user-nav a:hover {
    color: #ffffff;
}

/* Kereső Sáv */
.search-section {
    background: #4a2d1d;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.search-input, .search-select {
    flex: 1 1 220px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
    box-sizing: border-box;
}

.btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.btn-search:hover {
    background: #702116;
}

/* Horizontális kategória menü stílusai */
.header-category-nav {
    position: relative;
}

.horizontal-cat-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.horizontal-cat-menu li {
    position: relative;
}

.horizontal-cat-menu a {
    color: #dfd8cc;
    text-decoration: none;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    font-weight: 600;
}

.horizontal-cat-menu a:hover {
    color: #ffffff;
}

.horizontal-cat-menu .dropdown-children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    list-style: none;
    padding: 5px 0;
    z-index: 100;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.horizontal-cat-menu .dropdown-children .dropdown-children {
    top: 0;
    left: 100%;
}

.horizontal-cat-menu li:hover > .dropdown-children {
    display: block;
}

.dropdown-children li a {
    padding: 8px 15px;
    color: var(--text);
    font-weight: normal;
    white-space: nowrap;
}

.dropdown-children li a:hover {
    background: var(--bg);
    color: var(--accent);
}

.cat-badge {
    background: var(--accent);
    color: #fff;
    padding: 1px 5px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* Elrendezés */
.container {
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 15px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Oldalsáv és Kategória menü */
aside {
    width: 240px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 4px;
}

aside h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.cat-list {
    list-style: none;
}

.cat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.cat-item:hover {
    color: var(--accent);
}

.cat-count {
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Fastruktúrás oldalsáv kategória menü stílusai */
.category-sidebar .category-tree, 
.category-sidebar .children-tree {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.category-sidebar .children-tree {
    display: none;
    padding-left: 15px;
}

.category-sidebar li.open > .children-tree {
    display: block;
}

.category-item-wrapper {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    width: 18px;
    color: var(--muted);
    text-align: center;
    padding: 0;
}

.category-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
}

.category-link:hover {
    color: var(--accent);
}

.item-count-badge {
    background: var(--bg);
    color: var(--muted);
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Fő tartalom sáv */
main {
    flex-grow: 1;
    min-width: 0;
    flex: 1;
}

/* Hirdetési rács */
.grid-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 130px;
    background-color: #e0dcd3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.8rem;
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.card-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    margin-top: auto;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Lábléc */
/*footer {
    background: var(--primary);
    color: #c5bcae;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 3px solid var(--accent);
    margin-top: auto; 
}*/
/* ========================================== */
/* FOOTER & FOOTER MENU STÍLUSOK              */
/* ========================================== */

footer {
    background: var(--primary);
    color: #c5bcae;
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 3px solid var(--accent);
    margin-top: auto; 
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* Jobbra tolja a menüt */
}

.footer-menu a {
    color: #dfd8cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-menu a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-separator {
    color: var(--accent);
    font-weight: bold;
}

/* ========================================== */
/* COOKIE CONSENT BANNER STÍLUSOK             */
/* ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a180e;
    color: #f8f6f0;
    border-top: 3px solid var(--accent);
    padding: 15px 20px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
    min-width: 280px;
}

.cookie-banner a {
    color: #e5a93c;
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #ffffff;
}

.btn-accept-cookie {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.btn-accept-cookie:hover {
    background: #702116;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-menu {
        margin-left: 0;
        justify-content: center;
    }
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .btn-accept-cookie {
        width: 100%;
    }
}
/* Hirdetésfeladás & Admin űrlapok */
.ad-form-container {
    max-width: 800px;
    margin: 30px auto;
    background: var(--card-bg);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ad-form-container h2 {
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin: 20px 0 10px 0;
    font-weight: 700;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 5px;
}

/* Képrendező kártyák stílusai (Hirdetésszerkesztő) */
.image-sortable-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.image-preview-card {
    background: #fdfcf7;
    border: 1px solid var(--border, #dcd6cd);
    padding: 10px;
    border-radius: 4px;
    width: 120px;
    text-align: center;
    cursor: grab;
    user-select: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.image-preview-card:active {
    cursor: grabbing;
}

.image-preview-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.image-preview-card img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 8px;
    pointer-events: none;
}

.drag-handle {
    font-size: 0.75rem;
    color: var(--muted, #666);
    margin-bottom: 5px;
    font-weight: bold;
}

/* Reszponzív nézetek */
@media (max-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        background: #fafade;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 15px 20px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        border-bottom: 3px solid var(--accent);
        z-index: 1000;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        margin-left: 0;
        padding: 10px 0;
        width: 100%;
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
    }
    aside {
        width: 100%;
    }
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input, .search-select, .btn-search {
        width: 100%;
        flex: none;
    }
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hitelesítési (bejelentkezés, elfelejtett jelszó, új jelszó) dobozok stílusai */
.auth-container {
    max-width: 400px;
    margin: 30px auto;
    background: var(--card-bg, #fff);
    padding: 30px;
    border: 1px solid var(--border, #dcd6cd);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.auth-container h2 {
    margin-bottom: 15px;
    color: var(--primary, #3d2314);
    text-align: center;
    font-size: 1.4rem;
}

.auth-desc {
    font-size: 0.9rem;
    color: var(--muted, #666);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.auth-container .form-group {
    margin-bottom: 15px;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text, #222);
    font-size: 0.9rem;
}

.auth-container .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border, #ccc);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
}

.auth-container .form-group input:focus {
    border-color: var(--accent, #8c2a1c);
}

.btn-submit {
    width: 100%;
    background: var(--accent, #8c2a1c);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.btn-submit:hover {
    background: #702116;
}

.alert-success {
    background: #e6f9e6;
    color: #006600;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.alert-error {
    background: #ffe6e6;
    color: #cc0000;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.back-link a {
    color: var(--accent, #8c2a1c);
    text-decoration: none;
    font-weight: 600;
}

.back-link a:hover {
    text-decoration: underline;
}

.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding: 10px;
    padding-right: 40px; /* Helyet hagyunk a ikonnak */
    border: 1px solid var(--border, #ccc);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
    outline: none;
    background: #ffffff;
}

.password-wrapper input:focus {
    border-color: var(--accent, #8c2a1c);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%); /* Tökéletesen középre igazítja függőlegesen */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted, #666);
}

.toggle-password:hover {
    color: var(--accent, #8c2a1c);
}

/* Carousel stílusok */
.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 20px;
    background: #000;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(61, 35, 20, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

/* Elérhetőségek elrejtése és felfedése */
.contact-info-box {
    margin-bottom: 15px;
}

.blurred-text {
    filter: blur(4px);
    user-select: none;
    transition: filter 0.3s ease;
    display: inline-block;
}

.btn-reveal {
    background: var(--accent, #8c2a1c);
    color: #ffffff;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.15s ease;
    vertical-align: middle;
}

.btn-reveal:hover {
    background: #702116;
}

/* ========================================== */
/* HIRDETÉS ADATLAP (ITEM.PHP) STÍLUSOK       */
/* ========================================== */

.item-container { 
    max-width: 1000px; 
    margin: 40px auto; 
    display: flex; 
    gap: 30px; 
    box-sizing: border-box; 
}

.item-main { 
    flex: 2; 
    background: var(--card-bg, #fff); 
    padding: 30px; 
    border-radius: 4px; 
    border: 1px solid var(--border, #dcd6cd); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}

.item-sidebar { 
    flex: 1; 
    background: var(--card-bg, #fff); 
    padding: 25px; 
    border-radius: 4px; 
    border: 1px solid var(--border, #dcd6cd); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    height: fit-content; 
}

.item-image-placeholder { 
    width: 100%; 
    height: 350px; 
    background: #e0dcd3; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--muted, #666); 
    font-weight: bold; 
    margin-bottom: 20px; 
    font-size: 1.2rem; 
}

.item-title { 
    font-size: 1.8rem; 
    color: var(--primary, #3d2314); 
    margin-bottom: 10px; 
}

.item-price { 
    font-size: 1.6rem; 
    color: var(--primary, #3d2314); 
    font-weight: bold; 
    margin-bottom: 20px; 
}

.item-meta { 
    font-size: 0.85rem; 
    color: var(--muted, #666); 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border, #dcd6cd); 
    padding-bottom: 10px; 
}

.item-description { 
    line-height: 1.6; 
    color: var(--text, #222); 
    font-size: 1rem; 
}

.seller-box h3 { 
    font-size: 1.2rem; 
    margin-bottom: 15px; 
    color: var(--primary, #3d2314); 
    border-bottom: 2px solid var(--accent, #8c2a1c); 
    padding-bottom: 5px; 
}

.seller-row { 
    margin-bottom: 10px; 
    font-size: 0.95rem; 
    color: var(--text, #222); 
}

.seller-row strong { 
    color: var(--primary, #3d2314); 
}

.company-badge { 
    display: inline-block; 
    background: #f0ebd9; 
    color: var(--accent, #8c2a1c); 
    padding: 3px 8px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    margin-bottom: 15px; 
    border: 1px dashed #b5a88f; 
}

.back-link-box { 
    max-width: 1000px; 
    margin: 0 auto 20px auto; 
}

.back-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: var(--card-bg, #fff); 
    padding: 8px 16px; 
    border-radius: 4px; 
    border: 1px solid var(--border, #dcd6cd); 
    color: var(--primary, #3d2314); 
    text-decoration: none; 
    font-weight: 600; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.back-link:hover { 
    background: var(--bg, #f8f6f0); 
    text-decoration: none; 
}

/* Galéria és bélyegképek formázása */
.item-main-image img { 
    width: 100%; 
    max-height: 400px; 
    object-fit: cover; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: opacity 0.2s; 
}

.item-main-image img:hover { 
    opacity: 0.95; 
}

.thumb-img { 
    width: 80px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 4px; 
    border: 2px solid transparent; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.thumb-img:hover { 
    border-color: var(--accent, #8c2a1c); 
}

.thumb-img.active { 
    border-color: var(--accent, #8c2a1c); 
    box-shadow: 0 0 5px rgba(140,42,28,0.5); 
}

/* Teljes képernyős Lightbox galéria modális */
#imageGalleryModal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.9); 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
}

#imageGalleryModal img { 
    max-width: 90%; 
    max-height: 80vh; 
    border-radius: 4px; 
    object-fit: contain; 
}

.gallery-close { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 40px; 
    font-weight: bold; 
    cursor: pointer; 
}

.gallery-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    color: #fff; 
    font-size: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    padding: 10px 20px; 
    user-select: none; 
    background: rgba(0,0,0,0.3); 
    border-radius: 4px; 
}

.gallery-prev { left: 30px; }
.gallery-next { right: 30px; }
.gallery-nav:hover, .gallery-close:hover { color: #f0ebd9; }

/* Elérhetőségek elrejtése és felfedése */
.blurred-text {
    filter: blur(4px);
    user-select: none;
    transition: filter 0.3s ease;
    display: inline-block;
}

.btn-reveal {
    background: var(--accent, #8c2a1c);
    color: #ffffff;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.15s ease;
    vertical-align: middle;
}

.btn-reveal:hover {
    background: #702116;
}

@media (max-width: 768px) { 
    .item-container { 
        flex-direction: column; 
        padding: 15px; 
    } 
}

/* Saját hirdetések rácsos nézet - Max 3 oszlop soronként */
.my-ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .my-ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .my-ads-grid {
        grid-template-columns: 1fr;
    }
}