/* Tabs for schools with bus stops */
.school-tabs {
    display: flex;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    margin: 5px 0;
    padding: 0;
}

.school-tab {
    background: none;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    flex: 1;
    text-align: center;
}

.school-tab.active {
    font-weight: 600;
    border-bottom-color: #0066cc;
    background-color: #fff;
}

.school-tab-content {
    display: none;
    padding: 5px 0;
}

.school-tab-content.active {
    display: block;
}

/* Bus stop table styling */
.bus-stop-table {
    width: 100%;
    border-collapse: collapse;
}

.bus-stop-row {
    display: flex;
}

.bus-stop-cell {
    flex: 1;
    padding: 5px;
    border: 1px solid #e0e0e0;
    font-size: 12px;
}

.bus-stop-cell.header {
    font-weight: 500;
    background-color: #f5f5f5;
    text-align: center;
}

.bus-stop-route {
    color: #555;
    font-style: italic;
    margin-bottom: 2px;
}

.bus-stop-id {
    font-weight: 500;
    margin-bottom: 2px;
}

.bus-stop-time,
.bus-stop-location {
    font-size: 11px;
    margin-bottom: 2px;
}
/* Position the dropdown indicator properly */
.school-result-name {
    position: relative;
}

/* Style the school header to include space for the indicator */
.school-header {
    position: relative;
    padding-left: 18px; /* Space for the carrot/dropdown on the left */
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.school-header::before {
    content: '^'; /* Caret character */
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg); /* Rotated to point right when collapsed */
    font-size: 12px;
    font-weight: bold;
    color: #555;
    transition: transform 0.2s ease;
}

/* Rotate caret when expanded */
.school-result-name.show .school-header::before {
    transform: translateY(-50%) rotate(180deg); /* Rotated to point down when expanded */
    color: #0066cc; /* Highlight color */
}

/* Make sure we remove any other triangles */
.school-header::after {
    content: none !important;
}

.school-result-name.show .school-header::after {
    content: none !important;
}
/* Ensure the tab content is only shown when school is expanded */
.school-tab-content {
    display: none;
}

.school-result-name.show .school-tab-content.active {
    display: block;
}

/* Ensure the tab content is only shown when school is expanded */
.school-tab-content {
    display: none;
}

.school-result-name.show .school-tab-content.active {
    display: block;
}

/* Walk zone indicator styling */
.walk-zone-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-color: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.walk-zone-indicator svg {
    width: 14px;
    height: 14px;
}

/* Fix for school header display */
.school-header {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 18px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
}

/* Bus stop markers */
.bus-stop-marker {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
  }
  
  .bus-stop-marker.Elementary {
    background-color: #f44336; /* Red for elementary */
  }
  
  .bus-stop-marker.Middle_School {
    background-color: #2196F3; /* Blue for middle school */
  }
  
  .bus-stop-marker.High_School {
    background-color: #4CAF50; /* Green for high school */
  }
  
  /* Bus stop popup styling */
  .bus-stop-popup {
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  
  .bus-stop-popup-header {
    font-weight: bold;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
  }

  