:root {
    --green: #8bc63e;
    --orange: #f15929;
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: grid;
    place-items: center;
    min-height: 98vh;
    min-height: 100vh;
    display: block;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: -1;
    background-image: url("https://www.miramarcc.com/wp-content/themes/miramarcc/img/fondo_miramar.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tcenter {
    text-align: center;
}

.grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.grid h1 {
    width: 100%;
    font-size: 2.5em;
    text-transform: uppercase;
    color: #333;
}

.custom-app-download-buttons {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
}

.app-download-link.filter-bright a img {
    filter: brightness(0.5);
}

.map-container {
    width: 80%;
    /* min-height: 50vh; */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    min-height: 70vh;
    height: calc( 100vh - 90px );
    max-width: 600px;
    margin: 0 auto;
}
.error-page .map-container {
    min-height: unset;
    height: auto;
}
.error-page .map-container .whole-map-container {
    height: auto;

}


.whole-map-container {
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: block;
}

.map-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-container-header img {
    width: 100%;
    max-width: 160px;
    object-fit: cover;
    height: auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 65vh;
    border: 2px solid #ddd;
    outline: none;
    border-radius: 5px;
}

button.btn {
    padding: 8px 55px;
    border: 0;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: #d7d7d7;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 1.2rem;
}

button.btn.active {
    background-color: #698491;
}

button.fixed-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}
.map-shops-svg .map-planta {
    display: none;
}
.map-shops-svg .map-planta.active {
    display: block;
}
.debugable {
    display: none;
}

.map-svg-container svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    height: auto;
    margin-top: 40px;
}
.map-svg-container[data-parking-floor="2"] svg g#Parking1 {
    display: none;
}
.map-svg-container[data-parking-floor="1"] svg g#Parking2 {
    display: none;
}

/* .map-svg-container svg g.carrefour g.active rect {
    fill: var(--green);
}
.map-svg-container svg g.moda g.active rect {
    fill: var(--orange);
} */
.map-svg-container svg g#silueta * {
    display: block;
}
.map-svg-container svg g.parking-row-group path.st0 {
    display: none;
    stroke-width: 4px;
}
.map-svg-container svg g.parking-row-group polyline {
    display: none;
    stroke-width: 3px;
}
.map-svg-container svg g.parking-row-group.active path.st0,
.map-svg-container svg g.parking-row-group.active polyline {
    display: block;
}

.map-svg-container svg g.parking-row-group text {
    display: none;
}
.map-svg-container svg g.parking-row-group.active text {
    display: block;
    fill: #FFFFFF;
}

.map-svg-container svg g.carrefour g.parking-row-group.active g rect {
    fill: var(--green);
    /* opacity: 0.2; */
}
.map-svg-container svg g.carrefour g.parking-row-group.active g line {
    stroke: var(--green);
    opacity: 0;
}
.map-svg-container svg g.moda g.parking-row-group.active g rect {
    fill: var(--orange);
    /* opacity: 0.3; */
}
/* .map-svg-container svg g.moda g.parking-row-group.active g line {
    stroke: var(--orange);
} */
.map-svg-container svg g.moda g.parking-row-group.active g line {
    stroke: var(--orange);
    opacity: 0;
}

.map-svg-container svg g.carrefour g.active polyline {
    stroke: var(--green);
}
.map-svg-container svg g.carrefour g.active rect {
    fill: var(--green);
}
.map-svg-container svg g.carrefour g.active polyline {
    stroke: var(--green);
}
.map-svg-container svg g.moda g.active polyline {
    stroke: var(--orange);
}
.map-svg-container svg g.carrefour g.active path.st0 {
    opacity: 1;
    stroke-width: 2px;
    stroke: var(--green);
}
.map-svg-container svg g.moda g.active path.st0 {
    opacity: 1;
    stroke-width: 2px;
    stroke: var(--orange);
}
.map-svg-container svg g.carrefour g.active path,
.map-svg-container svg g.carrefour g.active polygon,
.map-svg-container svg g.carrefour g.active rect {
    fill: var(--green);
    stroke: var(--green);
    /* opacity: 0.2; */
}
.map-svg-container svg g.moda g.active path,
.map-svg-container svg g.moda g.active polygon,
.map-svg-container svg g.moda g.active rect {
    fill: var(--orange);
    stroke: var(--orange);
    /* opacity: 0.3; */
}
.map-svg-container svg path.normal-rect {
    display: block;
    fill: #cccccc;
}

.map-svg-container svg .external-arrows {
    display: none;
    stroke-width: 2px;
}
.map-svg-container.arrow-carrefour svg .external-arrows.arrow-carrefour {
    display: block;
    stroke: var(--green);
}
.map-svg-container.arrow-moda1 svg .external-arrows.arrow-moda1 {
    display: block;
    stroke: var(--orange);
}
.map-svg-container.arrow-moda2 svg .external-arrows.arrow-moda2 {
    display: block;
    stroke: var(--orange);
}
/* .map-svg-container[data-svg-class="f1"] {
} */
.mim-audioguide{
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
    background-color: #eee;
    display: block;
    padding: 10px 20px;
}
.mim-audioguide h4{
    margin: 0px;
    line-height: 1;
    display: block;
    padding: 0px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
    background-color: #608592;
    display: inline-block;
    padding: 5px 20px;
}
.mim-audioguide audio{
    height: 30px;
    width: 100%;
    border-radius: 0px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc( 100% + 40px );
}
.mim-audioguide audio::-webkit-media-controls-panel{
    background-color: #eee;
}
div.indications-dialog.wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    /* transform: translate(-50%, -50%); */
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #ddd;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 100;
}

div.indications-dialog.wrapper .real-popup {
    position: absolute;
    width: 100%;
    max-width: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 5px;
    border: 2px solid #ddd;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    z-index: 101;
    height: calc( 100% - 40px );
    overflow-y: scroll;
    line-height: 1.5;
    top: 20px;
    transform: translateX(-50%);
    padding-top: 50px;
    font-size: 18px;
}
div.indications-dialog.wrapper.has-audio .real-popup{
    height: calc( 100% - 110px );
}
div.indications-dialog.wrapper .real-popup .popup-recomended{
    background-color: #608592;
    color: #fff;
    padding: 10px 20px;
    font-size: 20px;
}
div.indications-dialog.wrapper .real-popup .popup-recomended a{
    display: block;
    text-align: center;
    background-color: #eee;
    color: #528693;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 10px 20px;
    margin-top: 10px;
}
div.indications-dialog.opened-modal {
    display: block;
}

div.indications-dialog.wrapper.opened-modal .btn-close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    border: 0;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: #d7d7d7;
    border-radius: 3px;
    text-align: center;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 1.8rem;
    background-color: #698491;
    width: 50px;
}

    button.floor-button-data {
        padding: 10px 22px;
    }
    .map-container {
        width: 100%;
        min-height: 70vh;
    }
    .whole-map-container {
        width: 100%;
    }
    .map-container iframe {
        min-height: 50vh;
    }
    .map-container-header img {
        max-width: 120px;
    }
    div.indications-dialog.wrapper .real-popup {
        max-width: 95%;
    }
    .map-svg-container {
        overflow-x: auto;
        overflow-y: auto;
        height: 250px;
        min-height: 70vh;
        height: calc( 100vh - 200px );
    }
    .map-svg-container svg {
        width: auto;
        transform: scale(3);
        height: auto;
        margin-top: 40px;
        transform-origin: top left;
        padding-bottom: 40px;
    }
#buttonIndications{
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: #FF154A;
    width: calc( 100% - 70px);
    border-radius: 0px;
    right: auto;
    height: 53px;
    font-size: 18px;
    padding: 15px 10px;
}
#buttonWhatsapp{
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 70px;
    background-color: #00a92f;
    height: 53px;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
#buttonWhatsapp img{
    height: 100%;
}
