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: #ffcc00;
    color: #000;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.3s ease;
}
.header-btn:hover {
    background: #ffdb4d;
}
.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;
  min-width: 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='M19.5,161.1c0.5-8.9,1-17.9,1.5-26.8c0.6-10.3,6.7-18.9,15.6-21.6c3.1-0.9,6.3-1.4,9.5-1.8 c10.5-1.2,21.1-0.9,31.5,1.2c9.1,1.8,16.8,10.4,17.4,19.6c2.3,33.2,2.2,66.3,0,99.5c-0.6,8.7-8,17.3-16.6,19.2 c-13.5,3-27.1,3-40.7,0c-9.3-2.1-16.2-11-16.8-21.7c-0.4-7.9-0.6-15.8-1-23.7c-0.1-1.7-0.4-3.3-0.5-5C19.5,187,19.5,174,19.5,161.1 z'/%3E%3Cpath class='st0' d='M339.1,395.5c-8.2-1.9-15.1-5.8-20.6-12.2c-9.8-11.3-11.5-24.8-4.3-37.9c7-12.8,16-24.1,26.1-34.6 c2.2-2.2,4-2.1,6,0.1c9.4,10.4,18,21.4,25.5,33.4c13.1,20.7-2.1,45.9-22.4,50.5c-0.8,0.2-1.6,0.5-2.4,0.7 C344.4,395.5,341.7,395.5,339.1,395.5z'/%3E%3Cpath class='st0' d='M109.1,223.7c0-28.5,0-56.5,0-85.1c4.8,0,9.8,0,14.8,0c7.9,0,14.4-2.8,19.6-8.9c6.3-7.5,13.8-13.6,22.4-18.4 c1.1-0.6,2.2-2.2,2.4-3.5c1.8-9.5,8.1-15.9,17.6-17.4c12.5-1.9,25.1-1.8,37.6,0.1c7.9,1.3,15,8.3,16.2,16.3c0.4,2.6,1.5,4,3.7,5.2 c8.3,4.6,15.5,10.5,21.5,17.8c4.6,5.6,10.4,8.4,17.6,9.2c29.2,3.2,55,14.1,75.4,35.7c22.8,24.1,31.8,53.2,29.9,86.1 c-0.1,2.5-0.3,5-0.4,7.5c-0.4,7.4-5.7,12.9-13.1,13.1c-19.8,0.5-39.6,1-59.4,1.3c-7.2,0.1-11.3-3.9-11.7-11.2 c-0.4-6.8-0.6-13.7-1.5-20.4c-0.5-3.6-2.1-7.2-3.9-10.3c-7.8-13.4-24.5-15.7-35.5-4.7c-11.7,11.7-25.1,20-41.4,23.2 c-30.1,5.9-55.8-2.6-76.4-25.3c-6.4-7-13.4-10.9-22.9-10.3C117.4,223.9,113.2,223.7,109.1,223.7z'/%3E%3Cpath class='st0' d='M221.4,59.1c0,5.9,0,11.6,0,17.3c-11.5,0-22.7,0-34.4,0c0-5.6,0-11.4,0-17.5c-6.4,0.3-12.4,0.3-18.3,0.9 c-16,1.6-31.9,3.4-47.9,5.1c-10.3,1.1-19-1.7-24.5-10.8c-5.9-9.8-5.9-20.2,0.2-30c5.6-8.9,14.4-11.8,24.3-10.3 c42,6.2,84.2,7.9,126.6,4.5c13.2-1.1,26.4-3,39.6-4.5c10.2-1.2,19.1,1.4,24.7,10.4c6.1,9.7,6.2,20.1,0.2,30 c-5.5,9-14.2,11.8-24.5,10.7c-19.9-2-39.8-3.9-59.7-5.8C225.8,58.9,223.9,59.1,221.4,59.1z'/%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-unplanned { 
    background: #ec4c4e;
    border: 4px solid #dd4244;
}
.outage-thirdparties { 
    background: #8b2fff;
    border: 4px solid #8231e8;
}
.outage-other { 
    background: #c7c7c7;
    border: 4px solid #bdbdbd;
}
.outage-no {
    background: #4598db;
    border: 4px solid #2775b3;
}

.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;
    text-align: right;
}
.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;
}

.type-legend {
    background: #fff;
    padding: 10px 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f1f1;
    border-radius: 6px;
    text-align: center;
}
.type-legend h3 {
    margin-top: 0;
    font-size: 15px;
    margin-bottom: 10px;
}
.type-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
}
.type-legend li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #333;
}
.legend-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;
}
