
/* WeClassified responsive foundation */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

.wc-exact-original img {
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.wc-mobile-menu {
    display: none;
}

.wc-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wc-public-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Desktop */

@media (min-width: 1200px) {
    .wc-public-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

/* Laptop */

@media (min-width: 992px) and
       (max-width: 1199px) {

    .wc-public-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

/* Tablet */

@media (min-width: 768px) and
       (max-width: 991px) {

    .wc-public-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .wc-search-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .wc-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile */

@media (max-width: 767px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .wc-brand-name {
        font-size: clamp(19px, 5vw, 28px) !important;
        line-height: 1.2;
    }

    .wc-tagline {
        font-size: 12px !important;
    }

    .wc-community-name {
        font-size: 11px !important;
    }

    .wc-exact-original {
        min-width: 0;
    }

    .wc-exact-original img {
        max-width: 52px !important;
        max-height: 75px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    .wc-account-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

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

    .wc-public-panel {
        padding: 15px;
        margin: 12px 0;
    }

    .wc-public-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .wc-public-card {
        padding: 14px;
    }

    .wc-public-panel h2 {
        font-size: 20px;
    }

    input, select, textarea {
        max-width: 100%;
        font-size: 16px !important;
    }

    button,
    .wc-public-button,
    .wc-account-bar a {
        min-height: 44px;
    }

    .wc-mobile-menu {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        background: #ad542d;
        color: white;
        border: none;
        padding: 12px 16px;
        font-size: 16px;
        cursor: pointer;
    }

    .wc-nav.wc-responsive-ready {
        display: none !important;
    }

    .wc-nav.wc-responsive-ready.wc-menu-open {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .wc-nav a,
    .wc-nav .nav-disabled {
        display: block;
        padding: 12px 16px;
        min-height: 44px;
    }

    .wc-footer-inner {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .wc-footer-bottom {
        text-align: center;
        line-height: 1.8;
    }
}

/* Small mobile */

@media (max-width: 420px) {

    .wc-public-grid,
    .wc-footer-inner {
        grid-template-columns: 1fr;
    }

    .wc-exact-original img {
        max-width: 40px !important;
        max-height: 60px !important;
    }

    .wc-brand-name {
        font-size: 20px !important;
    }
}

