/**
 * Ensemble Shortcodes - Locations
 * 
 * Styles for location-related shortcodes:
 * - [ensemble_locations] - Locations Grid/List
 * - Single Location components
 * - Location Row component
 * - Venue Header
 * 
 * @package Ensemble
 * @subpackage Shortcodes
 * @version 3.0.0
 * 
 * DEPENDENCIES:
 * - _base.css
 * - _components.css
 * 
 * CONDITIONAL LOADING:
 * Only loaded when location shortcodes are present on page.
 */

/* ============================================
   LOCATIONS LIST WRAPPER
   ============================================ */

.ensemble-locations-list {
    margin: var(--ensemble-section-spacing, 48px) 0;
}

/* ============================================
   LOCATION TYPE BADGE
   ============================================ */

.ensemble-location-type {
    display: inline-block;
    padding: var(--ensemble-badge-padding-v, 4px) var(--ensemble-badge-padding-h, 12px);
    background: var(--ensemble-secondary, #764ba2);
    color: var(--ensemble-button-text, #ffffff);
    border-radius: var(--ensemble-badge-radius, 12px);
    font-size: var(--ensemble-small-size, 14px);
    margin-bottom: 12px;
}

/* ============================================
   LOCATION ADDRESS
   ============================================ */

.ensemble-location-address {
    margin: 12px 0;
    color: var(--ensemble-text-secondary, #718096);
    font-size: var(--ensemble-body-size, 16px);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ensemble-location-address .dashicons {
    font-size: var(--ensemble-lg-size, 18px);
    width: 18px;
    height: 18px;
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
    margin-top: 2px;
    flex-shrink: 0;
}

/* Clickable address link */
.ensemble-location-address a {
    color: inherit;
    text-decoration: none;
}

.ensemble-location-address a:hover {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
    text-decoration: underline;
}

/* ============================================
   LOCATION DESCRIPTION
   ============================================ */

.ensemble-location-description {
    margin: 12px 0;
    color: var(--ensemble-text-secondary, #718096);
    font-size: var(--ensemble-body-size, 16px);
    line-height: var(--ensemble-line-height, 1.6);
}

.ensemble-location-description p {
    margin: 0 0 12px 0;
}

.ensemble-location-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LOCATION EVENTS (on card)
   ============================================ */

.ensemble-location-events {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ensemble-card-border, #e2e8f0);
}

.ensemble-location-events h5 {
    margin: 0 0 12px 0;
    font-size: var(--ensemble-body-size, 16px);
    font-weight: var(--ensemble-button-weight, 600);
    color: var(--ensemble-text, #1a202c);
}

.ensemble-location-events ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ensemble-location-events li {
    margin-bottom: 8px;
}

.ensemble-location-events a {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
    text-decoration: none;
    font-size: var(--ensemble-small-size, 14px);
}

.ensemble-location-events a:hover {
    text-decoration: underline;
}

/* ============================================
   LOCATION LIST LAYOUT
   Alternative to grid - horizontal cards
   ============================================ */

.ensemble-locations-list.ensemble-layout-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ensemble-locations-list.ensemble-layout-list .ensemble-location-card {
    flex-direction: row;
    align-items: center;
}

.ensemble-locations-list.ensemble-layout-list .ensemble-location-image {
    width: 120px;
    height: 120px;
    margin: 0;
    margin-right: 20px;
    border-radius: var(--ensemble-card-radius, 12px);
    flex-shrink: 0;
}

.ensemble-locations-list.ensemble-layout-list .ensemble-location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   SINGLE LOCATION
   ============================================ */

.ensemble-single-location {
    margin: var(--ensemble-section-spacing, 48px) 0;
}

/* Header */
.ensemble-single-location .ensemble-location-header {
    margin-bottom: 24px;
}

/* Featured Image */
.ensemble-single-location .ensemble-location-featured-image {
    margin-bottom: 24px;
    border-radius: var(--ensemble-card-radius, 12px);
    overflow: hidden;
}

.ensemble-single-location .ensemble-location-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LOCATION MAP
   ============================================ */

.ensemble-location-map {
    margin: 24px 0;
    border-radius: var(--ensemble-card-radius, 12px);
    overflow: hidden;
}

.ensemble-location-map iframe,
.ensemble-location-map .es-map-container {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* Map placeholder */
.ensemble-location-map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--ensemble-placeholder-bg, var(--ensemble-surface, #ffffff));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ensemble-text-muted, #a0aec0);
}

.ensemble-location-map-placeholder .dashicons {
    font-size: var(--ensemble-hero-size, 72px);
    width: 48px;
    height: 48px;
}

/* ============================================
   LOCATION CONTACT INFO
   ============================================ */

.ensemble-location-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.ensemble-location-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--ensemble-body-size, 16px);
    color: var(--ensemble-text-secondary, #718096);
}

.ensemble-location-contact-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: var(--ensemble-lg-size, 18px);
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
    flex-shrink: 0;
}

.ensemble-location-contact-item a {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
    text-decoration: none;
}

.ensemble-location-contact-item a:hover {
    text-decoration: underline;
}

/* ============================================
   LOCATION AMENITIES / FEATURES
   ============================================ */

.ensemble-location-amenities {
    margin: 16px 0;
}

.ensemble-location-amenities h4 {
    margin: 0 0 12px 0;
    font-size: var(--ensemble-body-size, 16px);
    font-weight: var(--ensemble-button-weight, 600);
    color: var(--ensemble-text, #1a202c);
}

.ensemble-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ensemble-amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: var(--ensemble-badge-padding-v, 4px) var(--ensemble-badge-padding-h, 10px);
    background: var(--ensemble-badge-bg, var(--ensemble-surface, #ffffff));
    color: var(--ensemble-badge-text, var(--ensemble-text, #1a202c));
    border-radius: var(--ensemble-badge-radius, 4px);
    font-size: var(--ensemble-small-size, 14px);
}

.ensemble-amenity-tag .dashicons {
    width: 14px;
    height: 14px;
    font-size: var(--ensemble-small-size, 14px);
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
}

/* ============================================
   LOCATION CAPACITY
   ============================================ */

.ensemble-location-capacity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--ensemble-surface, #ffffff);
    border-radius: var(--ensemble-radius, 8px);
    font-size: var(--ensemble-body-size, 16px);
    color: var(--ensemble-text, #1a202c);
}

.ensemble-location-capacity .dashicons {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
}

.ensemble-location-capacity strong {
    font-weight: var(--ensemble-button-weight, 600);
}

/* ============================================
   VENUE HEADER (Custom names and genres)
   ============================================ */

.es-venue-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.es-venue-name {
    font-size: var(--ensemble-h3-size, 24px);
    font-weight: var(--ensemble-heading-weight, 700);
    color: var(--ensemble-text, #1a202c);
    margin: 0;
}

.es-venue-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-venue-genre {
    display: inline-block;
    padding: var(--ensemble-badge-padding-v, 4px) var(--ensemble-badge-padding-h, 12px);
    background: var(--ensemble-primary, #667eea);
    color: var(--ensemble-button-text, #ffffff);
    font-size: var(--ensemble-xs-size, 12px);
    border-radius: var(--ensemble-badge-radius, 20px);
}

/* ============================================
   LOCATION CARD VARIANTS
   ============================================ */

/* Compact card */
.ensemble-location-card--compact {
    padding: 16px;
}

.ensemble-location-card--compact .ensemble-location-image img {
    height: 150px;
}

/* Wide card (for featured locations) */
.ensemble-location-card--wide {
    flex-direction: row;
}

.ensemble-location-card--wide .ensemble-location-image {
    width: 40%;
    max-width: 300px;
    margin: 0;
    margin-right: 24px;
    border-radius: var(--ensemble-card-radius, 12px);
}

.ensemble-location-card--wide .ensemble-location-image img {
    height: 200px;
}

.ensemble-location-card--wide .ensemble-location-content {
    flex: 1;
}

/* ============================================
   LOCATION HOURS
   ============================================ */

.ensemble-location-hours {
    margin: 16px 0;
    padding: 16px;
    background: var(--ensemble-surface, #ffffff);
    border-radius: var(--ensemble-radius, 8px);
}

.ensemble-location-hours h4 {
    margin: 0 0 12px 0;
    font-size: var(--ensemble-body-size, 16px);
    font-weight: var(--ensemble-button-weight, 600);
    color: var(--ensemble-text, #1a202c);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ensemble-location-hours h4 .dashicons {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #667eea));
}

.ensemble-hours-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: var(--ensemble-small-size, 14px);
}

.ensemble-hours-day {
    font-weight: var(--ensemble-body-weight, 400);
    color: var(--ensemble-text, #1a202c);
}

.ensemble-hours-time {
    color: var(--ensemble-text-secondary, #718096);
}

.ensemble-hours-closed {
    color: var(--ensemble-text-muted, #a0aec0);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CANONICAL LOCATION CARD (Phase 4) — via ensemble_render_location_card().
   Variants simple|list|compact. --ensemble-* only. Grid container comes from
   _components.css (.ensemble-locations-list.ensemble-columns-N). Skinnable via
   body.es-layout-{set} .ensemble-location-card …
   ═══════════════════════════════════════════════════════════════════════════ */

.ensemble-locations-list.ensemble-layout-list {
    display: flex;
    flex-direction: column;
    gap: var(--ensemble-grid-gap, 16px);
}
.ensemble-locations-list.ensemble-layout-list > .ensemble-location-card { width: 100%; }

.ensemble-location-card {
    position: relative;
    background: var(--ensemble-card-bg, #ffffff);
    color: var(--ensemble-text, #1a1a1a);
    border: var(--ensemble-card-border-width, 1px) solid var(--ensemble-card-border, rgba(0,0,0,0.08));
    border-radius: var(--ensemble-card-radius, 12px);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ensemble-location-card a { text-decoration: none; color: inherit; }
.ensemble-location-card .ensemble-location-title { margin: 0; color: inherit; font-family: var(--ensemble-heading-font, inherit); }
.ensemble-location-card .ensemble-location-type {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
    color: var(--ensemble-secondary, #6b6b76);
}
.ensemble-location-card .ensemble-location-city {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #e91e8c)); font-weight: 600;
}
.ensemble-location-card .ensemble-location-meta { color: var(--ensemble-muted-text, #6b6b76); font-size: 0.9rem; }
.ensemble-location-card .ensemble-location-events { color: var(--ensemble-muted-text, #6b6b76); font-size: 0.85rem; }
.ensemble-location-card .ensemble-location-placeholder { width: 100%; height: 100%; min-height: 140px; background: var(--ensemble-muted-bg, #f0f0f3); }
.ensemble-location-card .ensemble-location-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    padding: 4px 10px; font-size: 0.72rem; font-weight: 600;
    background: var(--ensemble-primary, #e91e8c); color: #fff;
    border-radius: var(--ensemble-badge-radius, 4px);
}
.ensemble-location-card .ensemble-location-actions { margin-top: 12px; }
.ensemble-location-card .ensemble-btn {
    display: inline-block; padding: 8px 16px; border-radius: var(--ensemble-button-radius, 6px);
    font-size: 0.85rem; font-weight: 600; transition: opacity 0.2s ease;
}
.ensemble-location-card .ensemble-btn-primary { background: var(--ensemble-primary, #e91e8c); color: #fff; }
.ensemble-location-card .ensemble-btn:hover { opacity: 0.85; }

/* --- simple --- */
.ensemble-location-card--simple .ensemble-location-card-inner { display: block; }
.ensemble-location-card--simple .ensemble-location-image { position: relative; overflow: hidden; background: var(--ensemble-muted-bg, #f0f0f3); }
.ensemble-location-card--simple.ensemble-location-ratio-landscape .ensemble-location-image { aspect-ratio: 16 / 9; }
.ensemble-location-card--simple.ensemble-location-ratio-square .ensemble-location-image { aspect-ratio: 1 / 1; }
.ensemble-location-card--simple.ensemble-location-ratio-portrait .ensemble-location-image { aspect-ratio: 4 / 5; }
.ensemble-location-card--simple .ensemble-location-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.ensemble-location-card--simple:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.ensemble-location-card--simple:hover .ensemble-location-image img { transform: scale(1.05); }
.ensemble-location-card--simple .ensemble-location-content { display: flex; flex-direction: column; gap: 6px; padding: var(--ensemble-card-padding, 18px); }
.ensemble-location-card--simple .ensemble-location-title { font-size: 1.15rem; line-height: 1.3; }

/* --- list --- */
.ensemble-location-card--list { display: flex; gap: 16px; align-items: stretch; }
.ensemble-location-card--list .ensemble-location-thumb { position: relative; flex: 0 0 34%; max-width: 220px; overflow: hidden; background: var(--ensemble-muted-bg, #f0f0f3); }
.ensemble-location-card--list .ensemble-location-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ensemble-location-card--list .ensemble-location-content { display: flex; flex-direction: column; gap: 6px; padding: var(--ensemble-card-padding, 16px); flex: 1; min-width: 0; }
.ensemble-location-card--list .ensemble-location-title { font-size: 1.1rem; line-height: 1.3; }
.ensemble-location-card--list .ensemble-location-excerpt { color: var(--ensemble-muted-text, #6b6b76); font-size: 0.92rem; }
.ensemble-location-card--list:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
@media (max-width: 560px) {
    .ensemble-location-card--list { flex-direction: column; }
    .ensemble-location-card--list .ensemble-location-thumb { flex-basis: auto; max-width: none; aspect-ratio: 16/9; }
}

/* --- compact --- */
.ensemble-location-card--compact { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.ensemble-location-card--compact .ensemble-location-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ensemble-location-card--compact .ensemble-location-title { font-size: 1rem; }
.ensemble-location-card--compact:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

/* ═══════════════════════════════════════════════════════════════════════════
   CANONICAL SINGLE LOCATION (Phase 4) — via ensemble_render_location_full().
   Mobile-first single column; skin contract via .ensemble-location-section--*.
   ═══════════════════════════════════════════════════════════════════════════ */

.ensemble-single-location-wrapper {
    max-width: var(--ensemble-content-width, 860px);
    margin: 0 auto;
    padding: 0 var(--ensemble-content-padding, 20px);
    color: var(--ensemble-text, #1a1a1a);
    font-family: var(--ensemble-body-font, inherit);
}

.ensemble-single-location {
    display: flex;
    flex-direction: column;
    gap: var(--ensemble-section-gap, 48px);
    padding: 24px 0 64px;
}

.ensemble-single-location .ensemble-location-section { min-width: 0; }

.ensemble-single-location .ensemble-location-section-title {
    margin: 0 0 20px;
    font-family: var(--ensemble-heading-font, inherit);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ensemble-muted-text, #6b6b76);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ensemble-card-border, rgba(0, 0, 0, 0.08));
}

.ensemble-location-section--hero { margin: 0 calc(-1 * var(--ensemble-content-padding, 20px)); }
.ensemble-location-section--hero .ensemble-location-hero-image {
    display: block; width: 100%; max-height: 62vh; object-fit: cover;
}

.ensemble-location-section--header .ensemble-location-meta {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
    font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ensemble-muted-text, #6b6b76); margin-bottom: 14px;
}
.ensemble-location-section--header .ensemble-location-type { color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #1a1a1a)); font-weight: 600; }
.ensemble-location-section--header .ensemble-location-title {
    margin: 0; font-family: var(--ensemble-heading-font, inherit);
    font-size: clamp(1.9rem, 5vw, 3rem); font-weight: var(--ensemble-heading-weight, 700); line-height: 1.12;
}
.ensemble-location-section--header .ensemble-location-address { margin-top: 10px; color: var(--ensemble-muted-text, #6b6b76); }

.ensemble-location-section--description .ensemble-location-content,
.ensemble-location-section--additional .ensemble-location-content {
    font-size: 1.05rem; line-height: var(--ensemble-line-height, 1.75); max-width: 68ch;
}
.ensemble-single-location .ensemble-location-content p { margin: 0 0 1.2em; }

/* Opening hours */
.ensemble-location-hours { margin: 0; max-width: 420px; }
.ensemble-location-hours-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0; border-bottom: 1px solid var(--ensemble-card-border, rgba(0,0,0,0.06));
}
.ensemble-location-hours-row dt { font-weight: 600; margin: 0; }
.ensemble-location-hours-row dd { margin: 0; color: var(--ensemble-muted-text, #6b6b76); }
.ensemble-location-hours-note { margin-top: 12px; font-size: 0.9rem; color: var(--ensemble-muted-text, #6b6b76); }

/* Contact + social pills */
.ensemble-location-contact, .ensemble-location-social { display: flex; flex-wrap: wrap; gap: 10px; }
.ensemble-single-location .ensemble-contact-link,
.ensemble-single-location .ensemble-social-link {
    display: inline-block; padding: 8px 16px;
    border: 1px solid var(--ensemble-card-border, rgba(0, 0, 0, 0.15));
    border-radius: 999px; font-size: 0.85rem; font-weight: 500;
    color: inherit; text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ensemble-single-location .ensemble-contact-link:hover,
.ensemble-single-location .ensemble-social-link:hover {
    border-color: var(--ensemble-primary, #1a1a1a); color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #1a1a1a)); transform: translateY(-1px);
}
.ensemble-single-location .ensemble-contact-link--website {
    background: var(--ensemble-primary, #1a1a1a); color: var(--ensemble-primary-contrast, #fff); border-color: transparent;
}
.ensemble-single-location .ensemble-contact-link--website:hover { color: var(--ensemble-primary-contrast, #fff); opacity: 0.88; }

/* Gallery */
.ensemble-location-section--gallery .ensemble-location-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--ensemble-grid-gap, 12px);
}
.ensemble-location-section--gallery .ensemble-location-gallery-item { margin: 0; overflow: hidden; border-radius: var(--ensemble-card-radius, 12px); }
.ensemble-location-section--gallery .ensemble-location-gallery-item img {
    width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform 0.4s ease;
}
.ensemble-location-section--gallery .ensemble-location-gallery-item:hover img { transform: scale(1.04); }

/* Upcoming events */
.ensemble-location-section--events .ensemble-location-events-list { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 782px) {
    .ensemble-single-location { gap: var(--ensemble-section-gap-desktop, 64px); padding-top: 40px; }
    .ensemble-location-section--hero { margin: 0; }
    .ensemble-location-section--hero .ensemble-location-hero-image { border-radius: var(--ensemble-card-radius, 12px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARD STYLES — Overlay & Minimal für Location-Karten (10.08.2026)
   Vertrag: [ensemble_locations style="…"] / Block-Attribut 'style' setzt
   ensemble-style-{style} auf .ensemble-locations-list. classic/default = Kanon.
   Scope nur --simple; list/compact bleiben Kanon. Karten-Padding aus
   _components.css wird genullt (gleiche Ursache wie Overlay-Rahmen bei Events).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ---------- OVERLAY ---------- */
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple {
    padding: 0;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-card-inner {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;      /* Locations: Landscape-Default (Räume/Gebäude) */
    overflow: hidden;
    border-radius: var(--ensemble-card-radius, 12px);
    color: #fff;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple.ensemble-location-ratio-portrait .ensemble-location-card-inner { aspect-ratio: 4 / 5; }
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple.ensemble-location-ratio-square .ensemble-location-card-inner { aspect-ratio: 1 / 1; }

.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;                  /* Negativ-Margin-Geometrie aus _components.css neutralisieren */
    border-radius: 0;
    aspect-ratio: auto;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-image img {
    width: 100%;
    height: 100%;               /* _components.css fixiert img auf --ensemble-card-image-height */
    object-fit: cover;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: linear-gradient(160deg, var(--ensemble-secondary, #2b2b3a), var(--ensemble-muted-bg, #45454f));
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.45) 40%,
        rgba(0, 0, 0, 0.05) 70%,
        transparent 100%);
    transition: background 0.3s ease;
    pointer-events: none;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: var(--ensemble-card-padding, 18px);
    gap: 4px;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-city,
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-type {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-title {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple .ensemble-location-events {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    padding: 3px 10px;
    border-radius: var(--ensemble-badge-radius, 4px);
    align-self: flex-start;
    font-size: 0.82rem;
}
.ensemble-locations-list.ensemble-style-overlay .ensemble-location-card--simple:hover .ensemble-location-card-inner::after {
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.12) 75%,
        rgba(0, 0, 0, 0.05) 100%);
}

/* ---------- MINIMAL ---------- */
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple {
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--ensemble-card-border, rgba(0, 0, 0, 0.12));
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple:hover {
    transform: none;
    box-shadow: none;
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-image { display: none; }
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-content {
    padding: 20px 4px;
    gap: 4px;
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-city,
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #e91e8c));
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-title {
    font-size: 1.15rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple:hover .ensemble-location-title {
    color: var(--ensemble-primary-on-dark, var(--ensemble-primary, #e91e8c));
}
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-meta,
.ensemble-locations-list.ensemble-style-minimal .ensemble-location-card--simple .ensemble-location-events {
    font-size: 0.88rem;
    color: var(--ensemble-muted-text, #6b6b76);
}

/* Räume / Bühnen (Fix-Paket F, Befund 8) */
.ensemble-location-rooms { list-style: none; margin: 0; padding: 0; max-width: 420px; }
.ensemble-location-room {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0; border-bottom: 1px solid var(--ensemble-card-border, rgba(0,0,0,0.06));
}
.ensemble-location-room:last-child { border-bottom: 0; }
.ensemble-location-room-name { font-weight: 600; }
.ensemble-location-room-capacity { color: var(--ensemble-muted-text, #6b6b76); }
