.container {
  max-width: 1400px;
  padding: 0;
  width: calc(100% - 30px);
  margin: 0 auto;
  box-sizing: content-box;
}
/* General Styles */
.search-section {
  background-color: #EDF2F5;
  align-items: center;
  color: #1F4388;
}

.search-section h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1F4388;
  text-transform: uppercase;
  max-width: 300px;
}

.search-section .divider-text {
  color: #1F4388;
  font-size: 18px;
  font-weight: 700;
}

.search-section .search-box {
  transition: all 0.3s ease-in-out;
}

.search-section .search-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 120px;
  padding: 0;
}

.search-section .hero-search-form {
  padding-top: 25px;
}

.search-box.collapsed {
  height: 0;
  opacity: 0;
  visibility: hidden;
  display: none;
}

.search-box.expanded {
  height: auto;
  opacity: 1;
  visibility: visible;
}

.location-btn,
.search-btn {
  background-color: #FFCD55;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 10px 0;
  cursor: pointer;
  font-size: 16px;
}

.postal-code-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.postal-code-search input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 70%;
}

.postal-code-search .search-btn {
  padding: 10px 15px;
}

.close-search {
  margin-top: 10px;
  background-color: transparent;
  border: none;
  color: #1F4388;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.hidden {
  display: none;
}

/** ---- TITLE SECTION --- **/
.dac-locator-title {
  padding-left: 0;
}

.dac-locator-title .back-button {
  display: block;
  position: relative;
  padding: 20px 0 5px 20px;
  color: #1F4388;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  max-width: fit-content;
}
  .dac-locator-title .back-button:hover { 
    text-decoration: underline;
  }

.dac-locator-title .back-button::before {
  content: url('/wp-content/plugins/dac-locator/public/images/caret-left.svg');
  position: absolute;
  width: 10px;
  height: 16px;
  top: 20px;
  left: 0;
}

.dac-locator-title .results-title {
  font-size: 32px;
  font-weight: 800;
  color: #1F4388;
  text-transform: uppercase;
}

/** ---- RESULTS SECTION --- **/
.dac-locator-results {
    display: flex;
    margin-bottom: 70px;
    gap: 38px;
}

.results-list {
    padding: 0 0 20px 0;
    flex-basis: 45%;
}

.results-list .no-results {  
  font-weight: 700;
  font-style: Bold;
  font-size: 22px;
  line-height: 127%;
  letter-spacing: 0%;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    margin-right: 21px;
}

.results-header strong {
    font-size: 20px;
    line-height: 27px;
    font-weight: 600;
    color: #1F4388;
    flex-basis: 50%;
}
.results-header.no-search-within strong {
  flex-basis: 100%;
}

  .lang-fr .results-header strong {
    flex-basis: 50%;
  }

  .lang-fr .results-header.no-search-within strong {
    flex-basis: 100%;
  }

.search-within {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-within label {
  font-size: 20px;
  line-height: 27px;
  font-weight: 400;
  color: #1F4388
}

.search-within select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    background-color: #fff;
}

.locations-list {
  overflow-y: auto;
  max-height: 540px;
  /*scrollbar-color: #D54011 transparent;
  scrollbar-width: thin;*/
  padding-right: 21px;
}
  .locations-list::-webkit-scrollbar {
    width: 8px;
    height: 45px;
    background-color: #D8E6ED; /* or add it to the track */
  }
  .locations-list::-webkit-scrollbar-thumb {
    background: #D54011;
  }

.location-item {
    display: flex;
    gap: 20px;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.25);
}

.location-marker {
    width: 35px;
    height: 35px;
    background-image: url('../images/marker.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.location-details {
  width: 100%;
}

.location-details-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.location-details-header-texts {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.location-details-header-texts .locator-single-link h2 {
  max-width: 400px;
  text-transform: none;
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
}
  @media (max-width: 1324px) {
    .location-details-header-texts .locator-single-link h2 {
      font-size: 18px;
      max-width: 350px;
    }

    .location-address {
      font-size: 16px;
    }

    .location-phone a {
      font-size: 16px;
    }

    .location-actions .get-directions {
      font-size: 16px;
    }

    .dac-locator-results {
      margin-bottom: 0;
    }
  }

.location-details-header .distance {
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  color: #101820;
}

.location-details h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1F4388;
    text-decoration: underline;
    margin: 0 0 10px;
}

.location-address {
    color: #1F4388;
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

.location-phone {
  margin-top: 12px;
  margin-bottom: 12px;
}
.location-phone a {
    color: #1F4388;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-decoration: underline;
}

.location-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.distance {
    color: #FFCD55;
    font-weight: bold;
}

.location-actions {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.location-actions a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.location-actions .get-directions {
  font-size: 18px;
  font-weight: 700;
  color: #1F4388;
  text-decoration: underline;
}

.location-actions .learn-more {
  padding: 12px 25px 12px 25px;
  gap: 10px;
  border-radius: 5px;
  border: 1px solid #1F4388;
}

.second-action-buttons {
  display: flex;
  gap: 20px;
  text-transform: uppercase;
}

.location-actions .order-now {
  padding: 12px 25px 12px 25px;
}

.certified-location {
  display: flex;
  align-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0px;
  color: #1F4388;

  a {
    text-decoration: underline;
  }
}

.get-directions {
    color: #FFCD55;
}

.learn-more {
    color: #1F4388;
}

.order-now {
    background-color: #FFCD55;
    color: #1F4388;
    padding: 5px 15px;
    border-radius: 4px;
}

.hours-toggle button {
    position: absolute;
    right: -60px;
    background: none;
    border: none;
    color: #1F4388;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-toggle .hours {
    color: #000000;
}
.hours .to-separator, .time .to-separator {
 margin: 0 10px; 
}

.hours-toggle {
  margin: 10px 0;
}

.hours-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  max-width: 100%;
}

.status.open {
  color: #1F4388;
  font-weight: bold;
  width: 180px;
}

.toggle-hours {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #D13138;
}
  .toggle-hours .toggle-icon {
    display: block;
    padding-top: 10px;
  } 

.hours-list.collapsed {
  display: none;
}

.hours-list.expanded {
  display: block;
}

.toggle-hours .toggle-icon img {
  transition: transform 0.3s ease;
}

.toggle-hours[aria-expanded="true"] .toggle-icon img {
  transform: rotate(180deg);
}

.arrow-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  transform: rotate(180deg);
}

.arrow-icon.open {
  transform: rotate(0deg);
}

.hours-list {
  margin-top: 10px;
  max-width: 387px;
}

.day-hours {
  display: flex;
  padding: 4px 0;
  font-size: 18px;
  color: #1F4388;
}

.day-hours.today .day {
  color: #D13138;
  font-weight: 400;
}

.day-hours .day {
  width: 190px;
}

.time {
  color: #1F4388;
}

.results-map {
  flex-basis: 55%;
    height: 610px;
    max-height: calc(100vh - 150px);
    position: relative;
}

/* Custom Marker Styles */
.custom-marker {
  width: 32px;
  height: 40px;
  background-image: url('../images/marker.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.marker-number {
  font-family: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: white;
  font-weight: bold;
  font-size: 18px;
  margin-top: -2px; /* Adjust if needed to center the number vertically */
}

.location-popup {
  font-family: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  max-width: 300px;
}

.popup-content h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.popup-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.popup-close {
  position: absolute;
  color: #1F4388;
  top: 8px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.popup-content {
  position: relative;
  padding-right: 20px;
}

.popup-status {
  margin: 10px 0 0 0;
}

.popup-status .status.open {
  color: #1F4388;
  font-size: 14px;
  font-weight: 700;
  display: block;
}

/* Popup Styles */
.location-popup {
    max-width: 314px !important; /** Need to overwrite this to match styles from Figma file **/
    left: 90px;
    top: 0px;
}

.mapbox-background {
  display: none;
}

.location-popup .mapbox-background {
  display: block;
}

.location-popup .mapboxgl-popup-content {
    border-radius: 8px;
    background: url('/wp-content/plugins/dac-locator/public/images/mapbox-modal-background.svg') 100% 100% no-repeat;
    max-width: 314px;
    width: 314px;
    height: 187px;
    background-position-y: 0;
    background-position-x: 0;
}

.location-popup .popup-content {
  position: absolute;
  top: 0;
  width: 100%;
  max-width: 270px;
  padding: 16px;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  display: none;
}

.location-popup h3 {
    color: #1F4388;
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    max-width: 255px;
    text-transform: uppercase;
    text-decoration: underline;
}

.location-popup p {
    color: #040404;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

.location-popup .hours {
    font-size: 14px;
    color: #040404;
    font-weight: 400;
}

/** DEALS **/
.deals-title {
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
  color: #1F4388;
  text-transform: uppercase;
}

.dac-locator-deals {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dac-locator-deals__item {
  width: 100%;
  background-color: #EDF2F5;
}

.dac-locator-deals__item .deal-content {
  padding: 17px 21px;
}

.dac-locator-deals__item .deal-image img {
  width: 100%;
}

.dac-locator-deals__item .deal-content strong {
  color: #1F4388;
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
}

.dac-locator-deals__item .deal-content p {
  color: #1F4388;
  font-size: 18px;
  font-weight: 400;
  padding: 12px 0;
  margin: 0;
}

.dac-locator-deals__item .deal-content a {
  font-size: 16px;
  font-weight: 600;
  line-height: 27px;
  text-align: left;
  color: #1F4388;
}



/** DOWNLOAD THE APP **/
.dac-locator-download-app {
  background-color: #EDF2F5;
  margin-top: 50px;
  margin-bottom: 0;
  padding: 50px ;
}

.dac-locator-download-app-wrapper {
  display: flex;
}

.dac-locator-download-app__teaser {
  flex-basis: 50%;
  align-content: center;
}

.dac-locator-download-app__teaser h2 {
  color: #1F4388;
  font-size: 32px;
  line-height: 42px;
  font-weight: 700;
  text-transform: uppercase;
}

.dac-locator-download-app__teaser p {
  color: #1F4388;
  font-size: 16px;
  font-weight: 400;
  margin-top: 30px;
  padding-right: 50px;
}

.dac-locator-download-app__teaser .download-icons {
  margin-top: 20px;
  display: flex;
  gap: 32px;
}

.dac-locator-download-app__image {
  text-align: center;
  flex-basis: 50%;
  align-items: center;
}

.dac-locator-download-app__image img {
  max-width: 100%;
}

.toggle-search, .close-search { 
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .search-section .search-bar {
    flex-direction: column;
  }

  .search-section {
    flex-direction: column;
    padding: 20px 0 20px 0;
  }

  .search-section .search-box {
    background-color: transparent;
    border: none;
  }

  .search-section h1 {
    font-size: 20px;
    margin-bottom: 21px;
    text-align: center;
  }

  .search-section .hero-search-form {
    padding: 0;
    margin: 0;
  }

  .search-section #zip-code-form {
    margin-bottom: 15px;
  }

  .dac-locator-results {
    gap: 0;
  }

  .toggle-search {
    background: none;
    border: none;
    font-size: 18px;
    color: #FFCD55;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transform: rotate(180deg);
  }

  .toggle-hours .toggle-icon {
    display: block;
    padding-top: 10px;
  } 

  .toggle-search[aria-expanded="true"] {
    display: none;
  }

  .toggle-search .icon {
    transform: rotate(180deg);
  }

  .search-box {
    text-align: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0;
    margin: 0;
  }

  .close-search {
    display: block;
    margin: 10px auto 0;
  }

  .close-search .icon img {
    transform: rotate(0);
  }

  .location-actions {
    width: 100%;
    gap: 15px;
  }
  .second-action-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
    .second-action-buttons .order-now, .second-action-buttons .learn-more {
      width: 100%;
      text-align: center;
      padding: 12px 0;
      box-sizing: border-box;
    }

  .dac-locator-title .results-title {
    font-size: 26px;
  }
  
  .dac-locator-results {
    flex-direction: column-reverse;
    padding-right: 0; 
  }

  .location-item {
    padding-top: 34px;
    padding-bottom: 0;
  }

  .location-details-header {
    margin-bottom: 6px;
  }

  .location-phone {
    margin-top: 2px;
    margin-bottom: 2px;
  }

  .certified-location {
    padding-bottom: 15px;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 0;
  }

  .results-page-map--heading.toggle-header {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    align-items: baseline;
  }

  .results-map {
    max-height: 335px;
    height: 335px;
    flex-basis: auto;
  }


  .locations-list {
    padding-right: 0;
    overflow: hidden;
    max-height: unset;
  }

  .hours-toggle .hours {
    min-width: 176px;
  }

  .dac-locator-deals {
    flex-direction: column;
  }

  .dac-locator-deals__item {
    max-width: 100%;
  }

  .dac-locator-download-app {
    padding: 0;
    margin-top: 45px;
  }

  .dac-locator-download-app__teaser h2 {
    font-size: 26px;
  }

  .dac-locator-download-app-wrapper {
    flex-direction: column;
  }

  .dac-locator-download-app__image img {
    max-width: 100%;
  }

  .dac-locator-download-app__teaser .download-icons {
    gap: 25px;
    justify-content: center;
    margin-bottom: 47px;
  }

  .hours-toggle {
    padding-right: 60px;
  }

  .hours-summary {
    font-size: 16px;
    gap: 8px;
  }

  .hours-list .day-hours {
    font-size: 16px;
  }

  .status.open {
    width: 105px;
  }

  .results-header strong {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .location-address {
    font-size: 16px;
  }

  .location-phone a {
    font-size: 16px;
  }

  .location-actions .get-directions {
    font-size: 16px;
  } 

  .search-within label {
    font-size: 16px;
  }

  .results-header.xs h3 {
    font-weight: 700;
    font-size: 20px;
    line-height: 100%;
    letter-spacing: 0px;
    text-transform: none;
    color: #1F4388;
    margin-bottom: 10px;
  }

  .map-wrapper {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.25);
  }

  .menu-pizza-73 {
    order: 3;
  }
}

@media (min-width: 366px) and (max-width: 768px) {
  .day-hours .day {
    width: 112px;
  }
}

@media  (max-width: 365px) {
  .day-hours .day {
    width: 100px;
  }
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 999px) {
  .hero-search-form {
    flex-direction: column;
  }
}

@media (min-width: 1000px) and (max-width: 1300px) {
  .search-section .search-bar {
    flex-direction: column;
  }

  .search-section h1 {
    margin-top: 45px;
    margin-bottom: 15px;
    text-align: center;
  }

  .search-section .hero-search-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
  }
}