/* SERBAKLIK responsive system, shared by public pages and admin. */
:root { --sk-ink:#0f172a; --sk-teal:#0d9488; --sk-muted:#64748b; --sk-border:#e2e8f0; }
html { max-width:100%; overflow-x:clip; scroll-padding-top:5.5rem; }
body { max-width:100%; overflow-x:clip; }
img, svg, video, canvas { max-width:100%; }
button, input, textarea, select { font:inherit; }
.site-shell { width:min(100% - 2rem, 1120px); margin-inline:auto; }
.site-header { position:sticky; top:0; z-index:40; background:var(--sk-ink); color:#fff; border-bottom:1px solid #ffffff1c; box-shadow:0 12px 32px -28px #020617; }
.site-nav { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.site-brand { display:inline-flex; align-items:center; gap:.8rem; min-width:0; text-decoration:none; }
.site-brand img { width:42px; height:42px; object-fit:contain; border-radius:12px; flex:none; }
.site-brand strong { display:block; color:#fff; font-size:1rem; font-weight:900; letter-spacing:.12em; line-height:1.25; }
.site-brand small { display:block; margin-top:.15rem; color:#94a3b8; font-size:.62rem; letter-spacing:.15em; }
.site-nav-links { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:.5rem 1rem; font-size:.78rem; font-weight:700; }
.site-nav-links a, .site-mobile-nav-panel a { color:#cbd5e1; text-decoration:none; }
.site-nav-links a:hover, .site-mobile-nav-panel a:hover { color:#fff; }
.site-nav-links .nav-contact { padding:.65rem 1rem; border-radius:999px; background:var(--sk-teal); color:#fff; }
.site-mobile-nav { display:none; position:relative; }
.site-mobile-nav summary { list-style:none; border:1px solid #ffffff30; border-radius:12px; padding:.55rem .8rem; color:#fff; font-size:.8rem; font-weight:800; cursor:pointer; }
.site-mobile-nav summary::-webkit-details-marker { display:none; }
.site-mobile-nav-panel { position:absolute; top:calc(100% + .55rem); right:0; z-index:60; display:grid; gap:.2rem; width:min(88vw, 280px); padding:.65rem; border:1px solid #ffffff20; border-radius:16px; background:#111c31; box-shadow:0 22px 44px #02061755; }
.site-mobile-nav-panel a { padding:.7rem .8rem; border-radius:10px; font-size:.84rem; }
.site-mobile-nav-panel a:hover { background:#ffffff12; }
.site-page { width:min(100% - 2rem, 920px); margin:0 auto; padding:clamp(2rem,5vw,4.25rem) 0; }
.site-page-header { margin-bottom:1.5rem; }
.site-eyebrow { color:#0f766e; font-size:.7rem; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.site-page-title { margin:.55rem 0 .7rem; color:var(--sk-ink); font-size:clamp(1.8rem,4vw,2.8rem); font-weight:900; line-height:1.12; letter-spacing:-.04em; overflow-wrap:anywhere; }
.site-page-excerpt { max-width:68ch; color:var(--sk-muted); font-size:.97rem; line-height:1.8; }
.site-content-card { min-width:0; padding:clamp(1rem,3vw,2.25rem); border:1px solid var(--sk-border); border-radius:24px; background:#fff; box-shadow:0 20px 50px -42px #0f172a66; }
.rich-content { min-width:0; color:#475569; overflow-wrap:anywhere; }
.rich-content h2 { margin:1.8rem 0 .7rem; color:var(--sk-ink); font-size:clamp(1.15rem,2.5vw,1.45rem); font-weight:900; line-height:1.3; }
.rich-content h2:first-child { margin-top:0; }
.rich-content h3 { margin:1.4rem 0 .5rem; color:var(--sk-ink); font-size:1.08rem; font-weight:800; }
.rich-content h4 { margin:1.2rem 0 .45rem; color:var(--sk-ink); font-size:.98rem; font-weight:800; }
.rich-content p, .rich-content li, .rich-content blockquote { font-size:.92rem; line-height:1.85; }
.rich-content p { margin:.75rem 0; }
.rich-content ul, .rich-content ol { margin:1rem 0; padding-left:1.35rem; }
.rich-content ul { list-style:disc; }
.rich-content ol { list-style:decimal; }
.rich-content li { margin:.35rem 0; padding-left:.12rem; }
.rich-content a { color:#0f766e; font-weight:700; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.rich-content blockquote { margin:1rem 0; padding:.9rem 1rem; border-left:3px solid #0d9488; border-radius:0 12px 12px 0; background:#f0fdfa; color:#334155; }
.rich-content hr { margin:1.4rem 0; border:0; border-top:1px solid var(--sk-border); }
.site-footer { margin-top:2rem; background:var(--sk-ink); color:#cbd5e1; }
.site-footer-inner { width:min(100% - 2rem,1120px); margin:auto; padding:2rem 0; display:grid; grid-template-columns:1.2fr 1fr; gap:1.5rem; }
.site-footer-links { display:flex; flex-wrap:wrap; align-content:start; gap:.65rem 1rem; font-size:.82rem; }
.site-footer-links a { color:#99f6e4; text-decoration:none; }
.site-footer-links a:hover { color:#fff; text-decoration:underline; }
.site-footer-copy { grid-column:1/-1; padding-top:1rem; border-top:1px solid #ffffff1a; color:#94a3b8; font-size:.72rem; }
.site-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; }
.site-field { width:100%; min-width:0; border:1px solid #cbd5e1; border-radius:12px; background:#fff; padding:.78rem .9rem; color:#0f172a; font-size:.9rem; outline:none; }
.site-field:focus { border-color:var(--sk-teal); box-shadow:0 0 0 3px #0d94881c; }
.site-field-label { display:block; margin-bottom:.35rem; color:#334155; font-size:.76rem; font-weight:800; }
.site-primary-button { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:.75rem 1.2rem; border:0; border-radius:999px; background:var(--sk-teal); color:#fff; font-size:.84rem; font-weight:900; cursor:pointer; }
.site-primary-button:disabled { cursor:wait; opacity:.65; }
.site-form-status { margin-top:1rem; padding:.9rem 1rem; border-radius:12px; background:#ecfdf5; color:#065f46; font-size:.83rem; line-height:1.6; }
.site-form-status.is-error { background:#fff1f2; color:#9f1239; }
.faq-list { display:grid; gap:.7rem; }
.faq-category-title { margin:1.5rem 0 .1rem; color:#0f172a; font-size:.78rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.faq-item { min-width:0; padding:0 1rem; border:1px solid var(--sk-border); border-radius:16px; background:#fff; }
.faq-item summary { position:relative; padding:1rem 2rem 1rem 0; color:#0f172a; font-size:.9rem; font-weight:800; line-height:1.5; cursor:pointer; list-style:none; overflow-wrap:anywhere; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; position:absolute; top:.85rem; right:0; color:#0f766e; font-size:1.35rem; font-weight:600; }
.faq-item[open] summary::after { content:'−'; }
.faq-answer { padding:0 0 1rem; }
.faq-answer p { margin:.2rem 0; }
.contact-card { min-width:0; border:1px solid var(--sk-border); border-radius:18px; background:#fff; padding:1rem; box-shadow:0 14px 35px -32px #0f172a66; }
.contact-card strong { display:block; color:#0f172a; font-size:.9rem; }
.contact-card p, .contact-card a { margin-top:.35rem; color:#64748b; font-size:.82rem; line-height:1.6; overflow-wrap:anywhere; }
.contact-card a { color:#0f766e; font-weight:800; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:.35rem; padding:.55rem; border:1px solid var(--sk-border); border-bottom:0; border-radius:12px 12px 0 0; background:#f8fafc; }
.editor-toolbar button { min-width:36px; min-height:34px; padding:.35rem .55rem; border:1px solid #e2e8f0; border-radius:8px; background:#fff; color:#334155; font-size:.75rem; font-weight:800; }
.rich-editor { min-height:220px; padding:1rem; border:1px solid #cbd5e1; border-radius:0 0 12px 12px; background:#fff; color:#334155; outline:none; overflow-wrap:anywhere; }
.rich-editor:focus { border-color:var(--sk-teal); box-shadow:0 0 0 3px #0d94881c; }
.rich-editor h2 { font-size:1.25rem; font-weight:900; margin:1rem 0 .5rem; }
.rich-editor h3 { font-size:1.05rem; font-weight:800; margin:.8rem 0 .4rem; }
.rich-editor p { margin:.5rem 0; }
.admin-nav { display:flex; flex-wrap:wrap; gap:.45rem; }
.admin-nav .nav-btn { flex:1 1 auto; min-width:112px; }
.admin-view { min-width:0; }
.admin-table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.admin-main { width:100%; }
button, a, input, select, textarea { max-width:100%; }
@media (max-width: 900px) {
  .site-nav-links { gap:.45rem .7rem; font-size:.72rem; }
}
@media (max-width: 767px) {
  .site-shell, .site-footer-inner { width:min(100% - 1.25rem,1120px); }
  .site-nav { min-height:62px; }
  .site-nav-links { display:none; }
  .site-mobile-nav { display:block; }
  .site-brand img { width:38px; height:38px; }
  .site-brand strong { font-size:.9rem; }
  .site-page { width:min(100% - 1.25rem,920px); padding:2rem 0; }
  .site-page-title { font-size:clamp(1.7rem,7vw,2.25rem); }
  .site-page-excerpt { font-size:.88rem; line-height:1.7; }
  .site-content-card { border-radius:18px; }
  .rich-content p, .rich-content li, .rich-content blockquote { font-size:.86rem; line-height:1.75; }
  .site-form-grid { grid-template-columns:minmax(0,1fr); gap:.7rem; }
  .site-footer-inner { grid-template-columns:minmax(0,1fr); gap:1.25rem; padding:1.5rem 0; }
  .site-footer-copy { grid-column:auto; }
  .admin-main { padding:1rem .75rem; }
  .admin-main > header { margin-bottom:1rem; }
  #admin-panel > div.grid-cols-2 { gap:.55rem; }
  #admin-panel > div.grid-cols-2 > div { padding:.75rem; border-radius:14px; }
  #admin-panel > div.grid-cols-2 > div p:last-child { margin-top:.35rem; font-size:1.5rem; }
  .admin-nav .nav-btn { flex:1 1 calc(50% - .45rem); min-width:0; padding:.7rem .55rem; font-size:.7rem; }
  .admin-view > div, .admin-view .rounded-2xl { min-width:0; }
  .admin-view .p-5 { padding:1rem; }
  .admin-view .sm\:p-6 { padding:1rem; }
  .admin-view .sm\:p-7 { padding:1rem; }
  .rich-editor { min-height:180px; }
}
@media (max-width: 380px) {
  .site-brand { gap:.55rem; }
  .site-brand img { width:34px; height:34px; }
  .site-mobile-nav summary { padding:.5rem .65rem; font-size:.72rem; }
  .site-page { width:min(100% - 1rem,920px); }
  .contact-card { padding:.85rem; }
  .admin-nav .nav-btn { font-size:.66rem; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }

/* Link, media and mobile-fit refinements for public CMS content and listing pages. */
.rich-content,
.rich-content p,
.rich-content li,
.rich-content a,
.site-page-excerpt,
.contact-card,
.faq-item,
.asset-broker-note {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.rich-content a { word-break: break-word; }
.rich-content .cms-figure { width: 100%; max-width: 100%; margin: 1.25rem 0; }
.rich-content .cms-image {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: clamp(12px, 2vw, 20px);
  background: #e2e8f0;
}
.rich-content .cms-image-caption {
  margin-top: .55rem;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.rich-content img:not(.cms-image) { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.rich-content figure { min-width: 0; }

.digital-intro-layout,
.asset-intro-layout,
.digital-intro-layout > *,
.asset-intro-layout > * { min-width: 0; }
.digital-showcase {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #e2e8f0;
  box-shadow: 0 18px 42px -34px #0f172a80;
}
.digital-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.digital-showcase-caption {
  padding: .7rem .9rem;
  background: #fff;
  color: #475569;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.asset-feature-card { min-width: 0; aspect-ratio: 4 / 3; }
.asset-feature-card--property { aspect-ratio: 4 / 3; }
.asset-feature-card--vehicle { aspect-ratio: 16 / 10; }
.asset-feature-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}
.asset-feature-image--vehicle { aspect-ratio: 16 / 10; }
.asset-broker-note {
  padding: .85rem 1rem;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: .78rem;
  line-height: 1.7;
}
.asset-broker-note strong { color: #4c1d95; }

.catalog-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}
.gallery-thumb-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}
.modal-main-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}
.product-card { min-width: 0; overflow: hidden; }
.product-card img { display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e2e8f0; }

/* Product detail pages generated by Cloudflare Pages Functions. */
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.detail-gallery-image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #e2e8f0; }
.detail-badge-affiliate { background: #fff7ed; color: #9a3412; }
.detail-eyebrow { margin-top: 18px; }
.detail-price-suffix { margin-top: 0; font-size: 12px; }
.detail-meta { margin-top: 12px; font-size: 13px; }
.detail-url { margin-top: 18px; font-size: 11px; overflow-wrap: anywhere; }
.detail-description-panel { margin-bottom: 18px; }
.detail-description-panel > .section-title:first-child { margin-top: 0; }
.detail-variant-note { margin: 3px 0; font-size: 12px; }
.detail-disclaimer { font-size: 12px; }
.detail-notice { margin-top: 20px; }
.detail-broker-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  background: #f5f3ff;
  color: #5b21b6;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .digital-intro-layout { gap: 1.1rem; padding-top: 2.5rem; }
  .digital-showcase { border-radius: 16px; }
  .asset-intro-layout { gap: 1.25rem; padding-block: 2.75rem; }
  .asset-feature-card, .asset-feature-card--property { aspect-ratio: 4 / 3; min-height: 0; }
  .asset-feature-card--vehicle { aspect-ratio: 16 / 10; }
  .asset-feature-image { height: 100%; }
  .asset-feature-card .absolute.bottom-0 { max-width: 100%; padding: .8rem; }
  .asset-feature-card .absolute.bottom-0 p { overflow-wrap: anywhere; }
  .asset-broker-note { padding: .75rem .85rem; font-size: .74rem; }
  .detail-gallery { gap: 7px; }
  .site-page, .site-content-card, .rich-content { min-width: 0; max-width: 100%; }
}

@media (max-width: 380px) {
  .digital-showcase-caption { font-size: .64rem; padding: .6rem .7rem; }
  .asset-feature-card .absolute.bottom-0 { padding: .65rem; }
}

/* Safe auto-linked URLs in plain text CMS/settings fields. */
.auto-linked-text { min-width: 0; overflow-wrap: anywhere; }
.auto-linked-text a { color: #0f766e; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }
.auto-linked-text a:hover { color: #115e59; }


/* Katalog: ukuran kartu, keterbacaan, kontras, dan target sentuh yang konsisten. */
#catalog-grid { align-items: stretch; }
#catalog-grid > article {
  min-width: 0;
  border-color: #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px -26px #0f172a80;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
#catalog-grid > article > div:first-child { min-width: 0; isolation: isolate; }
#catalog-grid .catalog-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
#catalog-grid > article > div:nth-child(2) { min-width: 0; padding: 1rem; }
#catalog-grid h3 { min-height: 0; font-size: 1rem; line-height: 1.45; letter-spacing: -.015em; }
#catalog-grid h3 a { text-decoration: none; text-underline-offset: .2em; }
#catalog-grid p { color: #64748b; font-size: .84rem; line-height: 1.6; overflow-wrap: anywhere; }
#catalog-grid .catalog-card-spec { min-width: 0; font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; }
#catalog-grid [data-detail-id],
#catalog-grid a[href*="wa.me"] { min-height: 44px; align-self: stretch; }
#catalog-grid a[href*="wa.me"] { background-color: #15803d; }
#catalog-grid a[href*="wa.me"]:hover { background-color: #166534; }
#catalog-grid button:focus-visible,
#catalog-grid a:focus-visible { outline: 3px solid rgba(13, 148, 136, .55); outline-offset: 3px; }

@media (max-width: 767px) {
  #catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  #catalog-grid > article > div:nth-child(2) { padding: .9rem; }
  #catalog-grid h3 { font-size: .9rem; }
  #catalog-grid p { font-size: .78rem; line-height: 1.55; }
  #catalog-grid .catalog-card-spec { font-size: .76rem; line-height: 1.5; }
  #catalog-grid h3,
  #catalog-grid p,
  #catalog-grid a,
  #catalog-grid span { overflow-wrap: anywhere; }
}

/* Satu kartu per baris pada ponsel agar judul, harga, dan spesifikasi tetap terbaca. */
@media (max-width: 479px) {
  #catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  #catalog-grid > article { border-radius: 18px; }
  #catalog-grid > article > div:nth-child(2) { padding: 1rem; }
  #catalog-grid h3 { font-size: 1rem; line-height: 1.45; }
  #catalog-grid h3.line-clamp-2,
  #catalog-grid p.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  #catalog-grid p { font-size: .875rem; line-height: 1.65; }
  #catalog-grid .catalog-card-spec { font-size: .875rem; line-height: 1.6; }
  #catalog-grid [data-detail-id],
  #catalog-grid a[href*="wa.me"] { padding-inline: .8rem; }
  a[aria-label="Chat WhatsApp SERBAKLIK"] {
    right: 1rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    width: 3rem;
    height: 3rem;
  }
  a[aria-label="Chat WhatsApp SERBAKLIK"] svg { width: 1.4rem; height: 1.4rem; }
}

@media (hover: hover) {
  #catalog-grid > article:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 40px -28px #0f172a66;
  }
}
