/* Hulpdienstvoertuigen.nl — Stylesheet */

/* Topbar */
.hdv-topbar {
    background: #162d4a;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    padding: 4px 0;
    text-align: center;
}
.hdv-topbar a { color: #fff; font-weight: 600; }
.hdv-topbar a:hover { text-decoration: underline; }

/* Header */
.hdv-header {
    background: #1e3a5f;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hdv-header .hdv-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.hdv-brand {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hdv-brand-icon { font-size: 1.4rem; }
.hdv-brand-tld { opacity: .7; }
.hdv-nav { display: flex; gap: 1.5rem; }
.hdv-nav a { color: rgba(255,255,255,.85); font-size: .95rem; text-decoration: none; }
.hdv-nav a:hover { color: #fff; text-decoration: none; }
.hdv-menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Container */
.hdv-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Hero */
.hdv-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.hdv-hero h1 { font-size: 2.2rem; margin-bottom: .75rem; letter-spacing: -.5px; }
.hdv-hero-sub { font-size: 1.05rem; opacity: .8; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Stats bar */
.hdv-stats-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1.25rem 0; }
.hdv-stats-row { display: flex; justify-content: center; gap: 3rem; }
.hdv-stat { text-align: center; }
.hdv-stat-number { display: block; font-size: 1.75rem; font-weight: 700; color: #1e3a5f; }
.hdv-stat-label { font-size: .85rem; color: #64748b; }

/* Main */
.hdv-main { flex: 1; padding: 2rem 0; }

/* Sections */
.hdv-section { margin-bottom: 2.5rem; }
.hdv-section h2 { font-size: 1.4rem; margin-bottom: 1rem; color: #1e3a5f; }

/* Grid */
.hdv-grid { display: grid; gap: 1rem; }
.hdv-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.hdv-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 1rem;
}
.hdv-card h2 { font-size: 1.2rem; margin-bottom: 1rem; color: #1e3a5f; }
.hdv-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.hdv-card-link { display: block; text-decoration: none !important; color: inherit; transition: box-shadow .2s, transform .2s; }
.hdv-card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-2px); }
.hdv-card-number { font-size: 2rem; font-weight: 700; color: #1e3a5f; }
.hdv-card-label { font-size: .85rem; color: #64748b; }
.hdv-card-stats { display: flex; gap: 1rem; font-size: .9rem; color: #64748b; margin-top: .5rem; }
.hdv-discipline-card { border-left: 4px solid #1e3a5f; }

/* Badges */
.hdv-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    background: #64748b;
}
.hdv-badge-sm { font-size: .7rem; padding: .15rem .4rem; }
.hdv-badge-brandweer { background: #c0392b; }
.hdv-badge-ambulance { background: #f39c12; }
.hdv-badge-politie { background: #2980b9; }
.hdv-badge-kmar { background: #27ae60; }
.hdv-badge-reddingsbrigade { background: #e67e22; }
.hdv-badge-dares { background: #8e44ad; }

/* Tables */
.hdv-table-wrap { overflow-x: auto; }
.hdv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hdv-table th { text-align: left; padding: .6rem .75rem; border-bottom: 2px solid #e2e8f0; color: #64748b; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.hdv-table td { padding: .6rem .75rem; border-bottom: 1px solid #f1f5f9; }
.hdv-table tbody tr:hover { background: #f8fafc; }

/* Breadcrumb */
.hdv-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: #64748b; margin-bottom: 1.5rem; flex-wrap: wrap; }
.hdv-breadcrumb a { color: #1e3a5f; }

/* Page header */
.hdv-page-header { margin-bottom: 1.5rem; }
.hdv-page-header h1 { font-size: 1.8rem; color: #1e3a5f; margin-bottom: .25rem; }

/* Text utilities */
.hdv-text-muted { color: #64748b; }

/* Detail grid */
.hdv-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.hdv-detail-main { min-width: 0; }

/* Vehicle header */
.hdv-vehicle-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.hdv-vehicle-header h1 { font-size: 1.6rem; color: #1e3a5f; }

/* Description list */
.hdv-dl { display: grid; grid-template-columns: 140px 1fr; gap: .4rem .75rem; font-size: .9rem; }
.hdv-dl dt { font-weight: 600; color: #64748b; }
.hdv-dl dd { color: #1a1a2e; }

/* Incident list */
.hdv-incident-list { list-style: none; }
.hdv-incident-list li { border-bottom: 1px solid #f1f5f9; }
.hdv-incident-list li:last-child { border-bottom: none; }
.hdv-incident-list a { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .9rem; padding: .5rem 0; color: #1a1a2e; }
.hdv-incident-list a:hover { background: #f8fafc; text-decoration: none; }
.hdv-incident-date { color: #64748b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdv-incident-city { color: #64748b; font-size: .85rem; }
.hdv-powered-by { margin-top: .75rem; font-size: .8rem; color: #94a3b8; }

/* Vehicle list (sidebar) */
.hdv-vehicle-list { list-style: none; }
.hdv-vehicle-list li { padding: .35rem 0; border-bottom: 1px solid #f1f5f9; }
.hdv-vehicle-list li:last-child { border-bottom: none; }
.hdv-vehicle-list a { font-size: .85rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

/* Discipline group */
.hdv-disc-group-title {
    display: flex; align-items: center; gap: .5rem;
    margin: 1rem 0 .5rem; padding-top: .75rem;
    border-top: 1px solid #f1f5f9; font-size: .95rem;
}
.hdv-disc-group-title:first-of-type { border-top: none; margin-top: .5rem; }
.hdv-station-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .25rem .75rem; margin-bottom: .5rem;
}
.hdv-station-link {
    font-size: .9rem; padding: .3rem 0;
    color: #1e3a5f; display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hdv-station-link:hover { text-decoration: underline; }

/* Clickable rows */
.hdv-row-link { cursor: pointer; }
.hdv-row-link:hover { background: #f1f5f9; }

/* Collapsible */
.hdv-collapsible summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.hdv-collapsible summary h2 { margin-bottom: 0; }

/* Pagination */
.hdv-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; font-size: .9rem; }
.hdv-pagination a { color: #1e3a5f; font-weight: 600; }

/* Link back */
.hdv-link-back { margin-top: 1.5rem; font-size: .9rem; }

/* Footer */
.hdv-footer { background: #1e3a5f; color: rgba(255,255,255,.7); padding: 1.5rem 0; text-align: center; font-size: .85rem; }
.hdv-footer a { color: #fff; }
.hdv-footer p + p { margin-top: .25rem; }

/* Responsive */
@media (max-width: 768px) {
    .hdv-grid-3 { grid-template-columns: 1fr; }
    .hdv-detail-grid { grid-template-columns: 1fr; }
    .hdv-stats-row { gap: 1.5rem; }
    .hdv-stat-number { font-size: 1.3rem; }
    .hdv-hero h1 { font-size: 1.5rem; }
    .hdv-nav { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: #1e3a5f; padding: 1rem; gap: .75rem; box-shadow: 0 4px 8px rgba(0,0,0,.2); }
    .hdv-nav.open { display: flex; }
    .hdv-menu-toggle { display: block; }
    .hdv-dl { grid-template-columns: 120px 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hdv-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hdv-detail-grid { grid-template-columns: 1fr 260px; }
}

/* SEO & CTA elements */
.hdv-intro-text {
    color: #444;
    font-size: .95rem;
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 1rem;
}
.hdv-cta-box {
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: #eef6ff;
    border-left: 3px solid #2980b9;
    border-radius: 4px;
    font-size: .9rem;
    color: #1a1a2e;
    line-height: 1.6;
}
.hdv-internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: .9rem;
}
.hdv-section-link {
    margin-top: .75rem;
    font-size: .9rem;
}
.hdv-h1-sub {
    font-weight: 400;
    font-size: .85em;
    color: #555;
}
.hdv-card-link {
    display: block;
    transition: box-shadow .15s;
}
.hdv-card-link:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    text-decoration: none;
}

/* Sidebar vehicle list */
.hdv-sidebar-vehicles { list-style: none; }
.hdv-sidebar-vehicles li { border-bottom: 1px solid #f1f5f9; }
.hdv-sidebar-vehicles li:last-child { border-bottom: none; }
.hdv-sidebar-vehicles a {
    display: block; padding: .4rem 0; font-size: .85rem; color: #1e3a5f;
}
.hdv-sidebar-vehicles a:hover { background: #f8fafc; text-decoration: none; }
.hdv-sidebar-vehicles strong { margin-right: .4rem; }
.hdv-sidebar-vehicles span { color: #64748b; }

/* Media upload popover fix */
.hdv-card { position: relative; overflow: visible; }
.media-popover-wrap { position: relative; z-index: 50; }
.media-popover {
    z-index: 51;
    position: absolute;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    padding: 1rem;
    margin-top: .5rem;
}
