/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    min-height: 100vh;
}

/* Hide reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 59px;
    width: auto;
    display: block;
}

.mobile-logo {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 15px 26px;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link.active {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.search-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.search-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

.search-btn .search-icon,
.search-btn .close-icon {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-btn .search-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.search-btn .close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
}

.search-btn.active .search-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.8);
}

.search-btn.active .close-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.btn-submit-mobile {
    display: none;
}

.btn-submit {
    padding: 15px 26px;
    background-color: #fecb34;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-submit:hover {
    background-color: #e6b82e;
}

.btn-user {
    width: 48px;
    height: 48px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-user:hover {
    background-color: #f0f0f0;
    border-color: #000;
}

/* Main Content */
.main-content {
    margin-top: 74px;
    padding: 0px;
    max-width: 1820px;
    margin-left: auto;
    margin-right: auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.article-card {
    border: 1px solid #c4c4c4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    background-color: #ffffff;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.article-card.article-card-job .salary {
    font-size: 16px;
    font-weight: 500;
}

.article-card.article-card-job .article-title {
    min-height: auto;
}
.article-card.article-card-job a.read-more {
    margin-top: auto;
    padding: 12px 15px;
    font-size: 18px;
    background-color: #000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-image {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    position: relative;
}

/* Видео оверлей на миниатюре */
.article-image--video::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: url(../img/play-ic.png) no-repeat center center;
    background-size: 50% !important;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    transition: all 0.3s ease;
}

.article-image--video:hover::after {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.article-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.meta-item img {
    width: 20px;
    height: 20px;
    display: block;
}

.article-category {
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.article-title {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0;
    min-height: 115px;
}
.article-title a {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.btn-load-more {
    padding: 15px 26px;
    background-color: #000000;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 100%;
}

.btn-load-more:hover {
    background-color: #333333;
}

.btn-load-more:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    height: 100px;
    position: relative;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.footer-link {
    padding: 15px 26px;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    background-color: #ffffff;
}

.scroll-top-btn {
    width: 52px;
    height: 52px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



.scroll-top-btn img {
    width: 28px;
    height: 28px;
    display: block;
}

.scroll-top-btn.hidden {
    opacity: 0;
    pointer-events: none;
}



/* Main Article Content */
.article-main {
    margin-top: 20px;
    padding: 50px;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}
.article-main img {
    border-radius: 8px;
    margin: 30px auto;
}

.article-main .article-content {
    max-width: 910px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.article-main .article-content.article-content-single-job {
    gap: 20px;
}

/* Article Meta Section */
.article-meta-section {
    margin-bottom: 0;
}

.article-meta {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}
.article-meta .meta-item a {
    display: flex;
}
.author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #000000;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-meta .meta-item img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Article Title */
.article-title-main {
    font-size: 40px;
    font-weight: 500;
    color: #000000;
    line-height: 1.3;
    margin: 0;
}

/* Article Text */
.article-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-text p, .article-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    font-weight: 500;
}

/* Article Image */
.article-image-wrapper {
    width: 100%;
}

.article-image-placeholder {
    width: 100%;
    height: 550px;
    background-color: #c4c4c4;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon {
    width: 168px;
    height: 168px;
    display: block;
}

/* Share Section */
.share-section {
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-label {
    font-size: 18px;
    color: #a0a0a4;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-btn:hover {
    opacity: 0.7;
}

.share-btn img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Post Navigation */
.post-navigation {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.post-nav-title {
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 50px 0;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-nav-card {
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    height: 202px;
    display: flex;
    overflow: hidden;
}

.post-nav-image {
    width: 177px;
    height: 202px;
    background-color: #f0f0f0;
    border-radius: 8px 0 0 8px;
    flex-shrink: 0;
	background-size: cover;
}

.post-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.post-nav-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.post-nav-heading {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.btn-read {
    display: inline-block;
    padding: 15px 26px;
    background-color: #fecb34;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.btn-read:hover {
    background-color: #e6b82e;
}

/* See Also Section */
.see-also {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 100px;
}

.see-also-title {
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 50px 0;
}

.see-also-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.see-also-card {
    border: 1px solid #c4c4c4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
   
}

.see-also-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.see-also-image {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.see-also-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.see-also-meta {
    display: flex;
    gap: 30px;
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

.see-also-meta > span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.see-also-heading {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    margin: 0;
    min-height: 116px;
}
.see-also-heading a {
    font-size: 24px;
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}
/* Comments Section */
.comments-section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0px;
    margin-bottom: 40px;
}

.comments-wrapper {
    max-width: 670px;
    margin: 0 auto;
}

.vk-comments-placeholder {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-title-placeholder {
    width: 192px;
    height: 22px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-close-placeholder {
    width: 22px;
    height: 22px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-input-placeholder {
    width: 100%;
    height: 33px;
    background-color: #d9d9d9;
    border-radius: 3px;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    width: 100%;
    height: 59px;
    background-color: #d9d9d9;
    border-radius: 3px;
}

.comments-load-more {
    width: 100%;
    height: 44px;
    background-color: #d9d9d9;
    border-radius: 3px;
    margin-top: 20px;
}

/* Subscribe Section */
.subscribe-section {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 50px;
    margin-bottom: 100px;
}

.subscribe-content {
    background-color: #fff1c9;
    border-radius: 8px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 50px;
    position: relative;
}

.subscribe-icons {
    position: absolute;
    left: 50px;
}

.subscribe-text {
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.subscribe-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.subscribe-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.subscribe-icon:hover {
    opacity: 0.7;
}

.subscribe-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .see-also-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {

    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .see-also-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-card .article-content {
        gap: 10px;
    }
    .article-main {
        padding: 16px;
        margin-top: 100px;
    }
    .article-main .article-content {
        padding: 0;
    }
    
    .article-content {
        gap: 30px;
    }
    
    .article-title-main {
        font-size: 28px;
    }
    
.article-text p, .article-content p{
        font-size: 16px;
    }
    
    .article-image-placeholder {
        height: 300px;
    }
    
    .play-icon {
        width: 100px;
        height: 100px;
    }
    
    .post-navigation {
        padding: 0px;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    
    .post-nav-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .post-nav-card {
        flex-direction: column;
        height: auto;
    }
    
    .post-nav-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }
    
    .see-also {
        padding: 0;
        margin-bottom: 50px;
    }
    
    .see-also-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .see-also-grid {
        grid-template-columns: 1fr;
    }
    
    .see-also-card {
        height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .see-also-image {
        height: 250px;
    }
    
    .subscribe-section {
        padding: 0 20px;
        margin-bottom: 50px;
    }
    
    .subscribe-content {
        flex-direction: column-reverse;
        height: auto;
        padding: 20px;
        gap: 15px;
    }
    
    .subscribe-text {
        font-size: 18px;
        text-align: center;
    }

        .subscribe-icons {
            position: relative;
            left: auto;
        }


}





/* Responsive Design */
@media (max-width: 1600px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
     .footer {
        height: auto;
        padding: 30px 0;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: 5px;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .btn-submit {
        padding: 12px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .search-btn {
        background: #000;
        width: 38px;
        height: 38px;
        border-radius: 8px;

    }
    .search-btn svg  {
        width: 25px;
        height: 25px;
    }
     .search-btn svg path {
        stroke: #fff;
     }
    .article-main {
        margin-top: 10px;
    }
    .main-content {
        margin-top: 10px;
    }
    .header {
        position: relative;
        border-bottom: none;
    }
    .header-container {
        padding: 0 20px;
        flex-wrap: wrap;
    }

        .nav-menu {
        max-width: 91%;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        position: absolute;
        top: 82px;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

        .btn-submit {
        padding: 12px 20px;
        font-size: 16px;
        position: absolute;
        width: 100%;
        margin: 0 auto;
        top: 152px;
        left: 16px;
        max-width: 93.5%;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        padding: 0 20px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: start;
    }
    
    .footer-links {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        overflow-x: auto;
    }
    
    .scroll-top-btn {
        position: fixed;
        right: 20px;
        bottom: 20px;
        width: 48px;
        height: 48px;
        background: #000;
    }
    .scroll-top-btn svg path {
        stroke: #fff;
    }
}



/* Search Overlay Styles */
.search-overlay {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 100px;
}

.search-container {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: 1810px;
    padding: 0;
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateX(-50%) translateY(0);
}


.search-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border:none;
    outline: none;
    border-bottom: 1px solid #C4C4C4;
    background: transparent;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    
}
/* Search Results Page */
main.main-content.search-results {
    min-height: 70vh;
}

.search-header {
    margin-bottom: 40px;
}

.search-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.search-count {
    font-size: 16px;
    color: #7C7C7C;
    margin: 0;
}

.no-results {

    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.no-results h2 {
    font-size: 40px;
    color: #000;
    margin-bottom: 20px;
}
.no-results p {
    font-size: 18px;
    color: #000;
    margin-bottom: 20px;
}

.no-result-header {
    border-bottom: 1px solid #C4C4C4;
    padding: 15px 0;
}
.no-result-header-text {
    font-size: 18px;
    color: #A0A0A4;
    margin-bottom: 15px;
}
.no-result-header-text-s {
    font-size: 36px;
    font-weight: 500;
}



.search-form-inline {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 30px auto 0;
}

.search-form-inline .search-input {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination .page-numbers {
    padding: 10px 16px;
    background: white;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #FFD600;
    border-color: #FFD600;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
       .search-container {
        top: 45px;
        padding: 16px;
        width: 100%;
    }
    .search-overlay.active {
        margin-top: 50px;
        margin-bottom: 25px;
    }
    .search-input {
        width: 100%;
    }
    .search-form {
        flex-direction: column;
    }
    
    .search-submit {
        width: 100%;
        justify-content: center;
    }
    
    
    .search-title {
        font-size: 24px;
    }
    
    .no-results {
        padding: 40px 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}



/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

.vk-gallery-item img {
    margin: 0 !important;
}

/* Paragraph spacing in article content */
.article-content p {
	margin-bottom: 1em;
	line-height: 1.7;
}

.article-content p:last-child {
	margin-bottom: 0;
}



.article-main img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

/* Swipe Navigation Animation */
body.swipe-transition {
    animation: swipeFadeOut 0.3s ease-out forwards;
}

@keyframes swipeFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes swipeFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}




/* ============================================
   VK Comments Styling
   ============================================ */

.vk-comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.vk-comments-header {
    margin-bottom: 32px;
}

.vk-comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.vk-comments-title svg {
    color: #4a76a8;
    flex-shrink: 0;
}

.vk-comments-subtitle {
    font-size: 14px;
    color: #999;
    margin: 0;
    padding-left: 30px;
}

.vk-comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vk-comment-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vk-comment-body {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.vk-comment-body:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vk-comment-avatar {
    flex-shrink: 0;
}

.vk-comment-avatar a {
    display: block;
    text-decoration: none;
}

.vk-comment-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.vk-comment-avatar a:hover .vk-comment-avatar-placeholder {
    transform: scale(1.1);
}

.vk-comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.vk-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vk-comment-author {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.vk-comment-author a {
    color: #4a76a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-author a:hover {
    color: #5c9ce6;
    text-decoration: underline;
}

.vk-comment-date {
    font-size: 13px;
    color: #999;
}

.vk-comment-date a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-date a:hover {
    color: #666;
}

.vk-comment-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    word-wrap: break-word;
}

.vk-comment-content p {
    margin: 0 0 10px 0;
}

.vk-comment-content p:last-child {
    margin-bottom: 0;
}

.vk-comment-content a {
    color: #4a76a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vk-comment-content a:hover {
    color: #5c9ce6;
    text-decoration: underline;
}

/* Вложенные комментарии (ответы) - depth-2 и выше */
.vk-comment-item.depth-2,
.vk-comment-item.depth-3,
.vk-comment-item.depth-4 {
    margin-left: 64px;
    margin-top: 16px;
    position: relative;
}

/* Вертикальная линия слева от вложенных комментариев */
.vk-comment-item.depth-2::before,
.vk-comment-item.depth-3::before,
.vk-comment-item.depth-4::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 0;
    bottom: -16px;
    width: 3px;
    background: #e0e7ef;
}

/* Горизонтальная соединительная линия */
.vk-comment-item.depth-2::after,
.vk-comment-item.depth-3::after,
.vk-comment-item.depth-4::after {
    content: '';
    position: absolute;
    left: -32px;
    top: 32px;
    width: 20px;
    height: 2px;
    background: #e0e7ef;
}

/* Стили для тела вложенного комментария */
.vk-comment-item.depth-2 .vk-comment-body,
.vk-comment-item.depth-3 .vk-comment-body,
.vk-comment-item.depth-4 .vk-comment-body {
    background: #ffffff;
    border: 1px solid #e8e8e8;
}

.vk-comment-item.depth-2 .vk-comment-body:hover,
.vk-comment-item.depth-3 .vk-comment-body:hover,
.vk-comment-item.depth-4 .vk-comment-body:hover {
    background: #f8f9fa;
    border-color: #4a76a8;
}

/* Уменьшенный аватар для ответов */
.vk-comment-item.depth-2 .vk-comment-avatar-placeholder,
.vk-comment-item.depth-3 .vk-comment-avatar-placeholder,
.vk-comment-item.depth-4 .vk-comment-avatar-placeholder {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

/* Уменьшенный шрифт для ответов */
.vk-comment-item.depth-2 .vk-comment-content,
.vk-comment-item.depth-3 .vk-comment-content,
.vk-comment-item.depth-4 .vk-comment-content {
    font-size: 14px;
}

.vk-comment-item.depth-2 .vk-comment-author,
.vk-comment-item.depth-3 .vk-comment-author,
.vk-comment-item.depth-4 .vk-comment-author {
    font-size: 14px;
}

/* Метка "Ответ" для вложенных комментариев */
.vk-comment-item.depth-2 .vk-comment-meta::before,
.vk-comment-item.depth-3 .vk-comment-meta::before,
.vk-comment-item.depth-4 .vk-comment-meta::before {
    content: '↳';
    color: #999;
    font-size: 16px;
    margin-right: 4px;
}

/* Пагинация комментариев */
.vk-comments-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
    gap: 16px;
}

.vk-comments-navigation a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #4a76a8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vk-comments-navigation a:hover {
    background: #4a76a8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.3);
}

.vk-comments-navigation .nav-previous {
    margin-right: auto;
}

.vk-comments-navigation .nav-next {
    margin-left: auto;
}

/* Пустое состояние */
.vk-comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.vk-comments-empty svg {
    margin-bottom: 20px;
    opacity: 0.3;
}

.vk-comments-empty p {
    font-size: 16px;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vk-comments-area {
        margin-top: 40px;
        padding-top: 30px;
    }

    .vk-comments-title {
        font-size: 20px;
    }

    .vk-comment-body {
        gap: 12px;
        padding: 16px;
    }

    .vk-comment-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .vk-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .vk-comments-navigation {
        flex-direction: column;
    }

    .vk-comments-navigation .nav-previous,
    .vk-comments-navigation .nav-next {
        margin: 0;
        text-align: center;
    }

    .vk-comments-navigation a {
        width: 100%;
        justify-content: center;
    }

    /* Вложенные комментарии на мобильных */
    .vk-comment-item.depth-2,
    .vk-comment-item.depth-3,
    .vk-comment-item.depth-4 {
        margin-left: 32px;
    }

    .vk-comment-item.depth-2::before,
    .vk-comment-item.depth-3::before,
    .vk-comment-item.depth-4::before {
        left: -20px;
        width: 2px;
    }

    .vk-comment-item.depth-2::after,
    .vk-comment-item.depth-3::after,
    .vk-comment-item.depth-4::after {
        left: -20px;
        top: 28px;
        width: 14px;
    }

    .vk-comment-item.depth-2 .vk-comment-avatar-placeholder,
    .vk-comment-item.depth-3 .vk-comment-avatar-placeholder,
    .vk-comment-item.depth-4 .vk-comment-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ============================================
   Archive Listings Styles (Advertisements, Real Estate, Jobs)
   ============================================ */

.archive-listings {
    padding: 0 50px;
    margin-top: 100px;
}

/* Search Bar - hidden, search is now in header overlay */
.listings-search {
    display: none;
}

.listings-search-form {
    display: flex;
    align-items: center;
}

.listings-search-input {
    width: 100%;
    padding: 16px 0;
    border: none;
    outline: none;
    font-size: 18px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    color: #000;
    background: transparent;
}

.listings-search-input::placeholder {
    color: #a0a0a4;
}

/* Tags Filter */
.listings-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag-btn {
    padding: 15px 26px;
    font-size: 18px;
    font-weight: 500;
    color: #a0a0a4;
    text-decoration: none;
    background-color: #f0f0f0;
    border-radius: 126px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag-btn:hover {
    background-color: #e0e0e0;
}

.tag-btn.active {
    background-color: #000;
    color: #fff;
}

/* Listings Container */
.listings-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 440px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
}

.filters-form {
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 50px;
}

.filters-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 20px 0;
    color: #000;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
}

.filter-select-wrapper {
    position: relative;
}

.filter-select {
    width: 100%;
    padding: 15px 50px 15px 26px;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    color: #c4c4c4;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #000;
    color: #000;
}

.filter-select option {
    color: #000;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Price Range */
.filter-price-range {
    display: flex;
    gap: 20px;
}

.filter-input {
    width: 100%;
    padding: 15px 26px;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    color: #000;
    transition: border-color 0.3s ease;
}

.filter-input::placeholder {
    color: #c4c4c4;
}

.filter-input:focus {
    outline: none;
    border-color: #000;
}

.filter-input-half {
    width: calc(50% - 10px);
}

/* Checkboxes */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #c4c4c4;
    transition: color 0.3s ease;
}

.filter-checkbox:hover {
    color: #000;
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #c4c4c4;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkbox-custom {
    background-color: #000;
    border-color: #000;
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.filter-checkbox input:checked ~ .checkbox-label {
    color: #000;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn-filter-apply {
    padding: 15px 26px;
    background-color: #fecb34;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.btn-filter-apply:hover {
    background-color: #e6b82e;
}

.btn-filter-reset {
    padding: 15px 26px;
    background-color: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-family: 'Inter Tight', sans-serif;
}

.btn-filter-reset:hover {
    background-color: #333;
}

/* Listings Main Area */
.listings-main {
    flex: 1;
    min-width: 0;
}

.listings-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Advertisement Card */
.article-card-ad .article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card-ad .article-image {
    height: 300px;
    position: relative;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.article-card-ad .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-ad .article-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto;
}

.article-card-ad .article-excerpt {
    font-size: 16px;
    color: #a0a0a4;
    line-height: 1.5;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-ad .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 10px;
}

.article-card-ad .article-footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-card-ad .article-price {
    font-size: 24px;
    font-weight: 500;
    color: #000;
}

.article-card-ad .article-price.article-price-free {
    color: #4CAF50;
}

.article-card-ad .article-city {
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    text-transform: uppercase;
}

.badge-urgent {
    left: 15px;
    background-color: #ff4444;
    color: #fff;
}

.badge-exchange {
    right: 15px;
    background-color: #4CAF50;
    color: #fff;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #a0a0a4;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px 20px;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter Tight', sans-serif;
    margin-bottom: 20px;
}

.mobile-filter-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-filter-toggle.active svg {
    transform: rotate(180deg);
}

/* Mobile Filters Panel */
.mobile-filters-panel {
    display: none;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.mobile-filters-panel.active {
    max-height: 1000px;
    padding: 20px;
    margin-bottom: 20px;
}

.mobile-filters-panel .filters-form {
    border: none;
    padding: 0;
    background: transparent;
}

.mobile-filters-panel .filter-group {
    margin-bottom: 15px;
}

.mobile-filters-panel .filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.mobile-filters-panel .btn-filter-apply {
    flex: 1;
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter Tight', sans-serif;
    transition: background-color 0.2s;
}

.mobile-filters-panel .btn-filter-apply:hover {
    background-color: #333;
}

.mobile-filters-panel .btn-filter-reset {
    flex: 1;
    padding: 12px 20px;
    background-color: #e0e0e0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter Tight', sans-serif;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mobile-filters-panel .btn-filter-reset:hover {
    background-color: #ccc;
}

/* Responsive Listings */
@media (max-width: 1600px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .filters-sidebar {
        width: 350px;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .archive-listings {
        padding: 0 20px;
        margin-top: 40px;
    }

    .listings-container {
        flex-direction: column;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
    }

    .filters-sidebar.active {
        display: block;
    }

    .filters-form {
        border: none;
        padding: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .filters-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .mobile-filters-panel {
        display: block;
        max-height: 0;
        padding: 0 20px;
        margin-bottom: 0;
    }

    .mobile-filters-panel.active {
        max-height: 1000px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .listings-main {
        width: 100%;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .listings-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        margin-bottom: 15px;
        scrollbar-width: none;
    }

    .listings-tags::-webkit-scrollbar {
        display: none;
    }

    .tag-btn {
        padding: 12px 20px;
        font-size: 16px;
    }

    .article-card-ad .article-image {
        height: 250px;
    }

    .article-card-ad .article-title {
        font-size: 20px;
    }

    .article-card-ad .article-price {
        font-size: 20px;
    }
}

/* ============================================
   User Account & Modal Styles
   ============================================ */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #000;
}

.form-input::placeholder {
    color: #c4c4c4;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter Tight', sans-serif;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23C4C4C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #000;
}

.form-checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
}

.form-checkbox input {
    display: none;
}

.form-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #c4c4c4;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-checkbox input:checked + .form-checkbox-custom {
    background: #000;
    border-color: #000;
}

.form-checkbox input:checked + .form-checkbox-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* File Upload */
.form-file-upload {
    border: 2px dashed #c4c4c4;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-file-upload:hover {
    border-color: #000;
    background: #f9f9f9;
}

.form-file-upload input {
    display: none;
}

.form-file-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    color: #c4c4c4;
}

.form-file-upload-text {
    font-size: 16px;
    color: #a0a0a4;
    margin-bottom: 5px;
}

.form-file-upload-hint {
    font-size: 14px;
    color: #c4c4c4;
}

/* Image Preview */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Form Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 30px;
    background: #fecb34;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.btn-primary:hover {
    background: #e6b82e;
}

.btn-primary:disabled {
    background: #c4c4c4;
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    padding: 16px 30px;
    background: #000;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.btn-secondary:hover {
    background: #333;
}

.btn-outline {
    width: 100%;
    padding: 16px 30px;
    background: transparent;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    border: 1px solid #c4c4c4;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter Tight', sans-serif;
}

.btn-outline:hover {
    border-color: #000;
}

/* Form Links */
.form-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #a0a0a4;
}

.form-link a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Form Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   User Dashboard Styles
   ============================================ */

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    overflow-x: auto;
}

.dashboard-tab {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #a0a0a4;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter Tight', sans-serif;
}

.dashboard-tab:hover {
    color: #000;
    background: #f0f0f0;
}

.dashboard-tab.active {
    color: #000;
    background: #f0f0f0;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

/* User Listings */
.user-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.user-listing-card {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-listing-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.user-listing-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.user-listing-content {
    padding: 20px;
}

.user-listing-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 5px;
    margin-bottom: 10px;
}

.user-listing-status.pending {
    background: #fff3cd;
    color: #856404;
}

.user-listing-status.published {
    background: #d4edda;
    color: #155724;
}

.user-listing-status.draft {
    background: #e0e0e0;
    color: #666;
}

.user-listing-title {
    font-size: 18px;
    font-weight: 500;
    color: #000;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-listing-price {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.user-listing-actions {
    display: flex;
    gap: 10px;
}

.user-listing-btn {
    flex: 1;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    font-family: 'Inter Tight', sans-serif;
}

.user-listing-btn-edit {
    background: #f0f0f0;
    color: #000;
}

.user-listing-btn-edit:hover {
    background: #e0e0e0;
}

.user-listing-btn-delete {
    background: #ffebee;
    color: #c62828;
}

.user-listing-btn-delete:hover {
    background: #ffcdd2;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.profile-avatar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #a0a0a4;
    overflow: hidden;
}

.profile-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #c4c4c4;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    margin: 0 0 10px;
}

.empty-state-text {
    font-size: 16px;
    color: #a0a0a4;
    margin: 0 0 20px;
}

/* Responsive Dashboard */
@media (max-width: 992px) {
    .user-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 100px 16px 40px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .user-listings-grid {
        grid-template-columns: 1fr;
    }

    .profile-avatar {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Real Estate Card Styles
   ============================================ */

.article-card-realestate .article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card-realestate .article-image {
    height: 300px;
    position: relative;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.article-card-realestate .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-realestate .article-title {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: auto;
}

.article-card-realestate .article-specs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.article-card-realestate .spec-item {
    font-size: 14px;
    color: #a0a0a4;
    font-weight: 500;
}

.article-card-realestate .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.article-card-realestate .article-price {
    font-size: 24px;
    font-weight: 500;
    color: #000;
}

.article-card-realestate .article-city {
    font-size: 16px;
    color: #a0a0a4;
    font-weight: 500;
}

/* Deal type badges */
.badge-deal-type {
    left: 15px;
}

.badge-sale {
    background-color: #2196F3;
    color: #fff;
}

.badge-rent {
    background-color: #9C27B0;
    color: #fff;
}

/* ============================================
   Job Card Styles
   ============================================ */

.article-card-job {
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card-job:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-card-job .article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.article-card-job .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-job .article-company {
    font-size: 14px;
    color: #a0a0a4;
    font-weight: 500;
    margin-bottom: 5px;
}

.article-card-job .article-title {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    line-height: 1.3;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-job .article-job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.article-card-job .job-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #a0a0a4;
}

.article-card-job .job-info-item svg {
    flex-shrink: 0;
}

.article-card-job .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.article-card-job .article-salary {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.article-card-job .article-city {
    font-size: 14px;
    color: #a0a0a4;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .article-card-realestate .article-image {
        height: 250px;
    }

    .article-card-realestate .article-title {
        font-size: 20px;
    }

    .article-card-realestate .article-price {
        font-size: 20px;
    }

    .article-card-job .article-title {
        font-size: 18px;
    }

    .article-card-job .article-salary {
        font-size: 16px;
    }
}

/* ============================================
   Filters Close Button
   ============================================ */

.filters-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .filters-close {
        display: flex;
    }
}

/* ============================================
   Dashboard Page Styles
   ============================================ */

.dashboard-page {
    padding-top: 20px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.user-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}

.user-email {
    font-size: 14px;
    color: #666;
}

.btn-logout {
    padding: 8px 16px;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: #000;
    color: #000;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.dashboard-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-tab:hover {
    background: #f5f5f5;
    color: #000;
}

.dashboard-tab.active {
    background: #000;
    color: #fff;
}

.tab-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.dashboard-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #333;
}

/* Dashboard Listings */
.dashboard-listings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dashboard-item:hover {
    background: #f0f0f0;
}

.dashboard-item-image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.dashboard-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-item-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
}

.dashboard-item-content {
    flex: 1;
    min-width: 0;
}

.dashboard-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dashboard-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.dashboard-item-title a {
    color: #000;
    text-decoration: none;
}

.dashboard-item-title a:hover {
    text-decoration: underline;
}

.dashboard-item-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-published {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-draft {
    background: #e0e0e0;
    color: #666;
}

.dashboard-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.dashboard-item-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.dashboard-item-meta .meta-price {
    font-weight: 600;
    color: #000;
}

.dashboard-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: #000;
    color: #000;
}

.btn-icon.btn-delete:hover {
    border-color: #d32f2f;
    color: #d32f2f;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #000;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 10px;
    color: #000;
}

.form-section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-message-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.btn-primary {
    padding: 14px 28px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #333;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Auth Form Links */
.form-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-link a {
    color: #000;
    font-weight: 500;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .dashboard-page {
        padding-top: 10px;
    }

    .dashboard-container {
        padding: 20px 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-title {
        font-size: 24px;
    }

    .dashboard-user-info {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 14px;
    }

    .dashboard-section {
        padding: 20px 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 20px;
    }

    .btn-add {
        width: 100%;
        justify-content: center;
    }

    .dashboard-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-item-image {
        width: 100%;
        height: 150px;
    }

    .dashboard-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Add Listing Page Styles
   ============================================ */

.add-listing-page {
    padding-top: 40px;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.add-listing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.add-listing-header {
    margin-bottom: 30px;
}

.back-link {
    display: none !important;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #000;
}

.add-listing-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.add-listing-form {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-section .form-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.form-section .form-section-desc {
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #000;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.required {
    color: #d32f2f;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Tags Select */
.tags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    display: inline-flex;
    cursor: pointer;
}

.tag-checkbox input {
    display: none;
}

.tag-label {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.tag-checkbox input:checked + .tag-label {
    background: #000;
    border-color: #000;
    color: #fff;
}

.tag-checkbox:hover .tag-label {
    border-color: #999;
}

/* Ad Flags (Urgent/Exchange) */
.ad-flags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.flag-checkbox {
    display: inline-flex;
    cursor: pointer;
}

.flag-checkbox input {
    display: none;
}

.flag-label {
    padding: 10px 18px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.flag-label.flag-urgent {
    border-color: #ffcccc;
    background: #fff5f5;
    color: #cc3333;
}

.flag-checkbox input:checked + .flag-label.flag-urgent {
    background: #ff4444;
    border-color: #ff4444;
    color: #fff;
}

.flag-label.flag-exchange {
    border-color: #cce5ff;
    background: #f0f7ff;
    color: #3366cc;
}

.flag-checkbox input:checked + .flag-label.flag-exchange {
    background: #3366cc;
    border-color: #3366cc;
    color: #fff;
}

.flag-checkbox:hover .flag-label {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Free item checkbox */
.free-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-top: 8px;
    gap: 8px;
}

.free-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4CAF50;
    cursor: pointer;
}

.free-label {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
}

/* File Upload */
.form-file-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form-file-upload:hover,
.form-file-upload.dragover {
    border-color: #000;
    background: #fafafa;
}

.form-file-upload svg {
    opacity: 0.5;
}

.form-file-upload span {
    font-size: 16px;
    color: #666;
}

.form-file-upload .form-hint {
    margin-top: 0;
}

/* Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.image-preview-grid:empty {
    display: none;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.image-preview-remove:hover {
    background: #d32f2f;
}

/* Existing Images Grid (for edit form) */
.existing-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.existing-image-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.existing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.existing-image-remove:hover {
    background: #d32f2f;
}

.existing-image-main {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #4CAF50;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .existing-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 20px;
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

.form-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* Add Listing Responsive */
@media (max-width: 768px) {
    .add-listing-page {
        padding-top: 0px;
    }

    .add-listing-container {
        padding: 20px 15px;
    }

    .add-listing-title {
        font-size: 24px;
    }

    .add-listing-form {
        padding: 20px 15px;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .image-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ===================================
   Loading Spinner
   =================================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    width: 100%;
    grid-column: 1 / -1;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #E8E8E8;
    border-top-color: #9D4EDD;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.listings-grid.loading {
    min-height: 300px;
    opacity: 0.7;
    position: relative;
}

.listings-grid.loading .loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: auto;
}

/* ===================================
   Single Listing Page
   =================================== */
.single-listing {
    padding: 24px 16px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.single-listing-container {
    width: 100%;
    margin-top: 10px;
}

.single-listing .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.single-listing .back-link:hover {
    color: #9D4EDD;
}

.listing-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Gallery */
.listing-gallery {
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f5f5f5;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: #f8f8f8;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: #9D4EDD;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Listing Header */
.listing-header {
    padding: 24px;
    border-bottom: 1px solid #E8E8E8;
}

.listing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.listing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.listing-badge-sale {
    background: #E8F5E9;
    color: #2E7D32;
}

.listing-badge-rent {
    background: #E3F2FD;
    color: #1565C0;
}

.listing-badge-urgent {
    background: #FFEBEE;
    color: #C62828;
}

.listing-badge-exchange {
    background: #FFF3E0;
    color: #E65100;
}

.listing-badge-condition {
    background: #F3E5F5;
    color: #7B1FA2;
}

.listing-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 12px;
    line-height: 1.3;
}

.listing-price {
    font-size: 28px;
    font-weight: 700;
    color: #9D4EDD;
    margin-bottom: 16px;
}

.listing-salary {
    font-size: 22px;
    color: #2E7D32;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.listing-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

/* Listing Company (for jobs) */
.listing-company {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.company-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Listing Sections */
.listing-section {
    padding: 24px;
    border-bottom: 1px solid #E8E8E8;
}

.listing-section:last-child {
    border-bottom: none;
}

.listing-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 16px;
}

/* Specs Grid */
.listing-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 13px;
    color: #888;
}

.spec-value {
    font-size: 15px;
    font-weight: 500;
    color: #1A1A1A;
}

/* Listing Content */
.listing-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.listing-content p {
    margin-bottom: 16px;
}

.listing-content p:last-child {
    margin-bottom: 0;
}

/* Listing Contact */
.listing-contact .contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.contact-name svg {
    color: #9D4EDD;
    flex-shrink: 0;
}

.phone-spoiler {
    margin-bottom: 15px;
}

.phone-spoiler-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #9D4EDD;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.phone-spoiler-btn:hover {
    background: #8E24AA;
}

.listing-phone,
.listing-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #9D4EDD;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.listing-phone:hover,
.listing-email:hover {
    background: #8E24AA;
    color: #fff;
}

.listing-email {
    background: #1565C0;
}

.listing-email:hover {
    background: #0D47A1;
}

.contact-warning {
    padding: 12px 16px;
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 8px;
    color: #E65100;
    font-size: 14px;
    line-height: 1.4;
}

/* Share Section in Single */
.listing-section .share-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.listing-section .share-label {
    font-size: 14px;
    color: #666;
}

.listing-section .share-buttons {
    display: flex;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .single-listing {
        padding: 16px 12px 40px;
    }

    .listing-header {
        padding: 20px 16px;
    }

    .listing-title {
        font-size: 20px;
    }

    .listing-price {
        font-size: 24px;
    }

    .listing-section {
        padding: 20px 16px;
    }

    .listing-specs {
        grid-template-columns: 1fr 1fr;
    }

    .listing-phone,
    .listing-email {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .listing-specs {
        grid-template-columns: 1fr;
    }

    .listing-contact .contact-buttons {
        flex-direction: column;
    }

    .listing-phone,
    .listing-email {
        width: 100%;
    }
}

/* ============================================
   Header Actions Container
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Hide admin bar for non-admin users */
body.logged-in:not(.admin-bar) #wpadminbar,
body:not(.role-administrator) #wpadminbar {
    display: none !important;
}

body:not(.role-administrator).logged-in {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html:not(.role-administrator) {
    margin-top: 0 !important;
}

/* Single listing back link - hide */
.single-back-link {
    display: none;
}

/* Single listing top margin when no back link */
.single-listing-page .listing-content {
    padding-top: 20px;
}

/* Password recovery link */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Privacy policy checkbox */
.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: #000;
    text-decoration: underline;
}

.privacy-checkbox a:hover {
    text-decoration: none;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Gallery zoom hint */
.gallery-main {
    position: relative;
    cursor: pointer;
}

.gallery-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.gallery-main:hover .gallery-zoom-hint {
    opacity: 1;
}

/* Lightbox responsive */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 60px 20px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   404 Error Page
   =================================== */
.error-404-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-404-container {
    max-width: 600px;
    width: 100%;
}

.error-404-content {
    text-align: center;
}

.error-404-number {
    font-size: 150px;
    font-weight: 700;
    color: #000;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -5px;
}

.error-404-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin: 0 0 16px 0;
}

.error-404-text {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.error-404-actions {
    margin-bottom: 40px;
}

.error-404-links {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.error-404-links p {
    font-size: 14px;
    color: #999;
    margin: 0 0 16px 0;
}

.error-404-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.error-404-nav a {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.error-404-nav a:hover {
    color: #666;
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 100px;
    }

    .error-404-title {
        font-size: 24px;
    }

    .error-404-text {
        font-size: 16px;
    }

    .error-404-nav {
        gap: 15px;
    }

    .error-404-nav a {
        font-size: 14px;
    }
}