body {
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100vh;
}

.bus-stop-popup {
    min-width: 300px;
    max-width: 600px;
}

.bus-stop-popup iframe {
    width: 100%;
    height: 500px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ajuste para iframes específicos dentro de .bus-info */
.bus-info iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para el control de capas */
.leaflet-control-layers {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.leaflet-control-layers-toggle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background-color: #00945F !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16"/></svg>') !important;
    background-size: 22px !important;
    background-position: center !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-layers-toggle:hover {
    background-color: #008154 !important;
    transform: scale(1.05) !important;
}

.leaflet-control-layers-expanded {
    padding: 8px !important;
    background-color: white !important;
    border: none !important;
    min-width: 120px !important;
}

.leaflet-control-layers-expanded label {
    margin-bottom: 8px !important;
    padding: 5px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s !important;
}

.leaflet-control-layers-expanded label:hover {
    background-color: #f0f0f0 !important;
}

.leaflet-control-layers-base {
    font-size: 14px !important;
    font-weight: 500 !important;
}

#search-container {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1000;
    width: 300px;
}

#search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #00945F;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#search-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.search-result-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}
