body {
    font-family: Raleway, sans-serif;
    margin: 30px;
    background: #ffffff;
    overflow-x: hidden;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.header-left {
    flex: 1;
}
.header-center {
    flex: 1;
    text-align: center;
}
.header-center h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #003051;
}
.header-right {
    text-align: right;
    flex: 1;
}
.header-btn {
    background: #f67711;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.3s ease;
}
.header-btn:hover {
    background: #e46c09;
}
.logos {
    height: 50px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding-bottom: 30px;
    }
    .logos {
        height: 50px;
    }
    .header-right {
        text-align: center;
    }
    .header-center h1 {
        font-size: 20px;
    }
}


.outage-list {
    margin-top: 20px;
}
.stats {
    background: #d4dae6;
    padding: 10px 20px;
    border: 1px solid #d4dae6;
    margin-bottom: 15px;
    border-radius: 6px;
}
.pagination {
    text-align: center;
    padding: 20px 0;
}
.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    border: 1px solid #e4e4e4;
    text-decoration: none;
    color: #666;
    border-radius: 5px;
}
.pagination a.active,
.pagination a.active:hover {
    background: #333;
    border: 1px solid #333;
    color: #fff;
}
.pagination a:hover {
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
}

.no-outages {
    text-align: center;
    padding: 40px;
    font-weight: 700;
}


.outage-card {
  position: relative;
  background: #f9f9f9;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  padding: 30px;
  margin: 30px 0;
  border: 1px solid #f1f1f1;
}
.outage-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.20);
  background: #ffffff;
}

.outage-badge {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #eee;
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 13px;
  color: #333;
}

.outage-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.outage-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
.outage-icon::after {
    content: '';
    background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 23.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 404.9 404.9' style='enable-background:new 0 0 404.9 404.9;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M177.3,231.1c-28.2-8.3-55.9-16.5-83.7-24.6c-10.4-3-11.3-14.8-5-20.8c16.8-16.1,32.9-32.8,49.4-49.2 c13.9-13.8,28.1-27.3,42-41.1c10.1-10,19.9-20.2,30-30.3c9.4-9.4,18.9-18.6,28.3-27.9c7.5-7.4,15.1-14.7,22.4-22.3 c4.7-4.8,11.4-6.8,15.9-4.1c6.1,3.6,7.9,9.8,5.2,17c-15,40.5-30,81-45,121.4c-3,8-6,16.1-9.2,24.6c10.2,2.9,20.2,5.8,30.2,8.7 c18.2,5.3,36.4,10.5,54.5,16c8.7,2.7,11,13.3,4.6,19.7c-16.9,16.9-33.8,33.8-50.7,50.7c-13,13-26,26-39.2,38.9 c-14.1,13.9-28.4,27.5-42.5,41.4c-9.7,9.6-19.2,19.4-28.8,29.1c-4.4,4.4-8.7,8.8-13.2,13c-3.9,3.7-10.6,4.5-14.5,1.9 c-5.7-3.7-7.6-8.9-5.2-15.3c8.1-21.9,16.3-43.8,24.4-65.7C157.2,285.6,167.2,258.6,177.3,231.1z'/%3E%3Cpath class='st0' d='M209.8,31.5c-5.5,5.7-10.7,11-15.9,16.3c-0.4,0.4-1.2,0.6-1.5,1.1c-3.4,5.6-8.9,7-14.9,7.9 c-26.1,4.1-49.2,14.9-69.3,31.9c-38.2,32.1-55.6,73.5-53.3,123c1.4,30.3,12.4,57.4,30.6,81.5c8.5,11.2,18.8,20.6,29.8,29.2 c0.9,0.7,1.7,2.5,1.3,3.4c-2.5,6.9-5.2,13.6-7.9,20.4c-66.5-41.6-98.3-130.2-65.3-209.6C77.8,54.5,159.4,26.1,209.8,31.5z'/%3E%3Cpath class='st0' d='M194.1,373.6c5.7-5.5,11.4-9.9,15.8-15.4c6.5-8.3,15.4-9.3,24.7-11.2c17.5-3.6,33.6-11.1,48.8-20.6 c15-9.4,27.6-21.4,37.9-35.4c14.9-20.3,24.6-43.2,27.9-68.4c3.4-26.3,0.5-52-9.9-76.5c-5.7-13.4-12.4-26.4-22.5-37.2 c-9-9.6-18.5-18.8-28.6-28.9c2.2-6.1,5-13.6,7.8-21.2C357.9,96.6,395.2,183,362.3,266C330.3,346.9,249.7,379.1,194.1,373.6z'/%3E%3C/g%3E%3C/svg%3E%0A");
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 66%;
    position: absolute;
    left: 0;
    top: 0;
}

/* Different colors per outage type */
.outage-planned { 
    background: #ffa94d;
    border: 4px solid #e99558;
}
.outage-active { 
    background: #ec4c4e;
    border: 4px solid #dd4244;
}
.outage-no { 
    background: #49ce7c;
    border: 4px solid #4ac077;
}


.outage-details {
  flex: 1;
}

.outage-details p {
  margin: 11px 0;
  color: #000;
  font-size: 15px;
  font-weight: 600;
}

.outage-details .label,
.outage-dates .label {
  color: #666;
  font-size: 14px;
  display: flex;
  font-weight: 400;
}
.outage-dates .label {
    /*justify-content: flex-end;*/
}

.outage-details .street-list strong {
    font-size: 17px;
    color: #000;
    font-weight: 700;
}
.outage-dates {
    font-size: 15px;
    color: #000;
    min-width: 200px;
    font-weight: 600;
}
.city-streets {
    display: flex;
    align-items: center;
    gap: 20px;
}
.city-streets .city strong {
    font-size: 30px;
}


ul.street-list,
ul.street-list ul {
    list-style: none;
    margin:  10px 0 0 0;
    padding: 0;
}
ul.street-list ul {
    margin-left: 10px;
}

ul.street-list li {
    margin: 0;
    line-height: 24px;
    border-left: 1px dashed rgb(100, 100, 100);
    position: relative;
    font-size: 15px;
    color: #000;
    font-weight: 500;
    padding: 0px 7px;
}

ul.street-list li span {
    position: absolute;
    left: -6px;
    top: 7px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #fcaa4d;
    border-radius: 5px;
}
.active ul.street-list li span {
    background-color: #ec4c4e;
}

ul.street-list li:last-child {
    /*border-left: none;*/
}

ul.street-list li:before {
    position: relative;
    top: -0.3em;
    height: 1em;
    width: 12px;
    color: white;
    border-bottom: 1px solid rgb(100, 100, 100);
    content: "";
    display: inline-block;
    left: -8px;
}

ul.street-list li:last-child:before {
    border-left: 1px solid rgb(100, 100, 100);
}


/* --- Responsive mobile layout --- */
@media (max-width: 768px) {
    .outage-body {
        flex-direction: column;
        text-align: center;
         gap: 0px;
    }
    .outage-badge {
        position: static;
        display: flex;
        margin-bottom: 10px;
        justify-content: center;
    }
    .outage-icon {
        margin: 0 auto 10px;
    }
    .outage-dates {
        text-align: center;
    }
    .outage-details .label,
    .outage-dates .label {
        justify-content: center;
    }
    .outage-card {
        padding: 20px 10px;
    }
    .city-streets {
        flex-direction: column;
    }
    ul.street-list, ul.street-list ul {
        text-align: left;
    }
}



.map-outage-legend {
    background: #fff;
    padding: 10px 5px;
    margin-right: 5px;
    border: 1px solid #f1f1f1;
    border-radius: 6px;
    text-align: center;
}
.map-outage-legend h3 {
    margin-top: 0;
    font-size: 15px;
    margin-bottom: 10px;
}
.map-outage-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0px;
    justify-content: center;
    flex-direction: column;
}
.map-outage-legend li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}
.outage-circle {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border-width: 3px;
}



.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltiptext {
    visibility: hidden;
    width: 170px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    font-size: 13px;
    top: 11px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}





.filters-container {
    margin-bottom: 10px;
    padding: 10px 20px;
    background: #f1f2f7;
    border: 1px solid #f1f2f7;
    border-radius: 6px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.filters-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.filters-header .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #666;
}

.filters-header.open .arrow {
  transform: rotate(90deg);
}

.filters-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.2rem;
}

.filters-form.open {
  padding: 20px 0 0 0;
  max-height: 1000px; /* Enough to fit all filters */
  overflow:visible;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dates-row .form-group {
  flex: 1 1 220px;
}

.full-width {
  flex: 1 1 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.form-group input,
.form-group select {
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
      width: auto;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.2);
}

.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #002f50;
  color: #fff;
}
.btn-primary:hover {
  background-color: #005ea6;
}

.btn-secondary {
  background-color: #eaeaea;
  color: #333;
}

.btn-secondary:hover {
  background-color: #d5d5d5;
}

/* Responsive */
@media (max-width: 600px) {
  .dates-row {
    /*flex-direction: column;*/
  }
}


.field-note {
    font-size: 13px;
    padding: 5px 0 0 5px;
    color: #666;
}




.multiselect-dropdown{
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  border: solid 1px #d8d8d8;
  background-color: white;
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
  width: auto !important;
}
.multiselect-dropdown span.optext, .multiselect-dropdown span.placeholder{
  margin:5px;
  padding:1px 0; 
  border-radius: 5px; 
  display:inline-block;
}
.multiselect-dropdown span.optext{
    background-color:#e7e7e7;
    padding: 5px 10px;
    font-size: 15px;
}
.multiselect-dropdown span.optext .optdel {
  float: right;
  margin: 0 -6px 1px 5px;
  font-size: 0.7em;
  margin-top: 2px;
  cursor: pointer;
  color: #666;
}
.multiselect-dropdown span.optext .optdel:hover { color: #c66;}
.multiselect-dropdown span.placeholder{
  color:#ced4da;
}
.multiselect-dropdown-list-wrapper{
  box-shadow: #d5d5d5  0 3px 8px;
  z-index: 100;
  padding:5px;
  border-radius: 10px;
  border: solid 1px #28bb80;
  display: none;
  margin: -1px;
  position: absolute;
  top:0;
  left: 0;
  right: 0;
  background: white;
}
.multiselect-dropdown-list-wrapper .multiselect-dropdown-search{
  margin-bottom:5px;
  padding: 7px;
  border: 1px solid #d8d8d8;
  box-sizing: border-box;
}
.multiselect-dropdown-list{
  padding:2px;
  height: 15rem;
  overflow-y:auto;
  overflow-x: hidden;
}
.multiselect-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.multiselect-dropdown-list::-webkit-scrollbar-thumb {
  background-color: #bec4ca;
  border-radius:3px;
}

.multiselect-dropdown-list div{
  padding: 5px;
}
.multiselect-dropdown-list input{
  height: 1.15em;
  width: 1.15em;
  margin-right: 0.35em;  
}
.multiselect-dropdown-list div.checked{
}
.multiselect-dropdown-list div:hover{
  background-color: #ced4da;
}
.multiselect-dropdown span.maxselected {width:100%;}
.multiselect-dropdown-all-selector {border-bottom:solid 1px #999;}


.map {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.custom-box {
    background: #ffa74b;
    color: #000;
    border-radius: 12px;
    border: 3px solid #e99558;
    padding: 14px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 14px;
    max-width: 240px;
    position: relative;
}
.custom-box.active {
    background: #ee4b4e;
    color: #ffffff;
    border: 3px solid #dd4244;
}
.custom-box .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #000000;
}
.custom-box.active .close-btn {
    color: #ffffff;
}
.custom-box .status {
    margin: 4px 0;
    font-weight: bold;
    font-size: 16px;
}
