  :root {
    --ungu-tua: #583073;
    --ungu-muda: #F9F0FC;
    --merah: #B61114;
    --biru: #1E0095;
    --ungu-tua-dark: #3e2151;
    --text-dark: #1f1a24;
    --text-muted: #6b6478;
    --border-color: #e3d6ec;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(88, 48, 115, 0.10);
    --shadow-sm: 0 2px 8px rgba(88, 48, 115, 0.08);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.5;
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; margin: 0; padding: 0; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; }

  .container {
    width: 100%;
    max-width: 1700px; 
    margin: 0 auto;
    padding: 0 16px; 
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 19px;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
  }
  .btn-primary { background: var(--ungu-tua); color: #fff; }
  .btn-primary:hover { background: var(--ungu-tua-dark); }
  .btn-outline { background: transparent; border: 1.5px solid var(--ungu-tua); color: var(--ungu-tua); }
  .btn-outline:hover { background: var(--ungu-muda); }
  .btn-danger { background: var(--merah); color: #fff; }
  .btn-danger:hover { background: #8f0d10; }
  .btn-block { width: 100%; }
  .btn-sm { padding: 8px 16px; font-size: 17px; border-radius: 30px; }

  /* ---------- Navbar ---------- */
  .navbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 200;
  }
  .navbar .logo { display: flex; align-items: center; gap: 9px; font-weight: 700; margin-bottom: 2px; margin-top: 14px; }
  .navbar .logo img { height: 79px; display: block; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    font-size: 21px;
    margin-left: auto;
  }
  .nav-links > li { position: relative; }
  .nav-links a.nav-link { display:flex; align-items:center; gap:4px; color: var(--text-dark); }
  .nav-links a.nav-link:hover { color: var(--ungu-tua); }
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 130%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 10px;
    min-width: 180px;
    padding: 8px;
    z-index: 50;
  }
  .nav-links li:hover .dropdown-menu { display: block; }
  .mobile-member-link { display: none; }
  .dropdown-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 18px; }
  .dropdown-menu a:hover { background: var(--ungu-muda); color: var(--ungu-tua); }

  .navbar-actions { display: flex; align-items: center; gap: 14px; }
  .avatar-circle {
    width: 50px; height: 50px; min-width: 50px; flex: 0 0 50px; border-radius: 50%; overflow: hidden;
    border: 1.5px solid var(--text-dark); background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
  }
  .avatar-circle img.avatar-image {
    width: 70%; height: 70%; margin: auto; object-fit: contain; object-position: center;
    transform: translateY(-1px);
  }
  .avatar-menu { position: relative; }
  .avatar-dropdown {
    display: none; position: absolute; right: 0; top: 130%;
    background: #fff; box-shadow: var(--shadow); border-radius: 10px;
    min-width: 190px; padding: 8px; z-index: 50;
  }
  .avatar-menu:hover .avatar-dropdown, .avatar-menu.open .avatar-dropdown { display: block; }
  .avatar-dropdown a, .avatar-dropdown button {
    display: block; width: 100%; text-align: left; background: none; border: none;
    padding: 10px 12px; border-radius: 8px; font-size: 18px; color: var(--text-dark);
  }
  .avatar-dropdown a:hover, .avatar-dropdown button:hover { background: var(--ungu-muda); color: var(--ungu-tua); }
  .burger { display: none; background: none; border: none; font-size: 31px; color: var(--ungu-tua); }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    min-height: 850px; 
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #efe6f3 0%, #d9d4ea 45%, #b9b6cf 100%);
  }
  .hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .9;
  }
  .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(249,240,252,0.96) 0%, rgba(249,240,252,0.55) 45%, rgba(60,40,80,0.10) 100%);
  }
  .hero-content { position: relative; z-index: 2; padding: 60px 24px; max-width: 680px; }
  .hero-content h1 { font-family: 'Libre Caslon Text', serif; font-size: 99px; margin: 0 0 50px; font-weight: 300; color: var(--text-dark); line-height: 1.08; }
  .hero-content h1 .hero-title-line1 { white-space: nowrap; font-weight: 300; }
  .hero-content h1 .dot { color: var(--ungu-tua); }
  .hero-content p { font-size: 20px; color: #4a4552; margin-bottom: 24px; }
  .search-box {
    display: flex; background: #fff; border-radius: 40px; box-shadow: var(--shadow);
    padding: 7px; max-width: 659px;
  }
  .search-box input {
    border: none; outline: none; flex: 1; padding: 13px 20px; border-radius: 40px; font-size: 20px;
  }
  .search-box button {
    background: var(--ungu-tua); border: none; color: #fff; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
  }
  .search-box button img { width: 30px; height: 30px; display: block; }
  .search-toolbar .st-input img.st-search-icon { width: 25px; height: 25px; flex-shrink: 0; }

  /* ---------- Page header banner (inner pages) ---------- */
  .page-banner {
    background: linear-gradient(90deg, var(--ungu-muda) 0%, #e4d3ee 100%);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
  }
  .page-banner h1 { margin: 0 0 6px; font-size: 36px; }
  .page-banner p { margin: 0 0 10px; color: var(--text-muted); }
  .breadcrumb { font-size: 17px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-top: 18px; transform: translateY(10px); }
  .breadcrumb a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 16px; }
  .breadcrumb a img.bc-home-icon { width: 31px; height: 31px; object-fit: contain; }
  .breadcrumb .active { color: var(--ungu-tua); font-weight: 600; }

  /* ---------- Section titles ---------- */
  .section-title { font-size: 36px; font-weight: 700; margin: 0 0 8px; }
  .section-title .accent { color: var(--ungu-tua); }
  .section-sub { color: var(--text-muted); margin-bottom: 28px; font-size: 22px; }

  /* ---------- About section ---------- */
  .about-section { padding: 64px 0; }
  .about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
  .about-title {
    font-family: 'Libre Caslon Text', serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.10;
    margin-top: -10px;
  }
  .about-grid > div > p { font-size: 22px; line-height: 1.75; }
  .about-features { margin-top: 20px; display: grid; gap: 16px; }
  .about-feature { display: flex; gap: 14px; align-items: flex-start; }
  .about-feature:nth-child(2) { padding-left: 18px; }
  .about-feature img[src*="about-location.png"] { margin-left: -12px; }
  .about-feature img { width: 58px; height: 58px; object-fit: contain; }
  .about-feature h4 { margin: 0 0 4px; font-size: 25px; font-weight: 600; }
  .about-feature p { margin: 0; font-size: 20px; font-weight: 400; color: var(--text-muted); }
  .about-img-wrap { position: relative; }
  .about-img-wrap img { border-radius: 24px; width: 100%; height: 770px; object-fit: cover; position: relative; z-index: 2; }
  .about-img-wrap::before {
    content: '';
    position: absolute;
    top: -66px; left: -220px;
    width: 820px; height: 820px;
    border-radius: 50%;
    background: var(--ungu-tua);
    opacity: 0.05;
    z-index: 0;
  }

  .about-img-wrap::after {
    content: '';
    position: absolute;
    top: 500px; left: -100px;
    width: 72px; height: 72px;
    background-image: radial-gradient(circle, #d8cbe3 6px, transparent 6.5px);
    background-size: 24px 24px;
    z-index: 1;
  }


  /* ---------- Property cards ---------- */
  .property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
  }
  .property-card {
    background: #f6f2f8;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
  }
  .property-card:hover { transform: translateY(-4px); }
  .property-card .img-wrap { position: relative; height: 220px; }
  .property-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
  .badge-status {
    position: absolute; top: 10px; left: 10px; background: var(--ungu-tua); color: #fff;
    font-size: 15px; padding: 4px 12px; border-radius: 20px; font-weight: 600;
  }
  .badge-status.disewa { background: var(--ungu-tua); }
  .badge-status.terjual { background: var(--merah); }
  .property-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
  .property-card h3 { font-size: 19px; margin: 0 0 2px; }
  .property-card .loc { font-size: 14.5px; color: var(--text-muted); margin: 0 0 8px; }
  .property-card .price { font-size: 20px; font-weight: 700; color: var(--ungu-tua); margin: 0 0 8px; }
  .property-card .meta { display: flex; gap: 14px; font-size: 14.5px; color: var(--text-muted); margin-bottom: 12px; }
  .property-card .meta span { display: flex; align-items: center; gap: 4px; }
  .property-card .meta span img { width: 22px; height: 22px; object-fit: contain; }
  .agent-mini { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid #e5dcea; }
  .agent-mini img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
  .agent-mini .name { font-size: 15px; font-weight: 600; display: block; }
  .agent-mini .role { font-size: 17px; color: var(--text-muted); }

  /* ---------- Partner Bank ---------- */
  .partner-box {
    background: var(--ungu-muda); border-radius: 20px; 
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0px 210px;
    
    padding-top: 18px;   
    padding-bottom: 45px; 
  }
  .partner-row-break {
    flex-basis: 100%;
    height: 0;
  }
  .partner-box img {
    height: px; object-fit: contain; width: calc(25% - 24px);
    min-width: 110px; max-width: 170px;
    filter: grayscale(.05);
    margin: -30px 0;
  }
  
  /* ---------- About Casa timeline ---------- */
  .about-timeline-section { padding: 60px 0 20px; }
  .about-timeline { display: grid; grid-template-columns: 140px 60px 1fr; gap: 0 26px; }
  .at-year { font-size: 51px; font-weight: 700; color: var(--ungu-tua); align-self: start; padding-top: 14px; }
  .at-rail { display: flex; flex-direction: column; align-items: center; }
  .at-icon {
    width: 80px; height: 80px; border-radius: 50%; background: var(--ungu-tua); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 38px; flex-shrink: 0;
  }
  .at-icon img { width: 44px; height: 44px; object-fit: contain; }
  .at-line { width: 2px; flex: 1; background: var(--border-color); margin: 4px 0; }
  .at-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-color); margin-top: 4px; }
  .at-card {
    background: var(--ungu-muda); border: 1.5px solid var(--ungu-tua);
    border-radius: 30px 999px 999px 30px; padding: 26px 32px; margin-bottom: 33px;
  }
  .at-card h3 { margin: 0 0 10px; font-size: 26px; color: #5B3D73; }
  .at-card p { margin: 0; font-size: 22px; color: #4a4552; line-height: 1.75; }
  .at-star {
    width: 100px; height: 100px; border-radius: 50%; background: var(--ungu-tua); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 80px; flex-shrink: 0;
  }
  .at-now {
    display: flex; align-items: center; gap: 40px; border: 1.5px solid var(--border-color);
    border-radius: 90px; padding: 18px 28px; margin-bottom: 40px;
  }
  .at-now .at-now-label { font-size: 70px; font-weight: 700; color: var(--ungu-tua); white-space: nowrap; }
  .at-now .at-now-sep { width: 1.5px; align-self: stretch; background: var(--border-color); }
  .at-now p { margin: 0; font-size: 19.5px; color: #4a4552; line-height: 1.65; }
  @media (max-width: 768px) {
    .about-timeline { grid-template-columns: 46px 1fr; }
    .at-year { display: none; }
    .at-card { padding: 20px; border-radius: 24px; }
    .at-now { flex-direction: column; align-items: flex-start; border-radius: 24px; }
    .at-now .at-now-sep { display: none; }
  }

  /* ---------- Footer ---------- */
  .footer { background: var(--ungu-muda); padding: 72px 0 0; margin-top: 40px; }
  .footer-grid { display: grid; grid-template-columns: 1.5fr 1.15fr 1fr; gap: 48px; padding-bottom: 56px; }
  .footer-grid > div + div { border-left: 1px solid var(--border-color); padding-left: 30px; }
  .footer-grid > div:first-child > img { height: 88px !important; margin-bottom: 16px !important; }
  .footer h4 { color: var(--ungu-tua); margin: 0 0 18px; font-size: 28px; }
  .footer p { color: #52495c; font-size: 22px; }
  .footer .contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 22px; }
  .footer .contact-line img { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
  .social-icons { display: flex; gap: 18px; margin-top: 22px; }
  .social-icons a {
    width: 48px; height: 48px; border-radius: 50%; background: var(--ungu-tua); color: #fff;
    display: flex; align-items: center; justify-content: center;
  }
  .social-icons a img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
  .whatsapp-btn {
    border: 1.5px solid var(--ungu-tua); border-radius: 30px; padding: 12px 22px; display: inline-flex;
    gap: 10px; align-items: center; font-weight: 600; font-size: 20px; color: var(--ungu-tua); margin-top: 14px;
  }
  .whatsapp-btn img { width: 30px !important; height: 30px !important; object-fit: contain; flex-shrink: 0; }
  .footer-bottom {
    background: var(--ungu-tua); color: #e9dcf0; padding: 16px 0; margin-top: 20px;
    font-size: 20px; display: flex; justify-content: space-between;
  }
  .footer-bottom a { color: #e9dcf0; margin-left: 16px; }

  /* ---------- Forms / Auth ---------- */
  .auth-wrapper {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(120deg, #d9d4ea, #b9b6cf); padding: 40px 20px;
  }
  .auth-card {
    display: flex; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
    max-width: 1000px; width: 100%; min-height: 560px;
  }
  .auth-img { flex: 1; position: relative; }
  .auth-img img { width: 100%; height: 100%; object-fit: cover; }
  .auth-img-overlay { position: absolute; inset: 0; padding: 40px; color: #fff; background: linear-gradient(180deg, rgba(88,48,115,.55), rgba(30,0,149,.35)); display:flex; flex-direction:column; justify-content:flex-start;}
  .auth-img-overlay h2 { font-size: 31px; margin-bottom: 10px; }
  .auth-img-overlay-light {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255, 255, 255, 0) 40%);
    color: var(--text-dark);
    justify-content: flex-start;
    padding-top: 45px;
  }
  .auth-img-overlay-light h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 27px;
    line-height: 1.25;
    color: #201a29;
    margin-top: 0;
  }
  .auth-img-overlay-light h2 .accent { color: var(--ungu-tua); }
  .auth-img-overlay-light p { font-size: 12px; color: #5B3D73; max-width: 380px; line-height: 1.45; }
  .auth-form { flex: 1; padding: 48px; display: flex; flex-direction: column; justify-content: center; }
  .auth-form .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
  .auth-form .logo-row img { height: 44px; }
  .auth-form h1 { font-size: 36px; color: var(--ungu-tua); margin: 0; }
  .form-group { margin-bottom: 16px; }
  .form-group label { display: block; font-weight: 600; color: var(--ungu-tua); margin-bottom: 6px; font-size: 18px; }
  .input-wrap { position: relative; }
  .input-wrap i, .input-wrap .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a8092; }
  .form-control {
    width: 100%; padding: 12px 14px 12px 40px; border: 1.5px solid var(--ungu-tua); border-radius: 10px;
    font-size: 18px; outline: none; background: #fff;
  }
  .form-control:focus { border-color: var(--biru); }
  textarea.form-control { padding-left: 14px; min-height: 90px; resize: vertical; }
  select.form-control { padding-left: 14px; appearance: none; }
  .toggle-pass { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #8a8092; }
  .form-error { color: var(--merah); font-size: 17px; margin-top: -8px; margin-bottom: 14px; }
  .form-note { background: var(--ungu-muda); border-radius: 10px; padding: 14px 16px; font-size: 17px; color: #4a4552; margin: 16px 0; }
  .form-note a { color: var(--ungu-tua); font-weight: 600; text-decoration: underline; }
  .agree-text { text-align: center; margin-top: 20px; padding-top: 0; font-size: 17px; color: #4a4552; }
  .agree-text a { color: var(--ungu-tua); font-weight: 600; }
  .radio-group { display: flex; gap: 20px; }
  .radio-option { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border-color); padding: 10px 16px; border-radius: 10px; flex:1; cursor:pointer; }
  .radio-option.active { border-color: var(--ungu-tua); }
  .auth-alt { text-align: center; margin-top: 18px; font-size: 18px; }
  .auth-alt a { color: var(--ungu-tua); font-weight: 700; }

  .auth-img-overlay p {
      max-width: 520px; 
      margin-top: 0px;
  }
  /* ---------- Property search toolbar (listing pages) ---------- */
  .search-toolbar {
    display: flex; align-items: center; gap: 12px; background: #fff;
    border: 1px solid var(--border-color); border-radius: 4px; box-shadow: var(--shadow-sm);
    padding: 8px 10px; margin-bottom: 26px; flex-wrap: wrap;
  }
  .search-toolbar .st-input {
    flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; color: var(--text-muted); border-radius: 4px;
  }
  .search-toolbar .st-input input {
    border: none; outline: none; flex: 1; font-size: 18px; font-family: inherit; color: var(--text-dark);
  }
  .st-toggle { display: flex; background: var(--ungu-muda); border-radius: 4px; padding: 4px; gap: 2px; }
  .st-toggle a {
    padding: 8px 18px; border-radius: 4px; font-size: 18px; font-weight: 600; color: var(--text-dark);
  }
  .st-toggle a.active { background: var(--ungu-tua); color: #fff; }
  .st-select { position: relative; }
  .st-select summary { list-style: none; cursor: pointer; }
  .st-select summary::-webkit-details-marker { display: none; }
  .st-filter {
    display: flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 4px;
    border: 1px solid var(--border-color); font-size: 18px; font-weight: 600; color: var(--text-dark); background: #fff;
    white-space: nowrap;
  }
  .st-filter::after {
    content: "⌃";
    font-size: 15px;
    line-height: 1;
    display: inline-block;
    margin-left: 4px;
    transform: rotate(180deg);
    transition: transform .2s ease;
    color: var(--text-dark);
  }
  details[open] > .st-filter::after {
    transform: rotate(0deg);
  }
  .st-filter-icon { width: 23px; height: 23px; object-fit: contain; }
  .st-dropdown-panel {
    position: absolute; left: 0; top: 120%; background: #fff; border: 1px solid var(--border-color);
    border-radius: 4px; box-shadow: var(--shadow); padding: 8px; width: 200px; z-index: 50;
  }
  .st-dropdown-panel a { display: block; padding: 9px 12px; border-radius: 4px; font-size: 18px; color: var(--text-dark); }
  .st-dropdown-panel a:hover, .st-dropdown-panel a.active { background: var(--ungu-muda); color: var(--ungu-tua); }
  .st-cari { padding: 10px 26px; border-radius: 4px !important; }

  /* ---------- Filter panel (dropdown, Dijual/Disewa listing page) ---------- */
  .filter-panel {
    position: absolute; right: 0; top: 120%; background: #fff; border: 1px solid var(--border-color);
    border-radius: 18px; box-shadow: var(--shadow); padding: 22px; width: 320px; z-index: 50;
    max-height: 80vh; overflow-y: auto;
  }
  .filter-panel-title { font-size: 31px; font-weight: 700; margin: 0 0 18px; color: var(--text-dark); }
  .filter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .filter-row > label { flex: 0 0 100px; font-size: 18px; font-weight: 500; color: var(--text-dark); }
  .filter-row select.form-control,
  .filter-row input.form-control { flex: 1; padding: 9px px; font-size: 17px; border-radius: 8px; }
  .filter-row-fields { flex: 1; display: flex; flex-direction: column; gap: 8px; }
  .filter-row-fields select { width: 100%; }
  .filter-range { flex: 1; display: flex; align-items: center; gap: 8px; }
  .filter-range input { padding: 9px 10px; font-size: 17px; border-radius: 1px; width: 0; }
  .filter-range span { color: var(--text-muted); font-size: 17px; white-space: nowrap; }
  .filter-row .filter-row-fields { flex: 1; }
  .filter-panel .filter-row:has(.filter-row-fields) { align-items: flex-start; }
  .filter-panel .filter-row:has(.filter-row-fields) > label { padding-top: 9px; }
  .filter-row-stacked { flex-direction: column; align-items: flex-start !important; gap: 8px; }
  .filter-row-stacked > label { flex: none; }
  .filter-row-stacked .filter-range { width: 100%; }
  .filter-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
  .btn-gray { background: #d9d9d9; color: var(--text-dark); }
  .btn-gray:hover { background: #c7c7c7; }

  /* ---------- Gabung Agen page ---------- */
  .agen-hero { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .agen-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .agen-hero-overlay { position: absolute; inset: 0; background: rgba(20,14,28,0.5); }
  .agen-hero-content { position: relative; z-index: 2; width: 100%; max-width: 100%; padding: 60px 24px; box-sizing: border-box; color: #fff; margin: 0 auto; text-align: center; }
  .agen-hero-content h1 { font-size: 39px; font-weight: 700; margin: 0 0 16px; line-height: 1.2; color: #fff; white-space: nowrap; text-align: center; }
  .agen-hero-content p { font-size: 19px; margin: 0 auto 24px; color: #f1ecf5; max-width: 600px; text-align: center; }
  .btn-outline-white { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1.5px solid #fff; color: #fff; padding: 12px 22px; border-radius: 30px; font-weight: 600; }
  .btn-outline-white:hover { background: rgba(255,255,255,0.15); }
  .wa-inline-btn img { width: 25px !important; height: 25px !important; object-fit: contain; flex-shrink: 0; }
  .agen-consult-banner {
    background: var(--ungu-tua); color: #fff; text-align: center; padding: 22px 20px;
    font-size: 40px; font-weight: 505;
  }

  .agen-feature-section { max-width: 700px; margin: 0 auto; padding: 50px 24px 70px; text-align: center; }
  .agen-feature { padding: 40px 0; }
  .agen-feature img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 9px; margin-bottom: 26px; }
  .agen-feature h2 { font-size: 29px; margin: 0 0 14px; color: var(--text-dark); text-align: center; }
  .agen-feature p { font-size: 19px; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; text-align: center; }
  .agen-feature-shaded {
    background: var(--ungu-muda);
    border-radius: 0;
    padding: 40px 18px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .agen-feature-shaded img {
    width: calc(100% - 32px);
    max-width: 660px;
    max-height: 380px;
    object-fit: cover;
    border-radius: 9px;
    margin: 0 auto 26px;
    display: block;
  }
  @media (max-width: 560px) {
    .agen-hero-content h1 { font-size: 24px; white-space: normal; text-align: center; }
    .agen-feature-section { padding-left: 18px; padding-right: 18px; }
    .agen-feature { padding: 28px 0; }
    .agen-feature img { max-height: 240px; margin-bottom: 18px; }
    .agen-feature-shaded img { max-height: 240px; margin-bottom: 18px; }
    .agen-feature h2 { font-size: 24px; text-align: center; }
    .agen-feature p { font-size: 16px; text-align: center; }
    .agen-feature-shaded {
      padding-left: 18px;
      padding-right: 18px;
    }
  }

  /* ---------- Page banner with hero image (titip/cari property) ---------- */
  .page-banner-hero { padding: 0; position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: center; }
  .page-banner-hero .pbh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .page-banner-hero .pbh-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(230,220,245,0.97) 0%, rgba(230,220,245,0.65) 50%, rgba(230,220,245,0.05) 100%);
  }
  .page-banner-hero .container { position: relative; z-index: 2; padding: 44px 24px; }
  .page-banner-hero h1 { margin: 0 0 10px; font-size: 60px; }
  .page-banner-hero p { margin: 0 0 12px; color: var(--text-muted); font-size: 22px; }

  /* ---------- Segmented control (Titip Property / Cari Property) ---------- */
  .seg-control {
    display: flex; align-items: center; justify-content: space-between; gap: 6px;
    background: #fff; border: 1px solid var(--border-color); border-radius: 40px; box-shadow: var(--shadow);
    padding: 6px; max-width: 560px; margin: -34px auto 34px; position: relative; z-index: 3;
  }
  .seg-control a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 34px; font-weight: 600; font-size: 19px; color: var(--text-dark);
  }
  .seg-control a.active { background: var(--ungu-tua); color: #fff; }
  .seg-control a img.seg-icon { width: 39px; height: 39px; object-fit: contain; }
  .seg-control a.active img.seg-icon { filter: brightness(0) invert(1); }

  /* ---------- Generic content card / listing / filter ---------- */
  .content-wrap { padding: 36px 0 60px; }
  .layout-2col { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
  .filter-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 20px; position: sticky; top: 90px;
  }
  .filter-card h3 { font-size: 20px; margin: 0 0 14px; color: var(--ungu-tua); }
  .filter-card .form-group label { font-size: 17px; }

  /* ---------- Titip / Cari Property form: compact layout ---------- */
  .form-lead.filter-card { padding: 24px; }
  .form-lead h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); margin-bottom: 18px; }
  .form-lead .form-group { margin-bottom: 18px; }
  .form-lead .form-group label { font-size: 16px; }
  .form-lead .form-control { padding: 12px 14px; font-size: 16px; border-radius: 10px; border-width: 1.5px; }
  .form-lead textarea.form-control { min-height: 120px; padding: 12px 14px; }
  .form-lead select.form-control { padding: 12px 14px; }
  .form-lead .radio-option { padding: 10px 14px; font-size: 15px; border-radius: 10px; border-width: 1.5px; }
  .form-lead .form-note { font-size: 14px; padding: 12px 14px; }
  .listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px;}
  .layout-2col .property-grid { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 992px) { .layout-2col .property-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .layout-2col .property-grid { grid-template-columns: 1fr; } }
  .listing-toolbar .count { color: var(--text-muted); font-size: 18px; }
  .property-grid-3col { grid-template-columns: repeat(4, 1fr); }
  @media (max-width: 992px) { .property-grid-3col { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 640px) { .property-grid-3col { grid-template-columns: 1fr; } }

  /* ---------- Agent profile hero (public listing agen page) ---------- */
  .aph-hero {
    background: var(--ungu-muda); border-radius: 24px; padding: 34px;
    display: flex; align-items: center; gap: 34px;
    margin-bottom: 30px;
  }
  .aph-photo { flex-shrink: 0; }
  .aph-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; display: block; }
  .aph-info { flex: 1; min-width: 0; }
  .aph-info h1 { margin: 0 0 2px; font-size: 36px; color: var(--text-dark); }
  .aph-company { margin: 0 0 6px; font-size: 20px; color: var(--text-dark); font-weight: 500; }
  .aph-loc { margin: 0 0 12px; font-size: 18px; color: var(--text-muted); }
  .aph-badge { background: var(--ungu-muda) !important; color: var(--ungu-tua) !important; border: 1.5px solid var(--ungu-tua); margin-bottom: 14px; }
  .aph-desc { margin: 0 0 12px; font-size: 18px; color: #4a4552; line-height: 1.6; max-width: 480px; }
  .aph-edit-btn { margin-top: 6px; }
  .aph-side { display: flex; flex-direction: column; gap: 12px; width: 260px; flex-shrink: 0; }
  .aph-stats { display: flex; gap: 10px; }
  .aph-stat-box {
    background: #fff; border-radius: 12px; padding: 14px 8px; text-align: center;
    box-shadow: var(--shadow-sm); flex: 1;
  }
  .aph-stat-box b { display: block; font-size: 27px; color: var(--text-dark); }
  .aph-stat-box span { font-size: 12.5px; color: var(--text-muted); }
  .aph-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
  .aph-action-btn img { width: 25px !important; height: 25px !important; object-fit: contain; flex-shrink: 0; }
  @media (max-width: 900px) {
    .aph-hero { flex-direction: column; text-align: center; }
    .aph-info { text-align: center; }
    .aph-photo { align-self: center; }
    .aph-desc { margin-left: auto; margin-right: auto; }
    .aph-side { width: 100%; }
  }

  /* ---------- Detail Property ---------- */
  .gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-bottom: 26px; }
  .gallery-main img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; }
  .gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
  .gallery-side-top img { width: 100%; height: 204px; object-fit: cover; border-radius: 16px; }
  .gallery-side-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-side-bottom img { width: 100%; height: 204px; object-fit: cover; border-radius: 16px; }

  .gallery-grid.gallery-count-1 { grid-template-columns: 1fr; }
  .gallery-grid.gallery-count-1 .gallery-main img { height: 460px; }

  .gallery-side-single img { width: 100%; height: 420px; object-fit: cover; border-radius: 16px; }

  .gallery-side-bottom-single { display: block; }
  .gallery-side-bottom-single img { width: 100%; height: 204px; object-fit: cover; border-radius: 16px; }
  .detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
  .detail-desc-card, .detail-spec-card {
    border: 1.5px solid var(--ungu-tua); border-radius: 16px; padding: 22px; margin-bottom: 20px;
  }
  .detail-desc-card h4, .detail-spec-card h4 { margin: 0 0 12px; color: var(--ungu-tua); }
  .detail-desc-card p { white-space: pre-line; font-size: 18px; color: #4a4552; }
  .spec-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); font-size: 18px; }
  .spec-row span:first-child { color: var(--text-muted); }
  .spec-row b { font-weight: 700; }
  .detail-side-sticky { position: sticky; top: 106px; }
  .agent-card { border: 1.5px solid var(--ungu-tua); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
  .agent-card-link { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; cursor: pointer; }
  .agent-card-link:hover .agent-info h4 { text-decoration: underline; }
  .agent-card img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0; flex-shrink: 0; }
  .agent-info { flex: 1; }
  .agent-card h4 { margin: 0 0 2px; color: var(--ungu-tua); text-align: left; }
  .agent-card .role { font-size: 17px; color: var(--text-muted); margin: 0 0 4px; text-align: left; }
  .agent-card .phone { font-weight: 600; margin: 0; text-align: left; }
  .agent-card .btn { padding: 10px 14px !important; font-size: 15px !important; margin-top: 0; }

.agent-actions { display: flex; gap: 10px; margin-top: 14px; }
.agent-actions .btn { flex: 1; }

.share-link-btn { background: #fff !important; color: var(--ungu-tua) !important; border: 1.5px solid var(--ungu-tua) !important; }
.share-link-btn:hover { background: var(--ungu-muda) !important; }
.share-link-icon { width: 18px; height: 18px; flex-shrink: 0; }

.agent-card .wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ungu-tua) !important; color: #fff !important; border: none !important; }
.agent-card .wa-btn:hover { background: var(--ungu-tua-dark) !important; }
.wa-btn-icon { width: 22px; height: 22px; object-fit: contain; margin: 0 !important; flex-shrink: 0; }

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ungu-tua);
  color: #fff;
  padding: 12px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 999;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.share-wrapper { position: relative; flex: 1; }
.share-wrapper .share-link-btn { width: 100%; }

.share-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: max-content;
  max-width: calc(200% + 10px);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 16px;
  display: none;
  z-index: 50;
}
.share-popup.show { display: block; }

.share-popup-icons { display: flex; justify-content: center; gap: 16px; margin-bottom: 18px; padding: 0 6px; }
.share-icon-btn {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 13px rgba(0,0,0,0.20);
  transition: box-shadow .15s ease, transform .15s ease;
}
.share-icon-btn:hover {
  box-shadow: 0 7px 17px rgba(0,0,0,0.38);
  transform: translateY(-2px);
}
.share-icon-btn svg { width: 24px; height: 24px; }  

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-x { background: #000; }
.share-telegram { background: #29A9EA; }
.share-gmail { background: #fff; border: 1px solid var(--border-color); }

.share-copy-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; background: none; border: none; padding: 0;
  color: var(--biru); font-weight: 600; font-size: 16px; cursor: pointer;
}
.share-copy-icon { width: 20px; height: 20px; }
.share-copy-link.copied { color: #1a9c4c; }
img[src*="whatsapp"] { width: 18px !important; height: 18px !important; object-fit: contain; display: inline-block; vertical-align: middle; }
  /* ---------- Dashboard shared ---------- */
  .dash-header { background: var(--ungu-muda); border-radius: 20px; padding: 26px; margin-bottom: 24px; display:flex; align-items:center; gap:14px;}
  .dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
  .stat-box { border: 1.5px solid var(--border-color); border-radius: 14px; padding: 18px; text-align: center; }
  .stat-box b { display: block; font-size: 27px; color: var(--ungu-tua); }
  .stat-box span { font-size: 17px; color: var(--text-muted); }

  /* ---------- Kartu ringkasan "Pasang Iklan" (dashboard agen) ---------- */
  .iklan-summary-card {
    border: 1.5px solid var(--border-color); border-radius: 20px; overflow: hidden; margin-bottom: 24px;
  }
  .iklan-card-head {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 136px; box-sizing: border-box;
    padding: 20px; font-size: 23px; font-weight: 700; color: var(--ungu-tua);
    border-bottom: 1.5px solid var(--border-color); text-decoration: none; transition: background .15s;
  }
  .iklan-card-head:hover { background: var(--ungu-muda); }
  .iklan-card-head .iklan-card-head-icon {
    width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ungu-tua);
    display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0;
  }
  .iklan-card-head .iklan-card-head-icon img { width: 40px; height: 40px; object-fit: contain; }
  .iklan-stat-row { display: grid; grid-template-columns: 1fr 1fr; }
  .iklan-stat {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 112px; box-sizing: border-box;
    padding: 22px 14px; text-decoration: none; color: var(--text-dark); text-align: center; transition: background .15s;
  }
  .iklan-stat-left { border-right: 1.5px solid var(--border-color); background: #fff; }
  .iklan-stat-right { background: var(--ungu-muda); }
  .iklan-stat-icon { font-size: 24px; display: flex; align-items: center; justify-content: center; }
  .iklan-stat-icon img { width: 33px; height: 33px; object-fit: contain; }
  .iklan-stat-label { font-size: 18px; color: var(--text-dark); }
  .iklan-stat b { font-size: 21px; color: var(--ungu-tua); }
  .iklan-stat.is-active { background: var(--ungu-tua) !important; }
  .iklan-stat.is-active .iklan-stat-label,
  .iklan-stat.is-active b { color: #fff; }
  .iklan-stat.is-active .iklan-stat-icon img { filter: brightness(0) invert(1); }
  @media (max-width: 560px) {
    .iklan-card-head { font-size: 20px; padding: 16px; min-height: unset; }
    .iklan-stat { padding: 16px 8px; }
  }

  .gallery-main img, .gallery-side-top img, .gallery-side-bottom img, .gallery-side-single img, .gallery-side-bottom-single img { cursor: zoom-in; }

  /* ---------- Lightbox foto property ---------- */
  .lightbox-overlay {
    display: none; position: fixed; inset: 0; background: rgba(20, 15, 26, .92); z-index: 1000;
    align-items: center; justify-content: center;
  }
  .lightbox-overlay.show { display: flex; }
  .lightbox-img {
    max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
  }
  .lightbox-close {
    position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12); border: none;
    color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .lightbox-close:hover { background: rgba(255,255,255,.22); }
  .lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: none;
    color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 30px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,.22); }
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
  @media (max-width: 560px) {
    .lightbox-nav { width: 40px; height: 40px; font-size: 24px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 22px; }
  }

  /* ---------- Kartu listing iklan (agen dashboard) - gaya baru ---------- */
  .listing-item-v2 {
    border: 1.5px solid var(--border-color); border-radius: 18px; padding: 18px; margin-bottom: 18px;
  }
  .listing-item-v2 .liv2-top { display: flex; gap: 18px; }
  .listing-item-v2 img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
  .listing-item-v2 .liv2-info { flex: 1; min-width: 0; }
  .listing-item-v2 h3 { margin: 0 0 4px; font-size: 21px; }
  .listing-item-v2 .price { color: var(--ungu-tua); font-weight: 700; font-size: 19px; }
  .listing-item-v2 .price .sep { color: var(--text-muted); font-weight: 400; }
  .listing-item-v2 .loc { color: var(--text-muted); font-size: 17px; margin: 3px 0; }
  .listing-item-v2 .meta { display: flex; gap: 14px; font-size: 17px; color: var(--text-dark); margin: 8px 0; flex-wrap: wrap; }
  .listing-item-v2 .tayang-date { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
  .listing-item-v2 .liv2-divider { border: none; border-top: 1px solid var(--border-color); margin: 16px 0 14px; }
  .listing-item-v2 .liv2-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .liv2-stat {
    border: 1.5px solid var(--border-color); border-radius: 12px; padding: 8px 18px; text-align: center; min-width: 92px;
  }
  .liv2-stat span { display: block; font-size: 12.5px; color: var(--text-dark); }
  .liv2-stat b { display: block; font-size: 20px; color: var(--text-dark); margin-top: 2px; }
  @media (max-width: 560px) {
    .listing-item-v2 .liv2-top { flex-direction: column; }
    .listing-item-v2 img { width: 100%; height: 160px; }
  }
  .cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
  .cat-box { border: 1.5px solid var(--border-color); border-radius: 14px; padding: 18px; text-align: center; }
  .cat-box img { display: block; width: 30px; height: 30px; margin: 0 auto 8px; object-fit: contain; }
  .cat-box b { display: block; font-size: 22px; }
  .cat-box span { font-size: 12.5px; color: var(--text-muted); }

  .table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 14px; }
  table.data-table { width: 100%; border-collapse: collapse; font-size: 18px; }
  table.data-table th { background: var(--ungu-muda); color: var(--ungu-tua); text-align: left; padding: 12px 14px; font-weight: 700; }
  table.data-table td { padding: 12px 14px; border-top: 1px solid var(--border-color); vertical-align: middle; }
  table.data-table tr:hover { background: #fbf7fc; }
  .badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 16px; font-weight: 600; }
  .badge-purple { background: var(--ungu-muda); color: var(--ungu-tua); }color: #1a7d3a; }
  .badge-red { background: #fbdcdc; color: var(--merah); }
  .badge-blue { background: #e0e0fb; color: var(--biru); }
  .action-icons { display: flex; gap: 11px; }
  .icon-btn {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--ungu-tua);
  }
  .icon-btn.danger { color: var(--merah); border-color: #f3c9c9; }
  .icon-btn:hover { background: var(--ungu-muda); }

  .liv2-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .liv2-sold-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: 30px; font-size: 17px; font-weight: 600;
    background: var(--merah); color: #fff;
  }
  .liv2-sold-btn:hover { background: #8f0d10; }

  /* ---------- Dot menu (aksi Terjual/Edit/Hapus di dashboard agen) ---------- */
  .dot-menu { position: relative; }
  .dot-menu-btn {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff;
    display: flex; align-items: center; justify-content: center; color: var(--text-dark);
    font-size: 20px; line-height: 1; cursor: pointer;
  }
  .dot-menu-btn:hover { background: var(--ungu-muda); }
  .dot-menu-dropdown {
    display: none; position: absolute; right: 0; top: calc(100% + 6px);
    background: #232323; border-radius: 10px; padding: 6px 0; min-width: 118px;
    box-shadow: 0 10px 26px rgba(0,0,0,.28); z-index: 30;
  }
  .dot-menu.open .dot-menu-dropdown { display: block; }
  .dot-menu-item {
    display: block; padding: 8px 16px; font-size: 15px; color: #fff; text-decoration: none; white-space: nowrap;
  }
  .dot-menu-item:hover { background: rgba(255,255,255,.1); }
  .dot-menu-item-terjual { color: #e5595a; }

  /* Listing item (agen dashboard style card) */
  .listing-item { border: 1px solid var(--border-color); border-radius: 16px; padding: 16px; display: flex; gap: 16px; margin-bottom: 16px; }
  .listing-item img { width: 150px; height: 110px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
  .listing-item .info { flex: 1; }
  .listing-item h3 { margin: 0 0 4px; font-size: 20px; }
  .listing-item .price { color: var(--ungu-tua); font-weight: 700; }
  .listing-item .meta { display: flex; gap: 14px; font-size: 17px; color: var(--text-muted); margin: 6px 0; }
  .listing-item .foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

  /* ---------- Modal Popup ---------- */
  .modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(31,26,36,.55); z-index: 999;
    align-items: center; justify-content: center;
  }
  .modal-overlay.show { display: flex; }
  .modal-box {
    background: #fff; border-radius: 18px; padding: 30px; max-width: 380px; width: 92%; text-align: center;
    box-shadow: var(--shadow);
  }
  .modal-box .modal-icon {
    width: 60px; height: 60px; border-radius: 50%; background: #fbdcdc; color: var(--merah);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 31px;
  }
  .modal-box h3 { margin: 0 0 8px; }
  .modal-box p { color: var(--text-muted); font-size: 18px; margin-bottom: 22px; }
  .modal-actions { display: flex; gap: 12px; }
  .modal-actions .btn { flex: 1; }

  /* ---------- Alerts ---------- */
  .alert { padding: 14px 18px; border-radius: 10px; font-size: 18px; margin-bottom: 18px; }
  .alert-success { background: #dcf5e2; color: #1a7d3a; }
  .alert-error { background: #fbdcdc; color: var(--merah); }

  /* ---------- Agent Account Dropdown (avatar popup) ---------- */
  .avatar-dropdown-agent {
      position: absolute !important;
      width: 440px !important;
      min-width: 440px !important;
      max-width: 440px !important;
      padding: 24px 18px 32px !important;
      background: #ffffff !important;
      border: none !important;
      border-radius: 18px !important;
      box-shadow: 0 10px 30px rgba(31, 26, 34, .12) !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
  }

  .avatar-dropdown-agent .aac-top {
      display: flex !important;
      align-items: flex-start !important;
      width: 100% !important;
      gap: 14px !important;
  }

  .avatar-dropdown-agent .aac-photo {
      width: 142px !important;
      height: 142px !important;
      min-width: 142px !important;
      max-width: 142px !important;
      border-radius: 50% !important;
      overflow: hidden !important;
      background: #604078 !important;
      flex-shrink: 0 !important;
  }

  .avatar-dropdown-agent .aac-photo img {
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
  }

  .avatar-dropdown-agent .aac-info {
      flex: 1 !important;
      min-width: 0 !important;
      padding-top: 8px !important;
  }

  .avatar-dropdown-agent .aac-info h2 {
      margin: 0 !important;
      color: #050505 !important;
      font-size: 30px !important;
      line-height: 1.05 !important;
      font-weight: 700 !important;
      letter-spacing: -1px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
  }

  .avatar-dropdown-agent .aac-info p {
      margin: 4px 0 0 !important;
      color: #151515 !important;
      font-size: 16px !important;
      line-height: 1.3 !important;
  }

  .avatar-dropdown-agent .aac-info .aac-id {
      display: block !important;
      margin-top: 12px !important;
      color: #999999 !important;
      font-size: 15px !important;
      line-height: 1.2 !important;
  }

  .avatar-dropdown-agent .aac-btn-row {
      display: flex !important;
      flex-wrap: wrap !important;
      width: calc(100% - 156px) !important;
      margin-left: 156px !important;
      margin-top: -36px !important;
      gap: 6px !important;
      position: relative !important;
      z-index: 5 !important;
  }

  .avatar-dropdown-agent .aac-btn {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex: 1 1 auto !important;
      width: auto !important;
      min-width: 128px !important;
      height: 40px !important;
      min-height: 40px !important;
      padding: 0 8px !important;
      background: #ffffff !important;
      border: 2px solid #65417d !important;
      border-radius: 9px !important;
      color: #65417d !important;
      font-family: 'Poppins', sans-serif !important;
      font-size: 16px !important;
      font-weight: 400 !important;
      line-height: 1 !important;
      text-align: center !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      box-sizing: border-box !important;
      opacity: 1 !important;
      visibility: visible !important;
      box-shadow: none !important;
  }

  .avatar-dropdown-agent .aac-btn:hover {
      background: #65417d !important;
      border-color: #65417d !important;
      color: #ffffff !important;
  }
  .avatar-dropdown-agent .aac-btn-icon {
      width: 14px !important;
      height: 14px !important;
      object-fit: contain !important;
      margin-right: 5px !important;
      flex-shrink: 0 !important;
  }

  .avatar-dropdown-agent .aac-divider {
      display: block !important;
      width: 100% !important;
      height: 1px !important;
      border: 0 !important;
      border-top: 2px solid #d0d0d0 !important;
      margin: 22px 0 18px !important;
  }

  .avatar-dropdown-agent .aac-section-head h3 {
      margin: 0 0 4px !important;
      color: #111111 !important;
      font-size: 20px !important;
      line-height: 1.2 !important;
      font-weight: 500 !important;
  }

  .avatar-dropdown-agent .aac-section-head p {
      margin: 0 0 12px !important;
      color: #999999 !important;
      font-size: 15px !important;
      line-height: 1.3 !important;
  }

  .avatar-dropdown-agent .aac-card {
      display: flex !important;
      align-items: center !important;
      width: 100% !important;
      height: 68px !important;
      min-height: 68px !important;
      margin: 0 0 14px !important;
      padding: 8px 10px !important;
      background: #faf6fc !important;
      border: 2px solid #65417d !important;
      border-radius: 10px !important;
      box-sizing: border-box !important;
      gap: 10px !important;
      text-decoration: none !important;
  }

  .avatar-dropdown-agent .aac-card-icon {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 40px !important;
      min-width: 40px !important;
      color: #050505 !important;
      font-size: 24px !important;
      line-height: 1 !important;
  }

  .avatar-dropdown-agent .aac-card-text {
      display: flex !important;
      flex: 1 !important;
      flex-direction: column !important;
      min-width: 0 !important;
  }

  .avatar-dropdown-agent .aac-card-text b {
      margin: 0 !important;
      color: #111111 !important;
      font-size: 21px !important;
      line-height: 1.1 !important;
      font-weight: 400 !important;
  }

  .avatar-dropdown-agent .aac-card-text span {
      margin-top: 2px !important;
      color: #999999 !important;
      font-size: 14px !important;
      line-height: 1.2 !important;
  }

  .avatar-dropdown-agent .aac-card-arrow {
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 18px !important;
      min-width: 18px !important;
      color: #aaaaaa !important;
      font-size: 27px !important;
      font-weight: 300 !important;
      line-height: 1 !important;
  }

  .avatar-dropdown-agent .aac-logout {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      width: 100% !important;
      height: 34px !important;
      min-height: 34px !important;
      margin: 0 !important;
      padding: 0 14px !important;
      background: #c81012 !important;
      background-color: #c81012 !important;
      border: 1px solid #c81012 !important;
      border-radius: 10px !important;
      color: #ffffff !important;
      font-family: 'Poppins', sans-serif !important;
      font-size: 18px !important;
      font-weight: 400 !important;
      line-height: 1 !important;
      text-align: left !important;
      text-decoration: none !important;
      box-sizing: border-box !important;
      opacity: 1 !important;
      visibility: visible !important;
      box-shadow: none !important;
      position: relative !important;
      z-index: 10 !important;
  }

  .avatar-dropdown-agent .aac-logout:hover {
      background: #a90e10 !important;
      background-color: #a90e10 !important;
      border-color: #a90e10 !important;
      color: #ffffff !important;
  }

  @media (max-width: 700px) {

      .avatar-dropdown-agent {
          width: calc(100vw - 20px) !important;
          min-width: 0 !important;
          max-width: calc(100vw - 20px) !important;
          padding: 25px 18px 30px !important;
      }

      .avatar-dropdown-agent .aac-photo {
          width: 145px !important;
          height: 145px !important;
          min-width: 145px !important;
          max-width: 145px !important;
      }

      .avatar-dropdown-agent .aac-info h2 {
        font-size: 34px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
      }

      .avatar-dropdown-agent .aac-btn-row {
          width: calc(100% - 169px) !important;
          margin-left: 169px !important;
          margin-top: -45px !important;
          flex-wrap: wrap !important;
      }
  }


  @media (max-width: 560px) {

      .avatar-dropdown-agent {
          width: calc(100vw - 16px) !important;
          min-width: 0 !important;
          max-width: calc(100vw - 16px) !important;
          padding: 20px 14px 25px !important;
      }

      .avatar-dropdown-agent .aac-top {
          gap: 14px !important;
      }

      .avatar-dropdown-agent .aac-photo {
          width: 110px !important;
          height: 110px !important;
          min-width: 110px !important;
          max-width: 110px !important;
      }

      .avatar-dropdown-agent .aac-info {
          padding-top: 3px !important;
      }

      .avatar-dropdown-agent .aac-info h2 {
          font-size: 27px !important;
      }

      .avatar-dropdown-agent .aac-info p {
          font-size: 16px !important;
      }

      .avatar-dropdown-agent .aac-info .aac-id {
          margin-top: 10px !important;
          font-size: 14px !important;
      }

      .avatar-dropdown-agent .aac-btn-row {
          width: calc(100% - 124px) !important;
          margin-left: 124px !important;
          margin-top: -38px !important;
          gap: 6px !important;
          flex-wrap: wrap !important;
      }

      .avatar-dropdown-agent .aac-btn {
          height: 42px !important;
          min-height: 42px !important;
          font-size: 15px !important;
          min-width: 112px !important;
      }

      .avatar-dropdown-agent .aac-card {
          height: 76px !important;
          min-height: 76px !important;
      }

      .avatar-dropdown-agent .aac-card-text b {
          font-size: 22px !important;
      }

      .avatar-dropdown-agent .aac-card-text span {
          font-size: 14px !important;
      }

      .avatar-dropdown-agent .aac-logout {
          height: 43px !important;
          min-height: 43px !important;
          font-size: 21px !important;
      }
  }
  /* ---------- Misc ---------- */
  .text-center { text-align: center; }
  .mt-0 { margin-top: 0; }
  .empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

  /* ---------- Responsive ---------- */
  @media (max-width: 992px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .layout-2col { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side-sticky { position: static; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-img { display: none; }
  }
  @media (max-width: 768px) {
    .nav-links { display: none; }
    .member-register-btn { display: none; }
    .navbar-actions { margin-left: auto; }
    .burger { display: block; }
    .nav-links.mobile-open {
      display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
      background: #fff; padding: 16px 24px; box-shadow: var(--shadow); gap: 6px;
    }
    .nav-links.mobile-open .mobile-member-link { display: block; }
    .dropdown-menu { position: static; box-shadow: none; display: none; padding-left: 12px; }
    .nav-links.mobile-open li:hover .dropdown-menu, .nav-links li.open .dropdown-menu { display: block; }
    .hero-content h1 { font-size: 54px; }
    .hero-content h1 .hero-title-line1 { white-space: normal; }
    .property-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-main img { height: 260px; }
    .auth-form { padding: 30px 22px; }
    .filter-panel { position: fixed; left: 12px; right: 12px; top: 74px; width: auto; }
    .listing-item { flex-direction: column; }
    .listing-item img { width: 100%; height: 160px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  }

  /*  Wizard "Pasang Iklan" 3 tahap (Kategori / Spesifikasi / Harga) */

  .wizard-layout { grid-template-columns: 400px 1fr; align-items: start; }
  .wizard-page-title { font-size: 34px; margin: 0 0 22px; }
  .wizard-section-label { font-size: 20px; margin: 26px 0 14px; color: var(--text-dark); }
  .wizard-section-label:first-of-type { margin-top: 0; }
  .wizard-next-btn { margin-top: 26px; }
  .wizard-back-btn { background: #e9e9e9; color: var(--text-dark); flex: 1; }
  .wizard-back-btn:hover { background: #ddd; }
  .wizard-price-box { background: var(--ungu-muda); border-radius: 16px; padding: 20px; }
  .wizard-price-box label { display: block; font-weight: 600; margin-bottom: 10px; }
  .wizard-layout .form-control { min-height: 58px; font-size: 20px; }
  .wizard-layout textarea.form-control { min-height: 130px; }
  .wizard-layout .form-group label { font-size: 20px; }

  .step-sidebar-card {
    background: #fff; border: 2px solid var(--text-dark); border-radius: 22px;
    padding: 28px 24px; position: sticky; top: 90px; overflow: visible;
  }
  .step-sidebar-title { font-size: 27px; margin: 0 0 24px; }
  .step-item {
    display: flex; align-items: center; gap: 18px; padding: 16px 4px; position: relative;
    text-decoration: none; color: var(--text-dark);
  }
  .step-num {
    width: 42px; height: 42px; min-width: 42px; border-radius: 50%; background: #e4e4e4; color: #6b6478;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px;
  }
  .step-label { font-weight: 600; font-size: 23px; }
  .step-item.is-done .step-num { background: #d8cbe3; color: var(--ungu-tua); }
  .step-item.is-active .step-num { background: var(--ungu-tua); color: #fff; }
  .step-item.is-active .step-label { color: var(--ungu-tua); }
  .step-item.is-active::after {
    content: ''; position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 76px; background: var(--ungu-tua); border-radius: 8px;
  }

  .pill-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
  .pill-btn {
    border: 1.5px solid var(--border-color); border-radius: 10px; padding: 12px 22px;
    background: #fff; font-size: 14.5px; color: var(--text-dark); cursor: pointer; font-family: inherit;
    transition: all .15s;
  }
  .pill-btn:hover { border-color: var(--ungu-tua); }
  .pill-btn.is-selected { border-color: var(--ungu-tua); background: var(--ungu-tua); color: #fff; font-weight: 600; }

  #propertyTypeGroup.pill-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }
  #propertyTypeGroup .pill-btn {
    font-size: 17px;
    padding: 18px 20px;
  }
  #transactionTypeGroup .pill-btn,
  #developerStatusGroup .pill-btn {
    padding: 21px 85px;
    font-size: 15px;
    width: auto;
  }
  #transactionTypeGroup.pill-group {
    display: flex;
    gap: 12px;
  }
  #developerStatusGroup.pill-group {
    display: flex;
    gap: 12px;
  }
  #certificateGroup.pill-group {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    max-width: 1500px;
  }
  #conditionGroup.pill-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1000px;
  }
  #furnitureGroup.pill-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 750px;
  }
  #certificateGroup .pill-btn,
  #conditionGroup .pill-btn,
  #furnitureGroup .pill-btn {
    padding-top: 19px;
    padding-bottom: 19px;
    font-size: 17px;
    width: 100%;
  }
  @media (max-width: 700px) {
    #propertyTypeGroup.pill-group { grid-template-columns: repeat(3, 1fr); }
    #certificateGroup.pill-group { grid-template-columns: repeat(3, 1fr); }
    #conditionGroup.pill-group { grid-template-columns: 1fr; }
    #furnitureGroup.pill-group { grid-template-columns: 1fr; }
  }
  @media (max-width: 460px) {
    #propertyTypeGroup.pill-group { grid-template-columns: repeat(2, 1fr); }
    #certificateGroup.pill-group { grid-template-columns: repeat(2, 1fr); }
  }

  .qty-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--border-color); font-size: 22px;
  }
  .qty-row:last-of-type { border-bottom: none; }
  .qty-control { display: flex; align-items: center; gap: 20px; }
  .qty-btn {
    width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--ungu-tua); color: #fff;
    font-size: 32px; line-height: 1; display: flex; align-items: center; justify-content: center;
  }
  .qty-btn:hover { background: var(--ungu-tua-dark); }
  .qty-val { min-width: 28px; text-align: center; font-weight: 700; font-size: 24px; }

  .upload-box { border: 1.5px solid var(--border-color); border-radius: 18px; padding: 22px; margin-top: 26px; }
  .upload-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 17px; color: var(--text-muted); }
  .upload-dropzone {
    border: 2px dashed var(--border-color); border-radius: 14px; padding: 44px 20px; text-align: center; color: var(--text-muted);
}
  .upload-submit-btn { margin-top: 16px; }

  /* Grid preview foto yang sudah dipilih (bisa berulang kali tanpa menghapus foto sebelumnya) */
.foto-preview-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 16px;
  }
  .foto-thumb {
  position: relative; width: 220px; height: 200px; border-radius: 12px; overflow: visible; flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
  .foto-thumb img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block;
  }
  .foto-thumb {
  position: relative; width: 240px; height: 220px; border-radius: 12px; overflow: visible; flex-shrink: 0;
  border: 1.5px solid var(--border-color);
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
  .foto-thumb-menu-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.foto-thumb-menu-btn:hover { background: rgba(0,0,0,.85); }

.foto-thumb-menu {
  display: none;
  position: absolute;
  top: 36px;
  right: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  overflow: hidden;
  z-index: 5;
  min-width: 150px;
}
.foto-thumb-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
.foto-thumb-menu button:hover { background: #f2f2f2; }
  .foto-thumb-remove:hover { background: #8c0d0f; }

  @media (max-width: 900px) {
    .wizard-layout.layout-2col { grid-template-columns: 1fr; }
    .step-sidebar-card { position: static; }
  }

  /*  Halaman Profil Agen (publik) */

  .agen-hero-card {
    background: var(--ungu-muda);
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 24px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .agen-hero-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
  }

  .agen-hero-info {
    flex: 1;
    min-width: 240px;
  }

  .agen-hero-info h1 {
    font-size: 47px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .agen-nib {
    color: var(--ungu-tua);
    font-size: 21px;
    margin: 0 0 10px;
  }

  .icon-inline {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: -2px;
    margin-right: 4px;
    display: inline-block;
  }

  .icon-form {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: -4px;
    margin-right: 6px;
    display: inline-block;
  }

  .icon-form-sm {
    width: 20px;
    height: 20px;
  }

  .agen-bio {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0 0 14px;
    max-width: 520px;
  }

  .agen-contact-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .agen-contact-row span {
    font-size: 18px;
    color: var(--ungu-tua);
    background: #F9F0FC;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 7px 14px;
  }

  .agen-joined {
    font-size: 17px;
    color: var(--ungu-tua);
    background: #F9F0FC;
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 7px 14px;
    margin-bottom: 20px;
  }


  /* EDIT PROFIL DI BAWAH BERGABUNG */

  .agen-edit-profile-btn {
    display: block;
    width: fit-content;
    margin-top: 16px;
    border-radius: 8px;
    color: var(--ungu-tua);
  }


  /* STATISTIK AGEN */

  .agen-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 26px;
    text-decoration: none;
    color: inherit;
  }

  .agen-stat-box {
    padding: 22px 4px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    transition: background .15s;
  }

  .agen-stat-box:last-child {
    border-right: none;
  }

  a.agen-stat-box:hover {
    background: var(--ungu-muda);
  }

  .agen-stat-box b {
    display: block;
    font-size: 35px;
    color: var(--text-dark);
    margin-bottom: 4px;
  }

  .agen-stat-box span {
    font-size: 24px;
    color: var(--text-muted);
  }

  .agen-stat-arrow {
    font-size: 24px;
    color: var(--text-muted);
  }


  /* KATEGORI PROPERTI AGEN */

  .cat-grid-agent {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 16px;
    margin: 0 0 50px -4px;
    width: 100%;
    flex-wrap: nowrap;
    padding-left: 2px;
  }

  .cat-grid-agent .cat-box {
    width: auto;
    height: 150px;             
    flex: 1 1 0;               

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);

    border-radius: 12px;
    transition: box-shadow 0.2s ease;
  }

  .cat-grid-agent .cat-box:hover {
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.16);
  }

  .cat-grid-agent .cat-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .cat-grid-agent .cat-box h3,
  .cat-grid-agent .cat-box h4,
  .cat-grid-agent .cat-box p,
  .cat-grid-agent .cat-box span,
  .cat-grid-agent .cat-box a {
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #000000 !important;
  }


  /* TABLET */

  @media (max-width: 1100px) {

    .cat-grid-agent {
      gap: 12px;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 5px 10px 15px;
    }

    .cat-grid-agent .cat-box {
      width: 105px;
      height: 140px;
      flex: 0 0 105px;
    }

    .cat-grid-agent .cat-box img {
      width: 40px;
      height: 40px;
    }

    .cat-grid-agent .cat-box h3,
    .cat-grid-agent .cat-box h4,
    .cat-grid-agent .cat-box p,
    .cat-grid-agent .cat-box span,
    .cat-grid-agent .cat-box a {
      font-size: 17px !important;
      font-weight: 400 !important;
    }
  }


  /* HP */

  @media (max-width: 560px) {

    .agen-stats-bar {
      grid-template-columns: repeat(2, 1fr);
    }

    .agen-stat-box {
      border-bottom: 1px solid var(--border-color);
    }

    .cat-grid-agent {
      gap: 10px;
      overflow-x: auto;
      justify-content: flex-start;
      padding: 5px 10px 15px;
    }

    .cat-grid-agent .cat-box {
      width: 100px;
      height: 125px;
      flex: 0 0 100px;
    }

    .cat-grid-agent .cat-box img {
      width: 35px;
      height: 35px;
    }

    .cat-grid-agent .cat-box h3,
    .cat-grid-agent .cat-box h4,
    .cat-grid-agent .cat-box p,
    .cat-grid-agent .cat-box span,
    .cat-grid-agent .cat-box a {
      font-size: 16px !important;
      font-weight: 400 !important;
    }
  }
  /* ---------- Halaman "Iklan Berhasil Ditayangkan" ---------- */
  .berhasil-section {
    padding: 150px 0 0;
    background: linear-gradient(to bottom, #ffffff, #c7a7f9);
    min-height: 87vh;
  }
  .berhasil-wrap { max-width: 700px; margin: 0 auto; text-align: center; border: 2px solid #000000; border-radius: 16px; padding: 30px; background: #ffffff; }
  .berhasil-check {
    width: 60px; height: 60px; border-radius: 50%; border: 2px solid #22c55e; color: #22c55e;
    display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700;
    margin: 0 auto 16px;
  }
  .berhasil-title { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 400; color: var(--text-dark); margin: 0 0 20px; }
  .berhasil-card {
    border: 2px solid #000000; border-radius: 14px; padding: 14px; display: flex; gap: 14px;
    text-align: left; margin-bottom: 22px;
  }
  .berhasil-card > img { width: 118px; height: 118px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
  .berhasil-card-info { flex: 1; }
  .berhasil-card-info h2 { margin: 0 0 6px; font-size: 21px; color: var(--text-dark); }
  .berhasil-price { font-size: 20px; font-weight: 700; color: var(--ungu-tua); margin: 0 0 6px; }
  .berhasil-price .dot { color: var(--text-muted); margin: 0 6px; }
  .berhasil-price .muted { color: var(--text-muted); font-weight: 500; }
  .berhasil-loc { font-size: 12.5px; color: var(--text-muted); margin: 0 0 8px; }
  .berhasil-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-dark); margin-bottom: 11px; align-items: center; }
  .berhasil-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
  .berhasil-meta img { width: 15px; height: 15px; object-fit: contain; vertical-align: -2px; }
  .berhasil-tayang-btn {
    display: inline-block; background: var(--ungu-tua); color: #fff; font-weight: 600;
    padding: 8px 14px; border-radius: 8px; font-size: 12.5px;
  }
  .berhasil-next-card { border: 2px solid #000000; border-radius: 14px; padding: 18px; text-align: center; }
  .berhasil-next-card p { margin: 0 0 14px; font-size: 18px; color: var(--text-dark); }
  .berhasil-next-btn { display: block; width: 100%; margin-bottom: 12px; }
  .berhasil-next-btn:last-child { margin-bottom: 0; }
  @media (max-width: 560px) {
    .berhasil-card { flex-direction: column; }
    .berhasil-card > img { width: 100%; height: 150px; }
    .berhasil-meta { gap: 4px; font-size: 15px; }
    .berhasil-meta img { width: 13px; height: 13px; }
  }
  /* ADMIN SHELL - sidebar layout khusus role admin */
  .admin-topbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 300;
    flex-shrink: 0;
    box-sizing: border-box;
  }
  .admin-search-group {
    display: flex; align-items: center; gap: 14px;
    margin: 0;
    width: 100%;
    max-width: 700px;
    margin-right: auto;
  }
  .admin-topbar .admin-burger {
    background: none; border: none; cursor: pointer; color: var(--text-dark);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px;
  }
  .admin-topbar .admin-burger img { width: 26px; height: 26px; }
  .admin-search {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    background: #f0eef1;
    border-radius: 40px;
    padding: 13px 22px;
    color: #8a8390;
    max-width: 720px;
  }
  .admin-search svg { flex-shrink: 0; width: 22px; height: 22px; }
  .admin-search input {
    border: none; background: transparent; outline: none; width: 100%;
    font-family: 'Poppins', sans-serif; font-size: 16px; color: var(--text-dark);
  }
  .admin-topbar-user { display: flex; align-items: center; gap: 12px; margin-left: 12px; cursor: pointer; user-select: none; }
  .admin-topbar-user > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #d9c3ef; }
  .admin-topbar-user .atu-name { font-weight: 700; color: var(--text-dark); font-size: 16px; line-height: 1.3; }
  .admin-topbar-user .atu-role { font-weight: 400; color: var(--text-muted); font-size: 13px; }

  .admin-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
  }
  .admin-sidebar {
    width: 222px;
    flex-shrink: 0;
    padding: 10px 18px 26px;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
  }
  .admin-sidebar .admin-logo { display: block; margin: 0 auto 30px; text-align: center; }
  .admin-sidebar .admin-logo img { height: 74px; margin: 0 auto; }
  .admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #4a4552;
    font-weight: 498;
    font-size: 12px;
    line-height: 1.23;
}
  .admin-nav a svg { flex-shrink: 0; width: 20px; height: 20px; }
  .admin-nav a:hover { background: var(--ungu-muda); color: var(--ungu-tua); }
  .admin-nav a.is-active { background: #e4d4f3; color: var(--ungu-tua); font-weight: 600; }

  /* Kolom kanan: berisi topbar (sticky) + konten (main) yang scroll bareng body */
  .admin-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .admin-main { flex: 1; min-width: 0; padding: 28px 32px 60px; }

  .admin-crumb {
    margin-bottom: 18px;
  }
  .admin-crumb h1 { margin: 0 0 4px; font-size: 28px; color: var(--ungu-tua); font-weight: 700; }
  .admin-crumb .crumb-trail { color: #a79db0; font-size: 15px; }
  .admin-crumb .crumb-trail a { color: #a79db0; }
  .admin-crumb .crumb-trail .sep { margin: 0 6px; }
  .admin-crumb .crumb-trail .current { color: var(--ungu-tua); font-weight: 600; }

  .admin-hero {
    background: #ede2f7;
    border-radius: 18px;
    padding: 22px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin: 18px 0 22px;
    overflow: hidden;
  }
  .admin-hero h2 { margin: 0 0 4px; font-size: 28px; color: var(--ungu-tua); font-weight: 700; }
  .admin-hero p { margin: 0; color: #6b6478; font-size: 15px; }
  .admin-hero img { max-height: 120px; }
  .admin-hero-house {
    width: min(46vw, 540px);
    max-width: 540px;
    height: auto;
    aspect-ratio: 1.7 / 1;
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
    margin-left: auto;
    transform: none;
  }

  @media (max-width: 900px) {
    .admin-hero {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }
    .admin-hero-house {
      width: min(100%, 420px);
      max-width: 100%;
      margin-left: 0;
    }
  }

  .admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 18px; }
  .admin-stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .admin-stat-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
  .admin-stat-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; align-items: flex-start; gap: 14px;
  }
  .admin-stat-card .asc-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    object-fit: contain;
  }
  .admin-stat-card b { display: block; font-size: 26px; color: var(--text-dark); line-height: 1.1; }
  .admin-stat-card span.asc-label { display: block; font-size: 14.5px; color: var(--text-muted); margin-top: 2px; }
  .admin-stat-card a.asc-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ungu-tua);
    font-weight: 600;
    line-height: 1.4;
  }
  .admin-stat-card.big { grid-column: span 2; }
  .admin-stat-card.center { justify-content: center; text-align: center; }
  .admin-stat-card.center .asc-icon { margin: 0 auto; }

  .admin-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
  .admin-panel { border: 1px solid var(--border-color); border-radius: 16px; padding: 20px 22px; }
  .admin-panel h3 { margin: 0 0 14px; color: var(--ungu-tua); font-size: 19px; }
  .admin-panel .ap-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1eaf5; }
  .admin-panel .ap-row:first-of-type { border-top: none; }
  .admin-panel .ap-row img.ap-thumb { width: 48px; height: 40px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
  .admin-panel .ap-row .ap-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: block; object-fit: contain; background: #f7f1fc; padding: 8px;
  }
  .admin-panel .ap-row .ap-info { flex: 1; min-width: 0; }
  .admin-panel .ap-row .ap-info b { display: block; font-size: 15px; font-weight: 500; color: var(--text-dark); }
  .admin-panel .ap-row .ap-info span { font-size: 13px; color: var(--text-muted); }
  .admin-panel .ap-see { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--ungu-tua); font-weight: 600; }

  .admin-filter-bar { display: flex; gap: 12px; margin: 22px 0 18px; flex-wrap: wrap; align-items: center; }
  .admin-filter-bar .admin-search-input {
    flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border-color); border-radius: 40px; padding: 12px 20px; color: #8a8390;
    background: #fff;
    min-height: 48px;
  }
  .admin-filter-bar .admin-search-input input { border: none; outline: none; width: 100%; font-size: 15px; font-family: 'Poppins', sans-serif; }
  .admin-filter-bar select.form-control {
    min-height: 48px;
    height: 48px;
    border: 1px solid #d8d5db;
    border-radius: 40px;
    background-color: #fff;
    padding: 0 42px 0 18px;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6478' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px 18px;
  }
  .admin-filter-bar select.form-control:focus,
  .admin-filter-bar select.form-control:hover {
    border-color: #c7c0ce;
    box-shadow: 0 0 0 3px rgba(120, 105, 135, 0.12);
  }
  .admin-filter-bar .btn {
    min-height: 48px;
    border-radius: 40px;
    padding: 12px 22px;
  }
  .admin-property-form .form-group { margin-bottom: 14px; }
  .admin-property-form .form-group label {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .admin-property-form .form-control,
  .admin-property-form textarea.form-control,
  .admin-property-form select.form-control {
    border-radius: 8px !important;
    font-size: 14px;
    min-height: 42px;
    padding: 10px 12px;
  }
  .admin-property-form textarea.form-control { min-height: 110px; }
  .admin-seg-tabs { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid #d8d5db; background: #fff; }
  .admin-seg-tabs a {
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    border-right: 1px solid #ece5f0;
  }
  .admin-seg-tabs a:last-child { border-right: none; }
  .admin-seg-tabs a.is-active { background: var(--ungu-tua); color: #fff; }

  .admin-table-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: visible;
  }
  .admin-table-card table.data-table th {
    background: #fff;
    color: var(--ungu-tua);
    border-bottom: 1px solid var(--border-color);
    font-size: 15.5px;
  }
  .admin-table-card table.data-table td {
    font-size: 15px;
    border-top: 1px solid var(--border-color);
  }
  .admin-table-card table.data-table tr:first-child td {
    border-top: none;
  }
  .admin-table-card table.data-table tr:last-child td { border-bottom: none; }
  .badge-menunggu { background: #fbdcdc; color: var(--merah); }
  .badge-aktif-pill { background: #e4d4f3; color: var(--ungu-tua); }

  .admin-detail-card { width: min(1500px, 100%); border: 1.5px solid #d9c3ef; border-radius: 16px; padding: 14px 30px 26px; }
  .admin-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
  .admin-detail-head .adh-avatar {
    width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ungu-tua);
    display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
    background: #f4f4f4;
  }
  .admin-detail-head .adh-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .admin-detail-head .adh-info { flex: 1; }
  .admin-detail-head .adh-info h3 { margin: 0; color: var(--ungu-tua); font-size: 35px; }
  .admin-detail-head .adh-info span { font-size: 14px; color: var(--text-muted); }
  .admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; margin-bottom: 18px; }
  .admin-detail-grid .adg-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .admin-detail-grid .adg-item b { display: block; min-width: 0; font-size: 16px; color: var(--text-dark); margin: 0; }
  .admin-detail-grid .adg-item span, .admin-detail-grid .adg-item a { font-size: 15px; color: var(--text-muted); display: inline; line-height: 1.6; }
  .admin-detail-card .adc-doc-label { font-weight: 600; font-size: 16px; margin-bottom: 10px; }
  .admin-detail-card .adc-doc { max-width: 260px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 20px; }
  .adc-doc-placeholder {
    max-width: 260px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background: #f8f8f8;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
  }
  .admin-detail-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
  .btn-accept {
    background: #22a45d;
    color: #fff;
    min-width: 170px;
    text-align: center;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
  }
  .btn-accept:hover { background: #1a8148; }
  .btn-reject { background: transparent; border: 1.5px solid var(--merah); color: var(--merah); }
  .btn-reject:hover { background: #fbdcdc; }
  .agen-detail-card {
    max-width: 1000px;
    background: #fff;
    border: 1.5px solid #d9c3ef;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(95, 59, 126, 0.06);
  }
  .accord-detail-grid .full-width { grid-column: 1 / -1; }
  .accord-detail-grid .vertical-item { padding: 0; }
  .accord-detail-grid .adg-item b { min-width: 0; }

  @media (max-width: 1024px) {
    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stat-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .admin-panels { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; left: -260px; top: 0; height: 100vh; background: #fff; z-index: 500; transition: left .25s ease; box-shadow: var(--shadow); }
    .admin-sidebar.is-open { left: 0; }
    .admin-content { min-height: auto; }
    .admin-main { padding: 22px 16px 50px; }
    .admin-detail-grid { grid-template-columns: 1fr; }
  }

  /*  PROFILE MODAL (Lihat Profil / Edit Profil - floating overlay) */
  .profile-modal-box {
    background: #fff; border-radius: 18px; max-width: 620px; width: 100%;
    padding: 30px 34px; position: relative; max-height: 88vh; overflow-y: auto;
  }
  .profile-modal-close {
    position: absolute; top: 18px; right: 22px; background: none; border: none;
    font-size: 18px; cursor: pointer; color: var(--text-muted);
  }
  .pm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
  .pm-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ungu-tua); }
  .pm-head-info { flex: 1; }
  .pm-head-info h2 { margin: 0; font-size: 21px; color: var(--text-dark); }
  .pm-head-info p { margin: 2px 0 0; color: var(--text-muted); font-size: 14.5px; }
  .pm-head .btn-edit-trigger { display: inline-flex; align-items: center; gap: 6px; }
  .pm-row { padding: 12px 0; border-bottom: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 10px; }
  .pm-row:last-child { border-bottom: none; }
  .pm-row .pm-ic { color: var(--ungu-tua); flex-shrink: 0; margin-top: 2px; display: inline-flex; }
  .pm-row .pm-ic img { width: 18px; height: 18px; object-fit: contain; }
  .pm-row label { display: block; font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
  .pm-row span { font-size: 14.5px; color: var(--text-muted); }
  .pm-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .pm-edit-grid .form-group { grid-column: span 2; }
  .pm-edit-grid .form-group.half { grid-column: span 1; }
  .pm-photo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
  .pm-photo-row img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ungu-tua); }

  /* FORM PENGAJUAN AGEN CASA (halaman publik daftar-agen.php) */

  .pa-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
  .pa-card { background: #fff; border-radius: 18px; max-width: 820px; width: 100%; overflow: hidden; box-shadow: none; border: none; }
  .pa-head { background: #eee3ff; padding: 18px 28px 16px; border: none; }
  .pa-head h1 { margin: 0 0 2px; color: #604078; font-size: 20px; line-height: 1.25; }
  .pa-head p { margin: 0; color: #9b8eaa; font-size: 10px; line-height: 1.4; }
  .pa-body { padding: 24px 28px 28px; }
  .pa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; justify-items: stretch; align-items: start; }
  .pa-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 16px; justify-items: stretch; align-items: start; }
  .pa-grid-2 .form-group,
  .pa-grid-3 .form-group { width: 100%; max-width: none; }
  .pa-input { padding: 10px 12px; border-radius: 8px; min-height: 40px; }
  .form-group label { margin-bottom: 6px; display: block; }
  .form-group { margin-bottom: 10px; width: 100%; }
  .pa-submit { width: 100%; background: var(--ungu-tua); color: #fff; padding: 12px 13px; font-size: 15px; border-radius: 8px; margin-top: 4px; }
  .pa-submit:hover { background: #46255c; }
  .pa-success {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
  }
  .pa-card-success { background: transparent; max-width: 820px; width: 100%; }
  .pa-card-success .pa-head { display: none; }
  .pa-card-success .pa-body { padding: 0; }
  .pa-card-success .pa-success { max-width: 820px; width: 100%; padding: 0; }
  .pa-success-icon {
    position: relative; width: 100px; height: 100px; margin: 0 auto 22px;
    display: flex; align-items: center; justify-content: center;
  }
  .pa-success-icon img { width: 100px; height: 100px; object-fit: contain; object-position: center; }
  .pa-success h1 {
    margin: 0 0 18px; color: #51238b; font-size: 38px; line-height: 1.2;
  }
  .pa-success p {
    margin: 0;
    max-width: 700px;
    font-size: 20px;
    line-height: 1.7;
    color: #5b6590;
    text-align: center;
    font-weight: 500;
    display: inline-block;
  }
  .pa-next-step {
    display: flex; align-items: center; gap: 28px; text-align: left;
    margin: 44px auto 0; padding: 22px 34px; max-width: 760px;
    background: #f8f4ff; border-radius: 14px; color: #51238b;
  }
  .pa-next-icon {
    width: 74px; height: 74px; flex: 0 0 74px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 12px rgba(88,48,115,.08);
  }
  .pa-next-icon img { width: 58px !important; height: 58px !important; object-fit: contain; object-position: center; }
  .pa-next-step > div:last-child { border-left: 2px solid #d8c9ed; padding-left: 28px; }
  .pa-next-step h2 { margin: 0 0 5px; font-size: 20px; color: #51238b; }
  .pa-next-step p { max-width: none; font-size: 16px; line-height: 1.5; color: #667098; text-align: left; }
  @media (max-width: 560px) {
    .pa-grid-2, .pa-grid-3 { grid-template-columns: 1fr; }
    .pa-success h1 { font-size: 29px; }
    .pa-success > p { font-size: 17px; }
    .pa-next-step { gap: 14px; padding: 18px; }
    .pa-next-step > div:last-child { padding-left: 14px; }
    .pa-next-step p { font-size: 13px; }
  }
    
  /* NOTIFIKASI - lonceng navbar + dropdown + halaman notifikasi */
  .notif-bell { position: relative; }
  .notif-bell-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dark); position: relative; flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
  }
  .notif-bell-btn:hover { background: var(--ungu-muda); color: var(--ungu-tua); }
  .notif-badge {
    position: absolute; top: 2px; right: 3px;
    background: var(--merah); color: #fff; font-size: 11px; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    border: 2px solid #fff;
  }
  .notif-dropdown {
    display: none; position: absolute; right: 0; top: 130%;
    background: #fff; box-shadow: var(--shadow); border-radius: 14px;
    width: 380px; max-width: 92vw; z-index: 250; overflow: hidden;
  }
  .notif-bell.open .notif-dropdown { display: block; }
  .notif-dropdown-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid var(--border-color);
  }
  .notif-dropdown-head b { font-size: 16px; color: var(--text-dark); }
  .notif-mark-all-form { margin: 0; }
  .notif-mark-all-btn {
    background: none; border: none; color: var(--ungu-tua);
    font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0;
    font-family: inherit;
  }
  .notif-mark-all-btn:hover { text-decoration: underline; }
  .notif-dropdown-list { max-height: 380px; overflow-y: auto; }
  .notif-empty { padding: 34px 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
  .notif-item {
    display: flex; gap: 12px; padding: 13px 18px;
    border-bottom: 1px solid #f4eef8; position: relative;
  }
  .notif-item:last-child { border-bottom: none; }
  .notif-item:hover { background: var(--ungu-muda); }
  .notif-item.notif-unread { background: #fbf5fe; }
  .notif-item-icon {
    font-size: 19px; flex-shrink: 0; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ungu-muda); border-radius: 50%;
  }
  .notif-item-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
  .notif-item-body b { font-size: 13.5px; color: var(--text-dark); font-weight: 600; line-height: 1.3; }
  .notif-item-body > span { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .notif-item-time { font-size: 11px !important; color: #a495b3 !important; }
  .notif-item-dot {
    position: absolute; top: 16px; right: 16px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--merah); flex-shrink: 0;
  }
  .notif-see-all {
    display: block; text-align: center; padding: 13px; font-size: 13.5px;
    font-weight: 600; color: var(--ungu-tua); border-top: 1px solid var(--border-color);
  }
  .notif-see-all:hover { background: var(--ungu-muda); }

  /* Halaman /notifications.php (daftar lengkap) */
  .notif-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
  .notif-page-head h1 { font-size: 28px; color: var(--ungu-tua); margin: 0; }
  .notif-page-head form { margin: 0; }
  .notif-tabs { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
  .notif-tabs a { padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--text-muted); border-bottom: 3px solid transparent; }
  .notif-tabs a.active { color: var(--ungu-tua); border-bottom-color: var(--ungu-tua); }
  .notif-page-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 50px; }
  .notif-page-item {
    display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--border-color);
    border-radius: 14px; background: #fff; position: relative; transition: box-shadow .15s ease;
  }
  .notif-page-item:hover { box-shadow: var(--shadow-sm); }
  .notif-page-item.notif-unread { background: #fbf5fe; border-color: #e6d3f2; }
  .notif-page-item .notif-item-icon { width: 42px; height: 42px; font-size: 21px; }
  .notif-page-item .notif-item-body > span { white-space: normal; overflow: visible; text-overflow: unset; font-size: 13.5px; }
  .notif-page-item .notif-item-body b { font-size: 15px; }
  .notif-page-item .notif-item-dot { top: 18px; right: 18px; }

  @media (max-width: 560px) {
    .notif-dropdown { position: fixed; right: 8px; left: 8px; top: 78px; width: auto; }
    .notif-page-head { flex-direction: column; align-items: flex-start; }
  }
  /* ---------- CASA Watermark (overlay pada foto property yang sudah diupload) ---------- */
  .casa-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='150'><text x='150' y='90' font-family='Arial, Helvetica, sans-serif' font-weight='600' font-size='60' fill='%23ffffff' fill-opacity='0.45' text-anchor='middle'>CASA</text></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 78% auto;
  }
  .gallery-photo { position: relative; display: block; }
  .lightbox-img-wrap { position: relative; display: inline-block; line-height: 0; }
  .lightbox-img-wrap .casa-watermark { border-radius: 10px; }


  .breadcrumb { display: none; }

  /* Custom panah dropdown status Menunggu/Diproses/Selesai */
  .status-select {
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6478' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 11px 11px;
  }


  /* =========================================================
    CasaProperty — Mobile-only responsive fixes
    Desktop styles are intentionally left unchanged.
    ========================================================= */
  @media (max-width: 767px) {
    body.inner-page {
      zoom: 0.85;
    }

    html, body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    *, *::before, *::after {
      box-sizing: border-box;
    }

    img, video, iframe {
      max-width: 100%;
    }

    .container, .wrapper, .content, .main-content,
    .page-container, .section-container {
      width: 100%;
      max-width: 100%;
    }

    input, select, textarea, button {
      max-width: 100%;
    }

    [style*="width: 1200px"],
    [style*="width: 1100px"],
    [style*="width: 1000px"],
    [style*="width: 900px"],
    [style*="width: 820px"],
    [style*="width: 800px"],
    [style*="width: 700px"],
    [style*="width: 600px"],
    [style*="width: 500px"],
    [style*="width: 440px"] {
      max-width: 100% !important;
    }

    table {
      max-width: 100%;
    }

    .table-responsive,
    .table-wrapper {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Common grids collapse cleanly on phones. */
    .grid, .property-grid, .card-grid,
    .properties-grid, .listing-grid {
      grid-template-columns: 1fr !important;
    }

    /* Common flex rows wrap instead of pushing content off-screen. */
    .row, .actions, .search-row, .filter-row {
      flex-wrap: wrap;
    }

    /* Hero/search areas fit the viewport. */
    .hero, .hero-section, .search-section {
      width: 100%;
      max-width: 100%;
    }

    .about-title {
      font-size: 34px;
    }

    .about-grid > div > p {
      font-size: 14px;
      line-height: 1.6;
    }

    .about-feature img {
      width: 40px;
      height: 40px;
    }

    .about-feature h4 {
      font-size: 15px;
    }

    .about-feature p {
      font-size: 12px;
    }

    .navbar {
      padding: 8px 0;
    }

    .navbar > .container {
      gap: 12px !important;
    }

    .navbar .logo {
      margin: 0;
    }

    .navbar .logo img {
      height: 58px;
    }

    .navbar-actions {
      gap: 8px;
    }

    .avatar-circle {
      width: 34px;
      height: 34px;
      min-width: 34px;
      flex-basis: 34px;
      font-size: 16px;
    }

    .burger {
      font-size: 27px;
      line-height: 1;
      padding: 4px;
    }

    .hero {
      min-height: 350px;
      margin-bottom: 24px;
      border-radius: 0;
      overflow: visible;
      align-items: flex-end;
    }

    .hero-bg,
    .hero-overlay {
      border-radius: 0 0 18px 18px;
    }

    .hero-content {
      width: 100%;
      max-width: none;
      padding: 0 12px;
    }

    .hero-content .search-box {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: -26px;
      width: auto;
      max-width: none;
      z-index: 3;
    }

    .hero-content h1 {
      position: relative;
      margin-bottom: 8px;
      transform: translateY(-60px);
    }

    .hero-content p {
      position: relative;
      margin-bottom: 0;
      transform: translateY(-48px);
      font-size: 12px;
    }

    .hero-content .search-box {
      left: 12px;
      right: 12px;
      padding: 3px;
      bottom: -18px;
    }

    .hero-content .search-box input {
      padding: 6px 10px;
      font-size: 11px;
    }

    .hero-content .search-box button {
      width: 32px;
      height: 32px;
    }

    .hero-content .search-box button img {
      width: 16px;
      height: 16px;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 9vw, 3.3rem);
    }

    .search-box, .search-container, .search-form {
      width: 100%;
      max-width: 100%;
    }

    .hero-content {
      position: static;
    }

    .hero-content .search-box {
      position: absolute;
    }

    .about-img-wrap {
      display: none;
    }

    .about-grid > div > .btn {
      margin-top: 18px !important;
      padding: 7px 14px;
      font-size: 13px;
    }

    .section-title {
      font-size: 17px;
      margin-bottom: 4px;
    }

    .section-sub {
      font-size: 12px;
      line-height: 1.45;
      margin-bottom: 14px;
    }

    .property-grid {
      display: flex;
      gap: 12px;
      margin: 0;
      padding: 0 12px 10px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .property-grid::-webkit-scrollbar {
      display: none;
    }

    .property-grid .property-card {
      flex: 0 0 100%;
      width: 100%;
      min-width: 0;
      scroll-snap-align: center;
    }

    .property-card .img-wrap {
      height: 150px;
    }

    .property-card .body {
      padding: 10px 12px 12px;
    }

    .property-card h3 {
      font-size: 15px;
    }

    .property-card .loc,
    .property-card .meta {
      font-size: 12px;
    }

    .property-card .price {
      font-size: 16px;
    }

    .agent-mini img {
      width: 32px;
      height: 32px;
    }

    .agent-mini .name,
    .agent-mini .role {
      font-size: 11px;
    }
@media (max-width: 767px) {
    .partner-section {
      margin-top: 9
      px !important;
    }

    .partner-box {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px 18px;
      padding: 14px 10px 18px;
      border-radius: 12px;
    }

    .partner-box .partner-logo img {
      width: 100%;
      height: 24px;
      max-width: 68px;
      margin: 0 auto;
      object-fit: contain;
    }

    .footer {
      padding: 28px 0 0;
      margin-top: 24px;
    }

    .footer-grid {
      gap: 18px;
      padding-bottom: 24px;
    }

    .footer-grid > div + div {
      border-left: 0;
      border-top: 1px solid var(--border-color);
      padding: 16px 0 0;
    }

    .footer-grid > div:first-child > img {
      height: 48px !important;
      margin-bottom: 8px !important;
    }

    .footer h4 {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .footer p,
    .footer .contact-line {
      font-size: 12px;
    }

.footer .contact-line {
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: center !important;
  gap: 7px;
  margin-bottom: 8px;
}

.footer .contact-line img {
  width: 18px;
  height: 18px;
  justify-self: start;
}
    .social-icons {
      gap: 8px;
      margin-top: 12px;
    }

    .social-icons a {
      width: 32px;
      height: 32px;
    }

    .social-icons a img {
      width: 18px;
      height: 18px;
    }

    .whatsapp-btn {
      padding: 7px 12px;
      font-size: 12px;
      margin-top: 8px;
    }

    .whatsapp-btn img {
      width: 18px !important;
      height: 18px !important;
    }

    .footer-bottom {
      padding: 10px 0;
      font-size: 11px;
    }

    .dropdown-menu, .user-dropdown, .account-dropdown,
    .notification-dropdown, .profile-dropdown {
      max-width: calc(100vw - 24px) !important;
    }

    .form-row, .form-grid {
      grid-template-columns: 1fr !important;
    }

    .gallery, .image-grid {
      grid-template-columns: 1fr 1fr !important;
    }

    .dashboard, .dashboard-layout {
      display: block;
      width: 100%;
      max-width: 100%;
    }

    .sidebar {
      width: 100%;
      max-width: 100%;
    }

    h1, h2, h3, h4, p, a, button, label {
      overflow-wrap: anywhere;
    }
  }

  @media (max-width: 430px) {
    .gallery, .image-grid {
      grid-template-columns: 1fr !important;
    }

    .hero h1 {
      font-size: 2.2rem;
    }

    .navbar .logo img {
      height: 54px;
    }

    .container, .wrapper, .content, .main-content,
    .page-container, .section-container {
      padding-left: 12px;
      padding-right: 12px;
    }

    .dropdown-menu, .user-dropdown, .account-dropdown,
    .notification-dropdown, .profile-dropdown {
      max-width: calc(100vw - 16px) !important;
    }
  }
}
  /* ================================
    MOBILE ONLY — Search Toolbar
    (Dijual / Disewa listing page)
    ================================ */
  @media (max-width: 767px) {

    .search-toolbar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      margin-bottom: 20px;
    }

    .search-toolbar .st-input {
      width: 100%;
      background: var(--ungu-tua);
      border-radius: 999px;
      padding: 14px 18px;
      gap: 10px;
      color: #fff;
      display: flex;
      align-items: center;
    }
    .search-toolbar .st-input input {
      font-size: 15px;
      color: #fff;
      background: transparent;
      border: none;
      outline: none;
    }
    .search-toolbar .st-input input::placeholder {
      color: #e3d6ec;
    }
    .search-toolbar .st-input img.st-search-icon {
      width: 20px;
      height: 20px;
      display: block;
      border: none;
      outline: none;
      background: none;
      box-shadow: none;
      border-radius: 0;
      filter: brightness(0) invert(1); /* ikon jadi putih polos */
      flex-shrink: 0;
    }

    .search-toolbar .st-toggle {
      display: flex;
      background: transparent;
      padding: 0;
      gap: 8px;
    }
    .search-toolbar .st-toggle a {
      flex: 1;
      text-align: center;
      border-radius: 999px;
      padding: 4px 10px;
      font-size: 14px;
      font-weight: 600;
      border: 1px solid var(--ungu-tua);
      background: #fff;
      color: var(--ungu-tua);
    }
    .search-toolbar .st-toggle a.active {
      background: var(--ungu-tua);
      border-color: var(--ungu-tua);
      color: #fff;
    }

    .search-toolbar > .st-select,
    .search-toolbar .st-filter-row {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .search-toolbar > .st-select::-webkit-scrollbar,
    .search-toolbar .st-filter-row::-webkit-scrollbar { display: none; }

    .search-toolbar .st-select {
      position: relative;
      flex: 1 1 0;
      min-width: 0;
    }

    .search-toolbar .st-filter {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      border: 1px solid var(--border-color);
      border-radius: 999px;
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 600;
      white-space: nowrap;
      background: #fff;
      color: var(--text-dark);
    }
    .search-toolbar .st-filter-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
    .search-toolbar .st-filter::after {
      font-size: 11px;
      margin-left: 2px;
    }

    .search-toolbar .st-cari {
      flex: 0 0 auto;
      width: 38px;
      height: 38px;
      min-width: 38px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--border-color);
      background: #fff;
      color: var(--ungu-tua);
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  /* ================================
    MOBILE ONLY — Halaman Titip / Cari Property
    ================================ */
  @media (max-width: 767px) {

    .page-banner-hero {
      min-height: 160px;
    }

    .page-banner-hero .pbh-bg {
      object-position: center;
    }

    .page-banner-hero h1 {
      font-size: 19px;
      line-height: 1.25;
      margin-bottom: 4px;
    }

    .page-banner-hero p {
      font-size: 10px;
      line-height: 1.35;
      margin-bottom: 6px;
    }

    .seg-control {
      max-width: 100%;
      padding: 4px;
      margin: -20px auto 20px;
      gap: 4px;
    }

    .seg-control a {
      padding: 8px 6px;
      font-size: 11px;
      line-height: 1.2;
      gap: 5px;
      text-align: center;
      white-space: normal;
    }

    .seg-control a img.seg-icon {
      width: 18px;
      height: 18px;
    }

    .form-lead h3 {
      font-size: 14px;
      padding-bottom: 6px;
      margin-bottom: 10px;
    }

    .wizard-section-label {
      font-size: 12px;
      margin: 12px 0 8px;
    }

    .form-lead p,
    .section-sub {
      font-size: 11px;
      line-height: 1.35;
    }

    .form-lead {
      padding: 14px;
    }

    .form-lead .form-group {
      margin-bottom: 10px;
    }

    .form-lead .form-group label {
      font-size: 11.5px;
      margin-bottom: 3px;
    }

    .form-lead .form-control {
      padding: 7px 8px 7px 30px;
      font-size: 11.5px;
      border-radius: 7px;
      border-width: 1px;
    }

    .form-lead textarea.form-control {
      min-height: 70px;
      padding: 7px 8px;
    }

    .form-lead select.form-control {
      padding: 7px 8px;
    }

    .form-lead .radio-group {
      gap: 6px;
    }

    .form-lead .radio-option {
      padding: 6px 8px;
      font-size: 10.5px;
      border-radius: 7px;
      border-width: 1px;
      gap: 5px;
    }

    .form-lead .form-note {
      font-size: 10px;
      padding: 8px 10px;
    }

    .form-lead .btn {
      padding: 8px 16px;
      font-size: 12.5px;
    }

    .form-lead .icon-form,
    .form-lead .input-wrap .ic,
    .form-lead .input-wrap i {
      width: 15px;
      height: 15px;
      left: 9px;
    }

  }

  /* ================================
    MOBILE ONLY — Halaman About Casa
    (banner foto+judul & Timeline "Awal Berdiri" dst)
    ================================ */
  @media (max-width: 767px) {

    .page-banner-hero {
      min-height: 160px;
    }

    .page-banner-hero h1 {
      font-size: 30px !important;
      line-height: 1.2;
    }

    .page-banner-hero .breadcrumb {
      font-size: 13px !important;
    }

    .about-timeline-section {
      padding: 30px 0 10px;
    }

    .about-timeline {
      gap: 0 10px;
    }

    .at-icon {
      width: 37px;
      height: 37px;
    }

    .at-icon img {
      width: 22px;
      height: 22px;
    }

    .at-card {
      padding: 14px 16px;
      margin-bottom: 18px;
      border-radius: 18px;
    }

    .at-card h3 {
      font-size: 12px;
      margin-bottom: 5px;
    }

    .at-card p {
      font-size: 9px;
      line-height: 1.45;
    }

    /* --- Kotak "NOW" (bulat panjang / pill) --- */
    .at-star {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }

    .at-now {
      flex-direction: row;
      align-items: center;
      border-radius: 999px;
      padding: 10px 18px;
      gap: 14px;
    }

    .at-now .at-now-sep {
      display: block;
      width: 1px;
    }

    .at-now .at-now-label {
      font-size: 22px;
    }

    .at-now {
      margin-left: -56px;
      width: calc(100% + 56px);
    }

    .at-now p {
      font-size: 9px;
      line-height: 1.35;
    }

    .at-now .at-now-sep {
      display: none;
    }

    .at-now {
      margin-top: 13px;
    }

    .at-now .at-now-label {
      display: none;
    }
  }

  /* ================================
    MOBILE ONLY — Halaman Beranda
    (Hero Buy Sell Rent, About CASA property, Fitur, Partner Bank, Property Card)
    ================================ */
  @media (max-width: 767px) {

    .hero {
      min-height: 220px;
    }

    .hero-content h1 {
      position: relative;
      margin-bottom: 8px;
      transform: translateY(-70px);
      font-size: 28px !important;
    }

    .hero-content p {
      position: relative;
      margin-bottom: 0;
      transform: translateY(-58px);
      font-size: 10px;
    }

    .about-section {
      padding: 20px 0 40px;
    }

    .about-title {
      margin-top: -10px;
    }

    .about-grid > div > p {
      font-size: 9px;
    }

    .about-grid > div > .btn {
      margin-top: 18px !important;
      padding: 6px 12px;
      font-size: 12px;
    }

    .about-feature {
      align-items: center;
      gap: 6px;
    }

    .about-feature:nth-child(2) {
      padding-left: 0;
    }

    .about-feature img[src*="about-location.png"] {
      margin-left: 3px;
    }

    .about-feature img {
      width: 30px;
      height: 30px;
    }

    .about-feature h4 {
      font-size: 13px;
    }

    .about-feature p {
      font-size: 9px;
    }

    .partner-box img {
      width: auto !important;
      height: 28px !important;
      min-width: 0 !important;
      max-width: 100px !important;
      margin: 0 auto !important;
      object-fit: contain;
    }

    .partner-row-break {
      display: none;
    }

    .partner-box img[src*="bank-bni.png"],
    .partner-box img[src*="bank-maybank.png"] {
      width: 42px !important;
      max-width: 42px !important;
      height: 18px !important;
    }

    .partner-box img[src*="bank-icbc.png"] {
      width: 100% !important;
      max-width: 130px !important;
      height: 30px !important;
    }

    .property-card h3 {
      font-size: 15px;
    }

    .property-card .loc {
      font-size: 11px;
    }

    .property-card .price {
      font-size: 15px;
    }

    .property-card .meta {
      font-size: 11px;
      gap: 10px;
    }

    .property-card .meta span img {
      width: 14px;
      height: 14px;
    }

    .agent-mini {
      gap: 8px;
    }

    .agent-mini .name {
      font-size: 12px;
      line-height: 1.2;
    }

    .agent-mini .role {
      font-size: 10px;
      line-height: 1.2;
    }

  }

  @media (max-width: 767px) {

    .search-toolbar {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 4px 0;
      margin-bottom: 20px;
      overflow: visible;
    }

    .search-toolbar-row1 { display: contents; }
    .search-toolbar .st-input {
      order: 1;
      flex: 0 0 100%;
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 18px;
      background: #fff;
      border: 1px solid #8a8a8a;
      border-radius: 999px;
      box-shadow: none;
      color: #8a8a8a;
    }
    .search-toolbar .st-input input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      background: transparent;
      font-size: 14px;
      color: var(--text-dark);
    }
    .search-toolbar .st-input input::placeholder {
      color: #a3a3a3;
    }
    .search-toolbar .st-input img.st-search-icon {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      filter: none;
    }

    .search-toolbar .st-toggle {
      order: 2;
      flex: 0 0 100%;
      width: 100%;
      display: flex;
      flex-direction: row-reverse;  
      gap: 12px;
      padding: 0;
      background: transparent;
      border-radius: 0;
    }
    .search-toolbar .st-toggle a {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid #8a8a8a;
      background: #fff;
      color: #000;
      font-size: 16px;
      font-weight: 400;
    }
    .search-toolbar .st-toggle a.active {
      background: var(--ungu-tua);
      border-color: var(--ungu-tua);
      color: #fff;
    }

    .search-toolbar .st-select {
      order: 3;
      position: relative;
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      overflow: visible;
    }
    .search-toolbar .st-filter {
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 10px;
      background: #fff;
      border: none;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
      color: var(--ungu-tua);
      font-size: 15px;
      font-weight: 400;
      white-space: nowrap;
    }
    .search-toolbar .st-filter-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .search-toolbar .st-filter::after {
      font-size: 16px;
      font-weight: 700;
      margin-left: 2px;
      color: var(--ungu-tua);
    }
    .search-toolbar .st-filter:has(.st-filter-icon)::after {
      display: none;
    }

    .search-toolbar .st-cari {
      order: 4;
      flex: 1.2 1 0;
      width: auto;
      min-width: 0;
      height: 44px;
      padding: 0 10px;
      background: var(--ungu-tua);
      border: none;
      border-radius: 10px !important;
      color: #fff;
      font-size: 16px;
      font-weight: 400;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .search-toolbar .st-dropdown-panel {
      position: absolute;
      left: 0;
      top: calc(100% + 8px);
      width: 200px;
      max-width: calc(100vw - 24px);
      z-index: 60;
    }
    .search-toolbar .filter-panel {
      position: fixed;
      left: 12px;
      right: 12px;
      width: auto;
    }
  }

  @media (max-width: 767px) {

    .search-toolbar {
      position: relative;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      background: transparent;
      border: none;
      box-shadow: none;
      border-radius: 0;
      padding: 4px 0;
      margin-bottom: 20px;
      overflow: visible;
    }

    .search-toolbar-row1 { display: contents; }

    /* ---------- Baris 1: kolom cari ---------- */
    .search-toolbar .st-input {
      order: 1;
      flex: 0 0 100%;
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 18px;
      background: #fff;
      border: 1px solid #8a8a8a;
      border-radius: 999px;
      box-shadow: none;
      color: #8a8a8a;
    }
    .search-toolbar .st-input input {
      flex: 1;
      min-width: 0;
      border: none;
      outline: none;
      background: transparent;
      font-size: 14px;
      color: var(--text-dark);
    }
    .search-toolbar .st-input input::placeholder {
      color: #a3a3a3;
    }
    .search-toolbar .st-input img.st-search-icon {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      filter: none;
    }

    /* ---------- Baris 2: Dijual / Disewa ---------- */
    .search-toolbar .st-toggle {
      order: 2;
      flex: 0 0 100%;
      width: 100%;
      display: flex;
      flex-direction: row-reverse;  
      gap: 12px;
      padding: 0;
      background: transparent;
      border-radius: 0;
    }
    .search-toolbar .st-toggle a {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      padding: 0 10px;
      border-radius: 999px;
      border: 1px solid #8a8a8a;
      background: #fff;
      color: #000;
      font-size: 16px;
      font-weight: 400;
    }
    .search-toolbar .st-toggle a.active {
      background: var(--ungu-tua);
      border-color: var(--ungu-tua);
      color: #fff;
    }

    .search-toolbar .st-select {
      order: 3;
      position: relative;
      flex: 1 1 0;
      width: auto;
      min-width: 0;
      overflow: visible;
    }
    .search-toolbar .st-filter {
      width: 100%;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 10px;
      background: #fff;
      border: none;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
      color: var(--ungu-tua);
      font-size: 15px;
      font-weight: 400;
      white-space: nowrap;
    }
    .search-toolbar .st-filter-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .search-toolbar .st-filter::after {
      font-size: 16px;
      font-weight: 700;
      margin-left: 2px;
      color: var(--ungu-tua);
    }
    .search-toolbar .st-filter:has(.st-filter-icon)::after {
      display: none;                 
    }

    .search-toolbar .st-cari {
      order: 4;
      flex: 1.2 1 0;
      width: auto;
      min-width: 0;
      height: 44px;
      padding: 0 10px;
      background: var(--ungu-tua);
      border: none;
      border-radius: 10px !important;
      color: #fff;
      font-size: 16px;
      font-weight: 400;
      white-space: nowrap;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .search-toolbar .st-dropdown-panel {
      position: absolute;
      left: 0;
      top: calc(100% + 8px);
      width: 150px;
      max-width: calc(100vw - 24px);
      max-height: 60vh;
      overflow-y: auto;
      padding: 5px;
      border-radius: 10px;
      z-index: 60;
    }
    .search-toolbar .st-dropdown-panel a {
      padding: 6px 10px;
      font-size: 13px;
      line-height: 1.3;
      border-radius: 6px;
    }

    /* ---------- Panel Filter (setengah halaman kiri, ke bawah memanjang) ---------- */
    .search-toolbar .st-select:has(.filter-panel) {
      position: static;              
    }
    .search-toolbar .filter-panel {
      position: absolute;
      left: 0;
      right: auto;
      top: 100%;
      margin-top: 8px;
      width: 50%;
      min-width: 250px;
      max-height: none;
      overflow: visible;
      padding: 12px 12px 14px;
      border-radius: 14px;
      z-index: 60;
    }

    .filter-panel .filter-panel-title {
      font-size: 17px;
      margin: 0 0 8px;
    }

    .filter-panel .filter-row {
      gap: 4px;                     
      margin-bottom: 8px;
    }
    .filter-panel .filter-row > label {
      flex: 0 0 58px;                
      font-size: 11px;
      line-height: 1.25;
    }
    .filter-panel .filter-row:has(.filter-row-fields) > label {
      padding-top: 7px;
    }

    .filter-panel .filter-row select.form-control,
    .filter-panel .filter-row input.form-control {
      height: 30px;
      min-height: 30px;
      padding: 0 8px;
      font-size: 11.5px;
      border-radius: 7px;
      border-width: 1px;
    }
    .filter-panel .filter-row > select.form-control,
    .filter-panel .filter-row > input.form-control {
      flex: 1 1 0;
      min-width: 0;
    }

    .filter-panel .filter-row-fields {
      gap: 5px;
      min-width: 0;
    }
    .filter-panel .filter-row-fields select.form-control,
    .filter-panel .filter-row-fields input.form-control {
      flex: 0 0 auto;
      width: 100%;
    }

    .filter-panel .filter-row-stacked {
      gap: 5px;
    }
    .filter-panel .filter-row-stacked .filter-range {
      flex: 0 0 auto;
      width: 100%;
      gap: 6px;
    }
    .filter-panel .filter-range input {
      flex: 1 1 0;
      width: auto;
      min-width: 0;
    }
    .filter-panel .filter-range span {
      font-size: 11px;
    }

    .filter-panel .filter-actions {
      gap: 8px;
      margin-top: 10px;
    }
    .filter-panel .filter-actions .btn {
      padding: 7px 16px;
      font-size: 12px;
    }
  }

  @media (max-width: 767px) {

    .filter-panel .filter-row-stacked > label {
      flex: none;
      height: auto;
      padding-top: 0;
    }

    .filter-panel .filter-row-stacked {
      gap: 4px;
    }
  }

  @media (max-width: 767px) {

    .search-toolbar .st-toggle a {
      height: 32px;
      font-size: 14px;
    }

    .search-toolbar .st-filter {
      height: 36px;
      font-size: 14px;
    }

    .search-toolbar .st-cari {
      height: 36px;
      font-size: 14px;
    }
  }

  @media (max-width: 767px) {

    body:has(.search-toolbar) :is(h1, h2):not(.filter-panel-title) {
      font-size: 16px !important;
      line-height: 1.3;
      margin-bottom: 4px;
    }
  }

  @media (max-width: 767px) { 
    .search-toolbar .st-select:has(.filter-panel) {
      position: static !important;
    }

    .search-toolbar .filter-panel {
      left: 0;
      right: auto;
      max-width: calc(100vw - 24px);
    }
  }
    
  @media (max-width: 767px) {

    .search-toolbar .st-dropdown-panel {
      width: 150px;
      padding: 5px;
      border-radius: 10px;
      max-height: 60vh;
      overflow-y: auto;
    }

    .search-toolbar .st-dropdown-panel a {
      padding: 6px 10px;
      font-size: 13px;
      line-height: 1.3;
      border-radius: 6px;
    }
  }

  @media (max-width: 767px) {

    body:has(.search-toolbar) .property-grid {
      display: grid;
      grid-template-columns: 1fr !important;
      gap: 16px;
      padding: 0;
      overflow: visible;
      scroll-snap-type: none;
    }

    body:has(.search-toolbar) .property-grid .property-card {
      flex: none;
      width: 100%;
      scroll-snap-align: none;
    }
  }

  /* =====================================================
    MOBILE ONLY — Galeri foto detail properti
    ===================================================== */
  @media (max-width: 767px) {

    .gallery-grid {
      grid-template-columns: 1fr;
      gap: 10px;
      margin-bottom: 18px;
    }

    .gallery-grid .gallery-main img,
    .gallery-grid.gallery-count-1 .gallery-main img {
      width: 100%;
      height: auto;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      border-radius: 16px;
    }

    .gallery-grid .gallery-side {
      display: flex;
      flex-direction: row;
      gap: 10px;
    }
    .gallery-grid .gallery-side-bottom,
    .gallery-grid .gallery-side-bottom-single {
      display: contents;
    }

    .gallery-grid .gallery-side-top,
    .gallery-grid .gallery-side-bottom > *,
    .gallery-grid .gallery-side-bottom-single > *,
    .gallery-grid .gallery-side > img,
    .gallery-grid .gallery-side-single {
      flex: 1 1 0;
      min-width: 0;
    }

    .gallery-grid .gallery-side img {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 14px;
    }
  }

  @media (max-width: 767px) {

    /* Kotak deskripsi */
    .detail-grid .detail-desc-card,
    .detail-grid [class*="desc"] {
      padding: 14px !important;
      border-radius: 12px !important;
      margin-bottom: 14px !important;
    }

    /* Judul "Deskripsi" */
    .detail-grid .detail-desc-card h1,
    .detail-grid .detail-desc-card h2,
    .detail-grid .detail-desc-card h3,
    .detail-grid .detail-desc-card h4,
    .detail-grid [class*="desc"] h1,
    .detail-grid [class*="desc"] h2,
    .detail-grid [class*="desc"] h3,
    .detail-grid [class*="desc"] h4 {
      font-size: 14px !important;
      line-height: 1.3 !important;
      margin: 0 0 8px !important;
    }

    /* Isi deskripsi */
    .detail-grid .detail-desc-card,
    .detail-grid .detail-desc-card p,
    .detail-grid .detail-desc-card div,
    .detail-grid .detail-desc-card span,
    .detail-grid .detail-desc-card li,
    .detail-grid [class*="desc"] p,
    .detail-grid [class*="desc"] div,
    .detail-grid [class*="desc"] span,
    .detail-grid [class*="desc"] li {
      font-size: 12px !important;
      line-height: 1.6 !important;
    }

    .detail-grid .detail-desc-card p,
    .detail-grid [class*="desc"] p {
      margin: 0 !important;
    }
  }

  /* =====================================================
    MOBILE ONLY — Kotak Detail Properti (spesifikasi)
    ===================================================== */
  @media (max-width: 767px) {

    /* Kotak */
    .detail-grid .detail-spec-card,
    .detail-grid [class*="spec-card"] {
      padding: 14px !important;
      border-radius: 12px !important;
      margin-bottom: 14px !important;
    }

    /* Judul "Detail Properti" */
    .detail-grid .detail-spec-card h1,
    .detail-grid .detail-spec-card h2,
    .detail-grid .detail-spec-card h3,
    .detail-grid .detail-spec-card h4,
    .detail-grid [class*="spec-card"] h1,
    .detail-grid [class*="spec-card"] h2,
    .detail-grid [class*="spec-card"] h3,
    .detail-grid [class*="spec-card"] h4 {
      font-size: 14px !important;
      line-height: 1.3 !important;
      margin: 0 0 6px !important;
    }

    /* Baris: label di kiri, nilai di kanan */
    .detail-grid .spec-row {
      padding: 7px 0 !important;
      font-size: 12px !important;
      line-height: 1.4 !important;
    }
    .detail-grid .spec-row span,
    .detail-grid .spec-row b {
      font-size: 12px !important;
    }
  }

  @media (max-width: 767px) {

    html:has(.detail-grid),
    body:has(.detail-grid) {
      overflow-x: clip;
    }

    body:has(.detail-grid) .detail-grid {
      display: block;
    }
    body:has(.detail-grid) .detail-grid > .detail-side-sticky {
      display: contents;
    }

    /* 3. Kartu agen: menempel di bawah layar, berhenti di ujung detail properti */
    body:has(.detail-grid) .agent-card {
      position: sticky;
      bottom: 8px;
      z-index: 150;
      width: auto;
      max-width: none;
      margin: 14px 0 0;
      padding: 12px 14px;
      background: #fff;
      border: 1.5px solid var(--ungu-tua);
      border-radius: 16px;
      box-shadow: 0 -2px 14px rgba(88, 48, 115, 0.18);
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
    }

    /* Baris atas: foto di kiri, info di kanan */
    body:has(.detail-grid) .agent-card .agent-card-link {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      min-width: 0;
      margin: 0;
    }
    body:has(.detail-grid) .agent-card img {
      width: 46px;
      height: 46px;
      flex: 0 0 46px;
    }
    body:has(.detail-grid) .agent-card .agent-info {
      flex: 1 1 0;
      min-width: 0;
    }
    body:has(.detail-grid) .agent-card h4,
    body:has(.detail-grid) .agent-card .role,
    body:has(.detail-grid) .agent-card .phone {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    body:has(.detail-grid) .agent-card h4 {
      font-size: 13px;
      line-height: 1.25;
      margin: 0 0 1px;
    }
    body:has(.detail-grid) .agent-card .role {
      font-size: 10.5px;
      line-height: 1.25;
      margin: 0 0 1px;
    }
    body:has(.detail-grid) .agent-card .phone {
      font-size: 11px;
      line-height: 1.25;
      margin: 0;
    }

    /* Baris bawah: tombol Hubungi (kecil, lebar penuh) */
    body:has(.detail-grid) .agent-card .btn {
      width: 100% !important;
      max-width: none;
      margin: 0 !important;
      padding: 6px 14px !important;
      font-size: 12px !important;
      gap: 6px;
      white-space: nowrap;
    }
    body:has(.detail-grid) .agent-card .btn img {
      width: 16px !important;
      height: 16px !important;
    }
  }

  @media (max-width: 767px) {

    .property-card h3 {
      font-size: 9px !important;
      line-height: 1.3 !important;
    }

    .property-card .loc {
      font-size: 9px !important;
    }

    .property-card .price {
      font-size: 9px !important;
      font-weight: 700 !important;
    }

  }

  @media (max-width: 767px) {

    .content-wrap div[style*="justify-content:space-between"] {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 4px !important;
    }

    .content-wrap h1 {
      font-size: 16px !important;
      line-height: 1.2 !important;
      max-width: 100% !important;
      margin: 0 !important;
    }

    .content-wrap .price {
      font-size: 15px !important;
      margin: 0 !important;
    }

    .gallery-grid ~ p {
      font-size: 12px !important;
      margin: 2px 0 12px !important;
    }

  }

  @media (max-width: 100px) {

    .content-wrap {
      padding-top: 12px !important;
    }

    .breadcrumb {
      margin-bottom: 8px !important;
    }

    #propertyGallery {
      max-width: 340px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }

    .gallery-grid .gallery-main img,
    .gallery-grid.gallery-count-1 .gallery-main img {
      aspect-ratio: 4 / 3 !important;
    }

  }

  /* =====================================================
    MOBILE ONLY — Galeri foto: atas lebar, bawah rata kiri (detail.php)
    ===================================================== */
  @media (max-width: 767px) {

    .content-wrap {
      padding-top: 12px !important;
    }

    .breadcrumb {
      margin-bottom: 8px !important;
    }

    #propertyGallery {
      max-width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    .gallery-grid .gallery-main img,
    .gallery-grid.gallery-count-1 .gallery-main img {
      width: 100% !important;
      aspect-ratio: 4 / 3 !important;
    }

    .gallery-grid .gallery-side {
      justify-content: flex-start !important;
      width: 60% !important;
      margin-left: 0 !important;
      margin-right: auto !important;
    }

  }
  @media (max-width: 767px) {
  .badge-status {
    font-size: 12px !important;
    padding: 3px 10px !important;
  }
}

  /* =====================================================
    MOBILE ONLY — Perkecil foto agen (halaman profil agen)
    ===================================================== */
  @media (max-width: 767px) {

    .aph-photo img,
    .agen-hero-photo img {
      width: 130px !important;
      height: 125px !important;
    }

    .aph-hero {
      padding: 20px 16px;
      gap: 14px;
    }
  }

  @media (max-width: 767px) {

    .aph-loc {
      font-size: 13px !important;
      line-height: 1.4 !important;
      margin-bottom: 8px !important;
    }

    .aph-loc img,
    .aph-loc .icon-inline {
      width: 14px !important;
      height: 14px !important;
    }
  }

@media (max-width: 767px) {

  .aph-company {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: var(--text-muted) !important;
    margin: 0 0 8px !important;
    text-align: center;
  }
}

  @media (max-width: 767px) {

    .aph-info h1,
    .agen-hero-info h1 {
      font-weight: 500 !important;
      margin-bottom: 10px !important;
    }
  }

  @media (max-width: 767px) {

    .aph-info h1,
    .content-wrap .aph-info h1,
    .agen-hero-info h1 {
      font-size: 20px !important;
      line-height: 1.25 !important;
    }
  }

  @media (max-width: 767px) {

    .aph-action-btn {
      padding: 8px 14px !important;
      font-size: 14px !important;
      gap: 6px !important;
      min-height: 0 !important;
    }

    .aph-action-btn img {
      width: 18px !important;
      height: 18px !important;
    }

    /* jarak antar tombol dirapatkan */
    .aph-side {
      gap: 8px !important;
    }
  } 

  @media (max-width: 767px) {

    .page-banner-hero h1 {
      font-size: 17px !important;
      line-height: 1.25 !important;
      margin-bottom: 4px !important;
    }
  }

  @media (max-width: 767px) {

    .page-banner-hero p {
      font-size: 9px !important;
      line-height: 1.3 !important;
      margin-bottom: 4px !important;
    }
  }

  @media (max-width: 767px) {

    body:not(:has(.seg-control)) .page-banner-hero h1 {
      font-size: 23px !important;
      line-height: 1.2 !important;
    }
  }

  @media (max-width: 767px) {

    body:not(:has(.seg-control)) .page-banner-hero {
      min-height: 130px !important;
    }

    body:not(:has(.seg-control)) .page-banner-hero .container {
      padding-top: 26px !important;
      padding-bottom: 26px !important;
    }
  }

  @media (max-width: 768px) {

    .member-register-btn {
      display: none !important;
    }
  }

  @media (max-width: 768px) {

    .nav-links,
    .nav-links.mobile-open {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      position: fixed;
      top: 0;
      bottom: 0;
      right: 0;
      left: auto;
      width: 75%;
      max-width: 300px;
      margin: 0;
      padding: 80px 24px 24px;   
      background: #fff;
      overflow-y: auto;
      z-index: 300;

      transform: translateX(100%);
      visibility: hidden;
      box-shadow: none;
      transition: transform .3s ease, visibility .3s;
    }

    .nav-links.mobile-open {
      transform: translateX(0);
      visibility: visible;
      box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45);
    }

    .nav-links > li {
      border-bottom: 1px solid var(--border-color);
    }
    .nav-links > li:last-child {
      border-bottom: none;
    }
    .nav-links a.nav-link {
      display: block;
      padding: 14px 4px;
      font-size: 17px;
      text-align: left;
    }

    .burger {
      position: relative;
      z-index: 400;
    }
  }

  @media (max-width: 768px) {

    .nav-links,
    .nav-links.mobile-open {
      padding-top: 56px;       
    }

    .nav-links a.nav-link {
      font-size: 14px;          
      padding: 10px 4px;        
    }
  }

  @media (max-width: 768px) {

    body:has(.nav-links.mobile-open) .burger {
      font-size: 0;
      line-height: 1;
    }

    body:has(.nav-links.mobile-open) .burger::before {
      content: "\2715";        
      font-size: 20px;
      line-height: 1;
      color: var(--ungu-tua);
    }
  }

  @media (max-width: 768px) {

    .navbar-actions .avatar-circle {
      width: 30px !important;
      height: 30px !important;
      min-width: 30px !important;
      flex: 0 0 30px !important;
    }

    .navbar-actions .avatar-circle img {
      width: 65% !important;
      height: 65% !important;
      object-fit: contain;
    }

    .navbar-actions {
      gap: 6px !important;
    }
  }

  @media (max-width: 767px) {

    .about-feature {
      align-items: flex-start !important;
    }

    .about-feature img {
      margin-top: 0px !important;
    }
  }

  /* =====================================================
    MOBILE ONLY — Rapikan logo Partner Perbankan
    Taruh PALING BAWAH file CSS
    ===================================================== */
  @media (max-width: 767px) {

    body .partner-section .partner-box {
      display: grid !important;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px 14px;
      align-items: center;
      justify-items: center;
      padding: 18px 14px 20px;
    }

    body .partner-section .partner-box > img {
      width: 100% !important;
      max-width: 90px !important;
      min-width: 0 !important;
      height: 32px !important;
      margin: 0 !important;
      object-fit: contain;
    }

    .partner-row-break {
      display: none;
    }
  }

  @media (max-width: 767px) {

    body .partner-section .partner-box > img[src*="bank-icbc.png"],
    body .partner-section .partner-box > img[src*="bank-ocbc.png"],
    body .partner-section .partner-box > img[src*="bank-ina.png"] {
      max-width: 100% !important;
      height: 30px !important;
      transform: scale(1.3);
    }
  }

  /* =====================================================
   MOBILE ONLY — Halaman Daftar Member / Login (versi kecil)
   Taruh PALING BAWAH file CSS
   ===================================================== */
@media (max-width: 767px) {

  .auth-card {
    flex-direction: column;
    min-height: 0;
    border-radius: 14px;
  }

  .auth-img {
    flex: none;
    width: 100%;
    height: 85px;           
    min-height: 0;
  }

  .auth-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .auth-img-overlay {
    padding: 8px 10px;
  }

  .auth-img-overlay h2,
  .auth-img-overlay-light h2 {
    font-size: 11px !important;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .auth-img-overlay p,
  .auth-img-overlay-light p {
    font-size: 7.5px !important;
    line-height: 1.25;
    max-width: 100%;
    margin: 0;
  }

  /* --- Teks form --- */
  .auth-wrapper {
    padding: 14px 10px;
  }

  .auth-form {
    padding: 12px 12px 15px;
  }

  .auth-form .logo-row {
    gap: 5px;
    margin-bottom: 8px;
  }

  .auth-form .logo-row img {
    height: 20px;
  }

  .auth-form h1 {
    font-size: 13px !important;
  }

  .auth-form .form-group {
    margin-bottom: 6px;
  }

  .auth-form .form-group label {
    font-size: 8.5px !important;
    margin-bottom: 2px;
  }

  .auth-form .form-control {
    font-size: 8.5px !important;
    min-height: 0;
    padding: 5px 7px 5px 24px;
    border-radius: 6px;
    border-width: 1px;
  }

  .auth-form textarea.form-control {
    min-height: 52px;
    padding-left: 7px;
  }

  .auth-form select.form-control {
    padding-left: 7px;
  }

  .auth-form .input-wrap i,
  .auth-form .input-wrap .ic {
    left: 7px;
    font-size: 9px;
  }

  .auth-form .input-wrap .ic img,
  .auth-form .icon-form,
  .auth-form .icon-form-sm {
    width: 11px !important;
    height: 11px !important;
  }

  .auth-form .toggle-pass {
    right: 8px;
    font-size: 9px;
  }

  .auth-form .radio-group {
    gap: 5px;
  }

  .auth-form .radio-option {
    padding: 4px 7px;
    font-size: 8px;
    border-radius: 6px;
    border-width: 1px;
    gap: 4px;
  }

  .auth-form .form-error {
    font-size: 8px;
    margin-bottom: 8px;
  }

  .auth-form .form-note {
    font-size: 8px;
    padding: 6px 8px;
    margin: 7px 0;
    border-radius: 7px;
  }

  .auth-form .btn {
    padding: 6px 12px;
    font-size: 9.5px;
    border-radius: 30px;
  }

  .auth-form .agree-text {
    font-size: 8px;
    margin-top: 8px;
  }

  .auth-form .auth-alt {
    font-size: 8.5px;
    margin-top: 8px;
  }
}

@media (max-width: 767px) {

  .agen-consult-banner {
    padding: 10px 14px;
    font-size: 15px !important;
    font-weight: 500;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {

 .agen-hero {
    min-height: 0 !important;       
  }

  .agen-hero-content {
    padding: 45px 18px !important;    
  }

  /* Judul */
  .agen-hero-content h1 {
    font-size: 15px !important;
    line-height: 1.25;
    margin: 0 0 8px;
    white-space: normal;
  }

  .agen-hero-content p {
    font-size: 8px !important;
    line-height: 1.5;
    margin: 0 auto 14px;
    max-width: 260px;
  }

  .agen-hero-content .btn-outline-white,
  .agen-hero-content .btn {
    width: auto !important;
    display: inline-flex;
    padding: 6px 14px !important;
    font-size: 11px !important;
    gap: 5px;
    border-radius: 24px;
    border-width: 1px;
    white-space: nowrap;
  }

  .agen-hero-content .wa-inline-btn img,
  .agen-hero-content .btn-outline-white img {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 767px) {

  .agen-feature {
    padding: 20px 0;
  }

  .agen-feature h2 {
    font-size: 16px !important;
    line-height: 1.3;
    margin: 0 0 6px;
  }

  .agen-feature p {
    font-size: 9px !important;
    line-height: 1.55;
    max-width: 280px;
  }

  .agen-feature img,
  .agen-feature-shaded img {
    margin-bottom: 12px;
  }
}

@media (max-width: 767px) {

  .agen-feature-section {
    padding-top: 0 !important;
  }

  .agen-feature-section > .agen-feature:first-child {
    padding-top: 24px !important;
  }
}

@media (max-width: 767px) {

  .auth-form {
    padding: 16px 16px 20px;
  }

  .auth-form .logo-row img {
    height: 24px;
  }

  .auth-form h1 {
    font-size: 16px !important;
  }

  .auth-form .form-group {
    margin-bottom: 10px;
  }

  .auth-form .form-group label {
    font-size: 11px !important;
    margin-bottom: 4px;
  }

  .auth-form .form-control {
    font-size: 12px !important;
    min-height: 38px;
    padding: 8px 10px 8px 34px !important;
    border-radius: 9px;
    border-width: 1.5px;
  }

  .input-wrap img,
  .input-wrap .ic img,
  .input-wrap .icon-form {
    width: 16px !important;
    height: 16px !important;
  }

  .input-wrap .ic,
  .input-wrap i {
    left: 10px !important;
    display: flex;
    align-items: center;
  }

  .toggle-pass {
    right: 10px;
  }

  .toggle-pass img {
    width: 16px !important;
    height: 16px !important;
  }

  .auth-form .btn {
    padding: 9px 18px;
    font-size: 13px;
  }

  .auth-form .form-error {
    font-size: 10.5px;
  }

  .auth-form .auth-alt {
    font-size: 11.5px;
    margin-top: 12px;
  }
}

@media (max-width: 767px) {

  .agree-text,
  .agree-text *,
  .auth-wrapper > :not(.auth-card),
  .auth-wrapper > :not(.auth-card) * {
    font-size: 10px !important;
    line-height: 1.45 !important;
  }

  .auth-wrapper > :not(.auth-card) {
    margin-top: 12px;
    padding: 0 12px;
  }

  .agree-text img,
  .agree-text svg,
  .auth-wrapper > :not(.auth-card) img,
  .auth-wrapper > :not(.auth-card) svg {
    width: 12px !important;
    height: 12px !important;
    vertical-align: -2px;
  }
}

@media (max-width: 767px) {

  .auth-form .logo-row {
    gap: 8px;
    margin-bottom: 14px;
  }

  .auth-form .logo-row img {
    height: 40px !important;   
    width: auto;
  }
}@media (max-width: 767px) {

  .auth-form .form-control,
  .auth-form .input-wrap .form-control {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 10px 0 32px !important;
    font-size: 11.5px !important;
    line-height: 34px;
    border-radius: 8px !important;
    border-width: 1px !important;
  }

  .auth-form .form-group {
    margin-bottom: 8px;
  }

  .input-wrap img,
  .input-wrap .ic img,
  .input-wrap .icon-form {
    width: 15px !important;
    height: 15px !important;
  }

  .input-wrap .ic,
  .input-wrap i {
    left: 9px !important;
  }

  .toggle-pass {
    right: 10px;
  }

  .toggle-pass img {
    width: 15px !important;
    height: 15px !important;
  }
}

/* ================================
   MOBILE ONLY — Admin Stat Cards (Dashboard)
   Tidak mempengaruhi tampilan desktop/laptop
   ================================ */
@media (max-width: 767px) {

   .admin-stat-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .admin-stat-grid::-webkit-scrollbar {
    display: none;
  }

  .admin-stat-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    flex: 0 0 calc(50% - 5px);
    scroll-snap-align: start;
    min-width: 0;
    padding: 12px 10px;
  }

  .admin-stat-card > div {
    display: contents;
  }

  .admin-stat-card .asc-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .admin-stat-card b {
    font-size: 18px;
  }

  .admin-stat-card span.asc-label {
    flex-basis: 100%;
    font-size: 10px;
    margin-top: 0;
  }

  .admin-stat-card a.asc-link {
    flex-basis: 100%;
    font-size: 10px;
    margin-top: 0;
  }

} 

/* =====================================================
   MOBILE ONLY — Navbar admin (topbar)
   ===================================================== */
@media (max-width: 767px) {

  /* Bar lebih rapat */
  .admin-topbar {
    padding: 10px 12px;
    gap: 10px;
  }
  .admin-topbar .admin-search-group {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    gap: 8px;
  }

  .admin-topbar .admin-burger {
    padding: 2px;
  }
  .admin-topbar .admin-burger img,
  .admin-topbar .admin-burger svg {
    width: 18px;
    height: 18px;
  }

  .admin-topbar .admin-search {
    min-width: 0;
    padding: 8px 12px;
    gap: 8px;
  }
  .admin-topbar .admin-search svg {
    width: 16px;
    height: 16px;
  }
  .admin-topbar .admin-search input {
    min-width: 0;
    font-size: 13px;
  }

  .admin-topbar .notif-bell-btn {
    width: 30px;
    height: 30px;
  }
  .admin-topbar .notif-bell-btn svg,
  .admin-topbar .notif-bell-btn img {
    width: 18px;
    height: 18px;
  }
  .admin-topbar .notif-badge {
    min-width: 15px;
    height: 15px;
    font-size: 9px;
    top: 0;
    right: 0;
    border-width: 1.5px;
  }

  .admin-topbar .admin-topbar-user {
    margin-left: auto;
    gap: 0;
    flex-shrink: 0;
  }
  .admin-topbar .admin-topbar-user .atu-name,
  .admin-topbar .admin-topbar-user .atu-role,
  .admin-topbar .admin-topbar-user > :has(.atu-name, .atu-role) {
    display: none;
  }
}

  @media (max-width: 767px) {
    .admin-topbar .admin-topbar-user img {
      width: 36px;
      height: 36px;
    }

  .admin-topbar .admin-search input,
  .admin-topbar .admin-search input::placeholder {
    font-size: 11px !important;
  }

  .admin-topbar .admin-search {
    padding: 7px 12px;
  }
  .admin-topbar .admin-search svg {
    width: 14px;
    height: 14px;
  }
}
@media (max-width: 767px) {
  .admin-topbar .admin-search-group {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .admin-topbar .admin-search {
    flex: 1 1 0;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .admin-topbar .admin-search input {
    width: 100%;
  }

  .admin-topbar {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
}
  /* =====================================================
   MOBILE ONLY — Kotak sapaan "Haloo Admin CASA!" (dashboard admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
    margin: 12px 0 14px;
    border-radius: 14px;
  }

  .admin-hero > div:first-child {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .admin-hero h2 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 4px;
  }

  .admin-hero p {
    font-size: 11px;
    line-height: 1.4;
  }

  .admin-hero .admin-hero-house,
  .admin-hero img {
    width: 140px;
    max-width: 60%;
    height: auto;
    margin: 0;
    align-self: center;
  }
}

/* =====================================================
   MOBILE ONLY — Panel "Properti Terbaru" & "Pengajuan Terbaru"
   ===================================================== */
@media (max-width: 767px) {
  .admin-panels {
    gap: 12px;
    margin-top: 18px;
  }

  .admin-panel {
    padding: 12px;
    border-radius: 12px;
  }

  .admin-panel h3 {
    font-size: 14px;
    margin: 0 0 8px;
  }

  .admin-panel .ap-row {
    gap: 8px;
    padding: 7px 0;
  }

  .admin-panel .ap-row img.ap-thumb {
    width: 44px;
    height: 42px;
    border-radius: 6px;
}

  .admin-panel .ap-row .ap-icon {
    width: 30px;
    height: 30px;
    padding: 6px;
    border-radius: 8px;
  }

  .admin-panel .ap-row .ap-info b {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 500;
}

  .admin-panel .ap-row .ap-info span {
    font-size: 10px;
    line-height: 1.3;
  }

  .admin-panel .ap-row .badge,
  .admin-panel .ap-row [class*="badge"] {
    font-size: 9px;
    padding: 2px 8px;
  }

  .admin-panel .ap-see {
    font-size: 11px;
    margin-top: 8px;
  }
}

/* =====================================================
   MOBILE ONLY — Filter Kelola Property (admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-filter-bar {
    gap: 8px;
    margin: 14px 0;
  }

  .admin-filter-bar .admin-search-input {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 14px;
  }
  .admin-filter-bar .admin-search-input input {
    font-size: 13px;
  }

  .admin-filter-bar select.form-control {
    flex: 1 1 calc(50% - 4px);
    width: auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 30px 0 12px;
    font-size: 13px;
    background-position: right 10px center;
    background-size: 14px 14px;
  }

  .admin-filter-bar .btn {
    min-height: 40px;
    padding: 8px 18px;
    font-size: 13px;
  }

  .admin-filter-bar .btn-primary,
  .admin-filter-bar button[type="submit"] {
    flex: 0 0 100%;
    width: 100%;
    min-height: 40px;
    padding: 8px 18px;
    font-size: 14px;
  }
}

/* =====================================================
   MOBILE ONLY — Tabel daftar properti (Kelola Property admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-table-card {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table-card table.data-table {
    font-size: 11px;
  }

  .admin-table-card table.data-table th {
    font-size: 11px;
    padding: 8px 8px;
    white-space: nowrap;
  }

  .admin-table-card table.data-table td {
    font-size: 10.5px;
    line-height: 1.35;
    padding: 8px 8px;
  }
  .admin-table-card table.data-table td b,
  .admin-table-card table.data-table td a {
    font-size: 10.5px;
  }

  .admin-table-card table.data-table td img {
    width: 40px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
  }

  .admin-table-card .badge,
  .admin-table-card [class*="badge"] {
    font-size: 9px;
    padding: 2px 8px;
  }
  .admin-table-card .status-select {
    font-size: 10px;
  }

  .admin-table-card .action-icons {
    gap: 6px;
  }
  .admin-table-card .icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }
  .admin-table-card .icon-btn svg,
  .admin-table-card .icon-btn img {
    width: 13px;
    height: 13px;
  }
}

/* =====================================================
   MOBILE ONLY — Tabel daftar properti bisa digeser ke samping
   ===================================================== */
@media (max-width: 767px) {
  .admin-table-card,
  .admin-table-card .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .admin-table-card table.data-table {
    width: 100%;
    max-width: none;
    min-width: 720px;
  }

  .admin-table-card table.data-table th,
  .admin-table-card table.data-table td {
    white-space: nowrap;
  }
}

  @media (max-width: 767px) {
    .admin-table-card table.data-table td {
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
   @media (max-width: 767px) {
    .admin-table-card table.data-table td img {
    display: block;
    width: 36px !important;
    height: 28px !important;
    min-width: 36px;
    max-width: none !important;
    flex: 0 0 36px;
    object-fit: cover !important;
    border-radius: 6px;
  }
 }
@media (max-width: 767px) {
  .admin-table-card table.data-table .icon-btn img,
  .admin-table-card table.data-table .action-icons img {
    width: 13px !important;
    height: 13px !important;
    min-width: 0;
    flex: 0 0 auto;
    object-fit: contain !important;
    border-radius: 0;
  }

.admin-filter-bar {
    gap: 6px;
  }

  /* Kolom cari */
  .admin-filter-bar .admin-search-input {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    gap: 8px;
  }
  .admin-filter-bar .admin-search-input input {
    font-size: 12px;
  }
  .admin-filter-bar .admin-search-input svg,
  .admin-filter-bar .admin-search-input img {
    width: 15px;
    height: 15px;
  }

  .admin-filter-bar select.form-control {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 28px 0 12px !important;
    font-size: 12px !important;
    line-height: 1;
    background-position: right 10px center;
    background-size: 13px 13px;
  }

  .admin-filter-bar .btn,
  .admin-filter-bar button[type="submit"] {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .admin-crumb {
    margin-bottom: 12px;
  }

  .admin-crumb h1 {
    font-size: 18px !important;
    line-height: 1.25;
    margin: 0 0 2px !important;
  }

  .admin-crumb .crumb-trail {
    font-size: 9px;
    line-height: 1.3;
  }
  .admin-crumb .crumb-trail .sep {
    margin: 0 4px;
  }
}

  /* =====================================================
   MOBILE ONLY — Kartu statistik Kelola Property (admin)
   ===================================================== */
@media (max-width: 767px) {
  body:has(.admin-filter-bar) .admin-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-bottom: 10px;
  }

  body:has(.admin-filter-bar) .admin-stat-grid > .admin-stat-card {
    width: auto;
    min-width: 0;
    grid-column: auto;
    scroll-snap-align: none;
  }

  body:has(.admin-filter-bar) .admin-stat-grid > .admin-stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   MOBILE ONLY — Jarak navbar ke isi halaman (semua halaman admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-main {
    padding-top: 8px !important;
  }

  .admin-main > :first-child {
    margin-top: 0 !important;
  }
  .admin-crumb {
    margin-top: 0;
  }
  .admin-crumb h1 {
    margin-top: 0 !important;
  }

  .admin-filter-bar {
    gap: 8px;          
    margin: 10px 0;    
  }
}

/* =====================================================
   MOBILE ONLY — Menu titik tiga (Terjual/Edit/Hapus) tidak tertutup
   ===================================================== */
@media (max-width: 767px) {

  /* Pembungkus tidak boleh memotong menu */
  .listing-item-v2,
  .listing-item-v2 .liv2-top,
  .listing-item-v2 .liv2-foot,
  .listing-item,
  .listing-item .foot {
    overflow: visible;
  }

  /* Kartu yang menunya sedang terbuka naik ke lapisan paling atas */
  .listing-item-v2:has(.dot-menu.open),
  .listing-item:has(.dot-menu.open) {
    position: relative;
    z-index: 60;
  }

  .dot-menu-dropdown {
    z-index: 80;
  }

  .admin-table-card:has(.dot-menu.open) {
    padding-bottom: 110px;
  }
}

/* =====================================================
   MOBILE ONLY — Menu titik tiga di tabel admin tidak terpotong / tertutup
   ===================================================== */
@media (max-width: 767px) {

  .admin-table-card table.data-table td:has(.dot-menu),
  .admin-table-card table.data-table td:has(.action-icons) {
    overflow: visible !important;
    max-width: none !important;
    text-overflow: clip;
  }

  .admin-table-card table.data-table td:has(.dot-menu.open) {
    position: relative;
    z-index: 60;
  }

  .admin-table-card .dot-menu-dropdown {
    z-index: 80;
  }

  .admin-table-card:has(.dot-menu.open),
  .admin-table-card .table-wrap:has(.dot-menu.open) {
    padding-bottom: 110px;
  }
}

/* =====================================================
   MOBILE ONLY — Halaman Edit Property (admin), versi kecil
   ===================================================== */
@media (max-width: 767px) {

  body:has(.admin-property-form) .admin-detail-card {
    padding: 10px 12px 14px !important;
    border-radius: 10px !important;
  }
  .admin-property-form h1,
  .admin-property-form h2,
  .admin-property-form h3,
  .admin-property-form h4 {
    font-size: 12.5px !important;
    line-height: 1.25;
    margin: 0 0 6px !important;
  }
  .admin-property-form .wizard-section-label {
    font-size: 11px !important;
    margin: 10px 0 6px !important;
  }
  .admin-property-form p,
  .admin-property-form .section-sub {
    font-size: 10px !important;
    line-height: 1.35;
  }

  .admin-seg-tabs a {
    padding: 6px 10px;
    font-size: 10.5px;
  }

  .admin-property-form .form-group {
    margin-bottom: 8px;
  }
  .admin-property-form .form-group label {
    font-size: 10.5px !important;
    margin-bottom: 3px;
  }
  .admin-property-form .form-control,
  .admin-property-form select.form-control,
  .admin-property-form textarea.form-control {
    font-size: 10.5px !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    border-width: 1px;
  }
  .admin-property-form textarea.form-control {
    min-height: 66px !important;
  }

  .admin-property-form .btn {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
  }

  body:has(.admin-property-form) .pill-group {
    gap: 5px;
  }
  body:has(.admin-property-form) .pill-btn {
    font-size: 10px !important;
    padding: 6px 8px !important;
    border-radius: 7px;
  }

  body:has(.admin-property-form) .qty-row {
    padding: 6px 0;
    font-size: 11px;
  }
  body:has(.admin-property-form) .qty-control {
    gap: 8px;
  }
  body:has(.admin-property-form) .qty-btn {
    width: 22px;
    height: 22px;
    font-size: 14px;
  }
  body:has(.admin-property-form) .qty-val {
    font-size: 12px;
    min-width: 16px;
  }

  /* ---------- Upload foto ---------- */
  body:has(.admin-property-form) .upload-box {
    padding: 10px;
    margin-top: 10px;
    border-radius: 10px;
  }
  body:has(.admin-property-form) .upload-box-head {
    font-size: 9.5px;
    margin-bottom: 8px;
  }
  body:has(.admin-property-form) .upload-dropzone {
    padding: 16px 10px;
    font-size: 9.5px;
  }
  body:has(.admin-property-form) .foto-thumb {
    width: 62px;
    height: 52px;
  }
  body:has(.admin-property-form) .foto-thumb-remove {
    width: 17px;
    height: 17px;
    font-size: 12px;
    top: -6px;
    right: -6px;
  }
}

/* =====================================================
   MOBILE ONLY — Sembunyikan "(boleh pilih keduanya)" (Edit Property admin)
   Taruh PALING BAWAH file CSS
   ===================================================== */
@media (max-width: 767px) {
  body:has(.admin-property-form) .form-group:has(input[type="checkbox"]) > label:first-child > :is(span, small, em, i) {
    display: none;
  }
}
@media (max-width: 767px) {
  body:has(.admin-property-form) .form-group:has(input[type="checkbox"]) > label:first-child {
    margin-top: 0;
    margin-bottom: 2px !important;
    line-height: 1.3;
  }
}
@media (max-width: 767px) {
  body:has(.admin-property-form) .form-group:has(input[type="checkbox"]) > label:first-child + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

  /* =====================================================
   MOBILE ONLY — "Jenis Transaksi" sejajar dengan "Kategori"
   (Edit Property admin)
   ===================================================== */
@media (max-width: 767px) {
  body:has(.admin-property-form) :has(> .form-group:has(input[type="checkbox"])) {
    align-items: start !important;
  }

  body:has(.admin-property-form) .form-group > label:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
  }

  body:has(.admin-property-form) .form-group:has(input[type="checkbox"]) {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body:has(.admin-property-form) .foto-preview-grid {
    gap: 8px;
    justify-content: flex-start;
    margin-top: 8px;
  }

  body:has(.admin-property-form) .foto-thumb {
    width: 56px;
    height: 46px;
    border-radius: 8px;
  }
  body:has(.admin-property-form) .foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  body:has(.admin-property-form) .foto-thumb-remove {
    width: 16px;
    height: 16px;
    font-size: 11px;
    top: -5px;
    right: -5px;
  }

  .admin-property-form img:not(.icon-form):not(.icon-inline):not(.foto-thumb img) {
    width: 56px !important;
    height: 46px !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }

  body:has(.admin-property-form) :is(.form-group, .upload-box):has(input[type="file"]) :is(label, .upload-box-head, b, strong, span, small) {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
}
  /* =====================================================
   MOBILE ONLY — Popup konfirmasi (Hapus Properti?) versi kecil
   ===================================================== */
@media (max-width: 767px) {

  .modal-box {
    width: 78%;
    max-width: 270px;
    padding: 16px 14px;
    border-radius: 14px;
  }

  .modal-box .modal-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 10px;
    font-size: 18px;
  }
  .modal-box .modal-icon svg,
  .modal-box .modal-icon img {
    width: 18px;
    height: 18px;
  }

  .modal-box h3 {
    font-size: 12px;
    margin: 0 0 6px;
  }

  .modal-box p {
    font-size: 9px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .modal-actions {
    gap: 8px;
  }
  .modal-actions .btn {
    padding: 7px 10px;
    font-size: 9px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* =====================================================
   MOBILE ONLY — Filter dengan 1 dropdown (mis. Agen Aktif):
   "Semua Status" + tombol "Cari" dalam 1 baris
   ===================================================== */
@media (max-width: 767px) {

  .admin-filter-bar:has(select.form-control:only-of-type) select.form-control {
    flex: 1.4 1 0;
    min-width: 0;
  }

  .admin-filter-bar:has(select.form-control:only-of-type) .btn-primary,
  .admin-filter-bar:has(select.form-control:only-of-type) button[type="submit"] {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}
@media (max-width: 767px) {
  .admin-filter-bar .admin-search-input input,
  .admin-filter-bar .admin-search-input input::placeholder {
    font-size: 11px !important;
  }
}
@media (max-width: 767px) {
  .admin-filter-bar select.form-control {
    font-size: 11px !important;
  }

  .admin-filter-bar .btn,
  .admin-filter-bar button[type="submit"] {
    font-size: 11.5px !important;
  }

    body:has(.admin-filter-bar select.form-control:only-of-type)
  .admin-table-card table.data-table td img:not(.icon-btn img):not(.action-icons img) {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: none !important;
    flex: 0 0 28px;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .admin-table-card table.data-table td,
  .admin-table-card table.data-table td *:not(img):not(svg) {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
}

 /* =====================================================
   MOBILE ONLY — Form Edit Profil (admin) versi kecil
   Berlaku untuk form di dalam .admin-main,
   ===================================================== */
@media (max-width: 767px) {

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) :has(> .form-group) {
    column-gap: 10px !important;
    row-gap: 0 !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .form-group {
    margin-bottom: 8px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .form-group label,
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .form-control,
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) select,
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) textarea {
    font-size: 10.5px !important;
    min-height: 30px !important;
    height: 30px !important;
    padding: 5px 10px !important;
    border-width: 1px !important;
  }
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) textarea {
    height: auto !important;
    min-height: 64px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) img {
    width: 34px !important;
    height: 34px !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input[type="file"] {
    font-size: 9.5px !important;
    max-width: 100%;
  }
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input[type="file"]::file-selector-button {
    padding: 5px 14px !important;
    font-size: 10.5px !important;
    margin-right: 8px;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .btn {
    padding: 6px 16px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 767px) {

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .form-control,
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) select {
    font-size: 9.5px !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 3px 9px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .form-group {
    margin-bottom: 6px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form)
  *:not(label):not(input):not(select):not(textarea):not(button):not(.btn):not(option):not(img):not(svg):not(path) {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input[type="file"] {
    font-size: 9px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input[type="file"]::file-selector-button {
    padding: 4px 12px !important;
    font-size: 9.5px !important;
    margin-right: 6px;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label[class*="btn"],
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label[class*="file"],
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) button {
    padding: 4px 12px !important;
    font-size: 9.5px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) img {
    width: 30px !important;
    height: 30px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .btn {
    padding: 5px 14px !important;
    font-size: 10px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Tombol Batal & Simpan lurus dengan kolom isian
   (form Edit Profil admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) :has(> .btn) {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: stretch !important;
    gap: 10px !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) .btn,
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) button[type="submit"] {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 6px 10px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Foto profil lebih besar, tombol "Pilih File" 
   ===================================================== */
@media (max-width: 767px) {

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) img {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
    aspect-ratio: 1 / 1;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) input[type="file"]::file-selector-button {
    padding: 3px 9px !important;
    font-size: 8.5px !important;
    border-width: 1px !important;
    margin-right: 6px;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label[class*="btn"],
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) label[class*="file"],
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) button[type="button"] {
    padding: 3px 9px !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    border-width: 1px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Baris foto profil (member-form.php):
   foto di kiri, tombol "Pilih File" di atas, tulisan file di bawahnya
   ===================================================== */
@media (max-width: 767px) {

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) div:has(> .mf-filename) {
    display: grid !important;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px !important;
    row-gap: 3px !important;
    align-items: center !important;
    width: auto !important;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) div:has(> .mf-filename) > img {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) div:has(> .mf-filename) > label {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    align-self: end;
    flex: none !important;
  }
  .admin-main form:not(.admin-filter-bar):not(.admin-property-form) div:has(> .mf-filename) > .mf-filename {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  #ageAuto {
    font-size: 9px !important;
  }
}

@media (max-width: 767px) {
 .admin-main form:not(.admin-filter-bar):not(.admin-property-form) div:has(> .mf-filename) > label {
    min-width: 110px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    justify-content: center;
    text-align: center;
  } 
}

/* =====================================================
   MOBILE ONLY — Halaman "Pengajuan Berhasil Dikirim" (daftar agen)
   ===================================================== */
@media (max-width: 767px) {

  .pa-wrap {
    padding: 20px 12px;
  }

  .pa-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
  }
  .pa-success-icon img {
    width: 56px;
    height: 56px;
  }

  .pa-success h1 {
    font-size: 15px;
    line-height: 1.25;
    margin: 0 0 8px;
  }
  .pa-success p,
  .pa-success > p {
    font-size: 9px;
    line-height: 1.6;
    max-width: 100%;
  }

  .pa-next-step {
    gap: 10px;
    margin: 20px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .pa-next-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }
  .pa-next-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  .pa-next-step > div:last-child {
    padding-left: 10px;
    border-left-width: 1.5px;
  }

  .pa-next-step h2 {
    font-size: 12px;
    margin: 0 0 3px;
  }

  .pa-next-step p {
    font-size: 8px;
    line-height: 1.5;
  }
}

/* =====================================================
   MOBILE ONLY — Form Pengajuan Agen CASA (daftar-agen.php)
   ===================================================== */
@media (max-width: 767px) {

  .pa-wrap {
    padding: 16px 10px;
    min-height: 0;
  }

  .pa-card {
    border-radius: 12px;
  }

  .pa-card .pa-head {
    padding: 12px 16px 10px;
  }
  .pa-card .pa-head h1 {
    font-size: 14px;
    line-height: 1.25;
    margin: 0 0 2px;
  }
  .pa-card .pa-head p {
    font-size: 8px;
    line-height: 1.4;
  }

  .pa-card:not(.pa-card-success) .pa-body {
    padding: 14px 16px 18px;
  }

  .pa-card .pa-grid-2,
  .pa-card .pa-grid-3 {
    gap: 0 10px;
  }

  .pa-card .form-group {
    margin-bottom: 8px;
  }

  .pa-card .form-group label {
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 3px;
  }

  .pa-card .form-control,
  .pa-card .pa-input {
    font-size: 11px;
    min-height: 0;
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    border-width: 1px;
  }
  .pa-card textarea.form-control,
  .pa-card textarea.pa-input {
    height: auto;
    min-height: 60px;
    padding: 7px 10px;
  }
  .pa-card select.form-control,
  .pa-card select.pa-input {
    padding: 0 10px;
  }

  .pa-card input[type="file"] {
    font-size: 9px;
    height: auto;
    padding: 0;
  }
  .pa-card input[type="file"]::file-selector-button {
    padding: 4px 10px;
    font-size: 9px;
    margin-right: 6px;
  }

  .pa-card .alert {
    font-size: 10px;
    line-height: 1.45;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 7px;
  }
  .pa-card .form-error {
    font-size: 9px;
    margin: -4px 0 8px;
  }

  .pa-card .form-note {
    font-size: 9px;
    padding: 8px 10px;
    margin: 8px 0;
    border-radius: 7px;
  }

  /* Tombol kirim */
  .pa-card .pa-submit {
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 7px;
    margin-top: 2px;
  }
}

@media (max-width: 767px) {

  /* Tombol "Pilih File" */
  .pa-card label[class*="btn"],
  .pa-card label[class*="file"],
  .pa-card .btn-outline,
  .pa-card input[type="file"]::file-selector-button {
    padding: 4px 12px !important;
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
    height: auto !important;
    border-width: 1px !important;
    border-radius: 20px !important;
    gap: 4px !important;
  }

  .pa-card .mf-filename,
  .pa-card [class*="filename"],
  .pa-card [class*="file-name"],
  .pa-card input[type="file"] {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 767px) {
  .pa-wrap {
    min-height: 100vh;
    min-height: 100dvh; 
  }
}

/* =====================================================
   MOBILE ONLY — Halaman Detail Pengajuan Agen (admin)
   ===================================================== */
@media (max-width: 767px) {

  .admin-detail-card {
    padding: 12px 14px 16px;
    border-radius: 12px;
  }

  .admin-detail-head {
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  .admin-detail-head .adh-avatar {
    width: 44px;
    height: 44px;
    border-width: 1px;
  }
  .admin-detail-head .adh-info {
    flex: 1 1 100px;
    min-width: 0;
  }
  .admin-detail-head .adh-info h3 {
    font-size: 15px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }
  .admin-detail-head .adh-info span {
    font-size: 9.5px;
    line-height: 1.4;
  }

  .admin-detail-head .badge,
  .admin-detail-head [class*="badge"] {
    font-size: 9px;
    padding: 3px 10px;
    line-height: 1.3;
    text-align: center;
    flex-shrink: 0;
  }

  .admin-detail-grid {
    gap: 8px 8px;
    margin-bottom: 12px;
  }
  .admin-detail-grid .adg-item {
    gap: 1px;
  }
  .admin-detail-grid .adg-item b {
    font-size: 11px;
    line-height: 1.3;
  }
  .admin-detail-grid .adg-item span,
  .admin-detail-grid .adg-item a {
    font-size: 10px;
    line-height: 1.45;
  }

  .admin-detail-card .adc-doc-label {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .admin-detail-card .adc-doc {
    max-width: 150px;
    margin-bottom: 12px;
    border-radius: 6px;
  }
  .adc-doc-placeholder {
    max-width: 150px;
    min-height: 70px;
    font-size: 9.5px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .admin-detail-actions {
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .admin-detail-actions .btn,
  .btn-accept,
  .btn-reject {
    min-width: 90px;
    padding: 6px 14px;
    font-size: 10.5px;
    border-radius: 8px;
  }
}

/* =====================================================
   MOBILE ONLY — Detail Pengajuan Agen: label dan isi sebaris
   ===================================================== */
@media (max-width: 767px) {

  .admin-detail-grid .adg-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  .admin-detail-grid .adg-item > b {
    flex: 0 0 92px !important;
    display: flex !important;
    justify-content: space-between;
    padding-right: 6px;
    font-size: 11px;
  }

  .admin-detail-grid .adg-item > b::after {
    content: ":";
  }

  .admin-detail-grid .adg-item > :not(b) {
    flex: 1 1 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.45;
  }
}

/* Detail Pengajuan Agen: beri jarak label - titik dua - isi */
@media (max-width: 767px) {

  /* Kolom label lebih lebar, teks tidak boleh turun baris */
  .admin-detail-grid .adg-item > b {
    flex: 0 0 112px !important;
    white-space: nowrap;
    padding-right: 0 !important;
    justify-content: flex-start !important;
  }

  /* Titik dua: didorong ke ujung kanan kolom, dengan jarak dari label */
  .admin-detail-grid .adg-item > b::after {
    content: ":";
    margin-left: auto;
    padding-left: 10px;   /* jarak label ke titik dua */
    padding-right: 8px;   /* jarak titik dua ke isi */
  }
}

/* =====================================================
   MOBILE ONLY — Detail Pengajuan (admin): daftar data dikecilkan
   Ubah 2 angka di bawah untuk mengatur ukuran:
   --dk-label = tulisan hitam, --dk-isi = tulisan abu-abu
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  .admin-detail-card {
    --dk-label: 8px;
    --dk-isi: 7.5px;
    padding: 8px 10px 12px !important;
    border-radius: 10px !important;
  }

  /* ---------- Kepala: judul + badge + tanggal ---------- */
  .admin-detail-head {
    gap: 6px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap;
  }
  .admin-detail-head .adh-info h3 {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
  .admin-detail-head .adh-info span {
    font-size: 7.5px !important;
    line-height: 1.3 !important;
  }
  .admin-detail-head .badge,
  .admin-detail-head [class*="badge"] {
    font-size: 7px !important;
    padding: 2px 7px !important;
  }

  /* ---------- Foto ---------- */
  .admin-detail-card img:not(.adh-avatar img) {
    max-width: 150px !important;
    max-height: 95px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin-bottom: 6px;
  }

  /* ---------- Daftar data: SEMUA teks di dalamnya (termasuk Deskripsi) ---------- */
  .admin-detail-grid {
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  .admin-detail-card .adg-item,
  .admin-detail-card .adg-item * {
    font-size: var(--dk-isi) !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere;
  }

  .admin-detail-card .adg-item > b {
    flex: 0 0 76px !important;
    font-size: var(--dk-label) !important;
    white-space: nowrap;
  }
  .admin-detail-card .adg-item > b::after {
    padding-left: 4px !important;
    padding-right: 6px !important;
  }

  /* ---------- Paragraf, dokumen ---------- */
  .admin-detail-card p {
    font-size: var(--dk-isi) !important;
    line-height: 1.4 !important;
  }
  .admin-detail-card .adc-doc-label {
    font-size: 8.5px !important;
    margin-bottom: 4px !important;
  }
  .adc-doc-placeholder {
    max-width: 110px;
    min-height: 50px;
    font-size: 8px;
  }

  /* ---------- Tombol Terima / Tolak ---------- */
  .admin-detail-actions {
    gap: 6px !important;
    margin-top: 6px !important;
  }
  .admin-detail-actions .btn,
  .btn-accept,
  .btn-reject {
    min-width: 70px !important;
    padding: 4px 10px !important;
    font-size: 8.5px !important;
    border-radius: 6px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Detail Pengajuan (agen & properti):
   ukuran daftar data DISAMAKAN
   ===================================================== */
@media (max-width: 767px) {

  .admin-detail-grid {
    gap: 8px !important;
  }
  body .admin-detail-grid .adg-item,
  body .admin-detail-grid .adg-item * {
    font-size: 10px !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  body .admin-detail-grid .adg-item > b {
    flex: 0 0 112px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  body .admin-detail-grid .adg-item > b::after {
    padding-left: 10px !important;
    padding-right: 8px !important;
  }
}

@media (max-width: 767px) {

  .admin-detail-card:not(:has(.adh-avatar)) {
    zoom: 0.7;
  }
}

@media (max-width: 767px) {

  .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head {
    zoom: 1.25;  
  }
}

@media (max-width: 767px) {

  .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head .adh-info h3 {
    font-size: 17px !important;
    line-height: 1.25 !important;
  }
  .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head .adh-info span {
    font-size: 9px !important;
  }

  .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head .badge,
  .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head [class*="badge"] {
    display: inline-block;
    font-size: 10px !important;
    padding: 5px 14px !important;
    transform: translateY(6px);   /* turun sedikit */
  }
}

@media (max-width: 767px) {

  html body .admin-detail-card:not(:has(.adh-avatar)) img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 767px) {

  html body .admin-detail-card:not(:has(.adh-avatar)) img {
    width: 50% !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin: 0 0 10px 0 !important;
  }
}

@media (max-width: 767px) {

  html body .admin-detail-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .admin-detail-grid .adg-item,
  html body .admin-detail-grid .adg-item * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  html body .admin-detail-grid .adg-item > :not(b) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

  html body .admin-detail-card { overflow-x: hidden; }

  /* =====================================================
   MOBILE ONLY — Detail Pengajuan: teks panjang PASTI turun ke bawah
   ===================================================== */
@media (max-width: 767px) {
  html body .admin-detail-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body .admin-detail-grid .adg-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  html body .admin-detail-grid .adg-item > :not(b) {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  html body .admin-detail-grid .adg-item > b {
    flex: 0 0 112px !important;
    white-space: nowrap !important;
  }
}

/* =====================================================
   MOBILE ONLY — Detail Pengajuan: teks panjang WAJIB turun, tidak melebihi layar
   ===================================================== */
@media (max-width: 767px) {
  html body .admin-shell,
  html body .admin-content,
  html body .admin-main {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body .admin-detail-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .admin-detail-grid,
  html body .admin-detail-grid *,
  html body .accord-detail-grid,
  html body .accord-detail-grid * {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
  }

  html body .admin-detail-grid .adg-item {
    display: flex !important;
    width: 100% !important;
  }

  html body .admin-detail-grid .adg-item > b {
    flex: 0 0 112px !important;
    min-width: 112px !important;
    max-width: none !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  html body .admin-detail-grid .adg-item > :not(b) {
    flex: 1 1 0 !important;
  }
}


/* =====================================================
   MOBILE ONLY — Detail Pengajuan PROPERTI: daftar data (.ppd-row)
   ===================================================== */
@media (max-width: 767px) {

  html body .ppd-list {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    gap: 7px !important;
  }

  html body .ppd-row {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body .ppd-row b {
    flex: 0 0 135px !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    white-space: nowrap !important;
  }
  html body .ppd-row.align-top b[style*="min-width"] {
    flex: 0 0 150px !important;
  }

  html body .ppd-row .ppd-colon {
    margin-right: 10px !important;
  }

  html body .ppd-row .ppd-val {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  } 

  html body .ppd-desc-row .ppd-val {
    font-size: 15px !important;
  }
}

@media (max-width: 767px) {

  html body .admin-detail-card:not(:has(.adh-avatar)) .admin-detail-head .adh-info h3 {
    font-size: 15px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Popup notifikasi (lonceng) dikecilkan
   ===================================================== */
@media (max-width: 767px) {

  html body .notif-dropdown {
    left: auto;
    right: 8px;
    width: min(290px, calc(100vw - 16px));
    border-radius: 10px;
  }

  .notif-dropdown-head {
    padding: 8px 12px;
  }
  .notif-dropdown-head b {
    font-size: 11px;
  }
  .notif-mark-all-btn {
    font-size: 8.5px;
  }

  /* Daftar notifikasi */
  .notif-dropdown-list {
    max-height: 300px;
  }
  .notif-empty {
    padding: 20px 12px;
    font-size: 10px;
  }

  /* Satu notifikasi */
  .notif-item {
    gap: 8px;
    padding: 8px 12px;
  }
  .notif-item-icon {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
  .notif-item-icon img,
  .notif-item-icon svg {
    width: 14px;
    height: 14px;
  }
  .notif-item-body {
    gap: 1px;
  }
  .notif-item-body b {
    font-size: 10px;
    line-height: 1.3;
  }
  .notif-item-body > span {
    font-size: 8.5px;
  }
  .notif-item-time {
    font-size: 7.5px !important;
  }
  .notif-item-dot {
    top: 11px;
    right: 10px;
    width: 6px;
    height: 6px;
  }

  .notif-see-all {
    padding: 8px;
    font-size: 9.5px;
  }
}

@media (max-width: 767px) {

  html body .notif-dropdown {
    width: min(210px, calc(100vw - 16px));
    right: 6px;
  }

  html body .notif-item {
    gap: 6px;
    padding: 7px 10px;
  }
  html body .notif-dropdown-head {
    padding: 7px 10px;
  }
}

  html body .notif-item-body > span {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

@media (max-width: 767px) {

  html body .notif-dropdown-list {
    max-height: 210px;
  }

  html body .notif-item {
    padding: 5px 10px;
  }
  html body .notif-item-body {
    gap: 0;
  }
  html body .notif-item-body b,
  html body .notif-item-body > span {
    line-height: 1.25;
  }

  html body .notif-dropdown-head {
    padding: 5px 10px;
  }
  html body .notif-see-all {
    padding: 5px;
  }
}

/* =====================================================
   MOBILE ONLY — Popup profil (klik foto profil) dikecilkan
   ===================================================== */
@media (max-width: 767px) {

  /* ---------- Kotak popup ---------- */
  html body .avatar-dropdown-agent {
    width: 250px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    padding: 12px 12px 14px !important;
    border-radius: 12px !important;
  }

  html body .avatar-dropdown-agent .aac-top {
    gap: 10px !important;
    align-items: center !important;
  }
  html body .avatar-dropdown-agent .aac-photo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }
  html body .avatar-dropdown-agent .aac-info {
    padding-top: 0 !important;
  }
  html body .avatar-dropdown-agent .aac-info h2 {
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.3px !important;
  }
  html body .avatar-dropdown-agent .aac-info p {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    margin: 2px 0 0 !important;
  }
  html body .avatar-dropdown-agent .aac-info .aac-id {
    font-size: 8px !important;
    margin-top: 3px !important;
  }

  html body .avatar-dropdown-agent .aac-btn-row {
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  html body .avatar-dropdown-agent .aac-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 4px !important;
    font-size: 9.5px !important;
    border-width: 1px !important;
    border-radius: 6px !important;
  }
  html body .avatar-dropdown-agent .aac-btn-icon {
    width: 10px !important;
    height: 10px !important;
    margin-right: 3px !important;
  }

  html body .avatar-dropdown-agent .aac-divider {
    margin: 10px 0 10px !important;
    border-top-width: 1px !important;
  }

  html body .avatar-dropdown-agent .aac-section-head h3 {
    font-size: 11px !important;
    margin: 0 0 2px !important;
  }
  html body .avatar-dropdown-agent .aac-section-head p {
    font-size: 8px !important;
    margin: 0 0 6px !important;
  }
  html body .avatar-dropdown-agent .aac-card {
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 0 8px !important;
    padding: 4px 8px !important;
    gap: 6px !important;
    border-width: 1px !important;
    border-radius: 7px !important;
  }
  html body .avatar-dropdown-agent .aac-card-icon {
    width: 22px !important;
    min-width: 22px !important;
    font-size: 14px !important;
  }
  html body .avatar-dropdown-agent .aac-card-text b {
    font-size: 11px !important;
  }
  html body .avatar-dropdown-agent .aac-card-text span {
    font-size: 8px !important;
  }
  html body .avatar-dropdown-agent .aac-card-arrow {
    width: 10px !important;
    min-width: 10px !important;
    font-size: 15px !important;
  }

  /* ---------- Tombol Log Out ---------- */
  html body .avatar-dropdown-agent .aac-logout {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 7px !important;
  }
}
@media (max-width: 767px) {

  html body .avatar-dropdown-agent .aac-btn-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    gap: 6px !important;
  }

  html body .avatar-dropdown-agent .aac-btn {
    flex: 0 0 auto !important;
    width: 130px !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
  }
}

@media (max-width: 767px) {

  html body .avatar-dropdown-agent .aac-top {
    align-items: flex-start !important;
  }

  html body .avatar-dropdown-agent .aac-btn-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 5px !important;
    margin: -6px 0 0 68px !important;
    width: calc(100% - 68px) !important;
  }

  html body .avatar-dropdown-agent .aac-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
  }
}

@media (max-width: 767px) {

  html body .profile-modal-box.profile-modal-box {
    width: 86%;
    max-width: 320px;
    padding: 16px 16px 18px;
    border-radius: 14px;
    max-height: 82vh;
  }

  html body .profile-modal-box.profile-modal-box .profile-modal-close {
    top: 10px;
    right: 14px;
    font-size: 13px;
  }

  html body .profile-modal-box.profile-modal-box .pm-head {
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    padding-right: 18px; 
  }
  html body .profile-modal-box.profile-modal-box .pm-head img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-width: 1.5px;
  }

  html body .profile-modal-box.profile-modal-box .pm-head-info {
    flex: 1 1 0;
    min-width: 0;
  }
  html body .profile-modal-box.profile-modal-box .pm-head-info h2 {
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }
  html body .profile-modal-box.profile-modal-box .pm-head-info p {
    font-size: 9.5px;
    line-height: 1.3;
    margin: 1px 0 0;
    overflow-wrap: normal;
    word-break: normal;
  }
  html body .profile-modal-box.profile-modal-box .pm-head .btn,
  html body .profile-modal-box.profile-modal-box .pm-head .btn-edit-trigger {
    flex: 0 0 auto;
    width: auto;
    padding: 5px 10px;
    font-size: 9.5px;
    gap: 4px;
    border-radius: 20px;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  html body .profile-modal-box.profile-modal-box .pm-row {
    padding: 7px 0;
    gap: 8px;
  }
  html body .profile-modal-box.profile-modal-box .pm-row .pm-ic {
    margin-top: 1px;
  }
  html body .profile-modal-box.profile-modal-box .pm-row .pm-ic img,
  html body .profile-modal-box.profile-modal-box .pm-row .pm-ic svg {
    width: 12px;
    height: 12px;
  }
  html body .profile-modal-box.profile-modal-box .pm-row label {
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 1px;
  }
  html body .profile-modal-box.profile-modal-box .pm-row span {
    font-size: 9.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  html body .profile-modal-box.profile-modal-box .pm-edit-grid {
    gap: 0 8px;
  }
  html body .profile-modal-box.profile-modal-box .form-group {
    margin-bottom: 7px;
  }
  html body .profile-modal-box.profile-modal-box .form-group label {
    font-size: 9.5px;
    line-height: 1.3;
    margin-bottom: 2px;
  }
  html body .profile-modal-box.profile-modal-box .form-control,
  html body .profile-modal-box.profile-modal-box input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
  html body .profile-modal-box.profile-modal-box select {
    font-size: 10px;
    height: 28px;
    min-height: 0;
    padding: 0 9px;
    border-radius: 7px;
    border-width: 1px;
  }
  html body .profile-modal-box.profile-modal-box textarea.form-control {
    height: auto;
    min-height: 56px;
    padding: 6px 9px;
    font-size: 10px;
  }

  html body .profile-modal-box.profile-modal-box .pm-photo-row {
    gap: 10px;
    margin-bottom: 8px;
  }
  html body .profile-modal-box.profile-modal-box .pm-photo-row img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-width: 1.5px;
  }
  html body .profile-modal-box.profile-modal-box input[type="file"] {
    font-size: 9px;
    height: auto;
    padding: 0;
  }
  html body .profile-modal-box.profile-modal-box input[type="file"]::file-selector-button {
    padding: 3px 10px;
    font-size: 9px;
    margin-right: 6px;
  }

  html body .profile-modal-box.profile-modal-box form .btn,
  html body .profile-modal-box.profile-modal-box button[type="submit"] {
    padding: 6px 14px;
    font-size: 10.5px;
    border-radius: 20px;
  }
}

/* =====================================================
   MOBILE ONLY — Tombol "Batal" & "Simpan Perubahan"
   di popup Edit Profil (admin) dikecilkan
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  html body .profile-modal-box.profile-modal-box.profile-modal-box :has(> .btn) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body .profile-modal-box.profile-modal-box.profile-modal-box .btn,
  html body .profile-modal-box.profile-modal-box.profile-modal-box button[type="submit"],
  html body .profile-modal-box.profile-modal-box.profile-modal-box button[type="button"]:not(.profile-modal-close) {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

@media (max-width: 767px) {

  html body .profile-modal-box.profile-modal-box.profile-modal-box :has(> .btn) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: stretch !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body .profile-modal-box.profile-modal-box.profile-modal-box .btn,
  html body .profile-modal-box.profile-modal-box.profile-modal-box button[type="submit"],
  html body .profile-modal-box.profile-modal-box.profile-modal-box button[type="button"]:not(.profile-modal-close) {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* =====================================================
   MOBILE ONLY — Popup Edit Profil (admin):
   Foto di kiri | tombol "Ubah Foto" di atas, tulisan format di bawahnya
   ===================================================== */
@media (max-width: 767px) {

  /* Baris foto */
  html body .profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  html body .profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row :has(> .btn) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
  }

  html body .profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 4px 12px !important;
    font-size: 9.5px !important;
    white-space: nowrap !important;
  }

  html body .profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row :has(> .btn) > :not(.btn):not(input) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 8.5px !important;
    line-height: 1.3 !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

@media (max-width: 767px) {

  html body .profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    max-width: none !important;
    flex: 0 0 70px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    border-radius: 50% !important;
    border-width: 2px !important;
  }
}

@media (max-width: 767px) {

  html body .admin-stat-grid {
    margin: 0 0 10px !important;
    padding-bottom: 0 !important;
    row-gap: 10px !important;
  }

  html body .admin-stat-grid + .admin-stat-grid {
    margin-top: 0 !important;
  }
}

/* =====================================================
   MOBILE ONLY — Tombol "Pasang Iklan" (role agen):
   tampil di dalam panel menu hamburger, hanya saat menu dibuka
   Tanpa mengubah HTML. Desktop tidak berubah.
   ===================================================== */
@media (max-width: 768px) {
  html body .navbar-actions > a[href*="pasang"] {
    display: none !important;
  }

  html body:has(.nav-links.mobile-open) .navbar-actions > a[href*="pasang"] {
    display: inline-flex !important;
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    width: calc(75% - 48px) !important;  
    max-width: 252px !important;
    z-index: 450 !important; 
    margin: 0 !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 30px !important;
    background: var(--ungu-tua) !important;
    color: #fff !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap !important;
  }
}

/* =====================================================
   MOBILE ONLY — Navbar role agen:
   1) Lonceng notifikasi disamakan ukurannya dengan yang di admin
   2) Foto profil memenuhi lingkaran avatar (tidak kecil / berbingkai putih)
   ===================================================== */
@media (max-width: 768px) {

  html body .navbar-actions .notif-bell-btn {
    width: 30px !important;
    height: 30px !important;
  }
  html body .navbar-actions .notif-bell-btn svg,
  html body .navbar-actions .notif-bell-btn img {
    width: 18px !important;
    height: 18px !important;
  }
  html body .navbar-actions .notif-badge {
    min-width: 15px !important;
    height: 15px !important;
    font-size: 9px !important;
    top: 0 !important;
    right: 0 !important;
    border-width: 1.5px !important;
  }
  html body .navbar-actions .avatar-circle {
    overflow: hidden !important;
    padding: 0 !important;
  }
  html body .navbar-actions .avatar-circle img,
  html body .navbar-actions .avatar-circle img.avatar-image {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
  }
}

/* =====================================================
   MOBILE ONLY — Wizard "Pasang Iklan" (Kategori / Spesifikasi / Harga)
   ===================================================== */
@media (max-width: 767px) {
  html body .wizard-layout {
    gap: 14px !important;
  }
  html body .content-wrap .wizard-page-title,
  html body .wizard-page-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 12px !important;
  }
  html body .wizard-section-label {
    font-size: 12px !important;
    margin: 14px 0 8px !important;
  }

  html body .step-sidebar-card {
    padding: 12px 14px !important;
    border-width: 1.5px !important;
    border-radius: 14px !important;
  }
  html body .step-sidebar-title {
    font-size: 14px !important;
    margin: 0 0 8px !important;
  }
  html body .step-item {
    gap: 10px !important;
    padding: 6px 2px !important;
  }
  html body .step-num {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 12px !important;
  }
  html body .step-label {
    font-size: 13px !important;
  }
  html body .step-item.is-active::after {
    right: -9px !important;
    width: 5px !important;
    height: 34px !important;
    border-radius: 4px !important;
  }

  html body .wizard-layout .form-group {
    margin-bottom: 10px !important;
  }
  html body .wizard-layout .form-group label {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  html body .wizard-layout .form-control {
    min-height: 34px !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
  }
  html body .wizard-layout .input-wrap .form-control {
    padding-left: 30px !important;
  }
  html body .wizard-layout textarea.form-control {
    min-height: 70px !important;
  }
  html body .wizard-layout .icon-form,
  html body .wizard-layout .input-wrap .ic img {
    width: 15px !important;
    height: 15px !important;
  }
  html body .wizard-layout .form-note {
    font-size: 10px !important;
    padding: 8px 10px !important;
  }

  html body .wizard-price-box {
    padding: 12px !important;
    border-radius: 12px !important;
  }
  html body .wizard-price-box label {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  html body .pill-group {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }
  html body .pill-btn,
  html body #propertyTypeGroup .pill-btn,
  html body #transactionTypeGroup .pill-btn,
  html body #developerStatusGroup .pill-btn,
  html body #certificateGroup .pill-btn,
  html body #conditionGroup .pill-btn,
  html body #furnitureGroup .pill-btn {
    padding: 8px 6px !important;
    font-size: 10.5px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
    line-height: 1.25 !important;
  }

  html body #propertyTypeGroup.pill-group {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  html body #certificateGroup.pill-group {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  html body #conditionGroup.pill-group {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  html body #furnitureGroup.pill-group {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  html body #transactionTypeGroup.pill-group,
  html body #developerStatusGroup.pill-group {
    gap: 6px !important;
  }
  html body #transactionTypeGroup .pill-btn,
  html body #developerStatusGroup .pill-btn {
    flex: 1 1 0 !important;
    width: auto !important;
  }

  html body .qty-row {
    padding: 8px 0 !important;
    font-size: 11px !important;
  }
  html body .qty-control {
    gap: 10px !important;
  }
  html body .qty-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 16px !important;
  }
  html body .qty-val {
    min-width: 18px !important;
    font-size: 12px !important;
  }

  html body .upload-box {
    padding: 12px !important;
    margin-top: 14px !important;
    border-radius: 12px !important;
  }
  html body .upload-box-head {
    font-size: 10px !important;
    margin-bottom: 8px !important;
  }
  html body .upload-dropzone {
    padding: 20px 10px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
  }
  html body .upload-dropzone .icon {
    font-size: 22px !important;
    margin-bottom: 6px !important;
  }
  html body .foto-preview-grid {
    gap: 8px !important;
    margin-top: 10px !important;
  }
  html body .foto-thumb {
    width: 70px !important;
    height: 58px !important;
  }
  html body .foto-thumb-remove {
    width: 18px !important;
    height: 18px !important;
    font-size: 13px !important;
    top: -6px !important;
    right: -6px !important;
    border-width: 1.5px !important;
  }

  html body .wizard-next-btn,
  html body .wizard-back-btn,
  html body .upload-submit-btn {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 24px !important;
  }
  html body .wizard-next-btn {
    margin-top: 14px !important;
  }
  html body .upload-submit-btn {
    margin-top: 10px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Kotak "Tahapan Pasang Iklan" dikecilkan lagi
   ===================================================== */
@media (max-width: 767px) {

  /* Kotak pembungkus */
  html body .step-sidebar-card {
    padding: 9px 12px !important;
    border-width: 1px !important;
    border-radius: 12px !important;
  }

  html body .step-sidebar-card .step-sidebar-title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
  }

  html body .step-sidebar-card .step-item {
    gap: 8px !important;
    padding: 3px 2px !important;
  }

  html body .step-sidebar-card .step-num {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    font-size: 9.5px !important;
  }

  html body .step-sidebar-card .step-label {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  html body .step-sidebar-card .step-item.is-active::after {
    right: -8px !important;
    width: 4px !important;
    height: 22px !important;
    border-radius: 3px !important;
  }
}

@media (max-width: 767px) {

  html body .wizard-layout.layout-2col {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  html body .wizard-layout.layout-2col > *:not(.step-sidebar-card) {
    min-width: 0 !important;
  }

  html body .wizard-layout .step-sidebar-card {
    position: static !important;
    padding: 8px 4px !important;
    border-width: 1px !important;
    border-radius: 12px !important;
    text-align: center !important;
  }
  html body .wizard-layout .step-sidebar-card .step-sidebar-title {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    margin: 0 0 6px !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html body .wizard-layout .step-sidebar-card .step-item {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 7px 0 !important;
    text-align: center !important;
  }
  html body .wizard-layout .step-sidebar-card .step-num {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    font-size: 10px !important;
  }
  html body .wizard-layout .step-sidebar-card .step-label {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html body .wizard-layout .step-sidebar-card .step-item.is-active::after {
    right: -7px !important;
    width: 4px !important;
    height: 28px !important;
    border-radius: 3px !important;
  }

  html body .pill-btn,
  html body #propertyTypeGroup .pill-btn,
  html body #transactionTypeGroup .pill-btn,
  html body #developerStatusGroup .pill-btn,
  html body #certificateGroup .pill-btn,
  html body #conditionGroup .pill-btn,
  html body #furnitureGroup .pill-btn {
    padding: 7px 3px !important;
    font-size: 10px !important;
  }
  html body .wizard-page-title {
    overflow-wrap: normal !important;
  }
}

@media (max-width: 767px) {

  html body .wizard-layout .step-sidebar-card .step-item {
    flex-direction: column-reverse !important;
    gap: 4px !important;
  }
}

@media (max-width: 767px) {

  html body .wizard-layout.layout-2col {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }
}

@media (max-width: 767px) {

  html body .pill-btn,
  html body #propertyTypeGroup .pill-btn,
  html body #transactionTypeGroup .pill-btn,
  html body #developerStatusGroup .pill-btn,
  html body #certificateGroup .pill-btn,
  html body #conditionGroup .pill-btn,
  html body #furnitureGroup .pill-btn {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    white-space: normal !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  html body #propertyTypeGroup.pill-group,
  html body #certificateGroup.pill-group,
  html body #conditionGroup.pill-group,
  html body #furnitureGroup.pill-group {
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important;
  }
} 

@media (max-width: 767px) {

  html body .wizard-layout .wizard-section-label :is(span, small, em, i, font),
  html body .wizard-layout label :is(span, small, em, i, font),
  html body .wizard-layout .form-group > :is(h1, h2, h3, h4, h5, h6, label) :is(span, small, em, i, font) {
    font-size: 9px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
  }
}
@media (max-width: 767px) {

  html body .wizard-layout .btn,
  html body .wizard-layout button.btn,
  html body .wizard-layout label.btn,
  html body .wizard-layout .wizard-next-btn,
  html body .wizard-layout .wizard-back-btn,
  html body .wizard-layout .upload-submit-btn {
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 14px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
    gap: 5px !important;
  }

  html body .wizard-layout .btn img,
  html body .wizard-layout .btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  html body .wizard-layout .wizard-next-btn {
    margin-top: 10px !important;
  }
  html body .wizard-layout .upload-submit-btn {
    margin-top: 8px !important;
  }
}
@media (max-width: 767px) {

  /* Kotak isian & dropdown: lebih tipis */
  html body .wizard-layout.layout-2col .form-group .form-control,
  html body .wizard-layout.layout-2col .form-group input.form-control,
  html body .wizard-layout.layout-2col .form-group select.form-control {
    height: 28px !important;
    min-height: 0 !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    line-height: 1.2 !important;
  }

  html body .wizard-layout.layout-2col .form-group textarea.form-control {
    height: auto !important;
    min-height: 60px !important;
  }

  html body .wizard-layout.layout-2col .form-group label {
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  html body .wizard-layout.layout-2col .form-group {
    margin-bottom: 8px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Halaman Pasang Iklan:
   ===================================================== */
@media (max-width: 767px) {

  html body .wizard-layout.layout-2col .form-group textarea.form-control,
  html body .wizard-layout.layout-2col textarea.form-control {
    display: block !important;     
    height: auto !important;
    min-height: 110px !important;
  }

  html body .wizard-layout.layout-2col .form-group:has(textarea) {
    margin-bottom: 4px !important;
  }

  html body .wizard-layout.layout-2col .wizard-next-btn {
    margin-top: 2px !important;
  }
}

@media (max-width: 767px) {

  html body .wizard-price-box :has(> select.form-control) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  html body .wizard-price-box :has(> select.form-control) > select.form-control {
    flex: 0 0 84px !important;
    width: 84px !important;
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 6px !important;
    font-size: 11px !important;
  }

  html body .wizard-price-box :has(> select.form-control) > :not(select) {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html body .wizard-price-box :has(> select.form-control) > :not(select) .form-control,
  html body .wizard-price-box :has(> select.form-control) > input.form-control {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 767px) {
  html body .wizard-price-box :has(> select.form-control) {
    gap: 6px !important;
  }

  html body .wizard-price-box :has(> select.form-control) > select.form-control {
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    padding-left: 7px !important;
    padding-right: 4px !important;
    font-size: 10.5px !important;
  }

  html body .wizard-layout.layout-2col .wizard-price-box input.form-control {
    padding-left: 9px !important;
    padding-right: 6px !important;
    font-size: 10.5px !important;
    text-overflow: clip !important;
  }
  html body .wizard-price-box input.form-control::placeholder {
    font-size: 10px !important;
    opacity: 1;
  }
}

@media (max-width: 767px) {

  html body .wizard-price-box :has(> select.form-control) {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
    border: 1px solid var(--ungu-tua) !important;
    border-radius: 8px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html body .wizard-price-box :has(> select.form-control):focus-within {
    border-color: var(--biru) !important;
  }

  html body .wizard-price-box :has(> select.form-control) > :not(select) {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html body .wizard-price-box :has(> select.form-control) input.form-control,
  html body .wizard-price-box :has(> select.form-control) > :not(select) .form-control {
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
  }

  html body .wizard-price-box :has(> select.form-control) > select.form-control {
    flex: 0 0 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    min-width: 0 !important;
    border: none !important;
    border-left: 1px solid var(--ungu-tua) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: #fff !important;
  }
}

@media (max-width: 767px) {

  html body .wizard-price-box {
    padding: 6px 10px !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 12px !important;
  }

  html body .wizard-price-box label {
    margin: 0 0 3px !important;
    line-height: 1.2 !important;
  }

  html body .wizard-price-box .form-group {
    margin-bottom: 0 !important;
  }

  html body .wizard-price-box :is(p, small, div, span):not(:has(input)):not(:has(select)) {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 767px) {

  html body .alert,
  html body .alert-success,
  html body .alert-error,
  html body .alert-danger,
  html body .alert-warning,
  html body .alert-info {
    padding: 6px 10px !important;
    margin-bottom: 8px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    border-radius: 8px !important;
  }

  html body .alert img,
  html body .alert svg {
    width: 12px !important;
    height: 12px !important;
  }
  html body .alert button,
  html body .alert .close {
    font-size: 12px !important;
    padding: 0 4px !important;
  }

  html body .form-error {
    font-size: 9px !important;
    line-height: 1.3 !important;
    margin-top: -4px !important;
    margin-bottom: 8px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Halaman "Iklan menunggu verifikasi / berhasil":
   versi JAUH LEBIH KECIL (menimpa blok sebelumnya)
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  html body .berhasil-section {
    padding: 14px 0 0 !important;
  }
  html body .berhasil-wrap {
    padding: 9px !important;
    border-width: 1px !important;
    border-radius: 10px !important;
  }

  html body .berhasil-check {
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
    border-width: 1px !important;
    margin: 0 auto 5px !important;
  }
  html body .berhasil-title {
    font-size: 11px !important;
    margin: 0 0 7px !important;
  }

  html body .berhasil-card {
    padding: 6px !important;
    gap: 6px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }
  html body .berhasil-card > img {
    height: 70px !important;
    border-radius: 6px !important;
  }
  html body .berhasil-card-info h2 {
    font-size: 10px !important;
    margin: 0 0 2px !important;
  }
  html body .berhasil-price {
    font-size: 9px !important;
    margin: 0 0 2px !important;
  }
  html body .berhasil-price .dot {
    margin: 0 3px !important;
  }
  html body .berhasil-loc {
    font-size: 8px !important;
    margin: 0 0 4px !important;
  }
  html body .berhasil-meta {
    font-size: 8.5px !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  html body .berhasil-meta img {
    width: 9px !important;
    height: 9px !important;
  }
  html body .berhasil-tayang-btn {
    padding: 3px 8px !important;
    font-size: 8.5px !important;
    border-radius: 5px !important;
  }

  html body .berhasil-next-card {
    padding: 7px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
  }
  html body .berhasil-next-card p {
    font-size: 9px !important;
    margin: 0 0 6px !important;
  }
  html body .berhasil-next-btn {
    padding: 3px 10px !important;
    font-size: 9px !important;
    margin-bottom: 6px !important;
  }
}

@media (max-width: 767px) {

  html body .berhasil-wrap {
    width: 78% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767px) {

  html body .berhasil-section {
    padding-top: 60px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Dashboard AGEN: semua isi dikecilkan
   ===================================================== */
@media (max-width: 767px) {

  html body:has(.iklan-summary-card) .content-wrap {
    padding-top: 14px !important;
    padding-bottom: 30px !important;
  }

  /* ---------- Kartu ringkasan ---------- */
  html body .iklan-summary-card {
    border-width: 1px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }
  html body .iklan-card-head {
    min-height: 0 !important;
    padding: 8px !important;
    gap: 6px !important;
    font-size: 12px !important;
    border-bottom-width: 1px !important;
  }
  html body .iklan-card-head .iklan-card-head-icon {
    width: 28px !important;
    height: 28px !important;
    border-width: 1.5px !important;
  }
  html body .iklan-card-head .iklan-card-head-icon img {
    width: 18px !important;
    height: 18px !important;
  }
  html body .iklan-stat-row .iklan-stat,
  html body .iklan-stat {
    min-height: 0 !important;
    padding: 8px 6px !important;
    gap: 2px !important;
  }
  html body .iklan-stat-left {
    border-right-width: 1px !important;
  }
  html body .iklan-stat-icon img {
    width: 18px !important;
    height: 18px !important;
  }
  html body .iklan-stat-label {
    font-size: 10px !important;
  }
  html body .iklan-stat b {
    font-size: 11px !important;
  }

  /* ---------- Kolom cari & tombol ---------- */
  html body:has(.iklan-summary-card) .content-wrap .form-control {
    height: 28px !important;
    min-height: 0 !important;
    padding: 3px 10px !important;
    font-size: 10.5px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
  }
  html body:has(.iklan-summary-card) .content-wrap .btn {
    height: auto !important;
    min-height: 0 !important;
    padding: 4px 14px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    border-radius: 20px !important;
  }

  /* ---------- Kartu daftar iklan ---------- */
  html body .listing-item-v2 {
    padding: 8px !important;
    border-width: 1px !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  html body .listing-item-v2 .liv2-top {
    gap: 8px !important;
  }
  html body .listing-item-v2 img {
    height: 90px !important;
    border-radius: 8px !important;
  }
  html body .listing-item-v2 h3 {
    font-size: 12px !important;
    margin: 0 0 2px !important;
  }
  html body .listing-item-v2 .price {
    font-size: 11px !important;
  }
  html body .listing-item-v2 .loc {
    font-size: 9px !important;
    margin: 2px 0 !important;
  }
  html body .listing-item-v2 .meta {
    font-size: 9px !important;
    gap: 8px !important;
    margin: 4px 0 !important;
  }
  html body .listing-item-v2 .meta img {
    width: 11px !important;
    height: 11px !important;
    border-radius: 0 !important;
  }
  html body .listing-item-v2 .tayang-date {
    font-size: 8px !important;
    margin-top: 3px !important;
  }
  html body .listing-item-v2 .liv2-divider {
    margin: 8px 0 !important;
  }
  html body .listing-item-v2 .liv2-foot {
    gap: 6px !important;
  }
  html body .liv2-stat {
    padding: 4px 10px !important;
    min-width: 60px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
  }
  html body .liv2-stat span {
    font-size: 8.5px !important;
  }
  html body .liv2-stat b {
    font-size: 11px !important;
    margin-top: 1px !important;
  }
  html body .liv2-sold-btn {
    padding: 4px 12px !important;
    font-size: 10px !important;
  }
  html body .dot-menu-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 767px) {

  html body:has(.iklan-summary-card) .content-wrap a.btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 8px !important;
  }

  html body:has(.iklan-summary-card) .content-wrap a.btn {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  html body:has(.iklan-summary-card) .content-wrap a.btn {
    margin-top: -3px !important;
  }
}

@media (max-width: 767px) {
  html body .listing-item-v2 {
    width: 88% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  html body .listing-item-v2 .badge,
  html body .listing-item-v2 [class*="badge"] {
    display: inline-block !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    margin: 2px 0 !important;
  }

  html body .listing-item-v2 {
    width: 97% !important;
  }
}

/* =====================================================
   MOBILE ONLY — Halaman Edit Profil AGEN: semua isi dikecilkan
   (kartu "Perbarui Foto Profil", "Informasi Perusahaan", dan form di bawahnya)
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* ---------- Kotak-kotak kartu ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) {
    padding: 12px !important;
    margin-bottom: 12px !important;
    border-width: 1px !important;
    border-radius: 12px !important;
  }

  /* ---------- Judul ("Perbarui Foto Profil", "Informasi Perusahaan") ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(h1, h2, h3, h4) {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
  }

  /* ---------- Foto profil ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
    border-radius: 50% !important;
    border-width: 2px !important;
  }

  /* ---------- Tombol ("Ubah Foto", Simpan, dst) ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .btn {
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 4px 14px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
  }

  /* ---------- Baris informasi (Perusahaan, Role Akun, Bergabung Sejak, Status Akun) ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .spec-row {
    padding: 6px 0 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
    gap: 8px !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .spec-row span,
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .spec-row b {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  /* ---------- Form isian di halaman ini (kalau ada) ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group {
    margin-bottom: 8px !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group label {
    font-size: 10.5px !important;
    margin-bottom: 3px !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-control {
    height: 28px !important;
    min-height: 0 !important;
    padding: 3px 10px !important;
    font-size: 10.5px !important;
    border-width: 1px !important;
    border-radius: 8px !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap textarea.form-control {
    height: auto !important;
    min-height: 60px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Edit Profil AGEN: rapikan tumpukan judul/tombol,
   dan dekatkan tulisan label ke kotak isian
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* ---------- 1) Kartu foto: judul di atas, tidak ketumpuk ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) {
    display: block !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) :is(h1, h2, h3, h4) {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    white-space: normal !important;
  }

  /* Baris foto + tombol "Ubah Foto": sejajar, tanpa tumpang tindih */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(div, span):has(> img):not(.filter-card):not(.detail-desc-card):not(.detail-spec-card):not(.agen-detail-card) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 0 !important;
    position: static !important;
    transform: none !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) img {
    display: block !important;
    margin: 0 !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) .btn {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    align-self: center !important;
  }

  /* ---------- 2) Form: tulisan label DEKAT ke kotak isian ---------- */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group label {
    display: block !important;
    margin: 0 0 2% !important;
    line-height: 1.15 !important;
  }
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group {
    margin-bottom: 8px !important;
  }

  /* Baris dua kolom (Jenis Kelamin | Tanggal Lahir, Kota | Alamat):
     kotak rata bawah supaya sejajar walau label-nya beda jumlah baris */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :has(> .form-group + .form-group) {
    align-items: flex-end !important;
  }
}

@media (max-width: 767px) {

  /* Sembunyikan seluruh teks asli di label kolom tanggal lahir */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group:has(input[type="date"]) > label {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  /* Tampilkan tulisan baru: hanya "Tanggal Lahir" */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap .form-group:has(input[type="date"]) > label::before {
    content: "Tanggal Lahir";
    display: block;
    font-size: 10.5px;
    line-height: 1.15;
  }
}

/* =====================================================
   MOBILE ONLY — Edit Profil AGEN, kartu "Perbarui Foto Profil":
   foto di kiri, tombol "Ubah Foto" kecil di kanannya (tidak melebar / tertumpuk)
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* Baris pembungkus foto + tombol: sejajar, satu baris, tidak keluar kartu */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(div, span):has(> img):not(.filter-card):not(.detail-desc-card):not(.detail-spec-card):not(.agen-detail-card) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Foto: ukuran tetap, di atas segalanya */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) img {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    flex: 0 0 72px !important;
    margin: 0 !important;
  }

  /* Tombol "Ubah Foto": lebar sesuai isi, posisi normal, tidak menimpa foto */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) .btn {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 60% !important;
    margin: 0 !important;
    padding: 4px 14px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Edit Profil AGEN, kartu "Perbarui Foto Profil":
   foto di kiri, tombol "Ubah Foto" kecil di kanannya (tidak melebar / tertumpuk)
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* Baris pembungkus foto + tombol: sejajar, satu baris, tidak keluar kartu */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(div, span):has(> img):not(.filter-card):not(.detail-desc-card):not(.detail-spec-card):not(.agen-detail-card) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* Foto: ukuran tetap, di atas segalanya */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) img {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    flex: 0 0 72px !important;
    margin: 0 !important;
  }

  /* Tombol "Ubah Foto": lebar sesuai isi, posisi normal, tidak menimpa foto */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap :is(.filter-card, .detail-desc-card, .detail-spec-card, .agen-detail-card) .btn {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 60% !important;
    margin: 0 !important;
    padding: 4px 14px !important;
  }
} 

/* =====================================================
   MOBILE ONLY — Edit Profil AGEN, kartu "Perbarui Foto Profil":
   tombol "Ubah Foto" tidak lagi menimpa judul
   (judul di atas, lalu foto + tombol sejajar di bawahnya)
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* Pembungkus tombol: berjajar, boleh turun baris */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap :has(> .btn-outline) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px 12px !important;
  }

  /* Judul tetap sendirian di baris paling atas */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap :is(h1, h2, h3, h4) {
    flex: 0 0 100% !important;
    width: 100% !important;
    position: static !important;
  }

  /* Tombol "Ubah Foto": posisi normal, lebar sesuai isi */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap .btn-outline {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: center !important;
  }
}

@media (max-width: 767px) {

  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap .btn-outline {
    transform: translateY(19px) !important;
  }
}

@media (max-width: 767px) {

  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap :is(p, small, .section-sub, .text-center) {
    font-size: 9px !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Edit Profil AGEN: tombol "Batal" & "Simpan"
   dilebarkan sampai lurus (kiri-kanan) dengan elemen di atasnya
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  /* Pembungkus dua tombol: selebar baris, berjajar */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap :has(> .btn ~ .btn) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Dua tombol membagi lebar sama rata */
  html body:has(.spec-row):not(:has(.detail-grid)) .content-wrap.content-wrap :has(> .btn ~ .btn) > .btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    align-self: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* =====================================================
   MOBILE ONLY — Halaman Lihat Profil AGEN: semua isi dikecilkan (kecil banget)
   Foto, nama, badge, NIB, kotak kontak, Bergabung Sejak, statistik, kategori
   Taruh PALING BAWAH file CSS
   Tidak mengubah tampilan laptop/desktop
   ===================================================== */
@media (max-width: 767px) {

  html body .agen-hero-card {
    padding: 14px !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
  }
  html body .agen-hero-card .agen-hero-photo img {
    width: 84px !important;
    height: 84px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover !important;
  }
  html body .agen-hero-info {
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  html body .agen-hero-info h1 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
    gap: 8px !important;
  }
  html body .agen-hero-info .badge,
  html body .agen-hero-info [class*="badge"] {
    font-size: 9px !important;
    padding: 2px 8px !important;
    border-width: 1px !important;
    margin-bottom: 6px !important;
  }
  html body .agen-nib {
    font-size: 10px !important;
    margin: 0 0 6px !important;
  }
  html body .agen-bio {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin: 0 0 8px !important;
  }

  html body .agen-contact-row {
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  html body .agen-contact-row span {
    font-size: 10px !important;
    line-height: 1.3 !important;
    padding: 4px 8px !important;
    border-radius: 5px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  html body .agen-hero-card .icon-inline {
    width: 11px !important;
    height: 11px !important;
    margin-right: 3px !important;
  }

  html body .agen-joined {
    font-size: 9.5px !important;
    padding: 4px 8px !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
  }

  html body .agen-edit-profile-btn {
    margin-top: 6px !important;
    padding: 4px 12px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    border-radius: 8px !important;
  }

  html body .agen-stats-bar {
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }
  html body .agen-stat-box {
    padding: 10px 2px !important;
  }
  html body .agen-stat-box b {
    font-size: 15px !important;
    margin-bottom: 1px !important;
  }
  html body .agen-stat-box span,
  html body .agen-stat-arrow {
    font-size: 10px !important;
  }

  html body .cat-grid-agent {
    gap: 8px !important;
    margin-bottom: 20px !important;
  }
  html body .cat-grid-agent .cat-box {
    width: 74px !important;
    height: 86px !important;
    flex: 0 0 74px !important;
    border-radius: 10px !important;
  }
  html body .cat-grid-agent .cat-box img {
    width: 24px !important;
    height: 24px !important;
  }
  html body .cat-grid-agent .cat-box h3,
  html body .cat-grid-agent .cat-box h4,
  html body .cat-grid-agent .cat-box p,
  html body .cat-grid-agent .cat-box span,
  html body .cat-grid-agent .cat-box a {
    font-size: 10px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Lihat Profil AGEN: kotak kategori properti
   (Apartment, Tanah, Ruko, ...) 
   ===================================================== */
@media (max-width: 767px) {

  html body .cat-grid-agent {
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  html body .cat-grid-agent .cat-box {
    width: 62px !important;
    height: 68px !important;
    flex: 0 0 62px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    border-width: 1px !important;
  }

  html body .cat-grid-agent .cat-box img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 auto 2px !important;
  }

  html body .cat-grid-agent .cat-box b,
  html body .cat-grid-agent .cat-box strong {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  html body .cat-grid-agent .cat-box h3,
  html body .cat-grid-agent .cat-box h4,
  html body .cat-grid-agent .cat-box p,
  html body .cat-grid-agent .cat-box span,
  html body .cat-grid-agent .cat-box a {
    font-size: 8.5px !important;
    line-height: 1.2 !important;
  }
}

/* =====================================================
   MOBILE ONLY — Lihat Profil AGEN: bar statistik dijadikan 1 BARIS
   (Total Transaksi | Unit Terjual | Unit Tersewa | Unit Tayang)
   ===================================================== */
@media (max-width: 767px) {
  html body .agen-stats-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  html body .agen-stat-box {
    min-width: 0 !important;
    padding: 8px 2px !important;
    border-bottom: none !important;
    border-right: 1px solid var(--border-color) !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  html body .agen-stat-box:last-child {
    border-right: none !important;
  }

  html body .agen-stat-box b {
    font-size: 14px !important;
    margin-bottom: 1px !important;
  }

  html body .agen-stat-box span,
  html body .agen-stat-arrow {
    font-size: 8px !important;
    line-height: 1.25 !important;
  }
}

/* =====================================================
   MOBILE ONLY — Popup profil (klik foto profil) dikecilkan lagi
   ===================================================== */
@media (max-width: 767px) {

  html body .avatar-dropdown-agent.avatar-dropdown-agent {
    width: 210px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 16px) !important;
    padding: 10px 10px 12px !important;
    border-radius: 10px !important;
  }

  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-top {
    gap: 8px !important;
    align-items: flex-start !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-photo {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-info {
    padding-top: 0 !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-info h2 {
    font-size: 12px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.2px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-info p {
    font-size: 8.5px !important;
    line-height: 1.25 !important;
    margin: 1px 0 0 !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-info .aac-id {
    font-size: 7px !important;
    margin-top: 2px !important;
  }

  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-btn-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: calc(100% - 54px) !important;
    margin: -4px 0 0 54px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 4px !important;
    font-size: 8.5px !important;
    border-width: 1px !important;
    border-radius: 5px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-btn-icon {
    width: 9px !important;
    height: 9px !important;
    margin-right: 3px !important;
  }

  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-divider {
    margin: 8px 0 8px !important;
    border-top-width: 1px !important;
  }

  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-section-head h3 {
    font-size: 10px !important;
    margin: 0 0 1px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-section-head p {
    font-size: 7px !important;
    margin: 0 0 5px !important;
  }

  /* ---------- Kartu "Dashboard Saya" ---------- */
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-card {
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 0 6px !important;
    padding: 3px 6px !important;
    gap: 5px !important;
    border-width: 1px !important;
    border-radius: 6px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-card-icon {
    width: 18px !important;
    min-width: 18px !important;
    font-size: 12px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-card-text b {
    font-size: 9.5px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-card-text span {
    font-size: 7px !important;
    line-height: 1.15 !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-card-arrow {
    width: 8px !important;
    min-width: 8px !important;
    font-size: 13px !important;
  }

  html body .avatar-dropdown-agent.avatar-dropdown-agent .aac-logout {
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 9.5px !important;
    border-radius: 6px !important;
  }
}

/* =====================================================
   MOBILE ONLY — Popup profil: geser ke kanan (pakai transform)
   ===================================================== */
@media (max-width: 767px) {
  html body .avatar-dropdown-agent.avatar-dropdown-agent {
    transform: translateX(30px) !important;  
  }
}

/* =====================================================
   MOBILE ONLY — Logo Partner Perbankan: susunan 5 - 5 - 2
   ===================================================== */
@media (max-width: 767px) {

  html body .partner-section .partner-box.partner-box {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;   
    gap: 30px 10px !important;
    padding: 18px 12px !important;
    border-radius: 14px !important;
  }

  html body .partner-section .partner-box.partner-box .partner-row-break {
    display: none !important;
  }

  html body .partner-section .partner-box.partner-box > img[src] {
  flex: 0 0 calc(33.333% - 7px) !important;
  width: calc(33.333% - 7px) !important;
  max-width: calc(33.333% - 7px) !important;
  min-width: 0 !important;
  height: 19px !important;
  margin: 0 !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center !important;
} 
}

@media (max-width: 380px) {
  html body .partner-section .partner-box.partner-box > img[src] {
    height: 16px !important;
  }
}

@media (max-width: 767px) {
  html body .partner-section .partner-box.partner-box > img[src*="bank-permata.png"]  { order: 1  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-panin.png"]    { order: 2  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-ocbc.png"]     { order: 3  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-ina.png"]      { order: 4  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-uob.png"]      { order: 5  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-bca.png"]      { order: 6  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-bri.png"]      { order: 7  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-mandiri.png"]  { order: 8  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-bni.png"]      { order: 9  !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-icbc.png"]     { order: 10 !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-maybank.png"]  { order: 11 !important; }
  html body .partner-section .partner-box.partner-box > img[src*="bank-cimb.png"]     { order: 12 !important; }
}

@media (max-width: 767px) { 
  html body .partner-section .partner-box.partner-box > img[src*="bank-permata.png"] {
    transform: scale(1.4) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-panin.png"] {
    transform: scale(1.0) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-ocbc.png"] {
    transform: scale(3.6) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-ina.png"] {
    transform: scale(2.2) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-uob.png"] {
    transform: scale(1.0) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-bca.png"] {
    transform: scale(2.9) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-bri.png"] {
    transform: scale(2.2) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-mandiri.png"] {
    transform: scale(1.5) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-bni.png"] {
    transform: scale(1.0) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-icbc.png"] {
    transform: scale(3.2) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-maybank.png"] {
    transform: scale(1.0) !important;  
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-cimb.png"] {
    transform: scale(1.0) !important;  
  }
}

/* =====================================================
   LAPTOP/DESKTOP ONLY — Logo Partner Perbankan dirapikan (grid 6 x 2)
   ===================================================== */
@media (min-width: 768px) {

  html body .partner-section .partner-box.partner-box {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;  
    gap: 34px 40px !important;
    align-items: center !important;
    justify-items: center !important;
    padding: 40px 50px !important;
    border-radius: 20px !important;
  }

  html body .partner-section .partner-box.partner-box .partner-row-break {
    display: none !important;
  }

  html body .partner-section .partner-box.partner-box > img[src] {
    width: 100% !important;
    max-width: 150px !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    order: 0 !important;
    transform: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (min-width: 768px) {


html body .partner-section .partner-box.partner-box > img[src*="bank-ocbc.png"],
html body .partner-section .partner-box.partner-box > img[src*="bank-bca.png"] {
  height: 100px !important;    
  max-width: 260px !important;
}
html body .partner-section .partner-box.partner-box > img[src*="bank-mandiri.png"] {
  transform: scale(1.5) !important;  
  transform-origin: center !important;
}
  html body .partner-section .partner-box.partner-box {
    row-gap: 60px !important;
  }

  html body .partner-section .partner-box.partner-box > img[src*="bank-icbc.png"] {
  transform: scale(3.0) !important;  
  transform-origin: center !important;
  }
  
  html body .partner-section .partner-box.partner-box > img[src*="bank-cimb.png"] {
  transform: scale(1.3) !important;  
  transform-origin: center !important;
}

  html body .partner-section .partner-box.partner-box > img[src*="bank-panin.png"] {
  transform: scale(1.4) !important;  
  transform-origin: center !important;
}
  

  html body .partner-section .partner-box.partner-box > img[src*="bank-permata.png"] {
  transform: scale(1.5) !important;  
  transform-origin: center !important;
}

  html body .partner-section .partner-box.partner-box > img[src*="bank-bri.png"],
  html body .partner-section .partner-box.partner-box > img[src*="bank-ocbc.png"] {
    transform: scale(1.8) !important;  
    transform-origin: center !important;
  }
  html body .partner-section .partner-box.partner-box > img[src*="bank-ina.png"] {
    transform: scale(1.9) !important; 
    transform-origin: center !important;
  }
}

/* =====================================================
   MOBILE ONLY — Popup profil: jangan sampai keluar layar (kepotong)
   ===================================================== */
@media (max-width: 767px) {
  html body .avatar-dropdown-agent.avatar-dropdown-agent {
    transform: none !important;
    left: auto !important;
    right: 0 !important;   
    max-width: calc(100vw - 16px) !important;
  }
}

/* =====================================================
   MOBILE ONLY — Tab Semua / Titip Properti / Cari Properti
   dipanjangkan selebar kolom cari & tombol Cari (lurus)
   ===================================================== */
@media (max-width: 767px) {

  html body .admin-filter-bar.admin-filter-bar .admin-seg-tabs {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body .admin-filter-bar.admin-filter-bar .admin-seg-tabs a {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  html body .admin-filter-bar.admin-filter-bar .btn-primary,
  html body .admin-filter-bar.admin-filter-bar button[type="submit"] {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {

  html body .navbar-actions .avatar-circle.avatar-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html body .navbar-actions .avatar-circle.avatar-circle img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  html body .navbar-actions .avatar-circle.avatar-circle img[src*="default"],
  html body .navbar-actions .avatar-circle.avatar-circle img[src*="icon"] {
    width: 55% !important;    
    height: 55% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 767px) {

  html body .dot-menu .dot-menu-dropdown {
    min-width: 76px !important;
    padding: 3px 0 !important;
    border-radius: 7px !important;
    top: calc(100% + 4px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25) !important;
  }

  html body .dot-menu .dot-menu-dropdown .dot-menu-item {
    padding: 5px 10px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
}

html body .profile-modal-box.profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row :has(> .btn) > :not(.btn):not(input) {
  display: none !important;
}

html body .profile-modal-box.profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row :has(> .btn) {
  font-size: 0 !important;
  line-height: 0 !important;
}

html body .profile-modal-box.profile-modal-box.profile-modal-box.profile-modal-box .pm-photo-row :has(> .btn) > .btn {
  line-height: 1.4 !important;
}

/* ===== Titik tiga + menu foto (Pasang Iklan) ===== */
html body .foto-thumb-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: 2px solid #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
html body .foto-thumb-menu-btn:hover { background: rgba(0,0,0,.85); }

html body .foto-thumb-menu {
  display: none;
  position: absolute;
  top: 42px;
  right: 8px;
  z-index: 6;
  min-width: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  overflow: hidden;
}
html body .foto-thumb-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
html body .foto-thumb-menu button:hover { background: #f2f2f2; }

@media (max-width: 767px) {
  html body .foto-thumb-menu-btn {
    width: 20px;
    height: 20px;
    font-size: 14px;
    top: 4px;
    right: 4px;
    border-width: 1.5px;
  }
  html body .foto-thumb-menu {
    top: 28px;
    right: 4px;
    min-width: 100px;
  }
  html body .foto-thumb-menu button {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* ===== Foto Pasang Iklan: label Cover/2/3/4 + titik tiga ===== */
html body .foto-thumb {
  position: relative;
}

/* Label Cover / 2 / 3 / 4 (kiri atas) */
html body .foto-badge-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 20px;
  background: var(--ungu-tua);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
html body .foto-badge-btn.is-cover { padding: 0 16px; }

/* Tombol titik tiga (kanan atas) */
html body .foto-thumb-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
html body .foto-thumb-menu-btn:hover { background: rgba(0,0,0,.85); }
html body .foto-thumb-menu-btn:hover { background: rgba(0,0,0,.85); }

/* Menu: Jadikan Cover / Hapus Foto */
html body .foto-thumb-menu {
  display: none;
  position: absolute;
  top: 42px;
  right: 8px;
  z-index: 6;
  min-width: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  overflow: hidden;
}
html body .foto-thumb-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}
html body .foto-thumb-menu button:hover { background: #f2f2f2; }

/* HP */
@media (max-width: 767px) {
  html body .foto-badge-btn {
    min-width: 20px;
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
    top: 4px;
    left: 4px;
  }
  html body .foto-badge-btn.is-cover { padding: 0 8px; }
  html body .foto-thumb-menu-btn {
    width: 20px;
    height: 20px;
    font-size: 14px;
    top: 4px;
    right: 4px;
    border-width: 1.5px;
  }
  html body .foto-thumb-menu {
    top: 28px;
    right: 4px;
    min-width: 100px;
  }
  html body .foto-thumb-menu button {
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* Kartu iklan agen: bayangan muncul saat kursor di atas kotak */
.listing-item-v2 {
  transition: box-shadow .2s ease, border-color .2s ease;
}
.listing-item-v2:hover {
  box-shadow: 0 6px 20px rgba(88, 48, 115, 0.18);
  border-color: var(--ungu-tua);
}

/* Bagian foto + judul yang bisa diklik */
.liv2-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.liv2-link:hover h3 {
  color: var(--ungu-tua);
}

.admin-main form .form-control {
  border-radius: 10px !important;
}

.admin-main form img[src*="/assets/img/"] {
  width: 178px !important;
  height: 175px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border: 1.5px solid var(--border-color);
}

/* =====================================================
   MOBILE ONLY — Tombol "Share Link" & "Hubungi Agen" sama lebar
   ===================================================== */
@media (max-width: 767px) {
  body:has(.detail-grid) .agent-card .agent-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
body:has(.detail-grid) .agent-card .agent-actions .btn {
    width: 100% !important;
    max-width: none !important;
    padding: 8px 4px !important;
    padding-left: 14px !important;
    font-size: 9.5px !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}
  }
  body:has(.detail-grid) .agent-card .share-link-icon,
  body:has(.detail-grid) .agent-card .wa-btn-icon {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

@media (max-width: 767px) {
  .detail-desc-card a.btn.btn-primary {
    display: inline-flex !important;
    width: auto !important;
    padding: 8px 18px !important;
    font-size: 10px !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
}/* =====================================================
   MOBILE ONLY — Popup Share Link muncul KE ATAS tombol
   (supaya langsung terlihat walau kartu agen melayang di bawah layar)
   ===================================================== */
@media (max-width: 767px) {
  body:has(.detail-grid) .agent-card .share-popup {
    top: auto !important;
    bottom: calc(100% + 10px) !important;
    left: 0 !important;
    width: max-content !important;
    max-width: calc(100vw - 48px) !important;
    padding: 12px !important;
  }
  body:has(.detail-grid) .agent-card .share-popup-icons {
    gap: 8px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
  }
  body:has(.detail-grid) .agent-card .share-icon-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }
  body:has(.detail-grid) .agent-card .share-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  body:has(.detail-grid) .agent-card .share-copy-link {
    font-size: 13px !important;
  }
}
@media (max-width: 767px) {
  #ubahFotoWrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
  #ubahFotoWrap .btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  #profilPhotoWrap {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 767px) {
  #ubahFotoWrap {
    align-self: flex-start !important;
  }
}

/* =====================================================
   MOBILE ONLY — Perbaiki menu "Lihat Foto / Hapus Foto"
   (aturan mobile lama menimpa position:relative wrapper foto)
   ===================================================== */
@media (max-width: 767px) {
  #profilPhotoWrap {
    position: relative !important;
  }
  .profil-photo-menu {
    top: 100% !important;
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
    transform: translateX(-50%) !important;
    min-width: 110px !important;
    border-radius: 8px !important;
  }
  .profil-photo-menu > div {
    padding: 6px 10px !important;
    font-size: 11px !important;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent {
    width: 230px !important;
    padding: 14px 12px 16px !important;
    border-radius: 12px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-photo {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-info h2 {
    font-size: 14px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-info p {
    font-size: 10px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-info .aac-id {
    font-size: 8.5px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-btn-row {
    width: 100% !important;
    margin: 9px 0 0 0 !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-btn {
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 11px !important;
  }
  html body .avatar-dropdown-agent.avatar-dropdown-agent.avatar-dropdown-agent .aac-logout {
    height: 30px !important;
    min-height: 30px !important;
    font-size: 12.5px !important;
  }
}

.aph-loc {
  display: none !important;
}

@media (min-width: 768px) {

  .profile-modal-box {
    max-width: 780px !important;
    padding: 44px 50px !important;
    border-radius: 22px !important;
  }

  /* Foto profil + tombol "Ubah Foto" */
  .profile-modal-box .pm-photo-row {
    gap: 22px !important;
    margin-bottom: 26px !important;
  }
  .profile-modal-box .pm-photo-row img {
    width: 120px !important;
    height: 120px !important;
    border-width: 3px !important;
  }
  .profile-modal-box .pm-photo-row .btn {
    padding: 12px 24px !important;
    font-size: 16px !important;
  }

  /* Label & isian form */
  .profile-modal-box .form-group {
    margin-bottom: 20px !important;
  }
  .profile-modal-box .form-group label {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  .profile-modal-box .form-control {
    font-size: 17px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
  }

  /* Tombol Batal & Simpan Perubahan */
  .profile-modal-box .btn {
    padding: 14px 26px !important;
    font-size: 18px !important;
  }

  .profile-modal-close {
    font-size: 22px !important;
    top: 24px !important;
    right: 28px !important;
  }
}