/* ════════════════════════════════════════════════════════════════════
   DIREKSI THEME — Mobile First CSS
   Approach: base styles for mobile, scale up with min-width queries
   Breakpoints: 600px (tablet), 1024px (desktop)
   ════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-primary: #1a56db;
  --c-primary-dark: #1e40af;
  --c-primary-light: #eff6ff;
  --c-accent: #10b981;
  --c-danger: #ef4444;
  --c-warning: #f59e0b;
  --c-whatsapp: #25d366;

  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-text-light: #94a3b8;

  --c-bg: #f8fafc;
  --c-bg-white: #ffffff;
  --c-bg-subtle: #f1f5f9;

  --c-border: #e2e8f0;
  --c-border-dark: #cbd5e1;

  /* Spacing scale (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;
  --s-16: 4rem;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Border radius */
  --r-sm: 4px;
  --r: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--s-4);
  --header-h: 64px;
}

/* ─── HIDDEN ATTRIBUTE — selalu menang ──────────────────────────────── */
[hidden] { display: none !important; }

/* ─── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s-3); line-height: 1.25; font-weight: 700; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--s-3); }

a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

/* Form base */
input, textarea, select {
  font-family: inherit;
  font-size: var(--text-base);
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r);
  background: var(--c-bg-white);
  color: var(--c-text);
  transition: border-color .15s, box-shadow .15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--s-1);
  color: var(--c-text);
}

/* ─── LAYOUT ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--s-12) 0; }

@media (min-width: 1024px) {
  :root { --container-pad: var(--s-6); }
  .section { padding: var(--s-16) 0; }
}

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; border-color: var(--c-primary-dark); }

.btn--outline { color: var(--c-text); border-color: var(--c-border-dark); background: var(--c-bg-white); }
.btn--outline:hover { background: var(--c-bg-subtle); }

.btn--ghost { color: var(--c-text-muted); border-color: transparent; }
.btn--ghost:hover { background: var(--c-bg-subtle); color: var(--c-text); }

.btn--whatsapp { background: var(--c-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe57; color: #fff; }

.btn--full { width: 100%; }
.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--text-base); }
.btn--sm { padding: var(--s-2) var(--s-3); font-size: var(--text-xs); }

/* ─── SITE HEADER ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-white);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--s-4);
}

.site-logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--c-primary);
  text-decoration: none;
}

.site-logo img { max-height: 40px; width: auto; }

/* Mobile menu */
.nav-toggle {
  background: none;
  border: 1px solid var(--c-border);
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--c-bg-white);
  padding: var(--s-6) var(--s-4);
  transform: translateX(100%);
  transition: transform .25s;
  overflow-y: auto;
}

.site-nav.is-open { transform: translateX(0); }

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.site-nav a {
  display: block;
  padding: var(--s-3) var(--s-4);
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--r);
}

.site-nav a:hover { background: var(--c-bg-subtle); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    transform: none;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    gap: var(--s-1);
  }

  .site-nav a { padding: var(--s-2) var(--s-3); }
}

/* ─── HERO / FRONT PAGE ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
  color: #fff;
  padding: var(--s-12) 0 var(--s-16);
  text-align: center;
}

.hero__title {
  font-size: var(--text-3xl);
  color: #fff;
  margin-bottom: var(--s-3);
}

.hero__subtitle {
  font-size: var(--text-base);
  opacity: 0.9;
  margin-bottom: var(--s-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__search {
  max-width: 720px;
  margin: 0 auto;
}

.hero__search form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: rgba(255,255,255,0.15);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}

.hero__search input,
.hero__search select { border-color: transparent; }

@media (min-width: 1024px) {
  .hero { padding: var(--s-16) 0 var(--s-16); }
  .hero__title { font-size: var(--text-4xl); }
  .hero__subtitle { font-size: var(--text-lg); }
  .hero__search form { flex-direction: row; align-items: center; }
}

/* ─── COMPANY CARD (Archive) ────────────────────────────────────────── */
.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}

@media (min-width: 600px)  { .companies-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .companies-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.company-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.company-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.company-card__cover {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--c-bg-subtle);
  overflow: hidden;
}

.company-card__cover img { width: 100%; height: 100%; object-fit: cover; }

.company-card__logo {
  position: absolute;
  bottom: -20px;
  left: var(--s-4);
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-bg-white);
  border: 3px solid var(--c-bg-white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--c-primary);
  overflow: hidden;
}

.company-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.company-card__body {
  padding: var(--s-6) var(--s-4) var(--s-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-card__title {
  font-size: var(--text-base);
  margin-bottom: var(--s-1);
  color: var(--c-text);
}

.company-card__title a { color: inherit; }

.company-card__meta {
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

.company-card__excerpt {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  flex: 1;
  margin-bottom: var(--s-3);
}

.company-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-border);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--r-full);
}

.badge--verified { background: #dbeafe; color: #1e40af; }
.badge--featured { background: #fef3c7; color: #92400e; }

/* ─── SINGLE COMPANY ────────────────────────────────────────────────── */
.single-company { padding-bottom: var(--s-12); }

/* Header / Hero */
.sc-header {
  position: relative;
  background: var(--c-bg-white);
}

.sc-cover {
  height: 180px;
  background: linear-gradient(135deg, var(--c-primary-light), var(--c-bg-subtle));
  overflow: hidden;
}

.sc-cover img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .sc-cover { height: 320px; }
}

.sc-header__inner {
  position: relative;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--c-border);
}

.sc-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--r-lg);
  background: var(--c-bg-white);
  border: 4px solid var(--c-bg-white);
  box-shadow: var(--shadow-lg);
  margin-top: -48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--text-2xl);
  color: var(--c-primary);
  overflow: hidden;
}

.sc-logo img { width: 100%; height: 100%; object-fit: cover; }

.sc-title {
  font-size: var(--text-2xl);
  margin: var(--s-4) 0 var(--s-1);
}

.sc-tagline {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  margin-bottom: var(--s-3);
}

.sc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

.sc-meta__item { display: inline-flex; align-items: center; gap: var(--s-1); }

.sc-cta {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .sc-title { font-size: var(--text-3xl); }
  .sc-logo { width: 128px; height: 128px; margin-top: -64px; }
}

/* Main layout: MOBILE FIRST - single column, sidebar BELOW content */
.sc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-6);
}

.sc-sidebar {
  /* Mobile: tidak sticky, ada di bawah content (via DOM order) */
  position: static;
  width: 100%;
}

/* Desktop only: 2 column + sticky sidebar */
@media (min-width: 1024px) {
  .sc-layout {
    grid-template-columns: 1fr 320px;
    gap: var(--s-8);
    align-items: start;
  }

  .sc-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--s-4));
  }
}

/* Content sections */
.sc-section {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}

@media (min-width: 1024px) {
  .sc-section { padding: var(--s-8); margin-bottom: var(--s-6); }
}

.sc-section__title {
  font-size: var(--text-lg);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

/* Sidebar: Contact Card */
.contact-card {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.contact-card__title {
  font-size: var(--text-base);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border);
}

.contact-card__cta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

/* Mobile: tombol kontak horizontal */
@media (max-width: 599px) {
  .contact-card__cta { flex-direction: row; flex-wrap: wrap; }
  .contact-card__cta .btn--whatsapp { flex: 1 1 100%; }
  .contact-card__cta .btn { flex: 1 1 calc(50% - var(--s-2)); }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.contact-list li {
  display: flex;
  gap: var(--s-3);
  font-size: var(--text-sm);
}

.contact-list__icon { font-size: 1.1rem; flex-shrink: 0; }

.contact-list strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-card__map {
  margin-top: var(--s-4);
  border-radius: var(--r);
  overflow: hidden;
}

.contact-card__map iframe { display: block; width: 100%; }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}

@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-white);
}

.product-card__image {
  aspect-ratio: 4/3;
  background: var(--c-bg-subtle);
  overflow: hidden;
}

.product-card__image img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body { padding: var(--s-4); flex: 1; display: flex; flex-direction: column; }
.product-card__title { font-size: var(--text-base); margin-bottom: var(--s-1); }
.product-card__price { font-size: var(--text-lg); font-weight: 700; color: var(--c-primary); margin-bottom: var(--s-2); }
.product-card__desc { font-size: var(--text-sm); color: var(--c-text-muted); flex: 1; }

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--c-bg-subtle);
  color: var(--c-text);
  font-size: 1.1rem;
}

.social-link:hover { background: var(--c-primary); color: #fff; }

/* ─── ARCHIVE / SEARCH ──────────────────────────────────────────────── */
.archive-header {
  background: var(--c-bg-white);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--c-border);
}

.archive-header__title { font-size: var(--text-2xl); margin-bottom: var(--s-1); }
.archive-header__desc { color: var(--c-text-muted); margin: 0; }

@media (min-width: 1024px) {
  .archive-header { padding: var(--s-12) 0; }
  .archive-header__title { font-size: var(--text-3xl); }
}

.archive-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-4);
}

@media (min-width: 600px) {
  .archive-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: var(--s-12) 0 var(--s-6);
  margin-top: var(--s-12);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}

@media (min-width: 600px)  { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr repeat(3, 1fr); } }

.site-footer h3 {
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: var(--s-4);
}

.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer a { color: #cbd5e1; font-size: var(--text-sm); }
.site-footer a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid #1e293b;
  padding-top: var(--s-4);
  margin-top: var(--s-8);
  font-size: var(--text-xs);
  color: #94a3b8;
  text-align: center;
}

/* ─── BREADCRUMB ────────────────────────────────────────────────────── */
.breadcrumb {
  padding: var(--s-3) 0;
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb-separator { margin: 0 var(--s-2); opacity: 0.5; }

/* ─── PAGINATION ────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-bg-white);
  color: var(--c-text);
  font-size: var(--text-sm);
}

.pagination .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination .page-numbers:hover:not(.current) { background: var(--c-bg-subtle); }

/* ─── 404 ───────────────────────────────────────────────────────────── */
.error-404 {
  text-align: center;
  padding: var(--s-16) var(--s-4);
}

.error-404__code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin: 0 0 var(--s-4);
}

.error-404__title { font-size: var(--text-2xl); margin-bottom: var(--s-3); }
.error-404__desc { color: var(--c-text-muted); margin-bottom: var(--s-6); }

/* ─── PRINT ─────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sc-cta, .contact-card__cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
/* ════════════════════════════════════════════════════════════════════
   LOCATION ARCHIVE (taxonomy-company_location.php)
   ════════════════════════════════════════════════════════════════════ */

.location-hero__eyebrow {
  display: inline-block;
  margin: 0 0 var(--s-2);
  padding: var(--s-1) var(--s-3);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  letter-spacing: 0.02em;
}

.location-hero__title { margin-top: 0; }

.location-hero__desc {
  max-width: 70ch;
  font-size: var(--text-base);
  line-height: 1.6;
}

.location-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}

.location-hero__stat {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.location-hero__stat strong {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--c-primary);
}

.location-hero__stat span {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}

/* ─── Section helpers ────────────────────────────────────────────── */
.location-archive > section { margin-top: var(--s-10); }
.location-archive > section:first-child { margin-top: var(--s-8); }

.section-title {
  font-size: var(--text-xl);
  margin: 0 0 var(--s-4);
  font-weight: 700;
  color: var(--c-text);
}

@media (min-width: 1024px) {
  .section-title { font-size: var(--text-2xl); }
}

/* ─── Sub-lokasi chips ───────────────────────────────────────────── */
.location-children__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.location-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all .15s;
}

.location-chip:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.location-chip__count {
  display: inline-block;
  min-width: 24px;
  padding: 0 var(--s-2);
  background: var(--c-bg-subtle);
  color: var(--c-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  border-radius: var(--r-full);
}

.location-chip:hover .location-chip__count {
  background: var(--c-primary);
  color: #fff;
}

/* ─── Filter kategori (chip pill row) ────────────────────────────── */
.location-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0;
  margin: 0;
  list-style: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  color: var(--c-text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all .15s;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}

.filter-chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.filter-chip__count {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: .75;
}

.filter-chip.is-active .filter-chip__count { opacity: 1; }

/* ─── FAQ (AEO) ──────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.faq-item {
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item[open] { border-color: var(--c-primary-light); }

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}

.faq-item__q::-webkit-details-marker { display: none; }

.faq-item__q::after {
  content: "+";
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--c-primary);
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-item__a {
  padding: 0 var(--s-4) var(--s-4);
  color: var(--c-text-muted);
  line-height: 1.6;
}

.faq-item__a p { margin: 0; }

/* ─── A11y helper ────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   REVIEWS — star display, summary card, list, form
   ═══════════════════════════════════════════════════════════════════ */

/* ── Star display (read-only, supports decimals like 4.5) ──────────
   Trick: dua layer ★★★★★ — bawah abu-abu, atas emas dengan width
   proporsional terhadap --rating (0–5). Bersih, no SVG, no JS. */
.star-display {
  --rating: 0;
  --pct: calc(var(--rating) / 5 * 100%);
  display: inline-block;
  font-size: 1em;
  line-height: 1;
  position: relative;
  color: #e0e0e0;
  letter-spacing: 2px;
  font-family: Arial, sans-serif; /* konsisten render di semua OS */
}
.star-display::before {
  content: "★★★★★";
}
.star-display::after {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--pct);
  overflow: hidden;
  color: #ffb800;
  white-space: nowrap;
}

/* ── Rating badge di header single company ──────────────────────── */
.sc-meta__rating {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.sc-meta__rating:hover { color: var(--c-primary); }
.sc-meta__rating .star-display { font-size: 14px; }
.sc-meta__rating strong { color: var(--c-text); }

/* ── Summary card (di atas list reviews) ──────────────────────────── */
.review-summary {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-5);
  background: linear-gradient(135deg, #fff8e8 0%, #fff 100%);
  border: 1px solid #f5d56a;
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.review-summary__score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.review-summary__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.review-summary__meta .star-display { font-size: 22px; }
.review-summary__count {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.review-empty {
  padding: var(--s-4);
  text-align: center;
  color: var(--c-text-muted);
  background: var(--c-bg-light, #f8f9fa);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}

/* ── Notice setelah submit ────────────────────────────────────────── */
.review-notice {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  font-size: var(--text-sm);
  border: 1px solid transparent;
}
.review-notice--success { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.review-notice--error   { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

/* ── List ulasan ──────────────────────────────────────────────────── */
.review-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.review-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--c-bg-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.review-item__avatar {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
}
.review-item__body { flex: 1; min-width: 0; }
.review-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.review-item__author { color: var(--c-text); }
.review-item__date   { font-size: var(--text-xs); color: var(--c-text-muted); }
.review-item .star-display { font-size: 14px; margin-bottom: var(--s-2); display: inline-block; }
.review-item__content {
  color: var(--c-text);
  line-height: 1.6;
  font-size: var(--text-sm);
}
.review-item__content p { margin: 0; }
.review-item__content p + p { margin-top: var(--s-2); }

/* ── Form Submit Review ───────────────────────────────────────────── */
.review-form-wrap {
  padding: var(--s-5);
  background: var(--c-bg-light, #f8f9fa);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.review-form-title {
  margin: 0 0 var(--s-2);
  font-size: var(--text-lg);
  color: var(--c-text);
}
.review-form-intro {
  margin: 0 0 var(--s-4);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.review-form__field { margin-bottom: var(--s-4); }
.review-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 600px) {
  .review-form__row { grid-template-columns: 1fr; }
}
.review-form__label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 6px;
  color: var(--c-text);
}
.review-form__label .req { color: #dc2626; }
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
  width: 100%;
  padding: var(--s-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm, 6px);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--c-bg-white);
  transition: border-color .15s, box-shadow .15s;
}
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.review-form textarea { resize: vertical; min-height: 100px; }
.review-form__loggedin {
  margin: 0 0 var(--s-4);
  padding: var(--s-3);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: var(--r-sm, 6px);
  font-size: var(--text-sm);
  color: #065f46;
}

/* ── Star input (radio buttons reverse-order trick) ───────────────── */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.star-input input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-input label {
  font-size: 32px;
  line-height: 1;
  color: #e0e0e0;
  cursor: pointer;
  transition: color .15s, transform .1s;
  user-select: none;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: #ffb800;
}
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label {
  outline: 2px dashed var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Section title count (untuk "(12)" di "Ulasan (12)") ─────────── */
.sc-section__count {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--c-text-muted);
}
