.section.lokasi-filter {
  padding-top: 140px;
}
/* ================= BRAND FILTER ================= */
.brand-filter {
  display: flex;
  /* gap: 24px; */
  /* justify-content: space-between; */
  margin-bottom: 32px;
}

.brand-btn {
  border: none;
  background: transparent;
  cursor: none;
}

.brand-btn img {
  width: 400px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-btn.active img {
  filter: none;
  opacity: 1;
}

/* .brand-btn:hover img {
  filter: none;
  opacity: 1;
} */

/* ================= PROVINSI FILTER ================= */
.provinsi-filter {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 40px;
}

.provinsi-btn {
  border: 1px solid #dce2eb;
  background: transparent;
  color: #313131;
  font-size: 16px;
  font-family: inherit;

  border-radius: 24px;
  padding: 12px 24px;
  /* border: none; */
  cursor: none;
  font-weight: 500;
  white-space: nowrap;

  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.provinsi-btn span {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.provinsi-btn.active {
  background: #007cff;
  color: #fff;
}

/* .provinsi-btn:hover {
  background: #007cff;
  color: #fff;
} */

/* ================= CABANG GRID ================= */
.cabang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cabang-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cabang-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.cabang-info {
  padding: 16px;
}

.cabang-info small {
  color: #666;
}

.cabang-info h3 {
  /* margin: 6px 0; */
  font-size: 18px;
}

.cabang-info .lantai {
  display: inline-block;
  background: #007cff;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ================= CABANG INFO (REFINEMENT) ================= */
.cabang-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
}

/* ================= LOCATION ROW ================= */
.cabang-location {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: 13px;
  color: #6b7280;
}

.icon-location {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ================= TITLE + FLOOR ROW ================= */
.cabang-title-row {
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  gap: 10px;
}

.cabang-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
}

/* ================= FLOOR BADGE ================= */
.lantai {
  background: #007cff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;

  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.cabang-actions {
  display: flex;
}

.btn.btn-primary.btn-detail-cabang {
  margin-left: 1rem;
  margin-bottom: 1rem;
  min-height: 46px;
  font-family: inherit;
}

.btn.btn-outline.btn-detail-cabang {
  margin-left: 1rem;
  margin-bottom: 1rem;
  min-height: 46px;
  font-family: inherit;
}

/* ================= CABANG CARD ANIMATION ================= */
.cabang-card {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
  will-change: opacity, transform;
}

.cabang-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= HOVER FEEL ================= */
/* .cabang-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.cabang-card img {
  transition: transform 0.5s ease;
}

.cabang-card:hover img {
  transform: scale(1.05);
} */

/* ================= SKELETON ================= */
.skeleton-card {
  border-radius: 20px;
  overflow: hidden;
  background: #e5e7eb;
  position: relative;
  height: 320px;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* ================= WHY US ================= */
/* ======================================================
   LOKASI – WHY US
====================================================== */

.lokasi-why-us__grid {
  padding: 40px 0;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

/* ==============================
   ITEM
================================ */

.lokasi-why-us__item {
  background: #f1f1f1;
  border-radius: 20px;
  padding: 32px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* ACTIVE CARD */
.lokasi-why-us__item.is-active {
  background: linear-gradient(135deg, #3bbcff 0%, #b57cff 50%, #ff9b7a 100%);
  color: #ffffff;
}

/* ==============================
   ICON
================================ */

.lokasi-why-us__icon {
  width: 156px;
  height: 156px;
  /* margin-bottom: 16px; */
}

.lokasi-why-us__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==============================
   TEXT
================================ */

.lokasi-why-us__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* ==============================
   HOVER
================================ */

/* .lokasi-why-us__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
} */

/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .lokasi-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .lokasi-why-us__grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   LOCATION CTA
====================================================== */

.location-cta {
  padding-bottom: 96px;
}

/* WRAPPER */
.location-cta-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0px;
}

/* GRID */

.location-cta-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  justify-content: center;
}

/* VIDEO */

.location-cta-media {
  position: relative;
  height: 520px;

  border-radius: 28px;
  overflow: hidden;
  background: #000;
  z-index: 4;

  display: grid;
  place-items: center;
}

.location-cta-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PLAY BUTTON */

.location-cta-video-toggle {
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;

  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;

  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;

  cursor: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

/* .location-cta-video-toggle:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.75);
} */

/* CONTENT CARD */

.location-cta-card {
  position: relative;
  margin-left: -14px;
  padding: 32px 224px 32px 54px;
  height: 400px;

  z-index: 2;
  overflow: visible;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: linear-gradient(
    83deg,
    rgba(154, 216, 255, 0.35) 20%,
    rgba(255, 255, 255, 0) 82%
  );
}

.location-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.location-cta-card > * {
  position: relative;
  z-index: 2;
}

/* TYPOGRAPHY */

.location-cta-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.location-cta-desc {
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 420px;
}

.location-cta-actions {
  display: flex;
  gap: 16px;
}

/* MASKOT */

.location-cta-mascot {
  position: absolute;
  right: -66px;
  bottom: -28px;

  width: 545px;
  max-width: none;
  pointer-events: none;
  z-index: 3;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .location-cta-wrapper {
    padding: 32px 16px;
  }

  .location-cta-grid {
    grid-template-columns: 1fr;
  }

  .location-cta-media {
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
  }

  .location-cta-card {
    margin-left: 0;
    padding: 40px 32px;
  }

  .location-cta-mascot {
    display: none;
  }
}

/* TICKET PERFORATION */

.location-cta-card.is-ticket {
  --cut-width: 22px;
  --cut-height: 12px;
  --cut-gap: 16px;
  --cut-radius: 46px;

  /* -webkit-mask:
    linear-gradient(#000 0 0) right,
    repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent var(--cut-gap),
        #000 var(--cut-gap),
        #000 calc(var(--cut-gap) + var(--cut-height))
      )
      left / var(--cut-width) 100% no-repeat;

  -webkit-mask-composite: destination-out, source-over; */

  mask:
    linear-gradient(#000 0 0) right,
    repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent var(--cut-gap),
        #000 var(--cut-gap),
        #000 calc(var(--cut-gap) + var(--cut-height))
      )
      left / var(--cut-width) 100% no-repeat;

  mask-composite: exclude;
}

/* ======================================================
   NEAREST IMAGE WRAP + BADGE
====================================================== */
.cabang-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.cabang-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cabang-nearest-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.cabang-nearest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #8df16f;
  color: #17351a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.cabang-nearest-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.cabang-nearest-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cabang-nearest-badge em {
  font-style: italic;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.82;
}

.provinsi-btn--nearest {
  border-color: #dce2eb;
}

.nearest-empty {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  text-align: center;
}

.nearest-empty h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  color: #111827;
}

.nearest-empty p {
  margin: 0;
  color: #6b7280;
  line-height: 1.5;
}

.nearest-empty__action {
  margin-top: 16px;
}

.nearest-empty__helper {
  margin-top: 8px !important;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .cabang-image-wrap {
    height: 220px;
  }

  .cabang-nearest-badges {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .cabang-nearest-badge {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .cabang-nearest-badge img {
    width: 14px;
    height: 14px;
  }

  .cabang-nearest-badge em {
    font-size: 11px;
  }
}

.cabang-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cabang-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.cabang-location span {
  min-width: 0;
}

.cabang-brand-location-img {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ================= NEAREST BADGES ================= */
.cabang-image-wrap {
  position: relative;
}

.cabang-image-wrap > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.cabang-nearest-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 3;
}

.cabang-nearest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.cabang-nearest-badge img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.cabang-nearest-badge span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cabang-nearest-badge em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.9;
}

.cabang-nearest-badge--primary {
  background: rgba(0, 124, 255, 0.92);
  color: #fff;
}

.cabang-nearest-badge--distance {
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
}

.cabang-nearest-badge--danger {
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
}

.cabang-nearest-badge--danger-soft {
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

/* ================= CUSTOM LOCATION MODAL ================= */
.custom-loc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-loc-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.custom-loc-modal-content {
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-loc-modal.is-open .custom-loc-modal-content {
  transform: scale(1) translateY(0);
}

.custom-loc-modal-icon {
  width: 64px;
  height: 64px;
  background: #fef2f2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.custom-loc-modal-icon svg {
  width: 32px;
  height: 32px;
}

.custom-loc-modal h3 {
  font-size: 20px;
  color: #111827;
  margin: 0 0 12px;
  font-weight: 700;
}

.custom-loc-modal p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 24px;
}

.custom-loc-modal p strong {
  color: #111827;
}

.custom-loc-modal-btn {
  background: #007cff;
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 99px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.custom-loc-modal-btn:hover {
  background: #0066d6;
}

/* ================= GPS LOADING STATE ================= */
.gps-loading-state {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.gps-loading-text {
  margin-top: 24px;
}

.gps-loading-text p {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px 0;
}

.gps-loading-subtext {
  font-size: 15px;
  color: #6b7280;
}

.dots {
  display: inline-block;
  width: 1em;
  text-align: left;
  animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
  0% {
    content: ".";
  }
  33% {
    content: "..";
  }
  66% {
    content: "...";
  }
}
