/* Hiswa Deelnemer detail — D1 (hero + sticky sidebar) */

.hiswa-single-page {
    --color-primary: #1d4e78;
    --color-primary-hover: #163e60;
    --color-secondary: #30799c;
    --color-surface: #ffffff;
    --color-bg: #f5f5f5;
    --color-border: #e5e7eb;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-groene: #16a34a;
    --color-groene-bg: #dcfce7;
    --color-primeur-nl: #fbbf24;
    --color-primeur-eu: #fb923c;
    --color-primeur-world: #ef4444;

    background: var(--color-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    padding: 24px 0;
}

.hiswa-single-container {
    max-width: 1200px;
    width: 92%;
    margin: 0 auto;
}

.hiswa-back-link {
    display: inline-block;
    color: var(--color-secondary);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 16px;
}

.hiswa-back-link:hover { text-decoration: underline; }

/* Header */
.hiswa-single-header {
    background: var(--color-surface);
    border-top: 3px solid var(--color-primary);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hiswa-single-name {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hiswa-groene-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    margin-top: 8px;
    background: var(--color-groene-bg);
    color: var(--color-groene);
    border: 1px solid var(--color-groene);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
}

.hiswa-single-stand {
    text-align: right;
    flex-shrink: 0;
}

.hiswa-single-stand .hiswa-stand-label {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hiswa-single-stand .hiswa-stand-num {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-top: 2px;
}

.hiswa-single-stand .hiswa-stand-extra {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 4px;
}

/* Grid */
.hiswa-single-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: flex-start;
}

@media (max-width: 980px) {
    .hiswa-single-grid {
        grid-template-columns: 1fr;
    }
}

/* Main */
.hiswa-single-main { display: flex; flex-direction: column; gap: 16px; }

.hiswa-section {
    background: var(--color-surface);
    padding: 20px 24px;
    border-radius: 6px;
}

.hiswa-section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hiswa-company-info { font-size: 15px; line-height: 1.6; }
.hiswa-company-info p { margin: 0 0 12px 0; }

/* Galerij */
.hiswa-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .hiswa-gallery { grid-template-columns: repeat(2, 1fr); }
}

.hiswa-gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-bg);
}

.hiswa-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 200ms ease;
}

.hiswa-gallery a:hover img { transform: scale(1.04); }

/* Video's */
.hiswa-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.hiswa-video-card {
    background: var(--color-bg);
    border-radius: 6px;
    overflow: hidden;
}

.hiswa-video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.hiswa-video-aspect iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Boten */
.hiswa-boats { display: flex; flex-direction: column; gap: 8px; }

.hiswa-boat {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    background: var(--color-bg);
    padding: 12px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .hiswa-boat { grid-template-columns: 1fr; }
}

.hiswa-boat-img {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background: var(--color-surface);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiswa-boat-img img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.hiswa-boat-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.hiswa-boat-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.hiswa-boat-category {
    font-size: 12px;
    color: var(--color-muted);
}

.hiswa-boat-specs {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--color-text);
}

.hiswa-boat-specs li { margin: 2px 0; }
.hiswa-boat-specs strong { color: var(--color-muted); font-weight: 500; }

.hiswa-boat-badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

.hiswa-boat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.primeur-nl { background: var(--color-primeur-nl); color: #422006; }
.primeur-eu { background: var(--color-primeur-eu); }
.primeur-world { background: var(--color-primeur-world); }

/* Boot-video: play-knop op de foto + lightbox */
.hiswa-boat-img { position: relative; }

.hiswa-boat-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.hiswa-boat-play:hover,
.hiswa-boat-play:focus-visible {
    background: rgba(0, 0, 0, 0.82);
    transform: translate(-50%, -50%) scale(1.08);
}
.hiswa-boat-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    margin-left: 2px; /* optische centrering van de driehoek */
}

.hiswa-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hiswa-video-modal-inner {
    position: relative;
    width: min(960px, 100%);
}
.hiswa-video-modal-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}
.hiswa-video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.hiswa-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

/* Mede-exposanten */
.hiswa-co-exhibitors { list-style: none; margin: 0; padding: 0; }
.hiswa-co-exhibitors li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.hiswa-co-exhibitors li:last-child { border-bottom: 0; }
.hiswa-co-exhibitors a { color: var(--color-secondary); text-decoration: none; font-weight: 600; }
.hiswa-co-exhibitors a:hover { text-decoration: underline; }
.hiswa-co-stand { color: var(--color-muted); font-family: Georgia, serif; }

/* Sidebar */
.hiswa-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 24px;
}

@media (max-width: 980px) {
    .hiswa-single-sidebar { position: static; }
}

.hiswa-card {
    background: var(--color-surface);
    padding: 16px;
    border-radius: 6px;
}

.hiswa-card-title {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hiswa-card-logo {
    width: 100%;
    height: 80px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiswa-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hiswa-card-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.hiswa-card-contact { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.8; }
.hiswa-card-contact a { color: var(--color-secondary); text-decoration: none; }
.hiswa-card-contact a:hover { text-decoration: underline; }

.hiswa-map-button {
    display: block;
    background: var(--color-secondary);
    color: #fff;
    padding: 12px;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: background 150ms ease;
}

.hiswa-map-button:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Focus rings */
.hiswa-single-page a:focus-visible,
.hiswa-single-page button:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Mobiel header */
@media (max-width: 600px) {
    .hiswa-single-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .hiswa-single-name { font-size: 22px; }
    .hiswa-single-stand { text-align: left; }
}
