.main-header{
    grid-area: header;
}

.main-data{
    grid-area: main;
    z-index:1;    
    /*border-top: 2px solid #f5f5f5;*/
}

.wrapper{
    display: grid;
    grid-gap: 0px;
    grid-template-areas:
	"header"
    "main";
    min-height: 100vh;
    min-width: 100vw;
    grid-template-columns: 1fr;
	/*grid-template-rows: 62px calc(100vh - 62px);*/
}

#map{
    display: grid;
    grid-gap: 0px;
    height: 100vh;/* height: calc(100vh - 62px);*/
    width: 100%;
}

#popupcookies
{
    display: none;
}

#footer
{
    z-index: 400;
    margin-bottom: 20px;
    background-color: transparent !important;
}

.button-extendido {
    min-width: 100px;  /* o usa "width: 100px;" para un ancho fijo */
}

.modal-content 
{
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 85%;
}

.modal-card
{
    max-width: 90% !important;
}

/* para el icono con numero en leaflet */
/*
.custom-icon 
{
    background-image: url('https://unpkg.com/leaflet@1.9.3/dist/images/marker-icon.png');
    background-size: cover;
    width: 25px;
    height: 41px;
    position: relative;
}

.custom-yellow-icon
{
    background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-gold.png');
    background-size: cover;
    width: 25px;
    height: 41px;
    position: relative;
}

.custom-red-icon
{
    background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-red.png');
    background-size: cover;
    width: 25px;
    height: 41px;
    position: relative;
}

.custom-grey-icon
{
    background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-grey.png');
    background-size: cover;
    width: 25px;
    height: 41px;
    position: relative;
}

.numberMarker 
{
    font-size: 13px;
    font-weight: bold;
    color: #aef432;    
    text-align: center;
    position: absolute;
    top: 2px;
    left: 1px;
    right: 0px;
    background-color: #267fca;
    border-radius: 50%;
    width: 1.75em;
    height: 1.75em;
}

.numberMarkerYellow
{
    font-size: 13px;
    font-weight: bold;
    color: #3D3D3D;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 1px;
    right: 0px;
    background-color: #FFD326;
    border-radius: 50%;
    width: 1.75em;
    height: 1.75em;
}

.numberMarkerRed
{
    font-size: 13px;
    font-weight: bold;
    color: #FFD326;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 1px;
    right: 0px;
    background-color: #CB2B3E;
    border-radius: 50%;
    width: 1.75em;
    height: 1.75em;
}

.numberMarkerGrey
{
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 1px;
    right: 0px;
    background-color: #7B7B7B;
    border-radius: 50%;
    width: 1.75em;
    height: 1.75em;
}
*/
.custom-marker-saca
{
    background-image: url('https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-grey.png');
    background-size: cover;
    width: 25px;
    height: 41px;
    position: relative;
}

.customMarkerSaca
{
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 2px;
    left: 1px;
    right: 0px;
    border-radius: 50%;
    width: 1.75em;
    height: 1.75em;
}

.custom-marker-vertedero
{
    background-image: url('../images/vertedero.png');
    background-size: cover;
    position: relative;
    text-align: center;
}

.custom-marker-vertedero i
{
    margin-top: 10px;
    display: inline-block;
}

.width-80
{
    width: 80%;
}

.navbar-dropdown {
    left: initial !important;
    right: 1.2em !important;
}

.floating-button {
    position: fixed;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 16px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.floating-button.login {
    bottom: 20px;
    left: 20px;
}

.floating-button.login.logged {
    background-color: #047ae1;
}

.floating-button.login.not-logged {
    background-color: #9000ff;
}

.floating-button.filter {
    bottom: 80px;
    left: 20px;
}

.floating-button.filter.not-filtering {
    background-color: blue
}

.floating-button.filter.filtering {
    background-color: darkred
}

.floating-button.filterRuta {
    bottom: 140px;
    left: 20px;
    display: none
}

.floating-button.filterRuta.not-filtering {
    background-color: goldenrod;
}

.floating-button.filterRuta.filtering {
    background-color: darkred;
}

.floating-button:hover {
    color: white;
}

.floating-button.markersList {
    bottom: 20px;
    right: 20px;
    background-color: darkslategray
}

.floating-button.center {
    bottom: 80px;
    right: 20px;
    background-color: darkslategray
}

/*Si pantalla mas grande que un movil*/
@media screen and (min-width: 601px) {
    .leaflet-control-geocoder-form input,
    .leaflet-control-geocoder-alternatives {
        width: fit-content !important; /* Set a wider width for larger screens */
        max-width: 500px;
    }
}

#headerInfo {
    width: 100%;
    background: #f5f5f5b0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerInfoText {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 90%;
}

.leaflet-control-follow {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    color: #333;
}

.leaflet-control-follow.active {
    background: #136AEC;
    color: white;
}

.blue-dot-icon {
    background: #136AEC;
    border: 2px solid white;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.truck-icon {
    text-shadow: 0 0 3px white, 0 0 5px white;
    transform: rotate(45deg); /* Optional: point the truck in direction of movement */
}

.truck-icon div {
    transition: transform 0.3s ease-out; /* Transición más suave */
    transform-origin: center center;
    display: inline-block; /* Para que la transformación funcione correctamente */
}

.truck-icon i {
    text-shadow: 0 0 3px white; /* Mejor visibilidad */
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); /* Sombra exterior */
}
/* Reemplazo del blue-dot por icono de camión */
.blue-truck-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23136AEC'%3E%3Cpath d='M18 18.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zm1.5-9H17V12h4.46L19.5 9.5zM6 18.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM20 8l3 4v5h-2c0 1.66-1.34 3-3 3s-3-1.34-3-3H9c0 1.66-1.34 3-3 3s-3-1.34-3-3H1V6c0-1.11.89-2 2-2h14v4h3z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

#btnRoute {
  cursor: pointer;
  transition: all 0.3s;
}

#btnRoute:active {
  transform: scale(0.95);
}

/* Pantalla de instrucciones para usuarios no logueados */
.instruction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.instruction-overlay.hidden {
    opacity: 0;
}

.instruction-content {
    max-width: 80%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 0.5s ease-out;
}

.instruction-content h2 {
    margin-top: 0;
    color: #fff;
}

.instruction-content p {
    margin-bottom: 15px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/***
 * 
 * 
 */

.pickup-form-container {
    max-width: 320px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: white;
}

.form-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem !important;
}

.truck-icon {
    margin: 0.5rem 0;
    color: #4a6cf7;
}

.sacas-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.sacas-label {
    font-weight: 500;
    color: #555;
    margin-right: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn.minus {
    background-color: #ff4757;
    color: white;
}

.quantity-btn.plus {
    background-color: #4a6cf7;
    color: white;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.address-display {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.address-display i {
    margin-right: 0.5rem;
    color: #4a6cf7;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-footer .button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn {
    background-color: #f8f9fa;
    color: #ff4757;
    border: 1px solid #ddd;
}

.confirm-btn {
    background-color: #4a6cf7;
    color: white;
    border: none;
}

.form-footer .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.confirm-btn:hover {
    background-color: #3a5bd9;
}



/**** Quitar flechas en input tipo numero ***/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
/********/