/* ClassiMarket Listings – scoped to .cm-listings / .cm-featured so your theme is not affected */
.cm-skin, .cm-skin * { -webkit-tap-highlight-color: transparent; }
html body .cm-skin { --cml-ink: #0b1b2b; --cml-muted: #66778a; --cml-line: #e4eaef; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 26px 14px 6px; font-family: inherit; }
html body .cm-skin *, html body .cm-skin *::before, html body .cm-skin *::after { box-sizing: border-box; }
@media (min-width: 1024px) { html body .cm-skin { padding: 36px 24px 8px; } }
html body .cm-skin a:focus, html body .cm-skin button:focus, html body .cm-skin .cm-car:focus { outline: 0 !important; box-shadow: none; }

/* heading row */
html body .cm-skin .cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
html body .cm-skin .cm-head h2 { margin: 0; padding: 0; border: 0; font-size: 1.35rem; line-height: 1.25; font-weight: 800; color: var(--cml-ink); text-transform: none; letter-spacing: 0; }
html body .cm-skin .cm-head h2::before, html body .cm-skin .cm-head h2::after { content: none; display: none; }
html body .cm-skin .cm-see-all { font-weight: 700; font-size: 14px; color: var(--cml-primary); text-decoration: none; white-space: nowrap; }
html body .cm-skin .cm-see-all:hover { color: var(--cml-primary-dark); text-decoration: underline; }

/* grid */
html body .cm-listings .cm-grid {
	display: grid !important; grid-template-columns: repeat(var(--cm-lc, 2), minmax(0, 1fr)); gap: 18px 12px;
	margin: 0 !important; padding: 0 !important; float: none !important; width: 100% !important; height: auto !important; position: static !important;
}
@media (min-width: 768px)  { html body .cm-listings .cm-grid { grid-template-columns: repeat(var(--cm-lt, 3), minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1100px) { html body .cm-listings .cm-grid { grid-template-columns: repeat(var(--cm-ld, 5), minmax(0, 1fr)); gap: 26px 20px; } }
html body .cm-listings .cm-grid::before, html body .cm-listings .cm-grid::after { display: none !important; }
html body .cm-listings .cm-item { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; position: static !important; transform: none !important; flex: none !important; }
html body .cm-listings .cm-item.cm-hide { display: none !important; }

/* card skin */
html body .cm-skin .directorypress-listing-item-holder { display: flex; flex-direction: column; background: #fff; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; margin: 0 !important; height: 100%; }
html body .cm-skin .directorypress-listing-figure { position: relative; margin: 0 0 10px !important; padding: 0 !important; border-radius: 20px; overflow: hidden; background: transparent !important; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; line-height: 0; }
html body .cm-skin .directorypress-listing-figure::before, html body .cm-skin .directorypress-listing-figure::after, html body .cm-skin .directorypress-listing-figure a.listing-thumbnail::before, html body .cm-skin .directorypress-listing-figure a.listing-thumbnail::after { content: none !important; display: none !important; padding: 0 !important; }
html body .cm-skin .directorypress-listing-figure a.listing-thumbnail { display: block; position: static !important; height: auto !important; min-height: 0 !important; padding: 0 !important; background: transparent !important; line-height: 0; }
html body .cm-skin .directorypress-listing-figure img { position: static !important; display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 4 / 3.4; object-fit: cover; background: var(--cml-primary-soft); font-size: 12px; line-height: 1.3; color: var(--cml-muted); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html body .cm-skin .directorypress-listing-item-holder:hover .directorypress-listing-figure img { transform: scale(1.06); }
html body .cm-skin .directorypress-listing-text-content-wrap { padding: 0 2px !important; background: transparent !important; }
html body .cm-skin .directorypress-listing-text-content-wrap [class*="price"] { font-weight: 800; color: var(--cml-ink); font-size: 1.05rem; margin: 0 0 2px; }
html body .cm-skin .directorypress-listing-title, html body .cm-skin .directorypress-listing-title a { font-size: .95rem !important; font-weight: 700; line-height: 1.3; color: var(--cml-ink); margin: 0 0 4px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .cm-skin .publish_date, html body .cm-skin .listing-bottom-metas { font-size: 12.5px; color: var(--cml-muted); padding: 0 2px; }
@media (max-width: 767px) { html body .cm-skin .directorypress-listing-title, html body .cm-skin .directorypress-listing-title a { font-size: .9rem !important; } html body .cm-skin .directorypress-listing-figure { border-radius: 18px; } }

/* View details – solid dark green */
html body .cm-skin .cm-view-btn {
	display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 2px 2px; padding: 10px 12px; background: var(--cml-primary);
	border: 0; border-radius: 99px; color: #fff !important; font-weight: 800; font-size: 13px; line-height: 1.2; text-decoration: none !important; transition: background .2s, transform .2s;
}
html body .cm-skin .cm-view-btn::after { content: "\2192"; font-weight: 700; }
html body .cm-skin .cm-view-btn:hover { background: var(--cml-primary-dark); color: #fff !important; transform: translateY(-1px); }
html body .cm-skin .directorypress-listing-item-holder .cm-view-btn { margin-top: auto; }

/* Load more – solid dark green */
html body .cm-skin .cm-more-wrap { display: flex; justify-content: center; padding: 28px 0 8px; }
html body .cm-skin .cm-more { -webkit-appearance: none; appearance: none; min-width: 200px; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; background: var(--cml-primary); color: #fff; border: 0; border-radius: 99px; padding: 14px 34px; box-shadow: 0 8px 20px color-mix(in srgb, var(--cml-primary) 30%, transparent); transition: background .2s, transform .2s; }
html body .cm-skin .cm-more:hover { background: var(--cml-primary-dark); transform: translateY(-1px); }
html body .cm-skin .cm-more[disabled] { opacity: .65; cursor: progress; }
html body .cm-skin .cm-more[hidden] { display: none !important; }

/* Featured carousel */
html body .cm-featured[hidden] { display: none !important; }
html body .cm-skin .cml-arrows { display: flex; align-items: center; gap: 8px; }
html body .cm-skin .cml-arrows button { -webkit-appearance: none; appearance: none; width: 36px; height: 36px; min-height: 0; padding: 0 0 3px; border-radius: 50%; border: 0; background: var(--cml-primary); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: none; }
html body .cm-skin .cml-arrows button:hover { background: var(--cml-primary-dark); }
@media (max-width: 640px) { html body .cm-skin .cml-arrows button { width: 32px; height: 32px; font-size: 20px; } html body .cm-skin .cml-arrows { gap: 6px; } }
html body .cm-skin .cm-car { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 8px; outline: 0; overscroll-behavior-x: contain; }
html body .cm-skin .cm-car::-webkit-scrollbar { display: none; }
html body .cm-skin .cm-slide { flex: 0 0 calc((100% - 12px) / 2.2); min-width: 0; scroll-snap-align: start; }
@media (min-width: 768px) { html body .cm-skin .cm-car { gap: 16px; } html body .cm-skin .cm-slide { flex-basis: calc((100% - 32px) / 3.3); } }
@media (min-width: 1100px) { html body .cm-skin .cm-car { gap: 20px; } html body .cm-skin .cm-slide { flex-basis: calc((100% - 80px) / 5); } }
html body .cm-skin .cm-slide > *, html body .cm-skin .cm-slide .directorypress-listing-item-holder { width: 100% !important; max-width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }

/* hidden source for the featured scan */
html body .cm-featured .cm-feat-src[hidden] { display: none !important; }
/* ?cml_debug=1 */
html body .cm-skin .cm-debug { white-space: pre-wrap; font: 12px/1.4 monospace; background: #f3f4f6; color: #111; border: 1px dashed #9ca3af; border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }

/* [cm_featured_listings layout="grid"] – same grid as the latest listings */
html body .cm-featured[data-layout="grid"] .cml-arrows button { display: none !important; }
html body .cm-featured[data-layout="grid"] .cm-car { display: grid; grid-template-columns: repeat(var(--cm-lc, 2), minmax(0, 1fr)); gap: 18px 12px; overflow: visible; scroll-snap-type: none; padding: 0; }
html body .cm-featured[data-layout="grid"] .cm-slide { flex: none; width: 100%; min-width: 0; }
@media (min-width: 768px)  { html body .cm-featured[data-layout="grid"] .cm-car { grid-template-columns: repeat(var(--cm-lt, 3), minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 1100px) { html body .cm-featured[data-layout="grid"] .cm-car { grid-template-columns: repeat(var(--cm-ld, 5), minmax(0, 1fr)); gap: 26px 20px; } }
html body .cm-featured .cm-slide.cm-hide { display: none !important; }
