/* mijnbna-architecten-overview.css */

/* General Container */
.mijnbna-architecten-overview {
    /* Add styles for the main container if needed */
}

/* Hero Section (if you keep it from the template) */
.mijnbna-architecten-overview .hero-outer {
    padding: 20px;
    background-color: #f0f0f0; /* Example */
    margin-bottom: 30px;
    text-align: center;
}
.mijnbna-architecten-overview .hero__title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
.mijnbna-architecten-overview .hero__subtitle {
    font-size: 1.2em;
    color: #555;
}

/* Nieuw twee-koloms layout */
.architecten-main-container {
    display: flex;
    gap: 30px;
}

.architecten-filters-column {
    flex: 0 0 300px;
    padding: 0px;
    position: sticky;
    top: 30px;
    align-self: flex-start;
    height: max-content;
}

.architecten-results-column {
    flex: 1;
}

.dashicons-arrow-right-alt2::before {
	display: none;
}

.dashicons-arrow-left-alt2::before,
.dashicons-arrow-right-alt2::before {
	display: none;
}

/* Mobile search bar - only shown on mobile */
.mobile-search-bar {
    display: none; /* Hidden by default (desktop) */
    margin-bottom: 15px;
}

/* Filters Area */
.filters__mobile-toggle-bar {
    display: none; /* Hidden by default, shown via media query */
    margin-bottom: 15px;
}
#mijnbna-mobile-filter-toggle {
    padding: 12px 15px;
    background-color: #7D6969; /* WordPress blue */
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 0px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#mijnbna-mobile-filter-toggle:hover {
    background-color: #005a87;
}

.filters--show #mijnbna-mobile-filter-toggle {
    background-color: #004650;
}

.filters--show #mijnbna-mobile-filter-toggle:hover {
    background-color: #218838;
}
#mijnbna-mobile-filter-toggle .dashicons {
    margin-right: 8px;
}

.filters__content {
    /* Styles for the container of actual filter items */
}

/* Zoekcontainer - gekopieerd van kennisbibliotheek */
.search-container {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.search-container input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.search-container button {
    background-color: #F04B4B;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

.search-container button:hover {
    background-color: #2D2337;
}

/* Filter group styling voor zoekfilter - gekopieerd van kennisbibliotheek */
.filter-group h6 {
    font-size: 0.9em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.filter-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.filter-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}
.filters__item-input-container {
    margin-bottom: 10px;
}
.filters__item-input-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-family: "IBM Plex Sans" !important;
}

.filter-checkbox {
	margin-bottom: 8px;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: #F04B4B;
  flex-shrink: 0;
}

.filter-checkbox label {
    font-size: inherit;
    cursor: pointer;
    font-family: "IBM Plex Sans" !important;
}

.filter-checkbox:hover label {
    color: #000;
}

.filters__item-input,
.filters__item-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.filters__button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filters__button {
    padding: 8px 12px;
    font-family: 'IBM Plex Sans';
    background-color: #7D6969;
    border: 0px solid #ccc;
    color: #fff !important;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 8px;
	font-weight: 500 !important;
	font-size: 14px !important;
	line-height: 18px !important;
	letter-spacing: 0.05em !important;
	text-transform: uppercase;
	padding: 5px 10px;
}
.filters__button:hover {
    background-color: #7D6969;
    border-color: #bbb;
	opacity: .85;
}
.filters__button.filters__button--selected {
    background-color: #2D2337; /* WordPress blue */
    color: white;
    border-color: #005a87;
}

#mijnbna-apply-filters-button,
#mijnbna-reset-filters-button {
    padding: 10px 15px;
    margin-top: 20px;
    cursor: pointer;
    border: 1px solid transparent;
}
#mijnbna-apply-filters-button {
 	display: none;
    background-color: #F04B4B; /* Green */
    color: white;
    margin-right: 10px;
}
#mijnbna-reset-filters-button {
    background-color: #7D6969; /* Gray */
    color: white;
}
#mijnbna-apply-filters-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}


/* Results Area */
.offices__total {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1em;
}
.offices__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
}
.offices__card {
    border: 0px solid #D7E1E6;
    text-decoration: none;
    color: inherit;
    display: flex; /* For footer alignment */
    flex-direction: column; /* Stack content vertically */
    transition: all 0.2s ease;
    background-color: #EBEBE6;
}
.offices__card:hover {
	background-color: #FFE6E6;
}
.offices__card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 15px;
    height: 100%; /* Make link fill card */
    display: flex;
    flex-direction: column;
}
.offices__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}
.offices__area {
    /* Styles for Vakgebied */
}
.offices__location {
    display: flex;
    align-items: center;
}
.offices__location .dashicons {
    margin-right: 5px;
    font-size: 1.2em;
}
.offices__main {
    margin-bottom: 15px;
    flex-grow: 1; /* Allow main content to grow */
}
.offices__name {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
    color: #2D2337;
}
.offices__intro-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
    margin-bottom: 0;
}
.offices__footer {
    margin-top: auto; /* Push footer to bottom */
    padding-top: 10px; /* Space above footer */
    border-top: 0px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.offices__tags span {
    background-color: transparant;
    padding: 3px 7px;
    font-size: 0.8em;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
}
.offices__link-icon-container .dashicons {
    font-size: 1.5em;
    color: #0073aa;
}

/* No Results / Error messages */
.no-results, .error {
    padding: 20px !important;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    text-align: center;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    text-align: center;
}
.pagination__button {
    padding: 8px 12px;
    margin: 2px 3px;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #2D2337;
    color: #2D2337 !important;
    text-decoration: none;
    border-radius: 0px;
	font-family: 'IBM Plex Sans';
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 17px;
	font-weight: 600;
}
.pagination__button:hover {
    background-color: #2D2337;
	color: #fff !important;
}
.pagination__button--active {
    background-color: #F04B4B;
    border-color: #F04B4B;
    color: #fff !important;
    font-weight: 600;
    border: 1px solid #F04B4B;
}
.pagination__button--active:hover {
    background-color: #2D2337;
    border-color: #2D2337;
    color: #fff !important;
    font-weight: 600;
    border: 1px solid #2D2337;
}
.pagination__button--prev .dashicons,
.pagination__button--next .dashicons {
    font-size: 1em;
    line-height: 1.4;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
}

.pagination__button--next .dashicons:after {
    font-size: 1em;
    line-height: 1.4;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
	content: "\f061";
}

.pagination__button--prev .dashicons:after {
    font-size: 1em;
    line-height: 1.4;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900;
	content: "\f060";
}

.pagination__button--prev,
.pagination__button--next {
	padding: 5px 12px;
	margin: 0 3px !important;
}

/* Mobile responsive aanpassingen */
@media (max-width: 768px) {
    .architecten-main-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .architecten-filters-column {
        flex: auto;
        width: 100%;
        position: relative;
        top: 0;
    }
    
    /* Show mobile search bar only on mobile */
    .mobile-search-bar {
        display: block !important;
    }
    
    .filters__mobile-toggle-bar {
        display: block !important;
    }
    
    .filters__content {
        display: none !important;
        transition: all 0.3s ease;
        padding: 15px;
        border-top: none;
    }
    
    .filters--show .filters__content { /* Class to be toggled by JS */
        display: block !important;
        animation: slideDown 0.3s ease;
    }
    
    .offices__container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Slide down animatie voor filters */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

/* Collapsible Filter Groups - Kennisbibliotheek styling */
.filter-group {
    margin-bottom: 20px;
}

.filter-group .filter-header {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

.filter-group .filter-title {
    flex-grow: 1;
}

.filter-group .toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    border-radius: 50%;
    background-color: #f0f0f0;
    position: absolute;
    right: 0;
}

.filter-group .toggle-icon.toggle-open {
    display: none;
}

.filter-group .toggle-icon.toggle-closed {
    display: inline-block;
}

.filter-group.is-open .toggle-icon.toggle-open {
    display: inline-block;
}

.filter-group.is-open .toggle-icon.toggle-closed {
    display: none;
}

.filter-group .filter-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s;
}

.filter-group.is-open .filter-options {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

/* Filter button styling binnen collapsible groups */
.filter-group .filters__button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-group .filters__button {
    padding: 8px 12px;
    font-family: 'IBM Plex Sans';
    background-color: #7D6969;
    border: 0px solid #ccc;
    color: #fff !important;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 8px;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 18px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase;
    padding: 5px 10px;
}

.filter-group .filters__button:hover {
    background-color: #7D6969;
    border-color: #bbb;
    opacity: .85;
}

.filter-group .filters__button.filters__button--selected {
    background-color: #2D2337;
    color: white;
    border-color: #005a87;
}


/* Filter Actions - buiten de collapsible groups */
.filter-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #7D6969;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

@media (min-width: 500px) {
    .filter-actions {
        flex-direction: row;
    }
}


@media only screen and (max-width: 560px) {
		
	#mijnbna-architecten-pagination .pagination__button {
  		font-size: 12px !important;
		margin: 2px !important;
	}
	
	#mijnbna-architecten-pagination .pagination__button--prev, 
	#mijnbna-architecten-pagination .pagination__button--next {
		padding: 6px 5px 2px 5px !important;
		margin: 0 !important;
	}
	
}
