/* Disco-Train — Locaties
   Zelfde kleurenpalet als de andere discotrain-*-plugins (bewust
   gedupliceerd i.p.v. een gedeeld bestand, zodat deze plugin los blijft van
   die andere — zie docs/disco-train-locaties-plan.md, punt 1). */
:root {
    --discotrain-accent: #ff007f;
    --discotrain-accent-hover: #e6006f;
    --discotrain-teal: #006b7d;
    --discotrain-dark: #0d0d0d;
    --discotrain-dark-alt: #1a1a1a;
    --discotrain-text: #ffffff;
    --discotrain-text-muted: #a3a3a3;
    --discotrain-border: rgba(255, 255, 255, 0.08);
    --discotrain-radius: 16px;
}

.discotrain-locaties-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.discotrain-locaties-empty {
    color: var(--discotrain-text-muted);
}

/* Eigen kopie van de gedeelde .discotrain-card-look (discotrain-mec-styling
   laadt site-breed, dus deze regels bestaan meestal al — maar zelfstandig
   houden, zelfde principe als de :root-variabelen hierboven, zodat deze
   plugin er ook goed uitziet als die andere ooit uit staat). */
.discotrain-card {
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: var(--discotrain-radius);
    padding: 24px;
    margin-bottom: 20px;
}

.discotrain-card,
.discotrain-card * {
    color: var(--discotrain-text) !important;
}

.discotrain-card a:hover {
    color: var(--discotrain-accent) !important;
}

.discotrain-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.discotrain-card-body {
    line-height: 1.65;
    color: var(--discotrain-text-muted) !important;
}

/* Kaart (Leaflet/OpenStreetMap, zie discotrain-locaties-map.js) — eigen
   kopie van dezelfde regels als discotrain-mec-styling, zelfde .discotrain-map
   klasse dus zelfde JS werkt op beide plekken. */
.discotrain-map {
    width: 100%;
    height: 320px;
    border-radius: calc(var(--discotrain-radius) - 4px);
    overflow: hidden;
    background: var(--discotrain-dark);
}

.discotrain-map,
.discotrain-map * {
    color: initial !important;
}

.discotrain-map .leaflet-popup-content {
    color: #1a1a1a !important;
    font-size: 13px;
}

.discotrain-map .leaflet-control-attribution a {
    color: #0078a8 !important;
}

/* Plaats/regio-filter (discotrain-locaties-filter.js) — zelfde donkere
   dropdown-stijl als de rest van de site (bijv. WPCF7-formuliervelden),
   scoped op de select zelf i.p.v. een generieke "select"-regel om andere
   dropdowns op de pagina niet aan te raken. */
.discotrain-locaties-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.discotrain-locaties-filter-select {
    background: var(--discotrain-dark-alt);
    color: var(--discotrain-text);
    border: 1px solid var(--discotrain-border);
    border-radius: calc(var(--discotrain-radius) - 4px);
    padding: 10px 16px;
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
}

.discotrain-locaties-filter-select:focus {
    outline: none;
    border-color: var(--discotrain-accent);
}

.discotrain-locaties-filter-reset {
    background: transparent;
    color: var(--discotrain-text-muted);
    border: 1px solid var(--discotrain-border);
    border-radius: calc(var(--discotrain-radius) - 4px);
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.discotrain-locaties-filter-reset:hover {
    border-color: var(--discotrain-accent);
    color: var(--discotrain-accent);
}

.discotrain-locaties-filter-empty {
    color: var(--discotrain-text-muted);
}

/* discotrain-locaties-filter.js verbergt gefilterde kaarten via het
   [hidden]-attribuut (semantisch correct, ook uit de a11y-tree) — maar
   "a.discotrain-locaties-card { display: block }" hieronder heeft een
   hogere specificiteit (0,1,1) dan de browser-eigen "[hidden] {
   display: none }" (0,1,0), dus zonder deze regel bleef [hidden] zichtbaar
   staan (live bevestigd: JS zette hidden=true, kaart bleef gewoon in
   beeld). !important forceert 'm te winnen, ongeacht welke andere regel
   hierna nog aan .discotrain-locaties-card toegevoegd wordt. */
.discotrain-locaties-filterable [hidden] {
    display: none !important;
}

/* Locatiekaart-grid ([discotrain_locaties] + archief) — vast 4 op een rij
   op desktop (klant-verzoek), i.p.v. auto-fit dat er hier bij deze
   kaartbreedte maar 3 paste. */
.discotrain-locaties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Tablet: 4 vaste kolommen worden dan te smal, terug naar 2. */
@media only screen and (max-width: 1024px) and (min-width: 768px) {
    .discotrain-locaties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Op mobiel minimaal 2 naast elkaar, zelfde reden/aanpak als
   discotrain-fotogalleries.css (klant-verzoek). */
@media only screen and (max-width: 767px) {
    .discotrain-locaties-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

a.discotrain-locaties-card {
    display: block;
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: var(--discotrain-radius);
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

a.discotrain-locaties-card:hover {
    border-color: var(--discotrain-accent);
}

.discotrain-locaties-card-image,
.discotrain-locaties-card-image-placeholder {
    background: var(--discotrain-dark);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discotrain-locaties-card-image-placeholder {
    color: var(--discotrain-text-muted);
}

.discotrain-locaties-card-image-placeholder svg {
    width: 40px;
    height: 40px;
}

/* !important nodig: Betheme's globale "img:not([src*='.svg']) { height:
   auto; }" heeft dezelfde specificiteit — zelfde categorie als
   [[feedback-theme-css-specificity]]. */
.discotrain-locaties-card-image img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.discotrain-locaties-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discotrain-locaties-card-title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--discotrain-text) !important;
}

.discotrain-locaties-card-address,
.discotrain-locaties-card-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--discotrain-text-muted) !important;
}

/* List-overzicht ([discotrain_locaties_list]) — zelfde patroon als
   discotrain-artiesten-list. */
.discotrain-locaties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discotrain-locaties-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--discotrain-dark-alt);
    border: 1px solid var(--discotrain-border);
    border-radius: var(--discotrain-radius);
    padding: 12px 16px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.discotrain-locaties-list-row:hover {
    border-color: var(--discotrain-accent);
}

.discotrain-locaties-list-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.discotrain-locaties-list-thumb .discotrain-locaties-card-image-placeholder {
    width: 100%;
    height: 100%;
}

/* !important nodig: zelfde Betheme-specificiteit-uitleg als hierboven bij
   .discotrain-locaties-card-image img. */
.discotrain-locaties-list-thumb img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

.discotrain-locaties-list-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discotrain-locaties-list-title {
    color: var(--discotrain-text) !important;
    font-weight: 600;
    font-size: 16px;
}

.discotrain-locaties-list-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--discotrain-text-muted) !important;
}

/* Archief- en single-pagina — page-width matches de rest van de site
   (1220px, zie de homepage/.section_wrapper). */
.discotrain-locaties-archive,
.discotrain-locaties-single {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    box-sizing: border-box;
}

.discotrain-locaties-archive-title {
    margin: 0 0 24px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--discotrain-text) !important;
}

.discotrain-locaties-archive-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 10px;
    background: var(--discotrain-accent);
    border-radius: 2px;
}

.discotrain-locaties-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--discotrain-text-muted) !important;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.discotrain-locaties-back-link:hover {
    color: var(--discotrain-accent) !important;
}

.discotrain-locaties-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.discotrain-locaties-header-image {
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
    border-radius: var(--discotrain-radius);
    overflow: hidden;
}

.discotrain-locaties-header-image img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.discotrain-locaties-header-body {
    flex: 1;
    min-width: 240px;
}

.discotrain-locaties-title {
    margin: 0 0 10px;
    font-size: 32px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--discotrain-text) !important;
}

.discotrain-locaties-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--discotrain-text-muted) !important;
    font-size: 14px;
    margin: 0 0 14px;
}

.discotrain-locaties-description {
    color: var(--discotrain-text-muted) !important;
    line-height: 1.6;
}

/* "Events op deze locatie" */
.discotrain-locaties-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.discotrain-locaties-event-card {
    display: block;
    text-decoration: none;
    background: var(--discotrain-dark);
    border-radius: calc(var(--discotrain-radius) - 4px);
    overflow: hidden;
    border: 1px solid var(--discotrain-border);
    transition: border-color 0.15s ease;
}

.discotrain-locaties-event-card:hover {
    border-color: var(--discotrain-accent);
}

.discotrain-locaties-event-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.discotrain-locaties-event-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discotrain-locaties-event-card-date {
    color: var(--discotrain-accent) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.discotrain-locaties-event-card-title {
    color: var(--discotrain-text) !important;
    font-size: 14px;
    font-weight: 600;
}

@media only screen and (max-width: 767px) {
    .discotrain-locaties-header {
        flex-direction: column;
    }

    .discotrain-locaties-header-image {
        width: 100%;
        max-width: 100%;
    }
}
