/* ==========================================================================
   DOVE E QUANDO · Piazza Insubria
   Retícula de 12 columnas: título + reloj de estado, horarios y mapa a la
   misma altura, tira de datos a todo el ancho. Mapa oscuro con pin propio.
   ========================================================================== */

.info {
    background: #11160f;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.info__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.4rem, 2.6vw, 3rem);
    row-gap: clamp(1.8rem, 3.4vw, 3rem);
    align-items: start;
    padding-top: clamp(1.8rem, 3.4vw, 2.8rem);
}

/* ---------- cabecera: título + estado ---------- */
.info__head {
    grid-column: 1 / span 7;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.4rem, 3vw, 2.6rem);
    flex-wrap: wrap;
    padding-bottom: clamp(1.2rem, 2.2vw, 1.9rem);
    border-bottom: 1px solid rgba(215, 203, 181, 0.16);
}

.info__head h2 {
    margin: 0;
}

.info__head .estado-card {
    flex: none;
    min-width: 250px;
    padding: 0.85rem 1.05rem;
    border-radius: 14px;
}

/* ---------- horarios ---------- */
.info__horas {
    grid-column: 1 / span 7;
    align-self: start;
}

.info__rot {
    margin: 0 0 0.7rem;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8d8878;
}

.horarios {
    border-top: 1px solid rgba(215, 203, 181, 0.14);
}

.horarios__fila {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(215, 203, 181, 0.09);
    font-size: 0.92rem;
    color: #9c9789;
    transition: color 0.35s var(--ease), padding-left 0.45s var(--ease),
        background-color 0.35s var(--ease);
}

.horarios__fila:hover {
    color: #e9e1cd;
    padding-left: 0.5rem;
}

.horarios__fila.is-hoy {
    color: #f3eddf;
    padding-left: 0.75rem;
    background: linear-gradient(90deg, rgba(200, 173, 120, 0.11), transparent 62%);
}

.horarios__fila.is-hoy .horarios__dia::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c8ad78;
    margin-right: 0.6rem;
    vertical-align: middle;
}

.horarios__hora {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #e9e1cd;
    font-variant-numeric: tabular-nums;
}

.horarios__fila.is-cierre .horarios__hora {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: #6f6a5e;
}

/* frase de contexto local: la que Google lee para «peruviano a Milano» */
.info__intro {
    flex: 0 0 100%;
    max-width: 62ch;
    margin: 0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(242, 238, 229, 0.62);
}

/* ---------- mapa ---------- */
.info__mapa {
    grid-column: 8 / span 5;
    grid-row: 1 / span 2;
    align-self: start;
    min-height: 0;
}

.mapa {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 5 / 6;
    border-radius: 16px;
    border: 1px solid rgba(215, 203, 181, 0.16);
    overflow: hidden;
    background: #0b0f0c;
}

.mapa__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* el mapa hereda el tono de la casa sin tocar el pin */
.leaflet-container {
    background: #0b0f0c;
    font-family: var(--sans);
    outline: none;
}

.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(1.02) contrast(0.9) saturate(0.55);
}

.leaflet-bar {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
    margin: 12px 12px 0 0 !important;
}

.leaflet-bar a,
.leaflet-bar a:hover {
    width: 34px;
    height: 34px;
    line-height: 33px;
    background-color: rgba(14, 18, 13, 0.88);
    color: #efe8d8;
    border-bottom: 1px solid rgba(215, 203, 181, 0.14);
    font-size: 17px;
}

.leaflet-bar a:hover {
    background-color: #1b2418;
    color: #fff;
}

.leaflet-control-attribution {
    background: rgba(11, 15, 12, 0.72) !important;
    color: #85806f !important;
    font-size: 8.5px;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-top-left-radius: 8px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.leaflet-control-attribution a {
    color: #a9a18c !important;
}

/* pin anclado a la coordenada: se mueve con el mapa */
.mapa__marca {
    background: none;
    border: 0;
}

.mapa__punto {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #efd29c;
    box-shadow: 0 0 0 4px rgba(239, 210, 156, 0.16),
        0 0 26px 8px rgba(239, 210, 156, 0.3);
    position: relative;
}

.mapa__punto::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    border: 1px solid rgba(239, 210, 156, 0.6);
    animation: mapa-late 3s ease-out infinite;
}

@keyframes mapa-late {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }

    75%,
    100% {
        transform: scale(3.4);
        opacity: 0;
    }
}

.mapa__marca b {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 7px;
    border: 1px solid rgba(239, 210, 156, 0.26);
    border-radius: 999px;
    background: rgba(14, 18, 13, 0.8);
    font-family: var(--mono);
    font-size: 7.5px;
    font-weight: 400;
    letter-spacing: 0.24em;
    color: #f2e7cf;
    white-space: nowrap;
}

.mapa__pie {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 1.55rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0.45rem 0.5rem 0.45rem 0.95rem;
    border-radius: 999px;
    background: rgba(14, 18, 13, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(215, 203, 181, 0.16);
    font-size: 0.68rem;
    color: #e4dccb;
}

.mapa__pie a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #efe8d8;
    color: #14180f;
    font-family: var(--sans);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color 0.4s var(--ease), transform 0.3s var(--ease);
}

.mapa__pie a:hover {
    background: #f8f2e5;
    transform: translateY(-1px);
}

.mapa__pie a svg {
    transition: transform 0.4s var(--ease);
}

.mapa__pie a:hover svg {
    transform: translate(2px, -2px);
}

/* ---------- tira de datos ---------- */
.datos {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2.4rem);
    margin: 0;
    padding-top: clamp(1.2rem, 2.4vw, 2rem);
    border-top: 1px solid rgba(215, 203, 181, 0.14);
}

.dato {
    display: grid;
    gap: 0.35rem;
    align-content: start;
    padding-left: clamp(1rem, 2vw, 2rem);
    border-left: 1px solid rgba(215, 203, 181, 0.12);
}

.dato:first-child {
    padding-left: 0;
    border-left: 0;
}

.dato dt {
    font-family: var(--mono);
    font-size: 8px;
    font-style: normal;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b3ac99;
}

.dato dd {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #e6dfd0;
}

.dato a {
    color: #e9e1cd;
    border-bottom: 1px solid rgba(233, 225, 205, 0.24);
    padding-bottom: 1px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.dato a:hover {
    color: #f6efdd;
    border-color: #c8ad78;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .info__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .info__head,
    .info__horas,
    .info__mapa,
    .datos {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .info__head {
        order: 1;
    }

    .info__mapa {
        grid-row: auto;
        min-height: 0;
        order: 2;
    }

    .info__horas {
        order: 3;
    }

    .datos {
        order: 4;
    }

    .mapa {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: 320px;
    }

    .datos {
        grid-template-columns: 1fr 1fr;
        row-gap: 1.6rem;
    }

    .dato:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .info {
        padding-block: 3.4rem;
    }

    .info__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
    }

    .info__head .estado-card {
        width: 100%;
        min-width: 0;
    }

    .datos {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .dato {
        padding: 1rem 0 0;
        border-left: 0;
        border-top: 1px solid rgba(215, 203, 181, 0.12);
    }

    .dato:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .mapa__pie {
        font-size: 0.62rem;
        padding-left: 0.8rem;
    }

    .mapa__pie a {
        font-size: 0.52rem;
        padding: 0.4rem 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mapa iframe {
        transition: none;
        transform: none;
    }

    .mapa__pin i::after {
        animation: none;
    }
}
