html,
body {
    height: 100%;
    margin: 0;
}

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

/* Logo flotant estil Google Maps */
#logo-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* Selector de línies flotant */
#line-selector-overlay {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 95%;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botons de línia */
.btn-line {
    border: 2px solid var(--line-color);
    background: white;
    color: var(--line-color);
    font-weight: bold;
    border-radius: 9999px;
    padding: 5px 12px;
    transition: all 0.2s;
    box-shadow: none !important;
}

.btn-line.active {
    background: var(--line-color);
    color: #fff;
    box-shadow: none !important;
}

.btn-line:hover,
.btn-line.active:hover {
    filter: opacity(0.7);
    background: white;
    color: var(--line-color);
    border: 2px solid var(--line-color);
}

/* Botó filtre */
.btn-filter {
    border: none;
    background: transparent;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 50%;
}

.btn-filter:hover {
    background: #f0f0f0;
}

/* Offcanvas lateral */
.offcanvas.offcanvas-start {
    width: 320px;
}

/* Tabs estil Google Maps */
#menuPanel .nav-tabs {
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

#menuPanel .nav-tabs .nav-item {
    width: 25% !important;
}

#menuPanel .nav-tabs .nav-link {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #555;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 0;
    background: none;
}

#menuPanel .nav-tabs .nav-link:hover {
    color: #000;
    background: none;
    border-bottom: 2px solid #ccc;
}

#menuPanel .nav-tabs .nav-link.active {
    color: #1976d2;
    border-bottom: 2px solid #1976d2;
    background: none;
    font-weight: 600;
}

/* Horaris estil Google Maps */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schedule-list li {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.schedule-list li strong {
    color: #333;
}

.schedule-list li span {
    color: #666;
}

/* Controls custom Leaflet */
.leaflet-control-custom {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-control-custom button {
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-control-custom button:hover {
    background: #f0f0f0;
}

.leaflet-control-custom button+button {
    border-top: 1px solid #ccc;
}