html, body {
  font-family: "Public Sans", sans-serif;
  font-optical-sizing: auto;
    background-image: url('./assets/img/fondo.png');
    background-size:contain;  
    background-repeat: repeat;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden
}

.logo {
    width: 30vw;
    margin: 0;
    padding: 0;
    height: auto;
    margin-left: 10px;
    margin-right: 0;
}

/* Contenedor principal */
.container-fluid {
    height: 100%;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
}

/* Sección de clima responsive */
.weather-section {
    color: #555555;
    text-align: center;
    position: relative;
    font-family: "Public Sans", sans-serif;
}

.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 8px;
    height: auto;
    align-items: center;
    /*border: 5px solid rgb(255, 0, 0);*/
    padding: 0;
    margin: 0;
}
    
.div1 {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
}

.div2 {
    padding: 0;
    margin: 0;
    grid-column: span 2 / span 2;
    display: flex;
    align-items: center;
    justify-items: center;
    margin-left: 30px;
    gap: 25px;
}
        
.weather-content {
    display: flex;
    align-items: center;
    align-content: center;
    align-self: center;
}

.weather-info {
    color: #555555;
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
}

.weather-info:hover {
    transform: scale(1.1);
    color: #0a71ac;
}

.weather-info h2 {
    font-weight: bold;
    font-size: 42px;
}

.weather-info h2,
.weather-info p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.weather-infosub {
    opacity: 0.9;
    font-size: 1vw;
}

.weather-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
    padding-left: 25px;
    padding-right: 15px;
    
}

.weather-top:hover {
    transform: scale(1.1);
}

.weather-temp-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-temp {
    font-size: 28px;
    font-weight: bold;
    align-self: center;
}

.weather-extra-temps {
    display: flex;
    gap: 10px;
    font-size: 16px;
    color: #555555;
}    

.weather-extra-temps i {
    margin-right: 3px;
    color: #555555;
}

.weather-icon {
    font-size: 40px;
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
    font-style: normal;
}

.weather-icon:hover {
    transform: scale(1.1);
    color: #0a71ac;
}

.weather-temp {
    font-size: 28px;
    font-weight: 300;
}

.weather-details {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.weather-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    color: #555555;
    padding: 10px;
    border-radius: 20px;
    font-size: 20px;
    transition: transform 0.2s;
    cursor: pointer;
}

.weather-item:hover {
    transform: scale(1.1);
}

.weather-label {
    font-size: 16px;
    font-weight: 100;
    margin-bottom: 4px;
    color: #555555;
}

/* Contenedor principal con sidebar y mapa */
.content-container {
    flex: 1;
    width: 100%;
    display: flex;
    position: relative;
    min-height: calc(100vh - 120px);
}

/* Sidebar responsive */
.sidebar {
    background: #f6f6f6;
    padding: 15px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    font-family: "Public Sans", sans-serif;
}

.category-section {
    margin-bottom: 20px;
}

.category-title {
    font-size: 22px;
    color: #0a71ac;
    margin-bottom: 8px;
    font-weight: 800;
    font-family: "Public Sans", sans-serif;
    word-spacing: 4px;
}

.playa-item {
    font-size: 18px;
    font-weight: 100;
    padding: 15px 5px 15px 5px;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: start;
    justify-items: center;
}

.playa-item:hover {
    background-color: #0a71ac;
    transform: scale(1.1);
    color: rgb(255, 255, 255);
}

.playa-item-inner {
    display: flex;
    align-items: center;
}

.playa-item-text {
    font-size: 18px;
}

.playa-item-flag {
    width: 48px;
    height: auto;
    margin-left: 8px;
    border-radius: 3px;
}
.paw-icon {
    color: #0a71ac;
    transition: color 0.2s;
}

.playa-item:hover .paw-icon {
    color: white;
}

/* Contenedor del mapa */
.map-container {
    flex: 1;
    position: relative;
    min-height: 300px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Botón de menú móvil */
.menu-toggle {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background: #0a71ac;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Overlay para móvil */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}


/* Control de Playas Cancún JAVASCRIPT */
.leaflet-control.beach-legend {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(0, 0, 0, 0.267);
  max-width: 20vw;
  max-height: 80vh;
  font-family: "Public Sans", sans-serif;
  padding: 0.5rem;
  overflow-y: auto;       /* scroll vertical */
  overflow-x: hidden;     /* evita desbordes horizontales */
  box-sizing: border-box; /* incluye padding en cálculos */
}

.leaflet-control .image-container {
    position: relative;
    display: inline-block; /* Ajusta al tamaño de la imagen */
    width: 100%;
    height: 150px;
    border-radius: 6px 6px 0 0;
}

.leaflet-control .mini-btn {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.leaflet-control .mini-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.leaflet-control .image-beach {
  width: 100%;
  height: 150px;
  border-radius: 6px 6px 0 0;
}

.leaflet-control .beach-title {
  font-weight: bolder;
  font-size: 30px;
  color: #0a71ac;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 5px;
  text-shadow: 0px 0px 22px rgba(102, 126, 234, 0.62);
}

.legend-title {
    font-size: 25px;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 10px 5px 10px 5px;
    font-weight: bolder;
    color: #0a71ac;
    justify-content: center;
}

.legend-placeholder {
    font-size: 15px;
    padding: 0 10px 5px 10px;
    color: #555555;
    text-align: center;
    font-style: italic;
}

.beach-info-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-box {
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-label {
  font-size: 18px;
  color: #0a71ac;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-icon-text {
  display: flex;
  align-items: center;
  gap: 4px;
}

.info-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.info-text {
  font-size: 14px;
  font-weight: bold;
  color: #555555;
}

.info-text-km {
    font-size: 18px;
    display: flex;
    align-items: left;
    gap: 4px;
    font-weight: bolder;
    color: #555555;
    justify-content: center;
}

.info-text-hour {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: bolder;
    color: #555555;
}

.beach-extra-note {
    font-family: "Public Sans", sans-serif;
    font-size: 13px;
    padding: 0 20px 5px 20px;
    text-align: justify;
}

.blue-flag {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #0a71ac;
}

.blue-flag-img {
    max-width: 70%;
    height: auto;
    margin-right: 8px;
}

/* Estilos para Popup */
.leaflet-popup-content .custom-popup {
    background-color: #0a71ac; 
    color: white;              
    padding: 8px;
    height: 45px; /* alto máximo opcional */
    overflow-y: hidden; 
    font-family: "Public Sans", sans-serif;
    text-align: center;
    min-width: 200px;
    border-radius: 10px;
}

.leaflet-popup-content .custom-popup h4 {
  font-size: 16px;
  color: #fff;
}

.leaflet-popup-content-wrapper {
  background: transparent; /* evita fondo blanco por defecto */
  box-shadow: none;
}

.leaflet-popup-tip {
  background: #0a71ac; /* flechita del popup */
}

.popup-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.note-item {
  display: flex;
  align-items: center;   /* Ícono alineado con el texto en desktop */
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #333;
}

.note-icon {
  height: 2rem;
  width: auto;
  margin-right: 0.75rem; /* espacio entre ícono y texto */
}

.alert-horario {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
  animation: pulseAlert 2s infinite;
}

.alert-horario i {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  animation: moonFloat 3s ease-in-out infinite;
}

.alert-horario strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alert-horario p {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

@keyframes pulseAlert {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.3);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(231, 76, 60, 0.4);
  }
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Responsive breakpoints */

/* Tablets y pantallas medianas */
@media (max-width: 480px) {

    html, body {
        background-image: url('./assets/img/fondo.png');
        background-size:contain;  
        background-repeat: repeat;
        height: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .content-container {
        flex-direction: column; /* Coloca divs en columna */
    }

    .map-container {
        border-radius: 10px;
        margin-top: 2px;
        order: 1; /* Mostrar primero el mapa */
        height: 100vh; /* Ajusta el tamaño para móviles */
        /*border: 5px solid rgb(255, 0, 0);*/
    }

    #map {
        margin: 0;
        padding: 0;
        border-radius: 10px;
        height: 60vh;
        border: 2px solid #0a71ac;
    }

    .sidebar {
        order: 1; /* Sidebar arriba */
        background-color: transparent;
        width: 100%;
        height: auto;
        max-height: 20vh;
        box-shadow: none;
        transform: none !important; /* Evita que quede oculto */
        position: relative;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .weather-section {
        order: 0; /* Siempre arriba */
        background-position: center;
        padding: 0;
        /*border: 5px solid rgb(17, 0, 255)*/
    }

    .weather-info h2 {
        font-size: 5.5vw;
    }

    .weather-infosub {
        font-size: 10px;
    }

    .parent {
        display: flex;
        flex-direction: column; /* Apilar elementos */
        margin: 0;
        width: 100%;
        text-align: center;
        /*border: 5px solid rgb(51, 255, 0);*/
    }
    .div1 {
        width: 500px;
        height: auto;
        overflow: hidden;
    }
    .logo{
        width: 75VW;
        height: auto;
        overflow: hidden;
        margin-bottom: 0;
    }
    .div2 {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
        padding: 0;
        margin: 0;
        /*border: 5px solid rgb(51, 255, 0);*/
    }

    .weather-content, .weather-top {
        flex: 1 1 auto;
        display: flex;
    }
    .weather-content {
        justify-content: center;
        padding: 8px;
    }
    .weather-top {
        padding: 0;
        margin: 0;
    }
    .weather-icon {
        font-size: 26px;
    }

    .main-temp {
        font-size: 5.5vw;
    }

    .weather-extra-temps {
        font-size: 10px;
    }

    .weather-details {
        padding-bottom: 0;
        padding-top: 0;
        margin-bottom: 0;
        margin: 0;
        gap: 0 ;
    }

    .weather-item, .weather-label{
        font-size: 3.5vw;
        margin: 0;
        padding: 2px 6px 0 6px;
    }

    /*DISEÑO RESPONSIVE DEL CONTROL DE PLAYAS*/
    .leaflet-control.beach-legend {
        font-size: .7rem;
        border-top: none;
        border-right: none;
        border-radius: 0 4px 0 8px;
        border-bottom: 2px solid rgba(0, 0, 0, 0.267);
        border-left: 2px solid rgba(0, 0, 0, 0.267);
        width: 90vw;
        margin: 0;
        padding: 0.5rem;
        gap: 0;
        max-width: 40vw;
        max-height: 70vh;
        overflow-y: auto; 
        overflow-x: hidden;
        left: 5vw;
    }

    .beach-legend .legend-title {
        padding: 4px 0 0 0;
        font-weight: 990;
        font-size: 12px;
    }
    .beach-legend .legend-placeholder p{
        text-align: justify;
        margin: 0;
        padding-top: 2px;
        padding-bottom: 4px;
        font-size: 8px;
    }

    .leaflet-control .image-container {
        height: 50px;
        border-radius: 4px;
    }

    .leaflet-control .image-beach {
        padding-bottom: 5px;
        height: 50px;
        border-radius: 4px;
    }

    .leaflet-control .mini-btn {
        position: absolute;
        bottom: 5px;
        left: 5px;
        padding: 3px;
        font-size: 8px;
    }

    .leaflet-control .beach-title {
        font-size: 13px;
        padding: 2px;
    }

    .beach-info-grid-4 {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .info-box {
        padding: 2px 0;
        margin: 0;
        border-radius: 4px;
    }
    
    .info-label {
        font-size: 10px;
        margin-bottom: 2px;
    }

    .info-icon {
        width: 18px;
        height: 18px;
    }

    .info-icon-text {
        padding: 0 4px 0 4px;
    }

    .info-text-km {
        font-size: 10px;
        font-weight: 500;
    }

    .info-text-hour {
        font-size: 10px;
        font-weight: 500;
    }

    .blue-flag {
        text-align: center;
        padding: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        font-size: 10px;
    }

    .beach-extra-note {
        font-size: 8px;
        padding: 2px 4px;
    }

    /* POPUP CSS */
    .leaflet-popup-content .custom-popup {
        padding: 4px 6px; 
        height: auto;
        min-width: fit-content;
        max-width: 80vw;
        border-radius: 6px;
        text-align: center;
        word-wrap: break-word;
    }

    .leaflet-popup-content .custom-popup h4,
    .popup-title {
        margin: 0 0 2px 0;
        font-size: 12px;
        white-space: nowrap; /* o quítalo si quieres saltos de línea */
    }

    .popup-title {
        margin: 0 0 2px 0;
        font-size: 12px;
    }

    /* Sidebar responsive */
    .category-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
        gap: 8px; /* espacio entre columnas y filas */
        padding-bottom: 5px;
        margin-bottom: 0;
    }

    .category-title {
        font-size: 18px;
        background-color: #0a71ac;
        color: #ffffff;
        margin-bottom: 8px;
        font-weight: 800;
        font-family: "Public Sans", sans-serif;
        word-spacing: 4px;
        grid-column: span 2;
        justify-content: center;
        text-align: center;
        border-radius: 4px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .playa-item {
        font-size: 12px;
        padding: 8px;
        padding-bottom: 0;
        margin-bottom: 0;
        background-color: #f9f9f9;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .playa-item:hover {
        background-color: #0a71ac;
        transform: scale(1.1);
        color: rgb(255, 255, 255);
    }

    .playa-item-inner {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        height: 100%;
    }

    .playa-item-text {
        font-size: 12px;
    }

    .playa-item-flag {
        padding: 0;
        width: 48px;
        height: auto;
        margin-left: 8px;
        border-radius: 3px;
    }

    .paw-icon {
        color: #0a71ac;
        transition: color 0.2s;
    }

    .playa-item:hover .paw-icon {
        color: white;
    }

    .playa-item-text{
        color: #8A9A5B;
    }

    .note-item {
    flex-direction: column;   /* apila ícono arriba y texto abajo */
    align-items: flex-start;  /* alinea a la izquierda el texto */
    text-align: left;         /* asegura alineación de texto */
    margin-bottom: 1rem;
    margin-bottom: 0.5rem;
    font-size: 9px;
    }

    .note-icon {
        height: 1.2rem;           /* ícono un poco más pequeño */
        margin-right: 0;          /* quita el espacio derecho */
        margin-bottom: 0.15rem;    /* agrega espacio debajo del ícono */
    }

    .note-item span {
    word-wrap: break-word;   /* compatibilidad vieja */
    overflow-wrap: break-word; /* estándar */
    white-space: normal;     /* evita que el texto intente ir en una sola línea */
    }

    .btn.btn-light{
        font-size: .7rem;
    }
}

/* Interfaz pública renovada */
html, body { background: #eef1f3; font-family: "Public Sans", sans-serif; font-optical-sizing: auto; }
body { overflow: hidden; }
.container-fluid { background: #fff; }
.weather-section { z-index: 500; background: #fff; border-bottom: 1px solid #e4e8eb; text-align: left; }
.parent { min-height: 72px; grid-template-columns: 150px 1fr; gap: 0; padding: 0 18px; }
.div1 { justify-content: flex-start; border-right: 1px solid #e1e5e8; padding-right: 16px; }
.logo { width: 118px; margin: 0; }
.div2 { grid-column: auto; margin: 0; padding-left: 18px; justify-content: space-between; gap: 18px; }
.weather-info { min-width: 205px; }
.weather-info h2 { font-size: 20px; line-height: 1.2; color: #26343c; }
.weather-infosub { font-size: 12px; color: #75818a; }
.weather-top { padding: 0; gap: 8px; }
.weather-icon { color: #157b78; font-size: 24px; }
.main-temp { font-size: 28px; font-weight: 500; color: #27343b; }
.weather-extra-temps { gap: 6px; font-size: 10px; }
.weather-details { flex-wrap: nowrap; }
.weather-item { min-width: 72px; gap: 2px; padding: 6px 10px; border-left: 1px solid #e9edef; border-radius: 0; font-size: 12px; }
.weather-label { color: #89939a; font-size: 10px; margin: 0; }
.weather-item i { display: none; }
.content-container { min-height: 0; height: calc(100vh - 73px); }
.sidebar { z-index: 700; flex: 0 0 190px; width: 190px; padding: 14px 10px; background: rgba(255,255,255,.98); border: 1px solid #e7eaec; border-radius: 13px; box-shadow: 0 4px 18px rgba(24,42,51,.13); margin: 14px 0 14px 14px; }
.category-title { padding: 0 8px 8px; margin-bottom: 4px; color: #78858b; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.category-title small { display: block; margin-top: 4px; font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.playa-item { padding: 9px 8px; border-radius: 8px; font-size: 12px; color: #34434a; }
.playa-item:hover { background: #edf7f6; color: #146f6d; transform: none; }
.playa-item-text { font-size: 12px; color: inherit; }
.playa-item-flag { width: 24px; }
.paw-icon { font-size: 15px !important; }
.map-container { min-height: 0; margin: 0; }
#map { min-height: 0; border: 0; border-radius: 0; background: #e7e9eb; }
.leaflet-control.beach-legend { max-width: 290px; width: 252px; max-height: calc(100vh - 110px); margin: 12px; overflow-y: auto; border: 1px solid #e4e8eb; border-radius: 13px; box-shadow: 0 5px 18px rgba(22,40,48,.18); background: white; }
.leaflet-control .image-container, .leaflet-control .image-beach { height: 118px; }
.leaflet-control .image-beach { object-fit: cover; width: 100%; }
.leaflet-control .beach-title { padding: 10px 12px 5px; font-size: 15px; }
.leaflet-control .mini-btn { top: 8px; right: 8px; left: auto; bottom: auto; border-radius: 50%; }
.leaflet-control .beach-info-grid-4 { padding: 4px 8px 10px; }
.leaflet-control .info-label { font-size: 9px; color: #89939a; }
.leaflet-control .beach-extra-note { padding: 9px 12px 12px; }
.leaflet-control .btn.btn-light { width: 100%; border: 0; background: #187b75; color: white; }
.leaflet-control .btn.btn-light:hover { background: #12645f; }
.menu-toggle, .overlay { display: none; }

@media (max-width: 700px) {
  body { overflow: hidden; }
  .parent { min-height: 112px; display: grid; grid-template-columns: 86px 1fr; grid-template-rows: 56px 44px; padding: 5px 12px; gap: 0 10px; }
  .div1 { grid-row: 1; grid-column: 1; border: 0; padding: 0; }
  .logo { width: 72px; }
  .div2 { grid-row: 1 / span 2; grid-column: 2; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; gap: 0 8px; padding: 0; }
  .weather-info { min-width: 0; grid-column: 1; grid-row: 1; align-self: end; }
  .weather-info h2 { font-size: 16px; }
  .weather-infosub { font-size: 10px; }
  .weather-top { grid-column: 2; grid-row: 1; align-self: end; }
  .weather-icon { font-size: 19px; }
  .main-temp { font-size: 22px; }
  .weather-extra-temps { font-size: 8px; gap: 3px; }
  .weather-details { grid-column: 1 / span 2; grid-row: 2; justify-content: flex-start; overflow: hidden; }
  .weather-item { min-width: 0; flex: 1; padding: 3px 5px; font-size: 11px; }
  .weather-label { font-size: 9px; }
  .content-container { height: calc(100dvh - 112px); min-height: 0; }
  .map-container { position: absolute; inset: 0; height: 100%; }
  #map { height: 100%; }
  .menu-toggle { display: block; position: absolute; top: 12px; left: 12px; z-index: 650; background: #fff; color: #24504f; border: 1px solid #e2e7e9; border-radius: 10px; padding: 9px 12px; font-size: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.13); }
  .sidebar { display: block; position: absolute; z-index: 800; top: 54px; left: 10px; bottom: 12px; width: min(280px, calc(100vw - 40px)); max-height: none; margin: 0; overflow-y: auto; transform: translateX(calc(-100% - 24px)); transition: transform .25s ease; }
  .sidebar.active { transform: translateX(0); }
  .overlay { position: absolute; inset: 0; z-index: 750; background: rgba(21,35,41,.25); }
  .overlay.active { display: block; }
  .category-title { font-size: 11px; }
  .playa-item { min-height: 40px; }
  .leaflet-control.beach-legend { position: fixed; z-index: 600; top: auto; right: 10px; bottom: 12px; left: 10px; width: auto; max-width: none; max-height: 34dvh; margin: 0; }
  .leaflet-control .image-container { height: 84px; }
  .leaflet-control .image-beach { height: 84px; }
  .leaflet-control .beach-info-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
  .leaflet-control .beach-extra-note { padding: 6px 10px 9px; }
  .leaflet-control .note-item { margin: 2px 0; }
  .leaflet-control .btn.btn-light { padding: 7px; }
  .leaflet-bottom.leaflet-right { bottom: 36dvh; }
}

/* ===== Popup de Guardavidas ===== */
.guardavidas-popup-wrapper .leaflet-popup-content-wrapper {
  background: linear-gradient(135deg, #0a71ac 0%, #065a8a 100%);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(10, 113, 172, 0.45);
  border: none;
  padding: 0;
}

.guardavidas-popup-wrapper .leaflet-popup-tip {
  background: #065a8a;
}

.guardavidas-popup-wrapper .leaflet-popup-content {
  margin: 0;
  color: white;
  font-family: "Public Sans", sans-serif;
}

.guardavidas-popup {
  padding: 12px 16px;
  text-align: center;
  min-width: 160px;
}

.guardavidas-popup-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.guardavidas-popup-title i {
  font-size: 15px;
  opacity: 0.9;
}

.guardavidas-popup-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.guardavidas-popup-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guardavidas-popup-count {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .guardavidas-popup {
    padding: 8px 12px;
    min-width: 130px;
  }

  .guardavidas-popup-title {
    font-size: 11px;
  }

  .guardavidas-popup-count {
    font-size: 30px;
  }
}

/* Mapa a pantalla completa y controles flotantes */
@media (min-width: 701px) {
  .parent { min-height: 100px; grid-template-columns: 260px 1fr; padding-inline: 26px; }
  .logo { width: 228px; max-height: 88px; object-fit: contain; }
  .div2 { padding-left: 22px; }
  .content-container { position: relative; height: calc(100vh - 100px); overflow: hidden; }
  .div2 { position: relative; }
  .div2 > a { position: absolute; top: 6px; right: 4px; z-index: 2; color: #187b75; }
  .sidebar { position: absolute; z-index: 700; inset: 20px auto auto 20px; width: 205px; max-height: calc(100% - 40px); margin: 0; padding: 12px 10px; flex: none; overflow-x: hidden; overflow-y: auto; background: rgba(255,255,255,.97); border: 1px solid rgba(222,230,232,.95); border-radius: 16px; box-shadow: 0 8px 28px rgba(24,42,51,.18); }
  .category-title { padding: 8px; color: #34454b; text-shadow: none; }
  .category-title small { color: #78858b; text-shadow: none; }
  .playa-item { margin: 2px 0; padding: 8px; color: #293b42; text-shadow: none; }
  .playa-item:hover { background: #eff7f6; }
  .map-container { position: absolute; inset: 0; }
  #map { position: absolute; inset: 0; }
  .menu-toggle { display: none; }
}

@media (max-width: 700px) {
  html, body { width: 100%; height: 100%; min-height: 100%; overflow: hidden; }
  .container-fluid { height: 100dvh; padding: 0; }
  .weather-section { height: 122px; padding: 0; border-bottom: 1px solid rgba(34,66,74,.12); box-shadow: 0 2px 10px rgba(24,43,50,.06); }
  .parent { box-sizing: border-box; width: 100%; height: 100%; min-height: 0; grid-template-columns: 112px minmax(0,1fr); grid-template-rows: 66px 46px; gap: 0 10px; padding: 5px 14px; }
  .div1 { grid-row: 1 / span 2; grid-column: 1; width: auto; min-width: 0; height: auto; justify-content: center; align-self: center; border: 0; padding: 0 8px 0 0; }
  .logo { width: 104px; max-width: 100%; max-height: 95px; margin: 0; object-fit: contain; }
  .div2 { grid-column: 2; grid-row: 1 / span 2; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 1fr 38px; align-items: center; gap: 0 6px; margin: 0; padding: 0; }
  .div2 > a { position: absolute; top: 4px; right: 0; z-index: 2; color: #187b75; font-size: 12px; }
  .weather-content { min-width: 0; grid-column: 1; grid-row: 1; align-self: end; justify-content: flex-start; }
  .weather-info { min-width: 0; text-align: left; }
  .weather-info h2 { font-size: clamp(16px, 4.8vw, 19px); line-height: 1.15; }
  .weather-infosub { font-size: 10px; }
  .weather-top { grid-column: 2; grid-row: 1; align-self: end; justify-content: flex-end; gap: 4px; padding: 0; }
  .weather-icon { font-size: 19px; }
  .main-temp { font-size: 21px; line-height: 1; }
  .weather-extra-temps { gap: 3px; font-size: 8px; white-space: nowrap; }
  .weather-details { grid-column: 1 / span 2; grid-row: 2; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: center; overflow: hidden; }
  .weather-item { min-width: 0; gap: 1px; padding: 2px 3px; border-left: 1px solid #e9edef; font-size: 11px; white-space: nowrap; }
  .weather-item:first-child { border-left: 0; }
  .weather-label { font-size: 8px; line-height: 1.1; }
  .content-container { position: relative; width: 100%; height: calc(100dvh - 122px); min-height: 0; overflow: hidden; border-radius: 0 !important; }
  .map-container { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; }
  #map { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }
  .menu-toggle { display: inline-flex; position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; z-index: 900; align-items: center; gap: 8px; min-height: 44px; padding: 0 15px; color: #fff; background: #167a75; border: 0; border-radius: 24px; box-shadow: 0 4px 14px rgba(20,57,60,.25); font-size: 13px; font-weight: 700; }
  .menu-toggle:active { transform: scale(.98); }
  .sidebar { display: block; position: absolute; z-index: 850; top: auto; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; width: auto; max-height: min(68dvh, 620px); margin: 0; padding: 10px 10px 12px; overflow: auto; overscroll-behavior: contain; background: #fff; border: 1px solid rgba(222,230,232,.96); border-radius: 20px; box-shadow: 0 10px 34px rgba(24,42,51,.24); transform: translateY(calc(100% + 24px)) !important; transition: transform .28s cubic-bezier(.22,.75,.25,1); }
  .sidebar::before { content: ''; display: block; width: 38px; height: 4px; margin: 1px auto 9px; border-radius: 4px; background: #cbd3d6; }
  .sidebar.active { transform: translateY(0) !important; }
  .category-section { display: block; margin: 0; padding: 0 2px; }
  .category-title { position: sticky; top: -10px; z-index: 2; display: block; grid-column: auto; width: 100%; max-width: 100%; padding: 5px 8px 11px; margin: 0 0 5px; color: #33454a; background: #fff; border: 0; border-bottom: 1px solid #e9edef; border-radius: 0; box-shadow: none; font-size: 12px; text-align: left; text-transform: none; word-spacing: normal; }
  .category-title small { color: #67777c; font-size: 10px; }
  .playa-item { display: flex; width: 100%; min-width: 0; min-height: 44px; margin: 1px 0; padding: 8px 10px; background: transparent; border: 0; border-bottom: 1px solid #eef1f2; border-radius: 8px; box-shadow: none; color: #26383f; text-shadow: none; font-size: 14px; }
  .playa-item:hover, .playa-item:focus-visible { background: #edf6f5; color: #126e69; transform: none; }
  .playa-item-inner { justify-content: space-between; gap: 10px; }
  .playa-item-text { font-size: 14px; line-height: 1.25; }
  .playa-item-flag { width: 28px; }
  .paw-icon { font-size: 15px !important; }
  .overlay { display: block; position: absolute; z-index: 800; inset: 0; background: rgba(21,35,41,.12); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .overlay.active { opacity: 1; pointer-events: auto; }
  .content-container:has(.sidebar.active) .beach-legend { display: none; }
  .leaflet-control.beach-legend { position: fixed; z-index: 700; top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-width: none; max-height: min(37dvh, 310px); margin: 0; overflow: auto; border: 1px solid rgba(223,231,232,.9); border-radius: 17px; box-shadow: 0 8px 24px rgba(18,43,48,.2); }
  .leaflet-control.beach-legend:has(.legend-placeholder) { display: none; }
  .leaflet-control .image-container, .leaflet-control .image-beach { height: 72px; }
  .leaflet-control .image-beach { object-fit: cover; }
  .leaflet-control .beach-title { padding: 8px 12px 3px; font-size: 14px; }
  .leaflet-control .beach-info-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; padding: 3px 8px 7px; }
  .leaflet-control .info-box { min-width: 0; }
  .leaflet-control .info-label { margin-bottom: 2px; font-size: 8px; }
  .leaflet-control .info-text, .leaflet-control .info-text-km, .leaflet-control .info-text-hour { font-size: 10px; }
  .leaflet-control .info-icon { width: 16px; height: 16px; }
  .leaflet-control .beach-extra-note { padding: 5px 10px 8px; }
  .leaflet-control .note-item { flex-direction: row; align-items: center; gap: 6px; margin: 2px 0; font-size: 10px; }
  .leaflet-control .btn.btn-light { padding: 7px; font-size: 11px; }
  .leaflet-top.leaflet-right { top: 4px; right: 3px; }
  .leaflet-top.leaflet-left { top: 62px; left: 4px; }
  .leaflet-bottom.leaflet-right { bottom: 12px; }
  .leaflet-bottom.leaflet-left { bottom: 12px; }
  .leaflet-control-attribution { max-width: 54vw; font-size: 9px; }
}

@media (max-width: 380px) {
  .parent { grid-template-columns: 92px minmax(0,1fr); padding-inline: 10px; gap: 0 7px; }
  .logo { width: 88px; }
  .weather-item { font-size: 10px; }
  .weather-label { font-size: 7px; }
  .weather-extra-temps { font-size: 7px; }
}

/* Clima desplegable para móvil */
.weather-toggle, .weather-overlay, .weather-drawer { display: none; }

@media (max-width: 700px) {
  .weather-section { height: 74px; }
  .parent { height: 74px; min-height: 0; grid-template-columns: 102px minmax(0,1fr); grid-template-rows: 1fr; padding: 4px 14px; }
  .div1 { grid-row: 1; grid-column: 1; width: auto; height: auto; padding: 0 8px 0 0; }
  .logo { width: 88px; max-height: 60px; }
  .div2 { grid-column: 2; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: flex-start; min-width: 0; margin: 0; padding: 0; }
  .weather-content { min-width: 0; align-self: auto; }
  .weather-info h2 { font-size: 17px; }
  .weather-infosub { font-size: 10px; }
  .weather-top, .weather-details { display: none; }
  .content-container { height: calc(100dvh - 74px); }
  .weather-toggle { display: inline-flex; position: absolute; top: 12px; right: 12px; z-index: 900; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; color: #fff; background: #187b75; border: 0; border-radius: 50%; box-shadow: 0 4px 14px rgba(20,57,60,.25); font-size: 22px; }
  .weather-toggle:hover, .weather-toggle:focus-visible { background: #12645f; }
  .weather-overlay { display: block; position: absolute; z-index: 1000; inset: 0; background: rgba(19,29,34,.48); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .weather-overlay.active { opacity: 1; pointer-events: auto; }
  .weather-drawer { display: block; position: absolute; z-index: 1100; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); left: 8px; max-height: min(76dvh, 620px); padding: 10px 18px 18px; overflow-y: auto; overscroll-behavior: contain; color: #26383f; background: #fff; border-top: 4px solid #31557d; border-radius: 23px; box-shadow: 0 10px 34px rgba(15,35,42,.26); transform: translateY(calc(100% + 24px)); transition: transform .28s cubic-bezier(.22,.75,.25,1); pointer-events: none; }
  .weather-drawer.active { transform: translateY(0); pointer-events: auto; }
  .weather-drawer-handle { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 4px; background: #cbd3d6; }
  .weather-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid #e9edef; }
  .weather-drawer-title { display: flex; align-items: center; gap: 11px; }
  .weather-drawer-title h2 { margin: 0; color: #26383f; font-size: 18px; font-weight: 700; }
  .weather-drawer-title p { margin: 2px 0 0; color: #7c898f; font-size: 11px; }
  .weather-drawer-x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: #53636a; background: #f1f5f5; border: 0; border-radius: 50%; font-size: 23px; line-height: 1; }
  .weather-drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .weather-card { display: flex; min-height: 94px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 8px; text-align: center; background: #f8faf9; border: 1px solid #e5eceb; border-radius: 15px; }
  .weather-card-temperature { background: #f2f5f9; border-color: #d9e2ed; }
  .weather-card-label { color: #75848a; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
  .weather-card strong { color: #26383f; font-size: 28px; font-weight: 700; line-height: 1.05; }
  .weather-card strong small { font-size: 12px; font-weight: 500; }
  .weather-card-secondary { color: #7c898f; font-size: 11px; }
  .weather-drawer-close { display: block; width: 100%; min-height: 46px; margin-top: 14px; color: #fff; background: #31557d; border: 0; border-radius: 24px; font-size: 14px; font-weight: 700; }
}

@media (max-width: 700px) {
  .menu-toggle, .weather-toggle,
  .menu-toggle:hover, .menu-toggle:focus-visible,
  .weather-toggle:hover, .weather-toggle:focus-visible { color: #fff; background: #31557d; }
  .menu-toggle svg { display: block; width: 25px; height: 25px; flex: none; }
  .weather-toggle svg { display: block; width: 27px; height: 27px; }
}

@media (max-width: 700px) {
  .weather-card-temperature { grid-column: 1 / -1; }
}

/* MapLibre + tarjeta informativa de playas */
.maplibregl-map { font-family: "Public Sans", sans-serif; }
.maplibregl-canvas { outline: none; }
.beach-legend { box-sizing: border-box; width: 252px; max-width: min(290px, calc(100vw - 24px)); max-height: calc(100vh - 112px); margin: 10px; overflow-y: auto; color: #26383f; background: #fff; border: 1px solid #e4e8eb; border-radius: 13px; box-shadow: 0 5px 18px rgba(22,40,48,.18); }
.beach-legend .image-container { position: relative; height: 118px; overflow: hidden; }
.beach-legend .image-beach { display: block; width: 100%; height: 100%; object-fit: cover; }
.beach-legend .beach-title { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 0 5px; padding: 10px 12px 5px; color: #52636b; font-size: 12px; font-weight: 400; line-height: 1.35; text-align: left; }
.beach-legend .beach-title strong { color: #31557d; font-size: 17px; font-weight: 750; }
.beach-legend .beach-title-separator { color: #9aa5aa; }
.beach-legend .beach-address { color: #75838a; font-size: 13px; }
.beach-legend .beach-panel-close { position: absolute; z-index: 2; top: 8px; left: 8px; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 6px; color: #26383f; background: rgba(255,255,255,.94); border: 0; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
.beach-legend .beach-panel-close svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.beach-legend .beach-panel-close:hover, .beach-legend .beach-panel-close:focus-visible { color: #fff; background: #31557d; outline: 2px solid #fff; outline-offset: 1px; }
.beach-legend .mini-btn { top: 8px; right: 8px; left: auto; bottom: auto; border-radius: 50%; }
.beach-legend .beach-info-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; padding: 4px 8px 10px; }
.beach-legend .beach-info-grid-3 .info-box { min-width: 0; }
.beach-legend .beach-info-grid-3 .info-icon-text { justify-content: center; flex-wrap: wrap; gap: 4px; }
.beach-legend .beach-info-grid-3 .info-icon { width: 21px; height: 21px; }
.beach-legend .beach-info-grid-3 .info-icon-svg { width: 21px; height: 21px; flex-basis: 21px; }
.beach-legend .beach-info-grid-3 .info-label { margin-bottom: 4px; font-size: 11px; }
.beach-legend .beach-info-grid-3 .info-text,
.beach-legend .beach-info-grid-3 .info-text-hour { color: #34434a; font-size: 12px; font-weight: 650; line-height: 1.3; }
.beach-legend .beach-info-grid-3 .hours-info { display: grid; grid-template-columns: 21px minmax(0,1fr); align-items: center; gap: 4px; }
.beach-legend .beach-info-grid-3 .hours-info .info-icon-svg { grid-column: 1; grid-row: 1; }
.beach-legend .beach-info-grid-3 .hours-info .info-text-hour { display: block; min-width: 0; text-align: left; }
.beach-legend .info-icon-svg { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; color: #0f3260; }
.beach-legend .note-icon-svg { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; color: #0f3260; }
.beach-legend .info-label { color: #89939a; font-size: 9px; }
.beach-legend .beach-extra-note { padding: 9px 12px 12px; }
.beach-legend .beach-features { padding-top: 4px; text-align: left; text-align-last: auto; }
.beach-legend .blue-flag-feature { display: flex; align-items: center; gap: 9px; min-height: 42px; margin-bottom: 10px; padding: 6px 8px; background: #f3f8ff; border: 1px solid #d7e6f6; border-radius: 10px; }
.beach-legend .blue-flag-logo { display: block; width: 42px; height: 30px; flex: 0 0 42px; border-radius: 3px; box-shadow: 0 1px 3px rgba(15,50,96,.18); }
.beach-legend .blue-flag-feature-label { flex: 1; color: #0f3260; font-size: 11px; font-weight: 700; line-height: 1.2; }
.beach-legend .blue-flag-info-link { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; color: #0f3260; background: #fff; border: 1px solid #c9daee; border-radius: 50%; text-decoration: none; transition: background .15s ease, color .15s ease; }
.beach-legend .blue-flag-info-link:hover, .beach-legend .blue-flag-info-link:focus-visible { color: #fff; background: #0f3260; outline: none; }
.beach-legend .blue-flag-info-icon { display: block; width: 19px; height: 19px; }
.beach-legend .note-item { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0 0 8px; color: #34434a; font-size: 11px; text-align: left; }
.beach-legend .note-item > span { flex: 1; text-decoration: none; }
.beach-legend .note-item-unavailable { color: #a7adb1; }
.beach-legend .note-item-unavailable > span { text-decoration: line-through; text-decoration-thickness: 1px; }
.beach-legend .note-item-unavailable .note-icon-svg { color: #a7adb1; opacity: .72; filter: grayscale(1); }
.beach-legend .blue-flag-note-icon { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.beach-legend .note-item .blue-flag-info-link { width: 23px; height: 23px; flex: 0 0 23px; }
.beach-legend .note-item .blue-flag-info-icon { width: 15px; height: 15px; }
.beach-legend .btn.btn-light { width: 100%; color: #fff; background: #31557d; border: 0; }
.beach-legend .btn.btn-light:hover { background: #28486a; }
.beach-legend .directions-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.beach-legend .directions-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.beach-legend:has(.flag-color-legend) { padding: 0; background: rgba(255,255,255,.84); border-radius: 0; }
.beach-legend .flag-color-legend { width: 100%; padding: 12px 14px; color: #26383f; text-align: center; }
.flag-color-legend-title { margin-bottom: 8px; color: #52636b; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.flag-color-legend-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.flag-color-legend-items > span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-size: 11px; line-height: 1.2; }
.flag-color-legend-items i { display: block; width: 12px; height: 12px; flex: 0 0 12px; background: var(--flag-color); border: 1px solid rgba(255,255,255,.9); border-radius: 50%; box-shadow: none; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.map-feature-tooltip { z-index: 900; }
.map-feature-tooltip .maplibregl-popup-content { padding: 7px 10px; color: #26383f; background: #fff; border: 1px solid #e4e8eb; border-radius: 8px; box-shadow: 0 3px 12px rgba(22,40,48,.18); font-family: "Public Sans", sans-serif; font-size: 12px; font-weight: 600; pointer-events: none; }
.map-feature-tooltip .maplibregl-popup-tip { border-top-color: #fff; border-bottom-color: #fff; }

@media (max-width: 700px) {
  .maplibregl-ctrl-top-right { top: 62px; right: 4px; }
  .maplibregl-ctrl-top-right .beach-legend { position: fixed; z-index: 700; top: auto; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: auto; max-width: none; max-height: min(37dvh, 310px); margin: 0; overflow: auto; }
  .beach-legend:has(.legend-placeholder) { display: none; }
  .beach-legend .image-container { height: 72px; }
  .beach-legend .beach-title { padding: 8px 12px 3px; font-size: 14px; }
  .beach-legend .beach-title { gap: 0 4px; }
  .beach-legend .beach-title strong { font-size: 16px; }
  .beach-legend .beach-address { font-size: 12px; }
  .beach-legend .beach-panel-close { top: 6px; left: 6px; width: 28px; height: 28px; }
  .beach-legend .beach-info-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; padding: 3px 8px 7px; }
  .beach-legend .info-box { min-width: 0; }
  .beach-legend .beach-info-grid-3 .info-label { margin-bottom: 3px; font-size: 10px; }
  .beach-legend .beach-info-grid-3 .info-text,
  .beach-legend .beach-info-grid-3 .info-text-hour { font-size: 11px; }
  .beach-legend .beach-info-grid-3 .info-icon { width: 18px; height: 18px; }
  .beach-legend .beach-info-grid-3 .info-icon-svg { width: 18px; height: 18px; flex-basis: 18px; }
  .beach-legend .note-item { font-size: 10px; }
  .beach-legend .info-icon-svg, .beach-legend .note-icon-svg { width: 18px; height: 18px; flex-basis: 18px; }
  .beach-legend .beach-extra-note { padding: 5px 10px 8px; }
  .beach-legend .blue-flag-note-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .beach-legend .note-item .blue-flag-info-link { width: 21px; height: 21px; flex-basis: 21px; }
  .beach-legend .note-item .blue-flag-info-icon { width: 14px; height: 14px; }
  .beach-legend .btn.btn-light { padding: 7px; font-size: 11px; }
  .maplibregl-ctrl-attrib { max-width: 54vw; font-size: 9px; }
  .maplibregl-ctrl-bottom-left { bottom: 4px; left: 6px; }
  .beach-legend:has(.flag-color-legend) { border-radius: 0; }
  .beach-legend .flag-color-legend { padding: 10px 12px; }
  .flag-color-legend-title { margin-bottom: 6px; font-size: 10px; }
  .flag-color-legend-items { gap: 7px 10px; }
  .flag-color-legend-items > span { gap: 4px; font-size: 10px; }
  .flag-color-legend-items i { width: 11px; height: 11px; flex-basis: 11px; }
  .beach-legend .beach-info-grid-3 .hours-info { grid-template-columns: 18px minmax(0,1fr); gap: 3px; }
}

/* Ayuda del mapa, tamaño del encabezado y clima en móvil */
.help-control { position: absolute; z-index: 980; right: 18px; bottom: 18px; }
.help-control > summary { display: flex; width: 46px; height: 46px; align-items: center; justify-content: center; color: #fff; background: #31557d; border: 0; border-radius: 50%; box-shadow: 0 4px 14px rgba(20,40,60,.24); cursor: pointer; list-style: none; }
.help-control > summary::-webkit-details-marker { display: none; }
.help-control > summary svg { width: 26px; height: 26px; }
.help-panel { position: absolute; right: 0; bottom: 58px; width: min(370px, calc(100vw - 28px)); max-height: min(70vh, 560px); padding: 18px; overflow: auto; color: #34434a; background: rgba(255,255,255,.97); border: 1px solid #dfe6e9; border-radius: 14px; box-shadow: 0 10px 30px rgba(24,42,51,.2); }
.help-panel h2 { margin: 0 0 10px; color: #31557d; font-size: 17px; font-weight: 700; }
.help-panel ul { margin: 0; padding-left: 19px; font-size: 13px; line-height: 1.5; }
.help-panel li + li { margin-top: 6px; }
.help-links { display: grid; gap: 8px; margin-top: 14px; }
.help-links a { color: #31557d; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.help-note { margin: 12px 0 0; color: #6e7b80; font-size: 11px; line-height: 1.45; }

@media (min-width: 701px) {
  .weather-section { min-height: 100px; }
  .parent { min-height: 100px; grid-template-columns: 260px 1fr; }
  .logo { width: 228px; max-height: 88px; }
  .content-container { height: calc(100vh - 100px); }
}

@media (max-width: 700px) {
  .weather-section { height: 88px; }
  .parent { height: 88px; min-height: 88px; grid-template-columns: 122px minmax(0,1fr); grid-template-rows: 1fr; padding: 4px 12px; }
  .div1 { grid-row: 1; grid-column: 1; justify-content: center; padding: 0 8px 0 0; }
  .logo { width: 112px; max-width: 100%; max-height: 78px; }
  .div2 { grid-column: 2; grid-row: 1; display: flex; justify-content: center; min-width: 0; padding: 0; }
  .weather-content { display: flex; width: 100%; justify-content: center; }
  .weather-info { width: 100%; text-align: center; }
  .weather-info h2 { font-size: clamp(18px, 5vw, 21px); }
  .weather-infosub { font-size: 11px; }
  .content-container { height: calc(100dvh - 88px); }
  .weather-toggle { width: auto; min-width: 92px; height: 44px; gap: 7px; padding: 0 13px; border-radius: 24px; font-size: 13px; font-weight: 700; }
  .weather-toggle svg { width: 23px; height: 23px; }
  .help-control { right: 14px; bottom: 18px; }
  .help-control > summary { width: 42px; height: 42px; }
  .help-control > summary svg { width: 23px; height: 23px; }
  .help-panel { bottom: 52px; width: min(360px, calc(100vw - 24px)); max-height: 58dvh; padding: 15px; }
  .help-panel h2 { font-size: 16px; }
  .help-panel ul, .help-links a { font-size: 12px; }
  .content-container:has(.sidebar.active) .help-control { display: none; }
  .content-container:has(.beach-legend .flag-color-legend) .help-control { bottom: 88px; }
  .content-container:has(.beach-legend:not(:has(.flag-color-legend))) .help-control { bottom: calc(min(37dvh, 310px) + 18px); }
}

@media (max-width: 380px) {
  .parent { grid-template-columns: 108px minmax(0,1fr); }
  .logo { width: 100px; }
}

.sidebar .playa-item { border-bottom: 0; border-radius: 0; }
.sidebar .playa-item + .playa-item { border-top: 1px solid rgba(49,85,125,.12); }

.sidebar .playa-item-text { font-size: 13px; font-weight: 650; }
@media (max-width: 700px) {
  .sidebar .playa-item-text { font-size: 15px; font-weight: 650; }
}
