/* ============================================================
   MAPA RUTA CULTURAL — Frontend CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ---- Wrapper ---- */
.mrc-wrapper {
    position: relative;
    font-family: 'Source Sans 3', sans-serif;
}

.mrc-map {
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    z-index: 0;
}

/* ---- Marcadores numerados ---- */
.mrc-marker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}

.mrc-marker-icon:hover {
    transform: scale(1.25);
    box-shadow: 0 4px 16px rgba(249,115,22,.55);
}

/* ---- Tooltip Leaflet customizado ---- */
.mrc-tooltip {
    background: #1c1917;
    color: #fff;
    border: none !important;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mrc-tooltip::before { display: none; }

/* ---- Modal overlay ---- */
.mrc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,5,0,.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: mrc-fade-in .2s ease;
}

.mrc-modal-overlay.is-open {
    display: flex;
}

@keyframes mrc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Modal box ---- */
.mrc-modal {
    background: #fffaf7;
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px 36px 36px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.4);
    animation: mrc-slide-up .25s ease;
}

@keyframes mrc-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ---- Botón cerrar ---- */
.mrc-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1c1917;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 10;
}
.mrc-modal-close:hover { background: #f97316; }

/* ---- Cabecera modal ---- */
.mrc-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.mrc-modal-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f97316;
    color: #fff;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(249,115,22,.4);
}

.mrc-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #1c1917;
    margin: 0;
    line-height: 1.2;
}

/* ---- Vídeo responsive ---- */
.mrc-modal-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.mrc-modal-video iframe,
.mrc-modal-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Descripción ---- */
.mrc-modal-desc {
    font-size: 1rem;
    color: #57534e;
    line-height: 1.65;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 560px) {
    .mrc-modal {
        padding: 20px 18px 24px;
        border-radius: 12px;
    }
    .mrc-modal-title { font-size: 1.25rem; }
}
