/* =========================================================
FDM UI LAYER — CONCERTS
Presentation layer for:
- archive cards
- single layout
- CPT navigation
- map

No routing
No queries
No WP logic
========================================================= */

/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

/* =========================
   ARCHIVE
========================= */

.concert-archive {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
}

.concert-archive h1 {
    text-align: center;
    margin-bottom: 42px;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1f1b17;
}

/* =========================
   GRID + CARDS
========================= */

.concert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* CARDS */

.concert-card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    min-width: 0;

    padding: 22px 24px;

    background: #fff;
    border: var(--fdm-card-border);
    border-radius: var(--fdm-card-radius);

    text-decoration: none;
    color: inherit;

    box-shadow: var(--fdm-shadow-soft);
    transition: var(--fdm-transition);

    overflow-wrap: break-word;
    text-align: center;
}

.concert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fdm-shadow-hover);
}

.concert-card-date {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fdm-text-main);
}

.concert-card-location {
    display: block;
    line-height: 1.5;
    color: var(--fdm-text-soft);
    max-width: 28ch;
    margin: 0 auto;
}

/* =========================
   SINGLE CONCERT
========================= */

.concert-single {
    max-width: var(--fdm-max-width-narrow);
    margin: 0 auto;
    padding: 40px 24px;
}

.concert-single-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 36px;
    color: var(--fdm-text-main);
}

.concert-single-card {
    background: #fff;
    border: var(--fdm-card-border);
    border-radius: var(--fdm-card-radius);
    box-shadow: var(--fdm-shadow-soft);
    padding: 28px;
    margin-bottom: 32px;
}

.concert-info {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.concert-info li {
    margin-bottom: 10px;
    color: var(--fdm-text-soft);
    line-height: 1.5;
}

.concert-info strong {
    color: var(--fdm-text-main);
}

.concert-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--fdm-text-main);
}

.concert-content p {
    margin-bottom: 1.4em;
}

/* =========================
   CPT NAV
========================= */

.fdm-cpt-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    width: 100%;
    max-width: var(--fdm-max-width-narrow);
    margin: 40px auto 0;

    padding: 12px 16px;

    background: rgba(0,0,0,0.015);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;

    box-sizing: border-box;
}

.fdm-cpt-nav .nav-left { text-align: left; }
.fdm-cpt-nav .nav-center { text-align: center; }
.fdm-cpt-nav .nav-right { text-align: right; }

.fdm-cpt-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fdm-text-soft);
    white-space: nowrap;
}

.fdm-map-wrapper {
    position: relative;
    margin-top: 24px;
}

/* =========================
   MAPA FDM
========================= */

.fdm-map {
    width: 100%;
    aspect-ratio: 16 / 9;

    border-radius: var(--fdm-card-radius);
    overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 1100px) {
    .fdm-map {
        aspect-ratio: 16 / 7;
    }
}

/* =========================
   LEAFLET CONTROL POLISH
========================= */

.leaflet-bar a.fdm-map-recenter {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: bold;

    color: #1e6fff;

    width: 30px;
    height: 30px;
}

.leaflet-bar a.fdm-map-recenter:hover {
    background: #f0f0f0;
}
/* =========================
   RESPONSIVE
========================= */

@media (min-width: 768px) {
    .concert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .concert-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fdm-map {
    aspect-ratio: 16 / 10;
   }

@media (max-width: 768px) {
    .concert-single {
        padding: 24px 16px 60px;
    }

    .concert-single-title {
        font-size: 1.9rem;
        margin-bottom: 28px;
    }

    .concert-single-card {
        padding: 22px 20px;
    }

    .concert-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .fdm-cpt-nav {
        padding: 12px 10px;
    }

    .fdm-cpt-nav .nav-left,
    .fdm-cpt-nav .nav-center,
    .fdm-cpt-nav .nav-right {
        text-align: center;
    }

    .fdm-cpt-nav a {
        display: inline-block;
        padding: 4px 6px;
        white-space: nowrap;
    }
}