﻿/* Main Container */
.all-stores {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
}

.postcode-radius-wrapper > div {
  align-items: center
}

.all-stores * {
  font-family: 'Inter', sans-serif;
}

.store-locations .master-wrapper-content {
  padding-top: 0;
}

.store-locator-container {
  display: flex;
  gap: 0;
  max-width: 100%;
  margin: 0 auto;
  height: calc(100vh - 150px);
  min-height: 600px;
  position: relative;
  background-color: #fff;
  justify-content: space-between;
}

/* Left Panel: Store List (1/3 width) - Fixed */
.store-list-panel {
  width: 33.33%;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

.store-list-header {
  background-color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.stores-title {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

/* Filters Collapsible */
.filters-toggle-btn {
  background: none;
  border: 1px solid #E6E6E6;
  border-radius: 5px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

  .filters-toggle-btn:hover {
    background-color: #f9f9f9;
    border-color: #d0d0d0;
  }

  .filters-toggle-btn .toggle-icon {
    font-size: 7px;
    font-family: "altronics-icon";
    font-style: normal;
    display: inline-block;
    line-height: 1;
    transition: transform 0.3s ease;
  }

    .filters-toggle-btn .toggle-icon::before {
      content: "\e901"; /* down */
      font-family: "altronics-icon";
    }

  .filters-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
  }

.filters-container {
  display: none;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

  .filters-container.active {
    display: block;
  }

  .filters-container .filter-wrapper {
    padding: 10px 20px;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }

  .filters-container .postcode-radius-wrapper {
    padding-bottom: 10px;
  }

    .filters-container .postcode-radius-wrapper label {
      font-size: 14px;
      color: #333;
    }

.postcode-radius-wrapper input, .postcode-radius-wrapper select {
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

.postcode-radius-wrapper select {
  background-size: 11px;
}

.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 14px;
  color: #333;
  margin: 0;
  font-weight: normal;
}

.location-dropdown-wrapper {
  position: relative;
}

.location-dropdown {
  padding: 8px 30px 8px 12px;
  border: 1px solid #E6E6E6;
  border-radius: 8px;
  font-size: 16px;
  background-color: #fff;
  appearance: none;
  background-image: none;
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  color: #6B6E70;
  width: 100%;
  visibility: hidden; /* hidden but present for accessibility */
  position: absolute;
  left: 0;
  top: 0;
}

/* Custom dropdown control (matches image style) */
.location-dropdown-control {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #6B6E70;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

  .location-dropdown-control:focus {
    outline: none;
    border-color: #E6E6E6;
  }

.location-caret {
  width: 20px;
  height: 20px;
  position: relative;
}

  .location-caret::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6B6E70;
    border-bottom: 2px solid #6B6E70;
    transform: translateY(-60%) rotate(45deg);
  }

.location-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 12px 0;
  list-style: none;
  margin: 0;
  display: none;
  z-index: 20;
}

  .location-dropdown-menu.open {
    display: block;
  }

.location-option {
  padding: 10px 20px;
  font-size: 18px;
  color: #6B6E70;
  cursor: pointer;
}

  .location-option:hover {
    background: #F7F7F7;
  }

.storelist {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background-color: #fff;
}

.store-item {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
  transition: background-color 0.2s;
  cursor: pointer;
  position: relative;
}

  .store-item:hover {
    background-color: #1F1F1F;
  }

    .store-item:hover * {
      color: #fff !important;
    }

  .store-item.selected {
    background-color: #333;
    color: #fff;
  }

    .store-item.selected .store-item-name,
    .store-item.selected .store-item-hours,
    .store-item.selected .store-item-status {
      color: #fff;
    }

.store-item-status {
  color: #000;
  font-weight: 500;
}

.store-item-name {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
}

  .store-item-name label {
    font-weight: inherit;
    color: inherit;
    margin: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

.store-item-hours {
  font-size: 14px;
  color: #666;
  margin-block: 16px;
}

.store-item-status {
  font-size: 14px;
  color: #000;
  margin-bottom: 12px;
}

.more-details-btn {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  float: right;
  display: flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  right: 20px;
  bottom: 32px;
}

  .more-details-btn:hover {
    color: #000;
  }

  .more-details-btn i {
    font-size: 12px;
  }

/* Detail Panel (slides in from beneath store list, between store list and map) */
.store-detail-panel {
  position: absolute;
  left: 33.33%;
  top: 0;
  width: 33.33%;
  height: 100%;
  background-color: #fff;
  z-index: 6;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

  .store-detail-panel.active {
    transform: translateX(0);
  }

.close-detail-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  padding: 0;
  z-index: 31;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

  .close-detail-btn i {
    display: none;
  }

  .close-detail-btn::after {
    content: "\7a";
    display: inline-block;
    margin: 0 !important;
    font-family: "emporium-icons";
    text-transform: none;
    font-size: 16px;
    color: #898B8D;
    vertical-align: bottom;
  }

  .close-detail-btn:hover {
    color: #000;
  }

  .close-detail-btn i {
    line-height: 1;
  }

.store-detail-content {
  padding: 20px;
  flex: 1;
  padding-top: 60px;
  border-left: 1px solid #EEEEEE;
}

.store-detail-image {
  width: 100%;
  margin-bottom: 20px;
}

  .store-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

.store-detail-name {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}

.store-detail-section {
  margin-bottom: 24px;
  width: 75%;
}

.store-detail-section-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.store-detail-section-content {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}

  .store-detail-section-content a {
    color: #1E1E1E;
    text-decoration: none;
  }

    .store-detail-section-content a:hover {
      text-decoration: underline;
    }

  .store-detail-section-content .opening-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
  }

    .store-detail-section-content .opening-hours-row:last-child {
      border-bottom: none;
    }

    .store-detail-section-content .opening-hours-row.current-day {
      color: #000;
    }

.store-detail-note {
  font-size: 14px;
  font-weight: 600;
}

.store-detail-map-link {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

  .store-detail-map-link a {
    color: #1E1E1E;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

    .store-detail-map-link a:hover {
      text-decoration: underline;
    }

.open-location-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Right Panel: Google Map (2/3 width, reduces when detail panel is active) */
.store-map-panel {
  width: 66.67%;
  height: 100%;
  position: relative;
  transition: width 0.3s ease-in-out;
  flex-shrink: 0;
}

  .store-map-panel.reduced-width {
    width: 33.33%;
  }

  .store-map-panel #map {
    width: 100%;
    height: 100%;
  }

/* ===== Details page layout (Store.cshtml) ===== */
.details-page-container {
  gap: 0;
}

.details-left-panel {
  width: 50%;
  padding: 0 24px 24px 24px;
  overflow-y: auto;
}

.details-map-panel {
  width: 50%;
  position: relative;
}

  .details-map-panel #map {
    width: 100%;
    height: 100%;
  }

.details-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6B6E70;
  font-size: 14px;
  margin: 12px 0 16px 0;
}

  .details-breadcrumb a {
    color: #6B6E70;
    text-decoration: none;
  }

    .details-breadcrumb a:hover {
      text-decoration: underline;
    }

  .details-breadcrumb .current {
    color: #000;
  }

  .details-breadcrumb .sep {
    color: #BDBDBD;
  }

.details-title {
  font-size: 28px;
  font-weight: 800;
  color: #000;
  margin: 20px 0 10px 0;
}

.details-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.details-col {
  min-width: 0;
}

/* ===== Scoped tweaks for details page ===== */
.store-location-details .details-page-container {
  height: auto;
  min-height: auto;
}

.store-location-details .details-left-panel {
  padding-top: 8px;
}

.store-location-details .gallery {
  margin-bottom: 24px;
  width: 100% !important;
}

  .store-location-details .gallery .picture {
    width: 100%;
    height: 400px;
  }

    .store-location-details .gallery .picture img {
      object-fit: cover;
      width: 100%;
      padding: 0;
    }

.store-location-details-content {
  padding-inline: 50px;
}

.store-location-details .details-title {
  margin: 8px 0 18px 0;
}

.store-location-details .details-two-col {
  grid-template-columns: 1fr 1fr;
  gap: 28px 56px;
}

@media (max-width: 768px) {
  .store-location-details .details-page-container {
    flex-direction: column;
  }

  .store-location-details .details-left-panel,
  .store-location-details .details-map-panel {
    width: 100%;
  }

  .store-location-details .details-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .store-location-details .gallery .picture {
    height: 240px;
  }

  .filters-container .filter-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .location-dropdown-wrapper,
  .location-dropdown-wrapper select {
    width: 100%;
  }

  .postcode-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }

  .radius-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px
  }

  .postcode-radius-wrapper > div {
    align-items: stretch
  }
}

.all-stores div#map {
  width: 100%;
  height: 100%;
  float: none;
  margin-left: 0px;
}

.total-stores {
  padding: 20px;
  text-align: center;
}

.all-stores .storelist {
  font-size: 15px;
  line-height: 18px;
}

.store .image {
  display: inline-block;
  width: 40%;
  position: relative;
  margin: 2%;
}

  .store .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }

.store .store-details {
  margin: 2%;
  display: inline-block;
  width: 52%;
  vertical-align: top;
  min-height: 170px;
  position: relative;
}

.store .store-name {
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  color: #000;
  margin-bottom: 10px;
  text-transform: uppercase;
}

  .store .store-name a {
    color: #000;
  }

    .store .store-name a:hover,
    .store .store-name a:focus {
      color: #000;
    }

.store .full-address,
.store .opening-hours,
.store .contact-number,
.store .email-address {
  padding: 0 0 10px 30px;
  line-height: 20px;
}

.store .full-address {
  background: url(../Images/address.png) left top no-repeat;
}

.store .opening-hours {
  background: url(../Images/opening.png) left top no-repeat;
}

.store .contact-number {
  background: url(../Images/phone-call.png) left top no-repeat;
}

.store .email-address {
  background: url(../Images/message.png) left top no-repeat;
}

.storelist .store .full-description {
  overflow: hidden;
  max-height: 80px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  display: none;
}

.store .store-btn-container {
  text-align: left;
  margin-top: 20px;
}

.store .btn-store-map {
  display: inline-block;
  min-width: 160px;
  height: 40px;
  border: none;
  padding: 12px 12px 12px 27px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  background: #4ab2f1 url(../Images/map.png) left center no-repeat;
  background-position: 15px;
}

  .store .btn-store-map:hover,
  .store .btn-store-map:focus {
    background-color: #248ece;
    color: #FFF;
    text-decoration: none;
  }

.store .back-to-all-shops {
  font-size: 16px;
  color: #4ab2f1;
  margin-bottom: 10px;
}

.all-stores .gm-style-iw {
  width: 300px !important;
  top: 8px !important;
  left: 5px !important;
  max-height: 130px;
}

.all-stores label {
  font-weight: 600;
}

.store-item.selected .marker-link {
  color: #fff;
}

.store-item.selected .more-details-btn {
  color: #fff;
}

#iw-container {
  margin-bottom: 10px;
}

  #iw-container .iw-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background-color: #48b5e9;
    color: white;
    margin: 0;
    border-radius: 2px 2px 0 0;
  }

  #iw-container .iw-content {
    font-size: 13px;
    line-height: 15px;
    font-weight: 400;
    margin-right: 1px;
    padding: 3px 5px 9px 15px;
    max-height: 110px;
    overflow-y: auto;
    overflow-x: hidden;
  }

.iw-subTitle {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 0;
}

.all-stores a {
  color: #1E1E1E;
}

  .all-stores a:hover {
    color: #1E1E1E;
  }

  .all-stores a.morelink {
    text-decoration: none;
    outline: none;
    color: blue;
  }

.all-stores .morecontent span {
  display: none;
}

.search-page h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #205aa7;
}

.store-service {
  padding: 0 15px !important;
}

.store .image:before {
  content: "";
  padding-top: 100%;
  display: block;
}

.postcode-radius-wrapper {
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

  .postcode-radius-wrapper > div {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
  }

.search-postcode-btn {
  display: block;
  margin: 10px auto;
  width: max-content;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  text-transform: capitalize;
}

@media (min-width: 1001px) {
  .all-stores .storelist .store {
    width: 48%;
  }

  .store-list-header {
    padding-top: 60px;
  }

  .store-div {
    display: flex;
  }

  .gallery .picture {
    height: 400px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .all-stores {
    min-height: initial;
  }

  .store-locator-container {
    flex-direction: column;
    height: auto;
  }

  .store-list-panel {
    width: 100%;
    height: initial;
  }

  .store-detail-panel {
    position: fixed;
    left: 0;
    width: 100%;
    height: 100vh;
    top: 0;
    z-index: 9999;
  }

  .store-location-details-content {
    padding-inline: 0;
  }

  .store-map-panel {
    width: 100%;
    height: 50vh;
    display: none;
  }

    .store-map-panel.reduced-width {
      width: 100%;
    }
}

@media (max-width: 1280px) {
  .more-details-btn {
    display: none;
  }
}
