/* Gaya kandungan halaman lokasi / artikel.
   Nilai tipografi diambil terus daripada tema utama (index.html)
   supaya saiz font, warna dan jarak sama dengan main page. */

.loc-sec {
  padding: 32px 0;
}

.loc-wrap {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

/* --- tipografi: ikut skala main page ------------------------------------- */
.loc-prose h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.7px;
  color: #152539;
  text-wrap: balance;
}

.loc-prose h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: #152539;
}

.loc-prose p {
  margin: 0 0 18px;
  color: #485d73;
  font-size: 15px;
  line-height: 1.9;
}

.loc-prose ul,
.loc-prose ol {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #485d73;
  font-size: 15px;
  line-height: 1.9;
}

.loc-prose li {
  margin-bottom: 8px;
}

.loc-prose strong {
  color: #152539;
}

.loc-prose > :last-child {
  margin-bottom: 0;
}

.loc-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b692e;
}

/* --- kad ---------------------------------------------------------------- */
.loc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.loc-card {
  background: #fff;
  border: 1px solid #ece7db;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(16, 46, 80, 0.05);
}

.loc-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #152539;
}

.loc-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #5a6b7d;
}

/* --- langkah ------------------------------------------------------------ */
.loc-steps {
  list-style: none;
  counter-reset: s;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.loc-steps li {
  counter-increment: s;
  position: relative;
  padding: 20px 22px 20px 66px;
  background: #fff;
  border: 1px solid #ece7db;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 46, 80, 0.05);
}

.loc-steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #102e50;
  color: #f5c45e;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.loc-steps h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #152539;
}

.loc-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #5a6b7d;
}

/* --- jadual ------------------------------------------------------------- */
.loc-table-wrap {
  overflow-x: auto;
  margin: 24px 0 10px;
  border: 1px solid #ece7db;
  border-radius: 18px;
  background: #fff;
}

.loc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}

.loc-table th,
.loc-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #f0ece2;
}

.loc-table th[scope="row"] {
  font-weight: 600;
  color: #152539;
}

.loc-table thead th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6b7d;
  background: #f8f5ee;
}

.loc-table tr:last-child td,
.loc-table tr:last-child th {
  border-bottom: 0;
}

.loc-table .total {
  font-weight: 800;
  color: #102e50;
}

/* --- kawasan ------------------------------------------------------------ */
.loc-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.loc-areas li {
  font-size: 13px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #ece7db;
  border-radius: 999px;
  padding: 7px 14px;
  color: #5a6b7d;
}

/* --- CTA ---------------------------------------------------------------- */
.loc-cta {
  margin: 20px 0 48px;
  padding: 44px 40px;
  border-radius: 24px;
  background: #102e50;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.loc-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: #fff;
  max-width: 24ch;
}

.loc-cta p {
  margin: 0;
  color: #c9d7e6;
  font-size: 14px;
  line-height: 1.9;
  max-width: 48ch;
}

.loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 15px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.loc-btn:hover {
  transform: translateY(-1px);
}

.loc-btn-gold {
  background: #f5c45e;
  color: #102e50;
}

.loc-btn-gold:hover {
  background: #fff;
  color: #102e50;
}

/* kad kawasan (boleh diklik) */
.loc-area-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.loc-area-card:hover {
  transform: translateY(-3px);
  border-color: #f5c45e;
  box-shadow: 0 16px 32px rgba(16, 46, 80, 0.1);
}

.loc-area-card h3 {
  color: #152539;
}

.loc-area-card p {
  color: #8b692e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* grid daerah */
.loc-dist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.loc-dist article {
  background: #fff;
  border: 1px solid #ece7db;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(16, 46, 80, 0.04);
}

.loc-dist h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #152539;
}

.loc-dist p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #5a6b7d;
}

.loc-dist a {
  font-weight: 600;
  color: #316c60;
}

/* testimoni ringkas */
.loc-testi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.loc-testi figure {
  margin: 0;
  background: #fff;
  border: 1px solid #ece7db;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 46, 80, 0.05);
}

.loc-testi img {
  width: 100%;
  height: auto;
  display: block;
  background: #f6f3ec;
}

.loc-testi figcaption {
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #5a6b7d;
}

.loc-more {
  margin: 18px 0 0;
  font-size: 14px;
  color: #485d73;
}

.loc-more a {
  font-weight: 700;
  color: #316c60;
}

.loc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.loc-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #ece7db;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #152539;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.loc-links a:hover {
  border-color: #f5c45e;
  color: #8b692e;
}

@media (max-width: 720px) {
  .loc-sec {
    padding: 32px 0;
  }

  .loc-cta {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .loc-prose h2 {
    letter-spacing: -1.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loc-btn:hover {
    transform: none;
  }
}

/* --- butang terapung: WhatsApp di kiri, back-to-top di kanan ------------- */
@media (min-width: 768px) {
  #bsp-floating-contact {
    right: auto;
    left: 24px;
  }

  #bsp-back-top {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* --- jarak FAQ: jangan warisi padding besar halaman utama ---------------- */
#soalan-lazim .fq-inner {
  padding: 48px 28px;
}

@media (max-width: 767px) {
  #soalan-lazim .fq-inner {
    padding: 32px 20px;
  }
}

/* jarak selepas grid sebelum teks */
.loc-dist + .loc-prose,
.loc-cards + .loc-prose {
  margin-top: 34px;
}

.loc-testi + .loc-more {
  margin-top: 24px;
}

.loc-table-wrap + .loc-prose,
.loc-areas + .loc-prose {
  margin-top: 28px;
}
