/* ============================================================
   Brugverhuren.nl - Main Stylesheet
   ============================================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2a5080;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }

.btn-secondary { background: var(--primary); color: white; }
.btn-secondary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); color: var(--primary); transform: translateY(-1px); }

/* Header */
.header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo:hover { color: white; }
.logo span { color: var(--accent); }

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

.nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 15px;
}

.nav a:hover { color: white; background: rgba(255,255,255,0.1); }
.nav a.active { color: white; background: rgba(255,255,255,0.15); }

.nav .btn-primary { color: white; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight { color: var(--accent); }

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Search Bar */
.search-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.search-bar select,
.search-bar input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    color: var(--text);
    background: var(--bg-light);
    min-width: 0;
}

.search-bar select:focus,
.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-bar .btn { white-space: nowrap; flex-shrink: 0; }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--primary); color: white; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-dark .section-header h2 { color: white; }

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p { color: rgba(255,255,255,0.8); }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.card-image {
    height: 200px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-size: 48px;
    position: relative;
}

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

.card-body { padding: 20px; }
.card-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.card-body p { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.card-meta span { display: flex; align-items: center; gap: 4px; }

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.card-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-featured { background: var(--accent); color: white; }
.badge-highlighted { background: #dbeafe; color: #1d4ed8; }
.badge-available { background: #d1fae5; color: #059669; }
.badge-unavailable { background: #fee2e2; color: #dc2626; }

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

/* Province Browser */
.province-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.province-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}

.province-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.province-card .count {
    background: var(--bg-gray);
    color: var(--text-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Bridge Types */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
}

.type-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.type-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.type-card h3 { font-size: 16px; color: var(--primary); }
.type-card .count { color: var(--text-light); font-size: 14px; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 { font-size: 36px; margin-bottom: 15px; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular::before {
    content: 'Meest gekozen';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin: 20px 0;
}

.pricing-price small { font-size: 18px; font-weight: 400; color: var(--text-light); }

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

/* Filter Bar */
.filter-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-header h2 { font-size: 20px; color: var(--primary); }

.results-header select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
}

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

.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination button:hover { border-color: var(--accent); color: var(--accent); }
.pagination button.active { background: var(--accent); color: white; border-color: var(--accent); }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Detail Page */
.detail-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.detail-images {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-gray);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--text-lighter);
}

.detail-images img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.detail-info .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.detail-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

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

.spec-item label { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.spec-item span { font-size: 15px; font-weight: 600; }

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
}

.contact-form h3 { font-size: 20px; color: var(--primary); margin-bottom: 20px; }

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Company Profile */
.company-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 40px;
}

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    flex-shrink: 0;
}

.company-info h1 { font-size: 28px; color: var(--primary); margin-bottom: 4px; }
.company-info p { color: var(--text-light); }

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 { color: white; margin-bottom: 16px; font-size: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Alert */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-light); }
.faq-question::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform 0.2s; }
.faq-item.open .faq-question::after { content: '-'; }

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.open .faq-answer { padding: 0 20px 18px; max-height: 300px; }

/* Success Page */
.success-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4, .province-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }

    .nav.open { display: flex; }
    .nav a { padding: 12px 16px; width: 100%; }

    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .hero { padding: 50px 0; }

    .search-bar { flex-direction: column; }
    .search-bar select, .search-bar input { min-width: unset; }

    .grid-2, .grid-3, .grid-4, .province-grid, .type-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular { transform: none; }

    .detail-header { grid-template-columns: 1fr; }
    .detail-images { height: 250px; }

    .filter-bar { flex-direction: column; }
    .filter-group { min-width: unset; }

    .section-header h2 { font-size: 28px; }
    .section { padding: 50px 0; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .company-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .pricing-price { font-size: 36px; }
    .grid-3 { grid-template-columns: 1fr; }
    .province-grid { grid-template-columns: repeat(2, 1fr); }
}
