/**
 * Single verhaal – twee-koloms indeling: sticky context-sidebar (links) + tekst (rechts).
 * Huisstijl In mijn Buurt: #db0e12, Pathway Gothic One (koppen), Cardo (body).
 *
 * @package understrap
 */

/* ---------------------------------------------------------- layout */

.ve-layout {
    padding: 10px 0;
}

/* Volgorde: mobiel tekst eerst, dan context; desktop context links, tekst rechts. */
.ve-layout .ve-col  { order: 2; }
.ve-layout .ve-text { order: 1; }

@media (min-width: 768px) {
    .ve-layout .ve-col  { order: 1; }
    .ve-layout .ve-text { order: 2; }

    .ve-sidebar {
        position: sticky;
        top: 90px;
    }
}

.ve-col {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .ve-col { margin-top: 0; }
}

/* ---------------------------------------------------------- sidebar algemeen */

.ve-sidebar h3 {
    font-family: "Pathway Gothic One", sans-serif;
    font-weight: 300;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1.25rem;
    color: #1f1f1f;
    margin: 0 0 12px;
}

.ve-context,
.ve-explore {
    margin-bottom: 26px;
}

/* ---------------------------------------------------------- info-kaart */

.ve-card {
    background: #f7f7f5;
    border-radius: 14px;
    padding: 20px 20px;
}

.ve-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
}

.ve-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
}

.ve-fact-ico {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #db0e12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ve-fact-body {
    min-width: 0;
}

.ve-fact dt {
    font-family: "Pathway Gothic One", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    color: #8a8a8a;
    margin-bottom: 2px;
}

.ve-fact dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #222;
    word-wrap: break-word;
}

.ve-fact dd a {
    color: #db0e12;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.ve-fact dd a:hover {
    border-bottom-color: #db0e12;
}

.ve-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------- ontdek meer (gestapeld) */

.ve-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ve-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid #e2e2e0;
    color: #222;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ve-chip:hover {
    border-color: #db0e12;
    color: #db0e12;
    transform: translateX(3px);
}

.ve-chip .fa {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
    opacity: 0.85;
}

.ve-chip-primary {
    background: #db0e12;
    border-color: #db0e12;
    color: #fff;
}

.ve-chip-primary:hover {
    background: #b30c0f;
    border-color: #b30c0f;
    color: #fff;
    transform: translateX(0);
}

.ve-chip-primary .fa {
    opacity: 1;
}

/* ---------------------------------------------------------- kaart in sidebar */

.ve-map-section {
    margin-bottom: 26px;
}

.ve-map-adres {
    font-size: 0.92rem;
    color: #555;
    margin: 0 0 8px;
}

.ve-map-adres .fa {
    color: #db0e12;
    margin-right: 4px;
}

/* #map.ve-map i.p.v. .ve-map: het thema heeft #map { height:100% } dat anders wint */
#map.ve-map {
    height: 250px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    position: relative;
    z-index: 0;
}

/* ---------------------------------------------------------- delen (icoon-knoppen) */

.ve-share {
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.ve-share-label {
    display: block;
    font-family: "Pathway Gothic One", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: #8a8a8a;
    margin-bottom: 12px;
}

.ve-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ve-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e2e2e0;
    background: #fff;
    color: #444;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ve-share-btn:hover {
    color: #fff;
    border-color: transparent;
}

.ve-wa:hover     { background: #25d366; }
.ve-fb:hover     { background: #1877f2; }
.ve-mail:hover   { background: #db0e12; }
.ve-copy:hover   { background: #333; }
.ve-print:hover  { background: #333; }
.ve-native:hover { background: #db0e12; }

.ve-share-btn.is-copied {
    background: #087941;
    color: #fff;
    border-color: transparent;
}

.ve-native { display: none; }

/* ---------------------------------------------------------- rechter kolom (tekst) */

@media (min-width: 768px) {
    .ve-text {
        padding-left: 34px;
    }
}

/* ============================================================
   Gerelateerde verhalen – zelfde kaartstijl als #vz-results
   (spiegelt de .vz-result-item-styling uit verhalen-zoeken.css)
   ============================================================ */

#related-verhalen-wrapper .row + .row {
    margin-top: 6px;
}

#related-verhalen-wrapper .col-md-4 {
    margin-bottom: 26px;
    display: flex;
}

#related-verhalen-wrapper .story-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    padding: 0 20px 22px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #666;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#related-verhalen-wrapper .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* afbeelding – full-bleed bovenaan met hover-zoom */
#related-verhalen-wrapper .entry-header {
    position: relative;
    margin: 0;
}

#related-verhalen-wrapper .entry-header > a:first-child {
    display: block;
    margin: 0 -20px 14px;
    overflow: hidden;
    background: #f3f3f1;
    line-height: 0;
}

#related-verhalen-wrapper .entry-header > a:first-child:empty {
    display: none;
}

#related-verhalen-wrapper .entry-header > a:first-child img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

#related-verhalen-wrapper .story-card:hover .entry-header > a:first-child img {
    transform: scale(1.06);
}

/* thema-badge */
#related-verhalen-wrapper .thema-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f7f7f5;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

#related-verhalen-wrapper .thema-link:hover {
    color: #db0e12;
}

#related-verhalen-wrapper .thema-link .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* titel */
#related-verhalen-wrapper .entry-header > a:last-child {
    display: block;
    text-decoration: none;
}

#related-verhalen-wrapper .entry-header h4 {
    margin: 0;
    text-align: left;
    font-family: "Pathway Gothic One", sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #1f1f1f;
    transition: color 0.15s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#related-verhalen-wrapper .entry-header > a:last-child:hover h4 {
    color: #db0e12;
}

/* locatie */
#related-verhalen-wrapper .story-card > span {
    display: block;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #db0e12;
    margin-top: 9px;
    line-height: 1.3;
}

#related-verhalen-wrapper .story-card > span:empty {
    display: none;
    margin: 0;
}

#related-verhalen-wrapper .story-card > span a {
    color: inherit;
    text-decoration: none;
}

#related-verhalen-wrapper .story-card > span a:hover {
    text-decoration: underline;
}

/* scheiding + meta-tekst */
#related-verhalen-wrapper .story-card > hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #eee;
}

#related-verhalen-wrapper .story-card > p {
    margin: 0;
}

@media (max-width: 575px) {
    #related-verhalen-wrapper .story-card {
        padding: 0 14px 16px;
    }

    #related-verhalen-wrapper .entry-header > a:first-child {
        margin: 0 -14px 12px;
    }

    #related-verhalen-wrapper .entry-header > a:first-child img {
        height: 150px;
    }

    #related-verhalen-wrapper .entry-header h4 {
        font-size: 1.2rem;
    }
}
