/* Bedrijven Manager Frontend Styles */

.bedrijven-list {
    margin: 20px 0;
}

.bedrijven-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.filter-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.filter-group label {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:hover {
    border-color: #0073aa;
}

.filter-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.clear-filter-btn {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-filter-btn:hover {
    background: #005a87;
}

/* No results message */
.bedrijven-no-results {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    display: none;
    width: 100%;
    max-width: 100%;
}

.bedrijven-no-results p {
    margin: 0;
    font-size: 1.1em;
    color: #666;
    font-style: italic;
}

.bedrijven-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.bedrijf-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
}

.bedrijf-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.bedrijf-logo {
    margin-bottom: 15px;
}

.bedrijf-logo img {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.bedrijf-content {
    text-align: center;
}

.bedrijf-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.bedrijf-title {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bedrijf-plaats {
    margin: 5px 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.bedrijf-maatregelen {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.maatregel-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.maatregel-tag:hover {
    background: #0073aa;
    color: #fff;
}

/* Bedrijf Archive Page */
.bedrijven-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bedrijven-archive .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.bedrijven-archive .page-title {
    font-size: 2.5em;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.bedrijven-archive .page-description {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.bedrijven-archive .bedrijven-content {
    margin-top: 30px;
}

/* Bedrijf Details Page */
.bedrijf-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Ensure consistent width for both single bedrijf and main site bedrijf templates */
.single-bedrijf .bedrijf-details,
.page .bedrijf-details,
.main-site-bedrijf-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Override theme layout for bedrijf pages */
.single-bedrijf .content-area,
.single-bedrijf .main-content,
.single-bedrijf .entry-content,
.single-bedrijf article {
    max-width: 800px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

/* Force full width for bedrijf content */
.single-bedrijf .container,
.single-bedrijf .wrapper,
.single-bedrijf .site-content {
    max-width: 100% !important;
    padding: 0 20px !important;
}

/* Specific styling for single bedrijf details */
.single-bedrijf-details {
    max-width: 800px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.bedrijf-article {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bedrijf-featured-image {
    margin-bottom: 20px;
    text-align: center;
}

.bedrijf-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.bedrijf-details .bedrijf-title {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
    padding-left: 20px;
}

.bedrijf-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.bedrijf-meta .bedrijf-adres,
.bedrijf-meta .bedrijf-plaats,
.bedrijf-meta .bedrijf-website,
.bedrijf-meta .bedrijf-email,
.bedrijf-meta .bedrijf-telefoon {
    font-size: 1.1em;
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
}

.bedrijf-meta .bedrijf-adres strong,
.bedrijf-meta .bedrijf-plaats strong,
.bedrijf-meta .bedrijf-website strong,
.bedrijf-meta .bedrijf-email strong,
.bedrijf-meta .bedrijf-telefoon strong {
    color: #0073aa;
    min-width: 100px;
    flex-shrink: 0;
}

.bedrijf-meta a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bedrijf-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

.bedrijf-excerpt {
    margin: 10px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
}



.bedrijf-maatregelen-detail {
    margin: 10px 0;
}

.bedrijf-maatregelen-detail h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.maatregelen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.maatregel-tag-detail {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.maatregel-tag-detail:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.bedrijf-description {
    margin-top: 20px;
    line-height: 1.8;
    color: #333;
}

.bedrijf-description h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.event-source {
    color: #0073aa;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    background: #e7f3ff;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.error-message h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

.error-message a {
    color: #0073aa;
    text-decoration: none;
}

.error-message a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .bedrijven-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bedrijf-item {
        padding: 15px;
    }
    
    .bedrijf-logo img {
        max-width: 120px;
        max-height: 80px;
    }
    
    .bedrijf-title {
        font-size: 1.2em;
    }
    
    .bedrijf-details .bedrijf-title {
        font-size: 1.6em;
    }
    
    .bedrijf-details {
        padding: 15px;
    }
    
    .bedrijven-archive {
        padding: 15px;
    }
    
    .bedrijven-archive .page-title {
        font-size: 2em;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .clear-filter-btn {
        width: 100%;
    }
    
    .bedrijven-no-results {
        padding: 20px;
        margin: 15px 0;
    }
    
    .bedrijven-no-results p {
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .bedrijf-item {
        padding: 12px;
    }
    
    .bedrijf-title {
        font-size: 1.1em;
    }
    
    .bedrijf-details .bedrijf-title {
        font-size: 1.4em;
    }
    
    .maatregel-tag {
        font-size: 0.75em;
        padding: 3px 6px;
    }
    
    .maatregel-tag-detail {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

/* Archive Page Styling */
.post-type-archive-event .page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.post-type-archive-event .page-title {
    font-size: 2.5em;
    color: #333;
    margin: 0;
}

/* Event Categories and Tags */
.event-categories,
.event-tags {
    margin: 10px 0;
    font-size: 0.9em;
}

.event-categories a,
.event-tags a {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.8em;
    transition: background 0.3s ease;
}

.event-categories a:hover,
.event-tags a:hover {
    background: #0073aa;
    color: #fff;
}

/* Event Search Filter */
.event-search-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.filter-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.event-filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-filter-form label {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.event-filter-form input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.3s ease;
}

.event-filter-form input[type="date"]:hover {
    border-color: #0073aa;
}

.event-filter-form input[type="date"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.event-filter-form button {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.event-filter-form button:hover {
    background: #005a87;
}

.events-container {
    margin-top: 20px;
}

/* Mobile styling for event filter */
@media (max-width: 768px) {
    .event-search-filter {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .filter-title {
        font-size: 1.1em;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .event-filter-form {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }
    
    .filter-group label {
        font-size: 0.9em;
        font-weight: 600;
        color: #555;
    }
    
    .event-filter-form input[type="date"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .event-filter-form button {
        width: 100%;
        padding: 12px 16px;
        font-size: 16px;
        margin-top: 5px;
    }
}

/* Bedrijven Pagination */
.bedrijven-pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.load-more-bedrijven {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.load-more-bedrijven:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.load-more-bedrijven:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile styling for pagination */
@media (max-width: 768px) {
    .bedrijven-pagination {
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .load-more-bedrijven {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }
}

/* Specifically hide the news header gb-element-d38e93e9 on bedrijf pages (not in footer) */
body.bedrijf-page-template .gb-element-d38e93e9,
body.main-site-bedrijf .gb-element-d38e93e9,
body.single-bedrijf-page .gb-element-d38e93e9,
body.bedrijf-archive-page .gb-element-d38e93e9,
body.bedrijf-page-template [class*="gb-element-"][class*="d38e93e9"],
body.main-site-bedrijf [class*="gb-element-"][class*="d38e93e9"],
body.single-bedrijf-page [class*="gb-element-"][class*="d38e93e9"],
body.bedrijf-archive-page [class*="gb-element-"][class*="d38e93e9"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* But keep it visible if it's in a footer */
body.bedrijf-page-template footer .gb-element-d38e93e9,
body.main-site-bedrijf footer .gb-element-d38e93e9,
body.single-bedrijf-page footer .gb-element-d38e93e9,
body.bedrijf-archive-page footer .gb-element-d38e93e9,
body.bedrijf-page-template .site-footer .gb-element-d38e93e9,
body.main-site-bedrijf .site-footer .gb-element-d38e93e9,
body.single-bedrijf-page .site-footer .gb-element-d38e93e9,
body.bedrijf-archive-page .site-footer .gb-element-d38e93e9,
body.bedrijf-page-template .footer .gb-element-d38e93e9,
body.main-site-bedrijf .footer .gb-element-d38e93e9,
body.single-bedrijf-page .footer .gb-element-d38e93e9,
body.bedrijf-archive-page .footer .gb-element-d38e93e9,
body.bedrijf-page-template footer [class*="gb-element-"][class*="d38e93e9"],
body.main-site-bedrijf footer [class*="gb-element-"][class*="d38e93e9"],
body.single-bedrijf-page footer [class*="gb-element-"][class*="d38e93e9"],
body.bedrijf-archive-page footer [class*="gb-element-"][class*="d38e93e9"],
body.bedrijf-page-template .site-footer [class*="gb-element-"][class*="d38e93e9"],
body.main-site-bedrijf .site-footer [class*="gb-element-"][class*="d38e93e9"],
body.single-bedrijf-page .site-footer [class*="gb-element-"][class*="d38e93e9"],
body.bedrijf-archive-page .site-footer [class*="gb-element-"][class*="d38e93e9"] {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    margin: inherit !important;
    padding: inherit !important;
    overflow: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
} 