/* RESET & BASE STYLES */
@font-face {
  font-family: "Soulcraft";
  src: url("../fonts/soulcraftgx.ttf");
}

@font-face {
  font-family: "Bilo, sans-serif";
  src: url("../fonts/bilo.otf");
}

* {
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background-color: #ffffff;
  overflow: hidden;
  color: #000;
  position: relative;
}

.location-page {
  position: relative;
}

.nav-bar-location .header-location {
  padding: 20px 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  /* position: absolute;  */
  position: fixed;
  width: 100%;
  top: 0;
  /* left: 0; */
  width: 100%;
  z-index: 3;
}

@media (max-width: 1200px) {
  .nav-bar-location .header-location {
    padding: 20px 20px;
  }
}

.nav-bar-location .header-location .div-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-bar-location .header-location .links {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-evenly;
}

.nav-bar-location .header-location .links a {
  font-size: 18px;
  font-family: "soulcraft";
  font-weight: 400;
  color: #000;
  text-decoration: none;
  position: relative;
}

.nav-bar-location .header-location .links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #ff0000;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-bar-location .header-location .links a:hover::after,
.nav-bar-location .header-location .links a.active::after {
  width: 100%;
}

.nav-bar-location .header-location .nav-bar-location-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1100px) {
  .nav-bar-location .header-location {
    display: none;
  }
}

.nav-bar-location .mob-nav-btn {
  border: none;
  outline: none;
  background: none;
}

.nav-bar-location .mobile-nav {
  display: none;
  position: relative;
  z-index: 3;
}

@media (max-width: 1100px) {
  .nav-bar-location .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #ffffff;
  }

  .nav-bar-location .mobile-nav .mobile-logo {
    margin: 0 auto;
    transform: translateX(16px);
  }

  .nav-bar-location .mobile-nav #nav-icon3 {
    width: 40px;
    height: 30px;
    position: relative;
    cursor: pointer;
  }

  .nav-bar-location .mobile-nav #nav-icon3 span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #000;
    border-radius: 4px;
    opacity: 1;
    left: 0;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
  }

  .nav-bar-location .mobile-nav #nav-icon3 span:nth-child(1) {
    top: 0px;
  }

  .nav-bar-location .mobile-nav #nav-icon3 span:nth-child(2),
  .nav-bar-location .mobile-nav #nav-icon3 span:nth-child(3) {
    top: 12px;
  }

  .nav-bar-location .mobile-nav #nav-icon3 span:nth-child(4) {
    top: 24px;
  }

  .nav-bar-location .mobile-nav #nav-icon3.active span:nth-child(1) {
    top: 12px;
    width: 0%;
    left: 50%;
  }

  .nav-bar-location .mobile-nav #nav-icon3.active span:nth-child(2) {
    transform: rotate(45deg);
  }

  .nav-bar-location .mobile-nav #nav-icon3.active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-bar-location .mobile-nav #nav-icon3.active span:nth-child(4) {
    top: 12px;
    width: 0%;
    left: 50%;
  }
}

.nav-bar-location .mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  .nav-bar-location .mobile-menu {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background: #cf0a2c;
    flex-direction: column;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 0;
    transition: height 0.5s ease-in-out;
    z-index: 999;
    gap: 30px;
  }

  .nav-bar-location .mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: "Soulcraft";
    font-weight: 300;
  }

  .nav-bar-location .mobile-menu.active {
    height: 100vh;
  }

  .mobile-menu-inner {
    /* Padding goes here */
    padding: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

.nav-collection-delivery {
  display: flex;
  align-items: center;
}

.nav-collection-delivery a {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: red;
  color: #ffffff;
  padding: 7px 16px 2px;
}

.nav-collection-delivery a:hover {
  background: #ffffff;
  color: red;
}

.nav-collection-delivery .collection-delivery-component-one {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 2px solid #ffffff;
}


.nav-collection-delivery .icon-component svg {
  width: 35px;
  height: 35px;
  /* color: #ffffff; */
  color: currentColor;
  transition: color 0.4s ease;
}

.nav-collection-delivery .block-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.nav-collection-delivery .block-text .small-text {
  font-size: 10px;
  font-family: "soulcraft";
  font-weight: 700;
  line-height: 17px;
  color: #ffffff;
  text-transform: capitalize;
}

.nav-collection-delivery .block-text .bold-text {
  font-size: 20px;
  font-family: "soulcraft";
  font-weight: 700;
  color: #ffffff;
  text-transform: capitalize;
}

.nav-collection-delivery a:hover .block-text .small-text,
.nav-collection-delivery a:hover .block-text .bold-text {
  color: red;
}

/* MAIN CONTAINER */
.container {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

@media (max-width: 1100px) {
  .container {
    /* padding-top: 80px; */
  }
}

/* LEFT SIDEBAR - More subtle, less width */
.sidebar {
  width: 100%;
  max-width: 550px;
  /* min-width: 320px; */
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  /* z-index: 10; */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  /* margin-top: 5rem; */
  overflow-y: auto;
  height: calc(100vh - 2rem);
  padding-top: 5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@media (max-width: 1100px) {
  .sidebar {
    padding-top: 0;
    /* margin-top: 0; */
  }
}

.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* GET STARTED SECTION - FIXED */
.get-started {
  background: #ffffff;
  padding: 0px 24px 24px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  top: 0;
  /* z-index: 20; */
}

.get-started h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.delivery-toggle {
  display: none; /* change to flex to make it visible */
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid #000;
  border-radius: 30px;
  overflow: hidden;
}

.toggle-btn {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 30px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.toggle-btn[data-type="collect"]::before {
  content: "🛍️";
}

.toggle-btn[data-type="delivery"]::before {
  content: "🚗";
}

.toggle-btn.active {
  background: #000;
  color: #fff;
}

.toggle-btn:active {
  transform: scale(0.98);
}

.search-label {
  font-size: 11px;
  margin-bottom: 8px;
  display: block;
  color: #000;
  font-weight: 400;
}

.search-box {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23006938" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>');
  background-repeat: no-repeat;
  background-position: 15px center;
}

.search-box:focus {
  border-color: #690000;
  box-shadow: 0 0 0 3px rgba(105, 0, 0, 0.1);
}

/* DELIVERY FILTER */
.delivery-filter {
  padding: 12px 24px;
  display: flex;
  gap: 24px;
  font-size: 11px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  position: relative;
}

.filter-option {
  cursor: pointer;
  padding: 8px 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
  font-weight: 400;
  color: #666;
  position: relative;
}

.filter-option::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.filter-option[data-filter="all"]::before {
  content: "📍";
}

.filter-option[data-filter="delivery"]::before {
  content: "🚚";
}

.filter-option:hover {
  color: #690000;
}

.filter-option.active {
  border-bottom-color: #690000;
  font-weight: 600;
  color: #690000;
}

/* SCROLLABLE LOCATIONS */
.locations-scroll {
  /* flex: 1; */
  width: 100%;
  /* overflow-y: visible; */
  padding: 16px;
  background: #fafafa;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.location-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  animation: slideIn 0.4s ease-out;
  transform-origin: left center;
}

.location-card.highlighted {
  border: 2px solid #690000;
  box-shadow: 0px 4px 12px rgba(105, 0, 0, 0.3);
  transform: scale(1.02);
}

.location-card::before {
  content: "ℹ️";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
  opacity: 0.5;
}

.location-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #690000;
}

.location-card.hidden {
  display: none;
}

.location-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
  padding-right: 30px;
}

.location-address {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.location-hours {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #000;
  margin-bottom: 12px;
  font-weight: 500;
}

.location-hours::before {
  content: "🕐";
  font-size: 16px;
}

.location-services {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.service-item::before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
}

.location-actions {
  display: flex;
  gap: 12px;
}

.coming-soon {
  color: #777;
  font-style: italic;
}

.action-btn.disabled {
  background: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  border: none;
  opacity: 0.6;
}

.action-btn {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #690000;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-btn.primary {
  background: #690000;
  color: #fff;
}

.action-btn.secondary {
  background: #fff;
  color: #690000;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(105, 0, 0, 0.3);
}

.action-btn.primary:hover {
  background: #5a0000;
  border-color: #5a0000;
}

.action-btn.secondary:hover {
  background: #f9f0f0;
  border-color: #5a0000;
  color: #5a0000;
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(105, 0, 0, 0.2);
}

/* RIGHT MAP SECTION - More space */
.map-section {
  flex: 1;
  position: relative;
  background: #e5d6d4;
  /* min-width: 0; */
}

#map {
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#map.active {
  opacity: 1;
  pointer-events: auto;
}

.map-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  /* z-index: 5; */
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.map-overlay-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

.map-overlay-btn:hover {
  transform: translate(-50%, -50%) translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: #690000;
}

.icon-circle {
  width: 32px;
  height: 32px;
  background: #690000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.icon-circle::after {
  content: "📍";
  font-size: 18px;
}

.explore-text {
  color: #690000;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SCROLLBAR STYLING */
.locations-scroll::-webkit-scrollbar {
  width: 6px;
}

.locations-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.locations-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.locations-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .sidebar {
    max-width: 480px;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    max-width: 420px;
  }

  .get-started h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    overflow: visible;
    min-height: 100vh;
    height: auto;
    display: flex;
  }

  .sidebar {
    max-width: 100%;
    height: auto;
    overflow: visible;
    display: contents;
  }

  .get-started {
    position: relative;
    order: 1;
    width: 100%;
  }

  .delivery-filter {
    order: 2;
    width: 100%;
  }

  .map-section {
    height: 400px;
    min-height: 400px;
    position: relative;
    flex-shrink: 0;
    order: 3;
    width: 100%;
  }

  #map {
    width: 100%;
    min-height: 400px;
  }

  .locations-scroll {
    overflow: visible;
    height: auto;
    order: 4;
    width: 100%;
  }

  .get-started h1 {
    font-size: 24px;
  }

  .location-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .get-started {
    padding: 24px 16px 20px;
  }

  .get-started h1 {
    font-size: 22px;
  }

  .locations-scroll {
    padding: 12px;
  }

  .delivery-toggle {
    flex-direction: row;
  }

  .toggle-btn {
    font-size: 13px;
    padding: 14px 12px;
  }

  .location-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
    font-size: 13px;
  }

  .explore-text {
    font-size: 15px;
  }

  .map-overlay-btn {
    padding: 12px 24px;
  }

  .map-section {
    height: 400px;
    min-height: 400px;
  }
}
