/*
Los "environment-flag" sirven para que en el entorno local se muestre una banderita verde en la cabecera de la web, en
el de desarrollo una naranja y en el de producción ninguna.
*/
#environment-flag-production {
    display: none;
}

#environment-flag-development {
    color: darkorange;
    position: absolute;
}

#environment-flag-local {
    color: lime;
    position: absolute;
}

/* Ribete aviso modo pruebas (SHOW_TEST_MODE_RIBBON = Y) */
.cr-test-mode-ribbon {
    height: 0;
    overflow: visible;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 0;
    z-index: 1045;
}

.cr-test-mode-ribbon__label {
    background: linear-gradient(135deg, #e53935 0%, #c62828 55%, #b71c1c 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
    color: #fff;
    display: block;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.45;
    padding: 10px 0;
    position: fixed;
    right: -62px;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
    text-transform: uppercase;
    top: 42px;
    transform: rotate(45deg);
    width: 280px;
    z-index: 1045;
}

.cr-test-mode-ribbon__line {
    display: block;
}

.cr-test-mode-ribbon__line--secondary {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

@media (max-width: 767px) {
    .cr-test-mode-ribbon__label {
        font-size: 9px;
        padding: 8px 0;
        right: -66px;
        top: 34px;
        width: 250px;
    }

    .cr-test-mode-ribbon__line--secondary {
        font-size: 8px;
    }
}

/* Mapa de resultados ROL: ancho de página (todas las webs / diseños).
   Separación con ::before (no margin) para que no colapse al mover el
   mapa al pre-footer; !important evita que after.css por web lo anule. */
#rol-results-map-fullbleed {
    margin: 0;
    padding: 0;
    width: 100%;
}

#rol-results-map-fullbleed::before {
    content: '' !important;
    display: block !important;
    height: 32px !important;
    width: 100% !important;
}

#rol-results-map-fullbleed #results-map-canvas {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Si el mapa no se ha podido mover al pre-footer, se sale del .container a viewport */
#main-container #rol-results-map-fullbleed {
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    position: relative;
    right: 50%;
    width: 100vw;
}

#pre-footer-container #rol-results-map-fullbleed {
    left: auto;
    margin: 0;
    position: static;
    right: auto;
    width: 100%;
}

body.has-rol-results-map-fullbleed #pre-footer-container {
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

body.has-rol-results-map-fullbleed #scroll-to-top-button {
    z-index: 10000;
}

/* Hueco final del listado cuando el mapa vive en el pre-footer */
body.has-rol-results-map-fullbleed #main-container {
    padding-bottom: 24px !important;
}

body.has-rol-results-map-fullbleed #rol-results-async > br {
    display: none;
}

body.has-rol-results-map-fullbleed {
    overflow-x: hidden;
}

.rol-result-map-button-up {
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}



/*
 * ROL excluded results — hooks personalizables por web:
 * #rol-results-excluded-block / .rol-excluded
 * .rol-excluded__header / __title / __search-context / __list
 * .rol-excluded-item (--xs|--sm|--first|--min-stay|--invalid-arrival|--invalid-departure)
 * .rol-excluded__image / __ribbon / __name / __slogan / __location / __zone / __description
 * .rol-excluded__icons / __fav / __info-link / __central / __aside
 * .rol-excluded__reasons (--xs|--sm) / .rol-excluded__reason (--min-stay|--invalid-arrival|--invalid-departure|--generic)
 * .rol-excluded__cta / __button / __reviews / __meta / __tourist-code / __reference
 */
.rol-excluded { margin: 16px 0 8px; }
.rol-excluded__header { text-align: center; margin: 0 auto 28px; padding: 8px 12px 4px; float: none; }
.rol-excluded__title {
    margin: 0 auto 16px;
    max-width: 760px;
    color: #2f3a43;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.rol-excluded__title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    background: #ff9f1a;
    border-radius: 2px;
}
.rol-excluded__intro { display: none; }
.rol-excluded__search-context {
    display: inline-block;
    margin: 0 auto;
    max-width: 720px;
    padding: 10px 18px;
    color: #5c6670;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    background: #fff8ef;
    border: 1px solid #ffe2b0;
    border-radius: 6px;
}
.rol-excluded__tip { margin: 12px auto 0; color: #f08a00; font-size: 13px; font-weight: 600; }
.rol-excluded-sm-reasons,
.rol-excluded__reasons--sm { margin: 8px 6px 12px; text-align: center; }
.rol-excluded .xs-rol-result-price,
.rol-excluded__reasons--xs { text-align: center; }
.rol-excluded-sm-reason,
.rol-excluded__reason {
    position: relative;
    display: block;
    overflow: hidden;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 8px;
    padding: 6px 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    border-radius: 5px;
    background-color: #ff9f1a;
    background-image: linear-gradient(105deg, #ff9f1a 0%, #ff9f1a 36%, #ffd27a 48%, #fff3c9 50%, #ffd27a 52%, #ff9f1a 64%, #ff9f1a 100%);
    background-size: 240% 100%;
    background-position: 100% 0;
    box-shadow: 0 0 0 rgba(255, 159, 26, 0);
    animation: rol-excluded-reason-shine 3.8s ease-in-out infinite;
}
.rol-excluded-sm-reason:nth-child(2),
.rol-excluded__reason:nth-child(2) { animation-delay: 0.55s; }
.rol-excluded-sm-reason:nth-child(3),
.rol-excluded__reason:nth-child(3) { animation-delay: 1.1s; }
@keyframes rol-excluded-reason-shine {
    0%, 62% { background-position: 100% 0; box-shadow: 0 0 0 rgba(255, 159, 26, 0); }
    78% { background-position: 0% 0; box-shadow: 0 0 14px rgba(255, 159, 26, 0.65); }
    100% { background-position: 0% 0; box-shadow: 0 0 0 rgba(255, 159, 26, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .rol-excluded-sm-reason,
    .rol-excluded__reason {
        animation: none;
        background-image: none;
        background-color: #ff9f1a;
        box-shadow: none;
    }
}
.rol-excluded .xs-rol-result-image-div,
.rol-excluded .rol-excluded-image,
.rol-excluded__image { overflow: hidden; position: relative; }
.rol-excluded .ribbon { width: 190px; height: 190px; }
.rol-excluded .ribbon span {
    background-color: #ff9f1a !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    padding: 4px 0;
    text-transform: none;
    width: 260px;
}
.rol-excluded .ribbon-top-left { left: -10px; top: -10px; }
.rol-excluded .ribbon-top-left span { right: -20px; top: 52px; }
.rol-excluded .ribbon-top-right { right: -10px; top: -10px; }
.rol-excluded .ribbon-top-right span { left: -20px; top: 50px; }

/*
 * ROL unavailable (ocupados/cerrados) — hooks personalizables:
 * #rol-results-unavailable-block / .rol-unavailable
 * .rol-unavailable__header / __title
 */
.rol-unavailable { margin: 24px 0 8px; }
.rol-unavailable__header { text-align: center; margin: 0 auto 8px; padding: 8px 12px 0; float: none; }
.rol-unavailable__title {
    margin: 0 auto;
    max-width: 760px;
    color: #5c6670;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.rol-unavailable__title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin: 14px auto 0;
    background: #9aa3ab;
    border-radius: 2px;
}
/* Evitar el margen superior típico del primer resultado tras la cabecera */
.rol-unavailable > .rol-xs-item:first-of-type,
.rol-unavailable > .rol-sm-item:first-of-type {
    margin-top: 0;
}
