/**
 * Guido Modern Listings CSS
 * Archive card (lm-*) + Single listing (lsm-*)
 * Matches dental-directory prototype design.
 */

:root {
  --lm-navy:         #0E1E35;
  --lm-brand:        #47c6f3;
  --lm-brand-dark:   #22aad8;
  --lm-brand-bg:     rgba(71, 198, 243, 0.08);
  --lm-brand-border: rgba(71, 198, 243, 0.25);
  --lm-gold:         #C9963B;
  --lm-green:        #1E7B4B;
  --lm-cream:        #FAF7F2;
  --lm-white:        #fff;
  --lm-gray-100:     #F4F4F4;
  --lm-gray-200:     #E8E8E8;
  --lm-gray-400:     #9A9A9A;
  --lm-gray-600:     #5A5A5A;
  --lm-gray-800:     #2A2A2A;
  --lm-shadow-sm:    0 2px 8px rgba(14, 30, 53, 0.06);
  --lm-shadow-md:    0 6px 24px rgba(14, 30, 53, 0.10);
  --lm-radius:       12px;
  --lm-radius-sm:    8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ARCHIVE CARD (inner-list-modern.php)
   ══════════════════════════════════════════════════════════════════════════ */

.lm-card {
  background: var(--lm-white);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-sm);
  border: 1px solid var(--lm-gray-200);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  margin-bottom: 14px;
}
.lm-card:hover {
  box-shadow: var(--lm-shadow-md);
  transform: translateY(-2px);
  border-color: rgba(71, 198, 243, 0.4);
}

.lm-card-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  text-decoration: none;
  color: inherit;
  min-height: 120px;
}

/* Thumbnail */
.lm-thumb {
  position: relative;
  overflow: hidden;
  background: var(--lm-gray-100);
  min-height: 120px;
}
.lm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lm-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d8f4fd 0%, #b8e8f8 100%);
}
.lm-thumb-placeholder svg { width: 36px; height: 36px; }

/* Verified dot on thumbnail */
.lm-verified-dot {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: var(--lm-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.lm-verified-dot svg { display: block; }

/* Body */
.lm-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lm-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.lm-name {
  font-family: 'Playfair Display', 'DM Sans', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--lm-navy);
  line-height: 1.3;
  transition: color 0.2s;
}
.lm-card:hover .lm-name { color: var(--lm-brand-dark); }

/* Badges */
.lm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.lm-badge-verified {
  background: var(--lm-brand-bg);
  color: var(--lm-brand-dark);
  border: 1px solid var(--lm-brand-border);
}
.lm-badge-unverified {
  background: rgba(154,154,154,0.08);
  color: var(--lm-gray-400);
  border: 1px solid var(--lm-gray-200);
}

.lm-specialty {
  font-size: 11px;
  color: var(--lm-brand-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lm-address {
  font-size: 12.5px;
  color: var(--lm-gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lm-address svg { flex-shrink: 0; }
.lm-desc {
  font-size: 12.5px;
  color: var(--lm-gray-600);
  line-height: 1.5;
}
.lm-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.lm-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lm-gray-800);
}
.lm-stars { color: var(--lm-gold); font-size: 12px; }
.lm-reviews { font-size: 11px; color: var(--lm-gray-400); font-weight: 400; }

/* Open/closed pill from theme */
.lm-meta .time-status,
.lm-meta .listing-open-hours { font-size: 12px; }

/* Override: row layout for the archive */
.listings-wrapper .lm-card { margin-bottom: 14px; }
.listings-wrapper .col-12 .lm-card-link,
.listings-wrapper .col-lg-12 .lm-card-link { grid-template-columns: 120px 1fr; }

@media (max-width: 576px) {
  .lm-card-link { grid-template-columns: 90px 1fr; }
  .lm-body { padding: 10px 12px; }
  .lm-name { font-size: 14px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE LISTING MODERN (content-single-listing-modern.php)
   ══════════════════════════════════════════════════════════════════════════ */

/* Hero */
.lsm-hero {
  background: var(--lm-brand);
  padding: 20px 0 0;
}
.lsm-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Breadcrumb */
.lsm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.lsm-breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.lsm-breadcrumb a:hover { color: #fff; }
.lsm-breadcrumb span { color: rgba(255,255,255,0.35); }
.lsm-breadcrumb-current { color: rgba(255,255,255,0.9); }

/* Image grid (matches prototype: 1 big + 4 small, 2x2) */
.lsm-image-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 5px;
  border-radius: var(--lm-radius) var(--lm-radius) 0 0;
  overflow: hidden;
}
.lsm-img {
  overflow: hidden;
  background: rgba(255,255,255,0.15);
  position: relative;
}
.lsm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lsm-img-main { grid-row: 1 / 3; }
.lsm-img-placeholder {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lsm-img-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }

/* Body layout */
.lsm-body { background: var(--lm-cream); }
.lsm-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

/* Main column */
.lsm-main {}

/* Title row */
.lsm-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.lsm-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--lm-navy);
  line-height: 1.2;
  margin: 0;
}
.lsm-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.lsm-badge-lg-verified {
  background: var(--lm-brand-bg);
  color: var(--lm-brand-dark);
  border: 1.5px solid var(--lm-brand-border);
}
.lsm-badge-lg-unverified {
  background: var(--lm-gray-100);
  color: var(--lm-gray-400);
  border: 1.5px solid var(--lm-gray-200);
}

/* Meta row */
.lsm-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.lsm-specialty {
  font-size: 12.5px;
  color: var(--lm-brand-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lsm-address {
  font-size: 13px;
  color: var(--lm-gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lsm-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lm-gray-800);
}
.lsm-stars { color: var(--lm-gold); }
.lsm-reviews { font-size: 13px; color: var(--lm-gray-400); font-weight: 400; }

/* Section blocks */
.lsm-section {
  margin-bottom: 32px;
}
.lsm-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lm-gray-400);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lm-gray-200);
}
.lsm-section-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--lm-gray-600);
}
.lsm-section-text p { margin-bottom: 1em; }
.lsm-section-text p:last-child { margin-bottom: 0; }

/* Features grid */
.lsm-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lsm-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--lm-gray-600);
}
.lsm-feature-item svg { color: var(--lm-brand-dark); flex-shrink: 0; }

/* Verified block */
.lsm-verified-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lsm-verified-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--lm-brand-bg);
  border: 1px solid var(--lm-brand-border);
  border-radius: var(--lm-radius-sm);
}
.lsm-verified-icon {
  width: 32px;
  height: 32px;
  background: var(--lm-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lsm-verified-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--lm-gray-800);
}
.lsm-verified-item-sub {
  font-size: 12px;
  color: var(--lm-gray-400);
  margin-top: 2px;
}

/* Unverified CTA */
.lsm-unverified-cta {
  border: 1.5px dashed var(--lm-gray-200);
  border-radius: var(--lm-radius);
  padding: 28px 24px;
  text-align: center;
  background: rgba(0,0,0,0.01);
}
.lsm-unverified-icon { color: var(--lm-gray-400); margin-bottom: 10px; }
.lsm-unverified-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--lm-gray-800);
  margin: 0 0 8px;
}
.lsm-unverified-cta p {
  font-size: 13px;
  color: var(--lm-gray-400);
  line-height: 1.6;
  margin: 0 0 18px;
}
.lsm-btn-upgrade {
  display: inline-block;
  background: var(--lm-gold);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: var(--lm-radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.lsm-btn-upgrade:hover { background: #d4a44a; color: #fff; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.lsm-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}
.lsm-sidebar-card {
  background: var(--lm-white);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-sm);
  border: 1px solid var(--lm-gray-200);
  overflow: hidden;
}
.lsm-sidebar-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--lm-gray-100);
  font-weight: 600;
  font-size: 14px;
  color: var(--lm-navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lsm-sidebar-head svg { color: var(--lm-brand); }
.lsm-sidebar-body { padding: 18px; }

/* Address row (below title) */
.lsm-address-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--lm-gray-500);
  margin-bottom: 10px;
}
.lsm-address-row svg { color: var(--lm-brand); flex-shrink: 0; }

/* Contact rows */
.lsm-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--lm-gray-100);
  transition: color 0.15s;
}
.lsm-contact-row:last-of-type { border-bottom: none; }
.lsm-contact-row:hover { color: var(--lm-brand-dark); }
.lsm-contact-icon {
  width: 34px;
  height: 34px;
  background: var(--lm-brand-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--lm-brand);
}
.lsm-contact-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lsm-contact-label {
  font-size: 11px;
  color: var(--lm-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.lsm-contact-value {
  font-size: 13px;
  color: var(--lm-gray-700);
  font-weight: 500;
}
.lsm-contact-row:hover .lsm-contact-value { color: var(--lm-brand); }

/* Contact form */
.lsm-contact-form-wrap {
  border-top: 1px solid var(--lm-gray-100);
  padding-top: 16px;
  margin-top: 4px;
}
.lsm-contact-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--lm-gray-700);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lsm-form-row { margin-bottom: 10px; }
.lsm-form-input,
.lsm-form-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--lm-gray-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--lm-gray-800);
  background: var(--lm-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
}
.lsm-form-input:focus,
.lsm-form-textarea:focus {
  border-color: var(--lm-brand);
  box-shadow: 0 0 0 3px rgba(71, 198, 243, 0.15);
}
.lsm-form-textarea { resize: vertical; min-height: 90px; }
.lsm-form-submit {
  width: 100%;
  padding: 11px;
  background: var(--lm-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.lsm-form-submit:hover { background: var(--lm-brand-dark); }

/* Map card */
.lsm-map-wrap { overflow: hidden; }
.lsm-map,
.lsm-map-card #single-listing-google-maps { height: 200px; background: #d4edf0; }
.lsm-map-card .lsm-map,
.lsm-map-card .single-listing-google-maps-wrapper { margin: 0; }
/* old directions link still referenced — keep for other templates */
.lsm-directions-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--lm-gray-100);
  color: var(--lm-brand-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--lm-gray-200);
  transition: background 0.15s;
}
.lsm-directions-link:hover { background: var(--lm-brand-bg); }

/* Hours */
.lsm-hours-status {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lsm-hours-status-open  { background: #e6f9ee; color: #1d8a4b; }
.lsm-hours-status-closed { background: #fde8e8; color: #c0392b; }
.lsm-hours-body { padding: 0 18px !important; }
.lsm-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--lm-gray-100);
  font-size: 13px;
  transition: background 0.1s;
}
.lsm-hours-row:last-child { border-bottom: none; }
.lsm-hours-today {
  background: var(--lm-brand-bg);
  margin: 0 -18px;
  padding: 9px 18px;
  border-radius: 6px;
  border-bottom: none;
}
.lsm-hours-today + .lsm-hours-row { border-top: 1px solid var(--lm-gray-100); }
.lsm-hours-day {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--lm-gray-600);
  font-weight: 500;
}
.lsm-hours-today .lsm-hours-day { color: var(--lm-brand-dark); font-weight: 700; }
.lsm-hours-today-dot {
  width: 6px; height: 6px;
  background: var(--lm-brand);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.lsm-hours-time { color: var(--lm-gray-800); }
.lsm-hours-today .lsm-hours-time { color: var(--lm-brand-dark); font-weight: 600; }
.lsm-hours-closed { color: var(--lm-gray-400); font-style: italic; }

/* Actions card */
.lsm-actions-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px !important;
}

/* ── Related Listings ───────────────────────────────────────────────────── */
.lsm-related {
  background: var(--lm-white);
  border-top: 1px solid var(--lm-gray-200);
  padding: 40px 0;
}
.lsm-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.lsm-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lm-navy);
  margin-bottom: 20px;
}
.lsm-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.lsm-related-card {
  background: var(--lm-white);
  border: 1px solid var(--lm-gray-200);
  border-radius: var(--lm-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  display: block;
}
.lsm-related-card:hover {
  box-shadow: var(--lm-shadow-md);
  transform: translateY(-2px);
  border-color: rgba(71, 198, 243, 0.4);
}
.lsm-related-thumb {
  height: 130px;
  background: var(--lm-gray-100);
  overflow: hidden;
  position: relative;
}
.lsm-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lsm-related-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d8f4fd, #b8e8f8);
}
.lsm-related-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--lm-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}
.lsm-related-body { padding: 12px 14px; }
.lsm-related-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--lm-navy);
  margin-bottom: 4px;
  line-height: 1.3;
  transition: color 0.2s;
}
.lsm-related-card:hover .lsm-related-name { color: var(--lm-brand-dark); }
.lsm-related-cat {
  font-size: 11px;
  color: var(--lm-brand-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.lsm-related-addr {
  font-size: 12px;
  color: var(--lm-gray-400);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lsm-related-rating {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lm-gray-800);
  display: flex;
  align-items: center;
  gap: 4px;
}
.lsm-related-rating .lsm-stars { font-size: 11px; color: var(--lm-gold); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .lsm-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .lsm-body-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 24px;
  }
  .lsm-sidebar { position: static; }
  .lsm-image-grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 160px 160px;
  }
  .lsm-related-grid { grid-template-columns: repeat(2, 1fr); }
  .lsm-related-inner { padding: 0 20px; }
  .lsm-hero-inner { padding: 0 20px; }
}

@media (max-width: 640px) {
  .lsm-image-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 200px;
  }
  .lsm-img:not(.lsm-img-main) { display: none; }
  .lsm-img-main { grid-row: auto; }
  .lsm-title { font-size: 22px; }
  .lsm-title-row { flex-direction: column; gap: 8px; }
  .lsm-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lsm-features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .lsm-related-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ARCHIVE: Override archive body layout to match prototype
   ══════════════════════════════════════════════════════════════════════════ */

/* Force list-mode columns to single-column with modern cards */
.listing-single-modern .listing-single-layout { border: none; box-shadow: none; }

/* Override default row column class when modern style is active */
.listing-single-layout.listing-single-modern + .listings-wrapper .row {
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════════════════
   LOCATION ARCHIVE TEMPLATE  (mlat-*)
   ══════════════════════════════════════════════════════════════════════════ */

/* Page shell */
.mlat-page {
  min-height: 100vh;
  background: var(--lm-gray-50);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.mlat-hero {
  position: relative;
  background: var(--lm-navy);
  padding: 52px 0 40px;
  overflow: hidden;
}
.mlat-hero.has-image {
  background-size: cover;
  background-position: center;
}
.mlat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,30,53,0.88) 0%, rgba(14,30,53,0.70) 100%);
}
.mlat-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Breadcrumb */
.mlat-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.mlat-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.mlat-breadcrumb a:hover { color: #fff; }
.mlat-sep { opacity: 0.4; }

/* Hero title */
.mlat-hero-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.mlat-hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 18px;
  line-height: 1.6;
}

/* Meta row: count + region pills */
.mlat-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.mlat-hero-count {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 4px 14px;
  flex-shrink: 0;
}
.mlat-hero-count strong { color: var(--lm-brand); }
.mlat-hero-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mlat-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.mlat-region-pill:hover {
  background: rgba(71,198,243,0.25);
  border-color: var(--lm-brand);
  color: #fff;
}
.mlat-region-count {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
}

/* ── Mobile toolbar ─────────────────────────────────────────────────────── */
.mlat-toolbar {
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--lm-gray-200);
  position: sticky;
  top: 0;
  z-index: 200;
}
.mlat-tool-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--lm-gray-200);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--lm-gray-700);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.mlat-tool-btn:hover { border-color: var(--lm-brand); color: var(--lm-brand); }

/* ── Body: two-column split ─────────────────────────────────────────────── */
.mlat-body {
  display: flex;
  align-items: flex-start;
  height: auto;
  overflow: visible;
}

/* Left column: filter (static) + listings below */
.mlat-left {
  width: 42%;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  border-right: 1px solid var(--lm-gray-200);
  background: var(--lm-white);
}
.mlat-inner-left {
  display: block;
  height: auto;
  overflow: visible;
}
.mlat-listings-wrap {
  padding: 16px 20px;
  overflow: visible;
}

/* Results bar above the list */
.mlat-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--lm-gray-100);
  margin-bottom: 12px;
}
.mlat-results-count {
  font-size: 13px;
  color: var(--lm-gray-500);
}
.mlat-results-count strong { color: var(--lm-gray-800); }

/* Force lm-cards inside the location template to full width */
.mlat-listings-wrap .listings-wrapper .row { display: flex; flex-direction: column; gap: 0; }
.mlat-listings-wrap .listings-wrapper .col-12,
.mlat-listings-wrap .listings-wrapper [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0; }
.mlat-listings-wrap .lm-card { margin-bottom: 10px; }

/* Right column: sticky fixed-height map */
.mlat-right {
  flex: 1;
  position: sticky;
  top: 80px;
  height: 500px;
  overflow: hidden;
  align-self: flex-start;
}
.mlat-map,
.mlat-right #listings-google-maps {
  width: 100% !important;
  height: 500px !important;
  position: relative !important;
}

/* ── Filter: override offcanvas — always visible, static ─────────────────── */
.mlat-page .offcanvas-filter-half-map {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  background: var(--lm-white) !important;
  border-bottom: 1px solid var(--lm-gray-100);
  border-radius: 0;
  transition: none !important;
}
.mlat-page .over-dark-filter {
  display: none !important;
}
/* Hide toggle button on desktop since filter is always visible */
@media (min-width: 992px) {
  .mlat-page .mlat-tool-btn.filter-in-sidebar {
    display: none;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .mlat-body {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .mlat-left {
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--lm-gray-200);
  }
  .mlat-listings-wrap {
    overflow: visible;
    height: auto;
    max-height: none;
  }
  .mlat-right { position: static; height: 350px; }
  .mlat-right #listings-google-maps { position: relative !important; height: 350px !important; }
  .mlat-page .offcanvas-filter-half-map { max-height: 60vh; overflow-y: auto !important; }
  .mlat-hero-content { padding: 0 20px; }
  .mlat-hero-title { font-size: 24px; }
}

@media (max-width: 600px) {
  .mlat-hero { padding: 36px 0 28px; }
  .mlat-hero-title { font-size: 20px; }
  .mlat-region-pill { font-size: 12px; padding: 3px 10px; }
  .mlat-right { height: 300px; }
  .mlat-right #listings-google-maps { height: 300px !important; }
}
