/* Contact Header - move title down */
.mc--contact-header h1 {
    margin-top: 2rem !important;
}

/* Projecten listing: filters */
.mc--project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.mc--search-container {
    position: relative;
    width: 460px;
}

.mc--search-container input {
    width: 100%;
    height: 40px; /* Match height of filter triggers */
    padding: 0 1rem 0 2.5rem !important;
    border-radius: 0.3rem !important;
    border: 1px solid #ddd !important;
    background: white !important;
    font-size: 0.95rem !important;
}

.mc--search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.mc--filter-dropdown {
    position: relative;
}

.mc--filter-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 44px; /* Explicit height to match search */
    padding: 0 1rem;
    min-width: 210px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    user-select: none;
}

.mc--filter-trigger:hover {
    border-color: var(--drive-green);
}

.mc--filter-trigger.active {
    border-color: var(--drive-green);
    background: #e6f0ee;
}

.mc--filter-badge {
    background: var(--drive-green);
    color: white;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.mc--filter-clear {
    margin-left: 0.5rem;
    color: #888;
    cursor: pointer;
}

.mc--filter-clear:hover {
    color: #f44336;
}

.mc--dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1);
    min-width: 250px;
    margin-top: 0.5rem;
    display: none;
    padding: 1rem;
}

.mc--dropdown-content.show {
    display: block;
}

.mc--dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.mc--dropdown-header span {
    font-weight: bold;
    color: var(--fresh-tires);
}

.mc--dropdown-reset {
    color: var(--drive-green);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.mc--filter-options {
    max-height: 300px;
    overflow-y: auto;
}

.mc--filter-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.mc--filter-option input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.mc--filter-option label {
    cursor: pointer;
    font-size: 0.9rem;
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .w-grid.cols_3 .w-grid-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .mc--project-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .mc--search-container {
        width: 100% !important;
    }

    .mc--filter-trigger {
        min-width: 0;
        width: 100%;
    }

    .w-grid.cols_3 .w-grid-list {
        display: block !important; /* Fallback to block for individual items to take full width */
    }

    .w-grid.cols_3 .w-grid-item {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    /* Adjust section padding for mobile */
    .l-section.height_medium {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .l-section-h {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Title size on mobile */
    .mc--contact-header h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 600px) {
    .mc--project-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .mc--search-container {
        width: 100% !important;
    }
}

/* Grid Layout */
.w-grid.layout_259 .w-grid-item-h {
    background: var(--color-content-bg);
    color: var(--color-content-text);
    border-radius: 0.3rem;
    box-shadow: 0 0.03rem 0.06rem rgba(0,0,0,0.1), 0 0.1rem 0.3rem rgba(0,0,0,0.1);
    transition-duration: 0.3s;
}

.no-touch .w-grid.layout_259 .w-grid-item-h:hover {
    box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.1), 0 0.33rem 1rem rgba(0,0,0,0.15);
    z-index: 4;
}

.layout_259 .usg_post_image_1 {
    margin-bottom: -2rem !important;
}

.layout_259 .usg_post_title_1 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.layout_259 .usg_vwrapper_1 {
    margin-top: 2rem !important;
    padding: 1.5rem !important;
}

@media (max-width: 576px) {
    .layout_259 .usg_post_title_1 {
        font-size: 1.2rem !important;
    }
}

/* Gallery Hover */
.mc--gallery-item:hover {
    transform: translateY(-5px);
}
