/* === FILTER LAYOUT === */
.listing-search-filter {
    display: flex;
    gap: 12px;
    margin: 18px 0;
    align-items: center;
    flex-wrap: wrap;
}

.search-sort-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

.search-sort-row .search-wrap, .search-sort-row .multi-select {
    flex: 1;
}

.search-sort-row input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.sort-box select {
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

/* Remove old "search" button */
.search-wrap button {
    display: none !important;
}

/* === MULTI-SELECT === */
.multi-select {
    position: relative;
    display: inline-block;
}

.multi-select .multi-select-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    min-width: 160px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.multi-select .multi-select-summary {
    font-size: 14px;
    color: #333;
}

.multi-select .caret {
    margin-left: auto;
    font-size: 12px;
    color: #777;
}

.multi-select-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    display: none;
    width: 240px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 10px;
    z-index: 40;
}

.multi-select.open .multi-select-dropdown {
    display: block;
}

.multi-select-dropdown .ms-item {
    padding: 6px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.multi-select-dropdown .ms-item .ms-checkbox{
    width: 10px;
    margin-right: 5px;
}

.ms-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.ms-apply,
.ms-clear {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #fff;
}

.ms-apply {
    background: #b48738;
}

.ms-clear {
    background: #999;
}

.no-results {
    padding: 12px 4px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* === FILTER ACTION BUTTONS === */
.filter-action-btns {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn-apply,
.btn-reset {
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.btn-apply {
    background: #b48738;
    color: #fff;
}

.btn-reset {
    background: #eee;
    border: 1px solid #ccc;
    color: #333;
}

/* === MOBILE === */
@media(max-width: 600px){
    .search-sort-row {
        flex-direction: column;
    }
}

/* Listing Card Wrapper */
.listing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all .25s ease-in-out;
    border: 1px solid #eee;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

/* Image */
.listing-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.listing-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.listing-card:hover .listing-media img {
    transform: scale(1.05);
}

/* Pending badge */
.status-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 35%;
    background: rgba(77, 77, 77, 0.3);
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    height:100%;
    font-size: x-large;
}

/* Body Content */
.listing-body {
    padding: 16px 18px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.small-cat {
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 3px;
}

.listing-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.listing-meta {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-top: 6px;
}

/* Bullets */
.listing-bullets {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.listing-bullets li {
    font-size: 14px;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
    color: #444;
}

.listing-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #b68a3a; /* Gold Accent */
}

/* Footer */
.listing-footer {
    padding: 14px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.btn-cta {
    font-size: 14px;
    font-weight: 700;
    background-color: #b68a3a;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
}

.btn-cta:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .listing-media {
        height: 180px;
    }
    .listing-title {
        font-size: 18px;
    }
    .listing-meta,
    .listing-bullets li {
        font-size: 13px;
    }
}

/* === Grid responsive: 3 / 2 / 1 columns === */
.listings-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ensure card fills the grid cell */
.listing-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* media: tablet -> 2 columns */
@media (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile -> 1 column */
@media (max-width: 640px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }

  /* slightly reduce image height on small screens */
  .listing-media { height: 180px; }
}

/* ensure images scale and hover zoom stays inside card */
.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

/* hover zoom (keep transform contained by overflow:hidden on parent) */
.listing-card:hover .listing-media img {
  transform: scale(1.06);
}

/* safety: prevent other selectors from forcing full-width rows */
.listings-grid > * {
  min-width: 0; /* prevents long content breaking the grid */
}

/* Ketika kosong, tetap center kontennya */
.listings-grid.empty {
  display: flex!important;
  align-items: center;
  justify-content: center;
  min-height: 300px; /* biar ada ruang vertikal */
}

.no-results {
  font-size: 24px;
  color: #777;
  text-align: center;
}

/* SINGLE LISTIG */

/* ---------- Page base ---------- */
.single-listing-page {
  background:#f1f1f1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color:#222;
  margin:0;
  padding:0;
}

/* ---------- HERO / HEADER ---------- */
.single-hero .overlay {
  position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.2));
}
.single-hero .hero-inner {
  position:absolute; left:64px; bottom:36px; color:#fff;
  max-width:840px;
}
.single-hero .kicker {
  font-size:13px; color:rgba(255,255,255,0.8); margin-bottom:8px; letter-spacing:1px;
}
.single-hero h1 {
  margin:0; font-size:36px; font-weight:700; line-height:1.05;
}
.single-hero .sub {
  margin-top:8px; font-size:14px; color:rgba(255,255,255,0.9);
}
.single-hero .code-badge {
  margin-top:10px; display:inline-block; background: rgba(255,255,255,0.08); padding:6px 10px; border-radius:4px; font-weight:600;
}

/* ---------- MAIN CONTENT WRAPPER ---------- */
.container {
  /* max-width:1100px; */
  margin: 30px auto;
  padding: 0 20px;
}

/* two column layout: left content / right aside */
.layout {
  display:grid;
  grid-template-columns: 1fr 320px;
  gap:36px;
  align-items:start;
}

/* left content */
.content-left {
  border-radius:8px;
  padding:28px;
}

/* title & intro */
.content-left .page-title { font-size:22px; font-weight:700; margin-bottom:12px; }
.content-left .intro { color:#555; margin-bottom:20px; line-height:1.6; }

/* chart */
.chart-wrap { margin: 18px 0 28px; }
.chart-wrap img { width:100%; border-radius:6px; box-shadow: 0 6px 20px rgba(0,0,0,0.04); display:block; }

/* Enquire Form block styling */
.enquire {
  margin-top:40px;
  background: transparent;
}
.tabbar {
  display:flex;
  gap:0;
  width:420px;
  border-radius:6px;
  overflow:hidden;
  margin-bottom:20px;
}
.tabbar button {
  flex:1;
  padding:12px 0;
  border:0;
  background:#eee;
  cursor:pointer;
  font-weight:700;
}
.tabbar button.active { background:#b8873a; color:#fff; }

/* form grid: two columns (left fields, right column empty space for image/notes) */
.form-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}
.form-col { }

/* inputs styling */
.form-col label { display:block; font-size:13px; color:#222; margin-bottom:6px; }
.form-col input[type="text"],
.form-col input[type="email"],
.form-col textarea {
  width:100%;
  padding:10px 12px;
  border-radius:0;
  border: none;
  border-bottom:1px solid #cfcfcf;
  background: transparent;
  margin-bottom:14px;
  font-size:14px;
}
.form-col textarea { min-height:120px; resize:vertical; }

/* Type of buyer radios (stacked cards) */
.type-list { display:flex; flex-direction:column; gap:10px; margin:6px 0 14px; }
.type-item {
  display:flex; align-items:center; gap:12px;
  background:#fff; border:1px solid #e9e9e9; padding:10px 12px;
  box-shadow:0 2px 0 rgba(0,0,0,0.02);
}
.type-item input { margin-right:8px; width: 8px;}

/* Type of buyer radios (2 columns card layout) */
.type-list2 {
  display: flex;
  flex-wrap: wrap;           /* allow wrapping */
  gap: 10px;                 /* space between cards */
  margin: 6px 0 14px;
}

.type-list2 .type-item {
  flex: 1 1 calc(50% - 10px); /* two columns */
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e9e9e9;
  padding: 10px 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
}

.type-item:hover {
  border-color: #ccc;
  background: #fafafa;
}

.type-item input {
  margin-right: 8px;
  width: 14px;
  height: 14px;
}

/* Responsif untuk mobile — jadi 1 kolom */
@media (max-width: 600px) {
  .type-list2 .type-item {
    flex: 1 1 100%;
  }
}


/* small note labels left column (mimic screenshot alignment) */
.left-label { font-size:13px; color:#222; margin-bottom:6px; }

/* future mail radio */
.inline-radio { display:flex; gap:18px; align-items:center; margin-top:6px; }

/* submit */
.submit-row { margin-top:18px; display:flex; justify-content:center; }
.btn-submit {
  background:#b8873a; color:#fff; border:none; padding:12px 48px; border-radius:24px; cursor:pointer; font-weight:700;
}

/* right aside financial card */
.aside-box {
  background:#222;
  color:#fff; padding:18px; border-radius:8px; position:sticky; top:28px;
}
.aside-box .label { font-size:13px; color:#ddd; }
.aside-box .value { font-size:16px; font-weight:800; margin-top:6px; }

/* honeycomb / pattern right side (subtle) */
.right-pattern {
  position:absolute;
  right:0; top:0; bottom:0;
  width:200px;
  pointer-events:none;
  background-image: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0));
}

/* responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .aside-box { position:relative; top:0; margin-top:20px; }
  .tabbar { width:100%; }
  .form-grid { grid-template-columns: 1fr; }
}
/* FULL WIDTH – hilangkan batas tengah */
/* GLOBAL FULL WIDTH */
.single-listing-page {
    width: 100vw;
    max-width: 100%;
    margin: 0!important;
    padding: 0;
    overflow-x: hidden;
}

/* HERO */
.single-hero {
    width: 100vw;
    height: 430px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.single-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.single-hero .hero-inner {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #fff;
}

.single-hero .kicker {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 2px;
    color: #b68a3a;
}

.single-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.code-badge {
    font-size: 16px;
    font-weight: 600;
}

/* MAIN LAYOUT */
/* GLOBAL FULL WIDTH */
.single-listing-page {
    width: 100vw;
    max-width: 100%;
    margin: 0!important;
    padding: 0;
    overflow-x: hidden;
}

/* HERO */
.single-hero {
    width: 100vw;
    height: 430px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.single-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.single-hero .hero-inner {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #fff;
}

.single-hero .kicker {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.single-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 4px;
}

.code-badge {
    font-size: 16px;
    font-weight: 600;
}

/* MAIN LAYOUT */
.container {
    width: 100%;
    /* max-width: 1280px; */
    margin: auto;
    padding: 60px 20px;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* LEFT AREA */
.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.chart-wrap img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 40px;
}

/* FINANCIAL SIDEBAR */
.aside-box {
    background: #111;
    padding: 30px;
    border-radius: 20px;
    color: #fff;
}

.aside-box .label {
    font-size: 14px;
    opacity: 0.75;
    font-weight: 500;
}

.aside-box .value {
    font-size: 22px;
    margin-top: 4px;
    font-weight: 600;
}

.aside-box .btn-submit {
    width: 100%;
    margin-top: 30px;
}

/* FORM SECTION */
.enquire {
    margin-top: 60px;
}

.tabbar {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
}

.tabbar .tab {
    width: 50%;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #eee;
}

.tabbar .tab.active {
    background: #b68934;
    color: #fff;
}

/* FORM INPUTS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 14px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px solid #ddd;
}

.type-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* RADIO INLINE */
.inline-radio {
    display: flex;
    gap: 20px;
}

/* FORM BUTTON */
.btn-submit {
    background: #b68934;
    border: none;
    padding: 14px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    transition: 0.25s;
}

.btn-submit:hover {
    background: #916f2a;
}

/* RESPONSIVE */
@media(max-width: 1024px){
    .layout {
        grid-template-columns: 1fr;
    }
    .aside-box {
        order: -1;
        margin-bottom: 40px;
    }
}

@media(max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .single-hero .hero-inner {
        left: 20px;
        bottom: 40px;
    }
}


.wp-block-media-text__media img, .wp-block-media-text__media video{
    width:auto!important;
}

.wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__content, .wp-block-media-text.is-vertically-aligned-top>.wp-block-media-text__media,
.wp-block-media-text>.wp-block-media-text__media,
.wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__content, .wp-block-media-text.is-vertically-aligned-center>.wp-block-media-text__media, .wp-block-media-text>.wp-block-media-text__content, .wp-block-media-text>.wp-block-media-text__media,
.wp-block-media-text,
.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.aligncenter, .wp-block-image.alignleft, .wp-block-image.alignright
{
    all: unset !important;
}