/* ListyMart Directory — front-end styles. Colours come from CSS variables so the theme (or Customizer) can change them. */
:root {
	--lm-primary: #1456d9;
	--lm-primary-ink: #ffffff;
	--lm-dark: #0c1b33;
	--lm-accent: #ff7a1a;
	--lm-bg: #f5f7fb;
	--lm-surface: #ffffff;
	--lm-border: #e2e8f0;
	--lm-text: #172033;
	--lm-muted: #5f6b7d;
	--lm-ok: #12805c;
	--lm-warn: #f5b301;
	--lm-err: #c0392b;
	--lm-radius: 14px;
}

.lm-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 56px; color: var(--lm-text); }
.lm-wrap *, .lm-dash *, .lm-hero *, .lm-cats *, .lm-biz-grid *, .lm-plans *, .lm-auth *, .lm-cta * { box-sizing: border-box; }
.lm-muted { color: var(--lm-muted); }
.lm-small { font-size: 13px; }
.lm-center { text-align: center; }
.lm-right { float: right; }
.lm-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.lm-wide { grid-column: 1 / -1; }
.dashicons { vertical-align: middle; }

/* Buttons */
.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--lm-primary); background: var(--lm-primary); color: var(--lm-primary-ink) !important; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: filter .15s, transform .05s; }
.lm-btn:hover { filter: brightness(1.08); }
.lm-btn:active { transform: translateY(1px); }
.lm-btn[disabled], .lm-btn.is-disabled { opacity: .55; cursor: not-allowed; filter: none; }
.lm-btn-ghost { background: var(--lm-surface); color: var(--lm-primary) !important; border-color: var(--lm-border); }
.lm-btn-ghost:hover { border-color: var(--lm-primary); filter: none; }
.lm-btn-wa { background: #1fb355; border-color: #1fb355; }
.lm-btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.lm-btn-lg { padding: 15px 26px; font-size: 17px; }
.lm-btn-block { display: flex; width: 100%; }
.lm-link-danger { background: none; border: 0; padding: 0; color: var(--lm-err); font-size: 13px; cursor: pointer; text-decoration: underline; }
.lm-inline { display: inline; }

/* Cards, badges, notes */
.lm-card { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 24px; margin: 0 0 20px; }
.lm-card h2 { font-size: 20px; margin: 0 0 10px; }
.lm-card h3 { font-size: 17px; margin: 0 0 8px; }
.lm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lm-card-head h2, .lm-card-head h3 { margin: 0; }
.lm-badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.4; vertical-align: middle; }
.lm-badge-ok { background: var(--lm-ok); color: #fff; }
.lm-badge-warn { background: var(--lm-warn); color: #2b2100; }
.lm-badge-muted { background: #6b7686; color: #fff; }
.lm-note { background: #e6f0ff; border: 1px solid #bcd3ff; border-radius: 10px; padding: 16px 20px; margin: 0 0 20px; }
.lm-flash { position: relative; padding: 14px 44px 14px 18px; border-radius: 10px; margin: 0 0 18px; border: 1px solid; }
.lm-flash-ok { background: #e3f4ec; border-color: #a9d9c3; }
.lm-flash-warn { background: #fff6d9; border-color: #f0d98a; }
.lm-flash-err { background: #fdecea; border-color: #f2b8b1; }
.lm-flash-x { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.lm-empty { text-align: center; padding: 34px 10px; color: var(--lm-muted); }
.lm-empty .dashicons { font-size: 44px; width: 44px; height: 44px; opacity: .45; }
.lm-progress { height: 8px; background: #e6ebf1; border-radius: 99px; overflow: hidden; margin: 10px 0; }
.lm-progress i { display: block; height: 100%; background: var(--lm-primary); border-radius: 99px; }
.lm-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lm-row-fill > input { flex: 1; min-width: 200px; }
.lm-stars { color: #f5a300; letter-spacing: 1px; }
.lm-stars i { color: #d5dbe3; font-style: normal; }

/* Lists */
.lm-list { list-style: none; margin: 0; padding: 0; }
.lm-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--lm-border); }
.lm-list li:first-child { border-top: 0; }
.lm-list li > div { flex: 1; min-width: 0; }
.lm-list li.is-unread { font-weight: 600; }
.lm-list p { margin: 6px 0 0; }
.lm-bullets { margin: 0 0 16px; padding-left: 20px; }
.lm-bullets li { margin: 4px 0; }
.lm-checks { list-style: none; margin: 14px 0; padding: 0; }
.lm-checks li { position: relative; padding: 5px 0 5px 28px; }
.lm-checks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c3ccd8; }
.lm-checks li.is-done::before { content: "✓"; border-color: var(--lm-ok); background: var(--lm-ok); color: #fff; font-size: 11px; line-height: 13px; text-align: center; font-weight: 700; }
.lm-checks li.is-off { color: #9aa4b2; text-decoration: line-through; }
.lm-reply { background: var(--lm-bg); border-left: 3px solid var(--lm-primary); padding: 10px 14px; border-radius: 6px; margin-top: 10px; }
.lm-kv { width: 100%; border-collapse: collapse; }
.lm-kv th, .lm-kv td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--lm-border); }
.lm-table-wrap { overflow-x: auto; }
.lm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lm-table th, .lm-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--lm-border); vertical-align: top; }
.lm-table th { color: var(--lm-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Forms */
.lm-form { margin: 0; }
.lm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 16px; }
.lm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lm-f { display: block; margin: 0 0 14px; }
.lm-grid .lm-f { margin: 0; }
.lm-f > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lm-f em { color: var(--lm-err); font-style: normal; }
.lm-f i { color: var(--lm-muted); font-weight: 400; font-style: normal; }
.lm-f small { display: block; color: var(--lm-muted); font-size: 12.5px; margin-top: 5px; line-height: 1.45; }
.lm-f input[type="text"], .lm-f input[type="email"], .lm-f input[type="tel"], .lm-f input[type="number"], .lm-f input[type="password"], .lm-f input[type="date"], .lm-f input[type="time"], .lm-f input[type="file"], .lm-f select, .lm-f textarea,
.lm-table select, .lm-auth input[type="text"], .lm-auth input[type="password"], .lm-row-fill > input {
	width: 100%; padding: 11px 13px; border: 1px solid #cfd7e2; border-radius: 10px; background: #fff; color: var(--lm-text); font: inherit; font-size: 15px; min-height: 46px;
}
.lm-f input:focus, .lm-f select:focus, .lm-f textarea:focus, .lm-search input:focus { outline: 2px solid var(--lm-primary); outline-offset: 1px; border-color: var(--lm-primary); }
.lm-f input[disabled] { background: #eef1f5; color: var(--lm-muted); }
.lm-thumb { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; border: 1px solid var(--lm-border); }

/* ---------- Dashboard ---------- */
.lm-dash { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 80vh; background: var(--lm-bg); color: var(--lm-text); text-align: left; }
.lm-side { background: var(--lm-dark); color: #dbe4f3; padding: 26px 14px; }
.lm-side-user { padding: 0 12px 18px; }
.lm-side-user strong { display: block; color: #fff; font-size: 19px; }
.lm-side-user span { font-size: 13.5px; opacity: .85; word-break: break-all; }
.lm-side nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #dbe4f3 !important; text-decoration: none !important; font-size: 15px; }
.lm-side nav a:hover { background: rgba(255, 255, 255, .08); }
.lm-side nav a.is-active { background: var(--lm-primary); color: #fff !important; font-weight: 700; }
.lm-side-label { padding: 16px 12px 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.lm-count { background: var(--lm-accent); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 12px; margin-left: auto; }
.lm-side-toggle { display: none; }
.lm-main { padding: 30px; min-width: 0; }
.lm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.lm-head h1 { font-size: 28px; margin: 0 0 4px; line-height: 1.2; }
.lm-head p { margin: 0; color: var(--lm-muted); }
.lm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.lm-stat { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 18px 22px; }
.lm-stat b { display: block; font-size: 30px; line-height: 1.1; }
.lm-stat span { color: var(--lm-muted); font-size: 14px; }
.lm-stat.is-primary { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; }
.lm-stat.is-primary span { color: #fff; opacity: .9; }
.lm-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lm-cols-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.lm-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.lm-steps a { display: block; padding: 12px 16px; border: 1px solid var(--lm-border); border-radius: 12px; background: var(--lm-surface); color: var(--lm-text) !important; text-decoration: none !important; }
.lm-steps a.is-active { border-color: var(--lm-primary); box-shadow: inset 0 0 0 1px var(--lm-primary); }
.lm-steps span { display: block; font-size: 13px; color: var(--lm-muted); }
.lm-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.lm-photo img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.lm-photo form { margin-top: 4px; }

/* ---------- Hero & search ---------- */
.lm-hero { text-align: center; padding: 44px 20px 40px; background: linear-gradient(180deg, #e8f0ff 0%, var(--lm-bg) 100%); color: var(--lm-text); }
.lm-hero-plain { background: none; padding-bottom: 20px; }
.lm-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px auto 8px; max-width: 760px; line-height: 1.15; }
.lm-hero p { margin: 0 auto 16px; max-width: 620px; color: var(--lm-muted); }
.lm-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--lm-primary) !important; margin-bottom: 0 !important; }
.lm-pill { display: inline-block; background: #fff; border: 1px solid var(--lm-border); border-radius: 10px; padding: 8px 16px; color: var(--lm-primary) !important; font-weight: 600; }
.lm-search { max-width: 860px; margin: 0 auto; text-align: left; }
.lm-search-inline { max-width: none; margin: 16px 0; }
.lm-search-top { font-size: 13px; margin-bottom: 6px; display: flex; gap: 10px; color: var(--lm-muted); }
.lm-search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px; background: #fff; border: 1px solid var(--lm-border); border-radius: 14px; padding: 8px; box-shadow: 0 6px 22px rgba(12, 27, 51, .07); }
.lm-search input[type="text"] { border: 0; padding: 12px 14px; font: inherit; font-size: 15px; min-width: 0; background: transparent; border-radius: 8px; }
.lm-search-row input:first-child { border-right: 1px solid var(--lm-border); border-radius: 8px 0 0 8px; }

/* ---------- Categories ---------- */
.lm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.lm-cat { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 20px; }
.lm-cat-head { display: flex; gap: 12px; align-items: center; text-decoration: none !important; color: var(--lm-text) !important; }
.lm-cat-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--lm-bg); border-radius: 12px; font-size: 24px; }
.lm-cat-head em { display: block; font-style: normal; font-size: 12px; color: var(--lm-ok); font-weight: 600; }
.lm-cat p { color: var(--lm-muted); font-size: 13.5px; margin: 12px 0; }
.lm-cat ul { list-style: none; margin: 0; padding: 0; }
.lm-cat li { border-top: 1px solid var(--lm-border); }
.lm-cat li a { display: block; padding: 7px 0; font-size: 14px; text-decoration: none; color: var(--lm-primary); }
.lm-cats-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.lm-cats-tiles .lm-cat { padding: 18px 12px; text-align: center; transition: border-color .15s, transform .15s; }
.lm-cats-tiles .lm-cat:hover { border-color: var(--lm-primary); transform: translateY(-2px); }
.lm-cats-tiles .lm-cat-head { flex-direction: column; font-size: 14px; }

/* ---------- Business cards ---------- */
.lm-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin: 20px 0; }
.lm-biz-grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lm-biz { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.lm-biz:hover { border-color: var(--lm-primary); box-shadow: 0 8px 26px rgba(12, 27, 51, .09); }
.lm-biz-img { position: relative; display: grid; place-items: center; height: 170px; background: linear-gradient(180deg, #eaf1ff, #d9e3f5); color: var(--lm-primary); overflow: hidden; }
.lm-biz-img img { width: 100%; height: 100%; object-fit: cover; }
.lm-biz-img .dashicons { font-size: 72px; width: 72px; height: 72px; opacity: .7; }
.lm-biz-rate, .lm-biz-flag { position: absolute; left: 10px; bottom: 10px; background: #fff; border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; color: var(--lm-text); }
.lm-biz-flag { left: auto; right: 10px; top: 10px; bottom: auto; background: var(--lm-accent); color: #fff; }
.lm-biz-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.lm-biz-body h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; }
.lm-biz-body h3 a { color: var(--lm-text); text-decoration: none; }
.lm-biz-meta { margin: 0 0 3px; font-size: 13.5px; color: var(--lm-muted); }
.lm-biz-meta .dashicons { font-size: 15px; width: 15px; height: 15px; margin-right: 5px; }
.lm-biz-text { font-size: 13.5px; color: var(--lm-muted); margin: 8px 0 14px; flex: 1; }
.lm-biz-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lm-biz-enq { margin-left: auto; font-size: 14px; color: var(--lm-primary); }
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lm-chips a { padding: 7px 13px; border: 1px solid var(--lm-border); border-radius: 9px; background: #fff; font-size: 14px; text-decoration: none; color: var(--lm-primary); }
.lm-chips a.is-active { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; font-weight: 700; }
.lm-pages { text-align: center; margin: 26px 0; }
.lm-pages .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--lm-border); background: #fff; margin: 0 2px; border-radius: 8px; text-decoration: none; color: var(--lm-primary); }
.lm-pages .page-numbers.current { background: var(--lm-primary); color: #fff; border-color: var(--lm-primary); }
.lm-crumbs { font-size: 13.5px; color: var(--lm-muted); margin-bottom: 14px; }
.lm-crumbs a { color: var(--lm-muted); }
.lm-archive h1 { margin: 0 0 6px; font-size: 30px; }
.lm-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: #e8f0ff; border-radius: var(--lm-radius); padding: 28px 30px; margin: 30px 0; color: var(--lm-text); }
.lm-cta h2 { margin: 0 0 6px; font-size: 22px; }
.lm-cta p { margin: 0; color: var(--lm-muted); max-width: 640px; }

/* ---------- Single business ---------- */
.lm-biz-header { margin-bottom: 18px; }
.lm-cover { height: 220px; border-radius: var(--lm-radius) var(--lm-radius) 0 0; background: linear-gradient(120deg, var(--lm-dark), var(--lm-primary)); overflow: hidden; }
.lm-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-biz-id { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 22px 24px; margin-top: -18px; position: relative; box-shadow: 0 6px 22px rgba(12, 27, 51, .06); }
.lm-logo { width: 84px; height: 84px; flex: none; border-radius: 16px; border: 1px solid var(--lm-border); background: var(--lm-bg); display: grid; place-items: center; overflow: hidden; color: var(--lm-primary); }
.lm-logo img { width: 100%; height: 100%; object-fit: cover; }
.lm-logo .dashicons { font-size: 40px; width: 40px; height: 40px; }
.lm-biz-title { flex: 1; min-width: 220px; }
.lm-biz-title h1 { font-size: 28px; margin: 0 0 4px; line-height: 1.2; }
.lm-biz-title p { margin: 0 0 3px; }
.lm-biz-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.lm-anchors { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; font-size: 15px; }
.lm-anchors a { color: var(--lm-primary); text-decoration: none; }
.lm-anchors a:hover { text-decoration: underline; }
.lm-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-bottom: 12px; }
.lm-service { border: 1px solid var(--lm-border); border-radius: 12px; overflow: hidden; }
.lm-service img { width: 100%; height: 150px; object-fit: cover; display: block; }
.lm-service > div { padding: 12px 14px 14px; display: grid; gap: 4px; }
.lm-service small { color: var(--lm-muted); }
.lm-service .lm-btn { margin-top: 6px; }
.lm-rating-big { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.lm-rating-big b { font-size: 38px; }
.lm-dl { margin: 0 0 14px; }
.lm-dl dt { font-size: 12.5px; color: var(--lm-muted); margin-top: 12px; }
.lm-dl dd { margin: 2px 0 0; }
.lm-map { width: 100%; height: 220px; border: 0; border-radius: 10px; margin-bottom: 12px; }
.lm-social { margin-top: 12px; }
#write-review { border-top: 1px solid var(--lm-border); margin-top: 18px; padding-top: 18px; }

/* ---------- Plans / auth / FAQ ---------- */
.lm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 22px; }
.lm-plan { background: var(--lm-surface); border: 1px solid var(--lm-border); border-radius: var(--lm-radius); padding: 24px; display: flex; flex-direction: column; }
.lm-plan.is-top { border-color: var(--lm-primary); }
.lm-plan h3 { margin: 8px 0 4px; font-size: 19px; }
.lm-plan .lm-checks { flex: 1; }
.lm-price { font-size: 32px; font-weight: 800; }
.lm-price small { font-size: 13px; font-weight: 400; color: var(--lm-muted); }
.lm-auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 920px; margin: 30px auto; padding: 0 20px; align-items: start; }
.lm-auth label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lm-auth .login-remember label { font-weight: 400; }
.lm-auth input[type="submit"] { background: var(--lm-primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; }
.lm-faq dt { font-weight: 700; margin-top: 16px; }
.lm-faq dd { margin: 4px 0 0; color: var(--lm-muted); padding-bottom: 14px; border-bottom: 1px solid var(--lm-border); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.lm-dash { grid-template-columns: 1fr; }
	.lm-side { display: none; padding-top: 10px; }
	.lm-side.is-open { display: block; }
	.lm-side-toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--lm-dark); color: #fff; border: 0; padding: 14px 20px; font: inherit; font-weight: 700; cursor: pointer; }
	.lm-main { padding: 20px 16px; }
	.lm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lm-cols, .lm-cols-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.lm-grid, .lm-grid-3, .lm-auth, .lm-steps { grid-template-columns: 1fr; }
	.lm-search-row { grid-template-columns: 1fr; }
	.lm-search-row input:first-child { border-right: 0; border-bottom: 1px solid var(--lm-border); border-radius: 8px 8px 0 0; }
	.lm-card { padding: 18px; }
	.lm-cover { height: 150px; }
	.lm-biz-title h1, .lm-head h1 { font-size: 23px; }
	.lm-table thead { display: none; }
	.lm-table td { display: block; border: 0; padding: 4px 0; }
	.lm-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--lm-border); }
}
@media (prefers-reduced-motion: reduce) {
	.lm-btn, .lm-biz, .lm-cat { transition: none; }
}
