/* =============================================================================
   Land Marshal — home page (buyers): search, nearby cards, developers, compare tray
   ============================================================================= */

/* ---------- Smart search (hero) ---------- */
.lmh-search-wrap { position: relative; max-width: 600px; }
.lmh-searchbox {
  display: flex; align-items: center; gap: 6px; background: #ffffff; border: 1.5px solid #dfd8c8;
  border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 10px 28px rgba(11, 46, 39, 0.10);
}
.lmh-searchbox:focus-within { border-color: #c59638; box-shadow: 0 0 0 4px rgba(226, 186, 100, 0.25), 0 10px 28px rgba(11, 46, 39, 0.10); }
.lmh-search-ico { color: #8a9a94; display: inline-flex; }
.lmh-searchbox input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: #0b241f;
  font-family: var(--font-sans); font-size: 0.98rem; padding: 10px 4px;
}
.lmh-searchbox input::placeholder { color: #8a9a94; }
.lmh-clear { border: 0; background: transparent; color: #6b7c76; font-size: 1rem; font-weight: 800; cursor: pointer; padding: 4px 8px; }
.lmh-search-go {
  border: 0; border-radius: 10px; padding: 11px 22px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, #0b2e27 0%, #146354 100%); color: #fefcf7;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 800;
}
.lmh-search-go:hover { filter: brightness(1.08); }
.lmh-search-go:disabled { opacity: 0.45; cursor: not-allowed; }
.lmh-loc-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lmh-loc-btn {
  border: 1px solid #dfd8c8; background: #ffffff; color: #0f3b31; border-radius: 999px; padding: 6px 13px;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; cursor: pointer;
}
.lmh-loc-btn:hover { border-color: #c59638; background: #fdf8ec; }
.lmh-popular { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 0.78rem; }
.lmh-popular .lbl { font-weight: 800; color: #0b241f; }
.lmh-popular button {
  border: 1px solid #dfd8c8; background: #faf7ef; color: #115e50; border-radius: 999px; padding: 3px 11px;
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700; cursor: pointer;
}
.lmh-popular button:hover { border-color: #c59638; color: #7c5813; }

/* Browse by area: soft translucent box, regions | micro-markets */
.lmh-areas {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 0; max-width: 600px; margin-top: 14px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(197, 150, 56, 0.28); border-radius: 14px;
  backdrop-filter: blur(4px); overflow: hidden;
}
.lmh-areas-col { padding: 10px 12px; min-width: 0; }
.lmh-areas-col.regions { border-right: 1px solid rgba(197, 150, 56, 0.22); background: rgba(250, 247, 239, 0.6); display: flex; flex-direction: column; gap: 3px; }
.lmh-areas-h { font-size: 0.66rem; font-weight: 800; color: #9e7220; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 6px; }
.lmh-areas-h span { color: #8a9a94; font-weight: 700; text-transform: none; letter-spacing: 0; }
.lmh-region {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 8px;
  padding: 6px 8px; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; color: #0f3b31; cursor: pointer; text-align: left;
}
.lmh-region b { font-size: 0.68rem; color: #6b7c76; font-weight: 800; }
.lmh-region:hover { background: rgba(15, 82, 70, 0.07); }
.lmh-region.active { background: #0f5246; color: #ffffff; }
.lmh-region.active b { color: #c9e7dc; }
.lmh-mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; max-height: 196px; overflow-y: auto; }
.lmh-mm {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.7);
  border-radius: 8px; padding: 6px 8px; font-family: var(--font-sans); font-size: 0.76rem; font-weight: 600; color: #0b241f; cursor: pointer; text-align: left; min-width: 0;
}
.lmh-mm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-mm b { flex-shrink: 0; font-size: 0.66rem; color: #0f5246; background: #e6f5ef; border-radius: 999px; padding: 1px 6px; }
.lmh-mm:hover { border-color: #c59638; background: #ffffff; }
.lmh-row strong.nil { color: #9aa8a3; font-weight: 700; }
.lmh-row strong.nw { white-space: nowrap; }
/* Project type badge — sits on the photo, so the card size never changes */
.lmh-ptype {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0f3b31; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.lmh-ptype.villa { background: #fdf3dc; color: #7c5813; }
/* Price badge (bottom-right of the photo): "₹1.55 Cr onwards" */
.lmh-pricetag {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; white-space: nowrap;
  font-size: 0.66rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: #c59638; color: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
/* K-RERA site photo label (bottom-right of the photo) — makes clear it is not the builder's render */
.lmh-photosrc {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.56rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(11, 36, 31, 0.78); color: #f2e6c4;
}
.lmd-photo .lmh-photosrc { font-style: normal; }
.lmh-ptype.plot { background: #e6f0ff; color: #1e40af; }
.lmh-ptype.mix, .lmh-ptype.com { background: #f1f5f9; color: #475569; }
@media (max-width: 680px) {
  .lmh-areas { grid-template-columns: 1fr; }
  .lmh-areas-col.regions { border-right: 0; border-bottom: 1px solid rgba(197, 150, 56, 0.22); flex-direction: row; flex-wrap: wrap; }
  .lmh-areas-col.regions .lmh-areas-h { width: 100%; margin-bottom: 2px; }
  .lmh-region { padding: 5px 9px; font-size: 0.74rem; }
  .lmh-mm-grid { max-height: 220px; }
}

/* suggestions dropdown (hero + compare) */
.lmh-sugg-box {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 950; background: #ffffff;
  border: 1px solid #dfd8c8; border-radius: 12px; box-shadow: 0 18px 40px rgba(11, 46, 39, 0.18);
  max-height: 380px; overflow-y: auto;
}
.lmh-search-wrap > .lmh-sugg-box { top: 62px; }
.lmh-sugg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f1ede3; cursor: pointer; }
.lmh-sugg:last-child { border-bottom: 0; }
.lmh-sugg:hover { background: #faf7ef; }
.lmh-sugg-txt { min-width: 0; }
.lmh-sugg-txt .t { font-size: 0.86rem; font-weight: 700; color: #0b241f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-sugg-txt .s { font-size: 0.72rem; color: #6b7c76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-sugg-note { padding: 10px 14px; font-size: 0.78rem; color: #6b7c76; }
.lmh-sugg-badge { flex-shrink: 0; font-size: 0.66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.lmh-sugg-badge.b-project { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.lmh-sugg-badge.b-place { color: #075985; border-color: #bae6fd; background: #f0f9ff; }
.lmh-sugg-badge.b-micromarket { color: #7c5813; border-color: #e7cf98; background: #fdf8ec; }
.lmh-sugg-badge.b-builder { color: #5b21b6; border-color: #ddd6fe; background: #f5f3ff; }

/* ---------- Hero map tools + full screen ---------- */
.lmh-map-tools { position: absolute; top: 12px; right: 12px; z-index: 450; display: flex; gap: 6px; }
.lmh-map-tools button {
  border: 1px solid rgba(226, 186, 100, 0.5); background: rgba(7, 31, 26, 0.88); color: #f8f5ec; border-radius: 8px;
  padding: 6px 10px; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 800; cursor: pointer; backdrop-filter: blur(4px);
}
.lmh-map-tools button:hover { background: #0f5246; }
/* Phones (QA 2026-11-25): the label sat under "Near me" and the Full screen button under the legend */
@media (max-width: 600px) {
  .hero-map-preview-card:not(.lm-map-full) .hero-map-header { display: none !important; }   /* decorative label (inline display:flex); buttons need the room */
  .hero-map-preview-card:not(.lm-map-full) .lmh-full-lbl { display: none; }      /* Full screen → icon only */
  #hero-map-full-btn { padding: 6px 10px !important; }
  .lmh-map-legend { gap: 8px !important; padding: 4px 8px !important; }
}
.hero-map-preview-card.lm-map-full {
  position: fixed !important; inset: 0 !important; z-index: 9000 !important; border-radius: 0 !important;
  width: 100vw !important; height: 100vh !important; max-width: none !important; margin: 0 !important;
}
.hero-map-preview-card.lm-map-full .hero-map-container { height: 100% !important; }

/* ---------- Results ---------- */
.lmh-results { padding: 28px 0 34px; background: #f6f3ea; border-top: 1px solid #e7e0cf; border-bottom: 1px solid #e7e0cf; }
.lmh-res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lmh-res-head h2 { font-family: var(--font-serif); font-size: 1.55rem; color: #0b241f; margin: 0; }
.lmh-res-head p { font-size: 0.84rem; color: #5a6b65; margin: 4px 0 0; }
.lmh-res-head p.lmh-stale { display: inline-block; margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #fff7e6; border: 1px solid #f0d49a; color: #7c5813; font-weight: 700; }
.lmh-res-head p.lmh-stale[hidden] { display: none; }

/* Accessibility (QA 2026-11-25): tap targets at least 24 px tall on phones, smallest labels up to 11 px */
@media (max-width: 760px) {
  .lmh-cmp-add .lmh-link,
  .lmn-dcard button,
  .lmn-icard a,
  .reach-link { display: inline-flex; align-items: center; min-height: 28px; }
  .lmn-icard a { padding: 2px 0; }
  #contact-consent { width: 20px; height: 20px; flex: 0 0 auto; }
  .lmh-ptype, .lmn-tag, .lmh-unote { font-size: 11px !important; }
}
.lmh-res-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lmh-radius { display: inline-flex; align-items: center; gap: 2px; background: #ffffff; border: 1px solid #dfd8c8; border-radius: 999px; padding: 3px; }
.lmh-radius span { font-size: 0.72rem; font-weight: 800; color: #5a6b65; padding: 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.lmh-radius button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; color: #0f3b31; cursor: pointer; }
.lmh-radius button.active { background: #0f5246; color: #ffffff; }
.lmh-radius[hidden], .lmh-dir-from[hidden] { display: none; }
.lmh-radius button { white-space: nowrap; flex-shrink: 0; }
.lmh-radius .lmh-radius-from { min-width: 0; text-transform: none; letter-spacing: 0; color: #0f3b31; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lmh-dir-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 16px; }
.lmh-dir { flex-wrap: wrap; }
.lmh-dir button b { font-weight: 700; opacity: 0.7; margin-left: 2px; }
.lmh-dir button:disabled { opacity: 0.4; cursor: default; }
.lmh-dir-from { font-size: 0.72rem; color: #6b7c76; }
@media (max-width: 480px) { .lmh-radius .lmh-radius-from { max-width: 120px; } .lmh-dir button { padding: 5px 9px; } }
.lmh-link { border: 0; background: transparent; color: #9e7220; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 800; cursor: pointer; padding: 4px 6px; }
.lmh-link.light { color: #e2ba64; }
.lmh-more { border: 1px solid #0f5246; background: #ffffff; color: #0f5246; border-radius: 999px; padding: 9px 22px; font-family: var(--font-sans); font-size: 0.84rem; font-weight: 800; cursor: pointer; }
.lmh-more:hover { background: #0f5246; color: #ffffff; }
.lmh-note { font-size: 0.72rem; color: #6b7c76; margin: 14px 0 0; text-align: center; }
.lmh-empty { color: #5a6b65; padding: 20px; }

.lmh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lmh-card {
  background: #ffffff; border: 1px solid #e3dccb; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  min-width: 0; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; cursor: pointer;
}
.lmh-card:hover { box-shadow: 0 12px 28px rgba(11, 46, 39, 0.12); transform: translateY(-2px); border-color: #c59638; }
.lmh-tier-h {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px;
  border-top: 1px dashed #d8cfb8; font-size: 0.78rem; font-weight: 800; color: #6b7c76; text-transform: uppercase; letter-spacing: 0.6px;
}
.lmh-tier-h span { color: #9aa8a3; font-weight: 700; text-transform: none; letter-spacing: 0; }
#search-facts-modal { cursor: pointer; }
#search-facts-modal > * { cursor: auto; }
.lmh-card.is-anchor { border: 2px solid #c59638; }
.lmh-card.flash { box-shadow: 0 0 0 3px #e2ba64, 0 12px 28px rgba(11, 46, 39, 0.16); }
.lmh-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #0f3b31, #1d5c4c); overflow: hidden; }
.lmh-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lmh-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(226, 186, 100, 0.85); font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; letter-spacing: 1px; }
.lmh-rank { position: absolute; top: 8px; left: 8px; background: rgba(7, 31, 26, 0.86); color: #e2ba64; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.lmh-rank.anchor { background: #c59638; color: #071f1a; }
.lmh-dist { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, 0.94); color: #0b241f; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.lmh-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.lmh-name { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 800; color: #0b2e27; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lmh-dev { font-size: 0.7rem; color: #6b7c76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-price { font-size: 0.8rem; font-weight: 800; color: #7c5813; }
.lmh-row { display: flex; justify-content: space-between; gap: 6px; font-size: 0.74rem; color: #3d4f49; }
.lmh-row strong { color: #0b241f; text-align: right; }
.lmh-row strong.g { color: #0f5246; }
.lmh-row strong.a { color: #9e7220; }
.lmh-row strong.out { color: #9f1239; }
.lmh-bar { height: 5px; background: #ece6d8; border-radius: 999px; overflow: hidden; }
.lmh-bar div { height: 100%; background: linear-gradient(90deg, #0f5246, #10b981); }
.lmh-units { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; background: #f8f6f0; border: 1px solid #ece6d6; border-radius: 8px; padding: 5px 7px; }
.lmh-utype { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px; font-size: 0.68rem; color: #3d4f49; }
.lmh-utype b { color: #0b241f; font-weight: 800; white-space: nowrap; }
.lmh-utype .s { color: #5a6b65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-utype .c { white-space: nowrap; color: #5a6b65; }
.lmh-utype .c.left { color: #0f5246; font-weight: 800; }
.lmh-utype .c.out { color: #9aa8a3; }
.lmh-utype.more { display: block; color: #6b7c76; }
.lmh-unote { font-size: 0.6rem; color: #8a9a94; margin-top: 1px; }
.lmh-unit { background: #f6f4ee; border: 1px solid #ebe5d6; border-radius: 6px; padding: 2px 6px; font-size: 0.66rem; color: #3d4f49; }
.lmh-unit b { color: #0f5246; }
.lmh-unit b.n { color: #3d4f49; font-weight: 700; }
.lmh-unit.out b { color: #9aa8a3; }
.lmh-unit.more { color: #6b7c76; }
.lmh-foot { margin-top: 2px; }
.lmh-status { display: inline-block; font-size: 0.66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.lmh-status.ok { background: #e6f5ef; color: #065f46; }
.lmh-status.late { background: #fee2e2; color: #b91c1c; }
.lmh-status.ext { background: #fef3c7; color: #b45309; }

/* "This month in Bengaluru" — pulse numbers + new registrations */
.lmh-pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 30px; }
.lmh-pulse-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; cursor: pointer;
  background: #ffffff; border: 1px solid #e3dccb; border-radius: 14px; padding: 18px 18px 14px; font-family: var(--font-sans);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.lmh-pulse-tile:hover { border-color: #c59638; box-shadow: 0 12px 28px rgba(11, 46, 39, 0.12); transform: translateY(-2px); }
.lmh-pulse-tile .v { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: #0f3b31; line-height: 1.1; }
.lmh-pulse-tile .l { font-size: 0.9rem; font-weight: 800; color: #0b241f; }
.lmh-pulse-tile .s { font-size: 0.74rem; color: #6b7c76; }
.lmh-pulse-tile .go { margin-top: 8px; font-size: 0.74rem; font-weight: 800; color: #9e7220; }
.lmh-new-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lmh-new-h { font-family: var(--font-serif); font-size: 1.35rem; color: #0b241f; margin: 0; }
.lmh-new-h span { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; color: #6b7c76; }
@media (max-width: 900px) { .lmh-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* "New on K-RERA" always fills whole rows: 5 / 4 / 3 cards by width, 4 on phones (2 x 2) */
/* 10 cards = 2 full rows at 5 per row; 8 at 4 per row; 9 at 3 per row; 6 on phones (3 rows of 2) */
@media (max-width: 1200px) { .lmh-new-grid > .lmh-card:nth-child(n+9) { display: none; } }
@media (max-width: 980px) { .lmh-new-grid > .lmh-card:nth-child(9) { display: flex; } }
@media (max-width: 680px) { .lmh-new-grid > .lmh-card:nth-child(n+7) { display: none; } }
@media (max-width: 400px) { .lmh-new-grid > .lmh-card:nth-child(n+5) { display: none; } }
/* Compact "New on K-RERA" cards: shorter photo, tighter spacing */
.lmh-card.compact .lmh-img { aspect-ratio: 16 / 7; }
.lmh-card.compact .lmh-ph { font-size: 1.5rem; }
.lmh-card.compact .lmh-foot { margin-top: 0; }
.lmh-card.compact .lmh-body { padding-top: 10px; padding-bottom: 10px; gap: 4px; }
.lmh-card.compact .lmh-name { font-size: 0.86rem; }
.lmh-card.compact .lmh-row { font-size: 0.74rem; }
.lmh-card.compact .lmh-units { margin-top: 2px; padding: 4px 6px; height: 71px; box-sizing: border-box; overflow: hidden; }
.lmh-card.compact .lmh-units.empty { justify-content: center; }
/* every compact card reserves 2 lines for the name and 1 for the builder, so all rows line up across the grid */
.lmh-card.compact .lmh-name { min-height: calc(2 * 1.25em); display: -webkit-box; }
.lmh-card.compact .lmh-dev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmh-card.compact .lmh-unote { display: none; }
.lmh-card.compact .lmh-btn { padding-top: 6px; padding-bottom: 6px; }
/* aligned cards (developers page, full details): fixed slots for name, builder, "Left" row and unit box */
.lmh-card.aligned .lmh-name { min-height: calc(2 * 1.25em); display: -webkit-box; }
.lmh-card.aligned .lmh-units { margin-top: 2px; padding: 4px 6px; height: 71px; box-sizing: border-box; overflow: hidden; }
.lmh-card.aligned .lmh-units.empty { justify-content: center; }
.lmh-card.aligned .lmh-unote { display: none; }
.lmh-card.aligned .lmh-slot { visibility: hidden; }
@media (max-width: 480px) { .lmh-pulse-tile { padding: 14px 12px 12px; } .lmh-pulse-tile .v { font-size: 1.6rem; } }
.lmh-status.past { background: #f1f5f9; color: #64748b; }
/* Sold out 100% / Ready to move in / no K-RERA updates (rule: lmSaleState in master.js) */
.lmh-status.out { background: #ffe4e6; color: #9f1239; }
.lmh-status.rtm { background: #dbeafe; color: #1d4ed8; }
.lmh-status.idle { background: #f8fafc; color: #94a3b8; border: 1px dashed #cbd5e1; margin-left: 6px; }
.lmh-card.is-rtm { border: 2px solid #3b82f6; box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12); }
.lmh-card.is-idle .lmh-img { filter: grayscale(0.6); opacity: 0.85; }
/* Status badge frozen in one place on every card: one line, directly above the buttons at the bottom */
.lmh-card .lmh-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; min-height: 26px; }
.lmh-card .lmh-foot + .lmh-actions { margin-top: 0; }
.lmh-foot .lmh-status { flex: none; white-space: nowrap; }
.lmh-foot .lmh-status.idle { flex: 0 1 auto; min-width: 0; margin-left: 0; overflow: hidden; text-overflow: ellipsis; }
.lmd-soldout { color: #9f1239; }
.lmd-rtm { color: #1d4ed8; }
/* "This month": 5 tiles, the ready-to-move tile highlighted */
.lmh-pulse { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lmh-pulse-tile.hi { border-color: #3b82f6; background: linear-gradient(180deg, #eff6ff 0%, #ffffff 70%); }
.lmh-pulse-tile.hi .v { color: #1d4ed8; }
.lmh-pulse-tile.hi .go { color: #1d4ed8; }
@media (max-width: 1100px) { .lmh-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .lmh-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lmh-pulse-tile:last-child { grid-column: 1 / -1; } }
.lmh-extnote { font-size: 0.62rem; color: #b45309; margin-top: 3px; }
.lmh-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.lmh-btn {
  flex: 1; border: 1px solid #dfd8c8; background: #ffffff; color: #0f3b31; border-radius: 8px; padding: 7px 6px;
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.lmh-btn:hover { border-color: #0f5246; }
.lmh-btn.primary { background: #0f5246; border-color: #0f5246; color: #ffffff; }
.lmh-btn.on { background: #fdf8ec; border-color: #c59638; color: #7c5813; }
.lmh-btn.icon { flex: 0 0 auto; padding: 7px 9px; }

/* ---------- Developers ---------- */
.lmh-dev-section { padding: 44px 0; background: #ffffff; border-top: 1px solid #ece6d8; }
.lmh-dev-tabs { display: inline-flex; gap: 2px; background: #f3efe6; border: 1px solid #dfd8c8; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.lmh-dev-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lmh-dev-bar .lmh-dev-tabs { margin-bottom: 0; }
.lmh-dev-search { display: flex; align-items: center; gap: 6px; background: #ffffff; border: 1px solid #dfd8c8; border-radius: 10px; padding: 0 10px; height: 38px; width: 260px; max-width: 100%; }
.lmh-dev-search:focus-within { border-color: #c59638; box-shadow: 0 0 0 3px rgba(197, 150, 56, 0.15); }
.lmh-dev-search span { font-size: 0.8rem; opacity: 0.7; }
.lmh-dev-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 0.82rem; color: #0b241f; }
@media (max-width: 520px) { .lmh-dev-search { width: 100%; } }
.lmh-dev-tabs button { border: 0; background: transparent; border-radius: 8px; padding: 7px 14px; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 800; color: #0f3b31; cursor: pointer; }
.lmh-dev-tabs button.active { background: #0f5246; color: #ffffff; }
.lmh-dev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lmh-dev-chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3dccb; background: #faf8f3; border-radius: 10px;
  padding: 7px 11px; font-family: var(--font-sans); cursor: pointer; text-align: left;
}
.lmh-dev-chip:hover { border-color: #0f5246; background: #ffffff; box-shadow: 0 6px 14px rgba(11, 46, 39, 0.08); }
.lmh-dev-chip .n { font-size: 0.8rem; font-weight: 800; color: #0b241f; }
.lmh-dev-chip .c { font-size: 0.7rem; font-weight: 800; color: #ffffff; background: #0f5246; border-radius: 999px; padding: 1px 7px; }
.lmh-dev-chip .o { font-size: 0.68rem; color: #065f46; font-weight: 700; }
.lmh-dev-chip .d { font-size: 0.68rem; color: #b45309; font-weight: 700; }

/* ---------- Compare ---------- */
.lmh-cmp-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 16px; }
.lmh-cmp-searchbox { position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 8px; background: #ffffff; border: 1.5px solid #dfd8c8; border-radius: 12px; padding: 4px 12px; }
.lmh-cmp-searchbox:focus-within { border-color: #c59638; }
.lmh-cmp-searchbox input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 9px 2px; font-family: var(--font-sans); font-size: 0.88rem; color: #0b241f; }
.lmh-cmp-searchbox .lmh-sugg-box { top: calc(100% + 4px); }
.lmh-cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lmh-cmp-chip, .lmh-tray-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #0f5246; color: #ffffff; border-radius: 999px;
  padding: 5px 6px 5px 12px; font-size: 0.78rem; font-weight: 700; max-width: 260px;
}
.lmh-cmp-chip button, .lmh-tray-chip button { border: 0; background: rgba(255, 255, 255, 0.18); color: #ffffff; border-radius: 50%; width: 20px; height: 20px; font-size: 0.7rem; cursor: pointer; flex-shrink: 0; }
.lmh-cmp-empty { background: #faf8f3; border: 1px dashed #d5ccb8; border-radius: 12px; padding: 26px; text-align: center; color: #5a6b65; font-size: 0.88rem; line-height: 1.6; }

/* tray */
.lmh-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 8000; width: min(960px, calc(100vw - 24px)); }
.lmh-tray-inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #071f1a 0%, #133c32 100%);
  border: 1px solid rgba(226, 186, 100, 0.45); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.lmh-tray-title { color: #e2ba64; font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; }
.lmh-tray-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.lmh-tray-chip { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.lmh-tray-hint { color: #94b8ad; font-size: 0.74rem; align-self: center; }
.lmh-tray-actions { display: flex; align-items: center; gap: 8px; }
.lmh-tray .lmh-search-go { background: linear-gradient(135deg, #e2ba64 0%, #c59638 100%); color: #071f1a; padding: 9px 16px; }

/* ---------- Pick-on-map modal ---------- */
.lmh-modal { position: fixed; inset: 0; z-index: 10200; background: rgba(5, 22, 18, 0.78); display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.lmh-modal.open { display: flex; }
.lmh-modal-box { background: #faf8f3; border-radius: 16px; overflow: hidden; width: 100%; max-width: 1000px; box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45); }
.lmh-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: linear-gradient(135deg, #071f1a 0%, #133c32 100%); color: #f8f5ec; }
.lmh-modal-head .t { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.lmh-modal-head .s { font-size: 0.76rem; color: #cbe0da; margin-top: 2px; }
.lmh-modal-x { border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #ffffff; border-radius: 8px; padding: 6px 12px; font-weight: 800; cursor: pointer; }
.lmh-modal-map { height: min(64vh, 580px); width: 100%; }
.lmh-modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; font-size: 0.82rem; font-weight: 700; color: #3d4f49; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .lmh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 980px) { .lmh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .lmh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lmh-searchbox { flex-wrap: wrap; padding: 6px; }
  .lmh-searchbox input { flex-basis: calc(100% - 40px); }
  .lmh-search-go { width: 100%; }
  .lmh-search-wrap > .lmh-sugg-box { top: 108px; }
  .lmh-res-head h2 { font-size: 1.3rem; }
  /* compact compare tray on phones: one scrolling line + small buttons */
  .lmh-tray { bottom: 8px; }
  .lmh-tray-inner { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .lmh-tray-title { display: none; }
  .lmh-tray-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lmh-tray-chip { font-size: 0.7rem; padding: 3px 4px 3px 9px; max-width: 150px; white-space: nowrap; }
  .lmh-tray-chip { overflow: hidden; text-overflow: ellipsis; }
  .lmh-tray-hint { display: none; }
  .lmh-tray .lmh-link { display: none; }
  .lmh-tray .lmh-search-go { padding: 8px 12px; font-size: 0.78rem; }
}
@media (max-width: 400px) {
  .lmh-grid { grid-template-columns: 1fr; }
  .lmh-img { aspect-ratio: 16 / 7; }
}

/* Top menu: tighten between tablet and small-laptop widths so it never runs off the right edge
   (the phone menu takes over at 768px in master.css) */
@media (max-width: 1280px) and (min-width: 1101px) { .nav-menu { gap: 16px; } .nav-item { font-size: 0.86rem; } }
/* Hero heading: the gold gradient is painted only inside the text box, so give letters with tails (g, y) room */
.hero-h1 .gold-text { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* Reach Us + Leave a Message */
.reach-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(226, 186, 100, 0.6); text-underline-offset: 3px; }
.reach-link:hover { color: #e2ba64; }
.social-circle-btn.is-soon { opacity: 0.55; cursor: default; }
.lm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: #cfe0db; cursor: pointer; }
.lm-consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: #c59638; }
.lm-consent a { color: #e2ba64; font-weight: 700; }
.lm-form-status { font-size: 0.84rem; line-height: 1.5; min-height: 0; }
.lm-form-status:empty { display: none; }
.lm-form-status.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 10px 12px; border-radius: 10px; }
.lm-form-status.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 12px; border-radius: 10px; }
.lm-form-status a { color: inherit; font-weight: 700; }
.lm-wa-btn { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: #25d366; color: #ffffff !important; text-decoration: none; }
.btn-send-green:disabled { opacity: 0.7; cursor: wait; }
/* Developers in Bengaluru: full list scrolls inside its own box after "See more" */
.lmh-dev-chips.all { max-height: 460px; overflow-y: auto; padding-right: 4px; border: 1px solid #ece6d6; border-radius: 12px; padding: 10px; background: #ffffff; }
.lmh-dev-more { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.lmh-dev-count { font-size: 0.76rem; color: #6b7c76; }
/* Compare section now full width (Table of Contents removed); columns size to the 1–5 picked projects */
.dossier-layout-grid.lmh-onecol { grid-template-columns: minmax(0, 1fr); gap: 0; }
#matrix-compare .comp-th-proj { width: auto; min-width: 185px; }
#matrix-compare .comp-unified-table { min-width: calc(170px + var(--lm-cmp-cols, 3) * 185px); table-layout: fixed; }
#matrix-compare .comp-th-param { width: 170px; }
#matrix-compare .comp-proj-head-title, #matrix-compare .comp-td-val { overflow-wrap: anywhere; }
/* Compare section: let the right column shrink (its table scrolls inside) instead of widening the page */
.dossier-layout-grid > main { min-width: 0; }
.dossier-layout-grid > main .compare-interactive-box { max-width: 100%; box-sizing: border-box; }
/* below 1100px the full menu can't fit — use the same menu button as phones */
@media (max-width: 1100px) and (min-width: 769px) {
  .nav-menu { display: none; }
  .nav-menu.mobile-open {
    display: flex; flex-direction: column; position: absolute; top: 82px; left: 0; width: 100%; background: #ffffff;
    padding: 20px; border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md); gap: 14px; z-index: 1200;
  }
  .mobile-menu-btn { display: block; }
}

/* =========================================================================
   Project Details pop-up (home_details.js) — buyer-first, tabbed
   ========================================================================= */
.lmd { font-family: var(--font-sans); color: #0b241f; }
.lmd-head { display: grid; grid-template-columns: 280px minmax(0, 1fr) 230px; gap: 20px; padding: 22px 22px 16px; background: linear-gradient(180deg, #faf7ef, #ffffff); border-bottom: 1px solid #ece6d6; }
.lmd-title { min-width: 0; }
.lmd-head > .lmd-photo { aspect-ratio: auto; height: 100%; min-height: 180px; }
@media (max-width: 760px) {
  .lmd-head > .lmd-photo { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .lmd-head .lmd-glance { display: block; }
  .lmd-grow strong { white-space: nowrap; }
}
.lmd-actions .lmh-btn { flex: 0 0 auto; }
/* right column: "At a glance" (top margin leaves room for the close button) */
.lmd-glance { margin-top: 40px; align-self: start; background: #ffffff; border: 1px solid #ece6d6; border-radius: 12px; padding: 10px 12px; }
.lmd-gh { font-size: 0.66rem; font-weight: 800; color: #9e7220; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.lmd-gh span { color: #8a9a94; font-weight: 700; text-transform: none; letter-spacing: 0; }
.lmd-grow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 0.76rem; padding: 4px 0; border-bottom: 1px dashed #f1ece0; }
.lmd-grow:last-child { border-bottom: 0; }
.lmd-grow span { color: #6b7c76; white-space: nowrap; }
.lmd-grow strong { color: #0b241f; text-align: right; overflow-wrap: anywhere; }
.lmd-grow strong small { color: #8a9a94; font-weight: 600; }
.lmd-nil { color: #9aa8a3; }
.lmd-blurb { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.5; color: #3d4f49; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lmd-where { margin: 6px 0 0; font-size: 0.74rem; color: #6b7c76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmd-gbar { height: 5px; background: #ece6d6; border-radius: 999px; overflow: hidden; margin: 0 0 4px; }
.lmd-gbar > div { height: 100%; background: linear-gradient(90deg, #0f5246, #1f8a72); }
@media (max-width: 980px) {
  .lmd-head { grid-template-columns: 240px minmax(0, 1fr); padding-right: 56px; }
  .lmd-glance { grid-column: 1 / -1; margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .lmd-glance .lmd-gh, .lmd-glance .lmd-gbar { grid-column: 1 / -1; }
}
.lmd-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #0f3b31, #1d5c4c); }
.lmd-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.lmd-photo > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 2.4rem; color: #e2ba64; }
.lmd-photo em { font-style: normal; }
.lmd-title h2 { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.15; margin: 6px 0 4px; color: #0b241f; }
.lmd-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lmd-badges code { font-size: 0.68rem; color: #6b7c76; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.lmd-pill { display: inline-block; font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.lmd-by { font-size: 0.84rem; color: #5a6b65; }
.lmd-price { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: #9e7220; margin: 8px 0 10px; }
.lmd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lmd-actions a.lmh-btn { text-decoration: none; display: inline-flex; align-items: center; }
.lmd-docs { margin-top: 10px; display: grid; gap: 6px; max-width: 560px; }
.lmd-docs[hidden] { display: none; }
.lmd-doc { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid #dfd8c8; border-radius: 10px; background: #ffffff; text-decoration: none; color: #0b241f; font-size: 0.8rem; }
.lmd-doc b { font-weight: 800; }
.lmd-doc span { color: #5a6b65; font-size: 0.74rem; }
.lmd-doc em { font-style: normal; font-weight: 800; font-size: 0.74rem; color: #0f5246; white-space: nowrap; }
a.lmd-doc:hover { border-color: #0f5246; background: #f3faf7; }
.lmd-doc.none { background: #f6f4ee; }
.lmd-doc.none em { color: #9aa8a3; }
.lmd-doc-empty { padding: 10px 12px; border: 1px dashed #d5ccb8; border-radius: 10px; background: #faf8f3; font-size: 0.8rem; color: #5a6b65; }
.lmd-doc-empty b { color: #9e7220; }
.lmd-doc-note { font-size: 0.68rem; color: #6b7c76; }
@media (max-width: 600px) { .lmd-doc { grid-template-columns: 1fr auto; } .lmd-doc span { grid-column: 1 / -1; grid-row: 2; } }
.lmd-tabs { position: sticky; top: 0; z-index: 15; display: flex; gap: 4px; overflow-x: auto; padding: 10px 22px; background: #ffffff; border-bottom: 1px solid #ece6d6; scrollbar-width: thin; }
.lmd-tabs button { flex: 0 0 auto; border: 1px solid #e3dccb; background: #faf8f3; color: #0f3b31; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.lmd-tabs button:hover { border-color: #c59638; }
.lmd-tabs button.active { background: #0f5246; border-color: #0f5246; color: #ffffff; }
.lmd-pane { padding: 18px 22px 24px; }
.lmd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.lmd-facts.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lmd-fact { background: #faf8f3; border: 1px solid #ece6d6; border-radius: 10px; padding: 10px 12px; min-width: 0; }
.lmd-fact span { display: block; font-size: 0.66rem; font-weight: 800; color: #9e7220; text-transform: uppercase; letter-spacing: 0.5px; }
.lmd-fact strong { display: block; font-size: 0.92rem; color: #0b241f; margin-top: 3px; overflow-wrap: anywhere; }
.lmd-fact small { display: block; font-size: 0.66rem; font-weight: 600; color: #b45309; }
.lmd-card { border: 1px solid #ece6d6; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: #ffffff; }
.lmd-h { font-size: 0.86rem; font-weight: 800; color: #0b241f; margin-bottom: 10px; }
.lmd-h span { font-weight: 600; color: #8a9a94; font-size: 0.74rem; }
.lmd-h.big { font-family: var(--font-serif); font-size: 1.3rem; }
.lmd-check { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.lmd-ck { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: #f8fafc; }
.lmd-ck > b { flex: 0 0 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: #ffffff; background: #64748b; }
.lmd-ck.good { background: #f0fdf4; } .lmd-ck.good > b { background: #15803d; }
.lmd-ck.warn { background: #fffbeb; } .lmd-ck.warn > b { background: #b45309; }
.lmd-ck strong { display: block; font-size: 0.8rem; color: #0b241f; }
.lmd-ck small { display: block; font-size: 0.7rem; color: #5a6b65; margin-top: 1px; }
.lmd-p { font-size: 0.84rem; line-height: 1.55; color: #3d4f49; margin: 0 0 6px; }
.lmd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lmd-chip { font-size: 0.72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: #e6f5ef; color: #0f5246; }
.lmd-chip.off { background: #f1f5f9; color: #94a3b8; text-decoration: line-through; }
.lmd-sub { font-size: 0.72rem; color: #8a9a94; margin: 10px 0 6px; }
.lmd-foot { font-size: 0.72rem; color: #8a9a94; margin: 6px 0 0; }
.lmd-foot a { color: #0f5246; }
.lmd-muted { font-size: 0.76rem; color: #8a9a94; }
.lmd-empty { font-size: 0.86rem; color: #6b7c76; padding: 14px; background: #faf8f3; border-radius: 10px; }
.lmd-tablewrap { overflow-x: auto; border: 1px solid #ece6d6; border-radius: 12px; }
.lmd-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; min-width: 620px; }
.lmd-table th { text-align: left; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.5px; color: #9e7220; background: #faf8f3; padding: 9px 12px; }
.lmd-table td { padding: 10px 12px; border-top: 1px solid #f1ece0; vertical-align: top; }
.lmd-table td small { display: block; color: #8a9a94; font-size: 0.68rem; }
.lmd-left { color: #0f5246; }
.lmd-out { color: #94a3b8; font-weight: 700; }
.lmd-notes { margin-top: 12px; font-size: 0.74rem; color: #5a6b65; }
.lmd-notes p { margin: 0 0 5px; }
.lmd-big { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.lmd-big div { background: #faf8f3; border-radius: 10px; padding: 12px; }
.lmd-big strong { display: block; font-family: var(--font-serif); font-size: 1.6rem; color: #0f3b31; }
.lmd-big span { font-size: 0.72rem; color: #6b7c76; }
.lmd-bar { height: 8px; background: #ece6d6; border-radius: 999px; overflow: hidden; }
.lmd-bar.lg { height: 12px; margin-bottom: 16px; }
.lmd-bar > div { height: 100%; background: linear-gradient(90deg, #0f5246, #1f8a72); border-radius: 999px; }
.lmd-bar.build > div { background: linear-gradient(90deg, #9e7220, #e2ba64); }
.lmd-bar.time > div { background: #94a3b8; }
.lmd-avrow { display: grid; grid-template-columns: 90px minmax(0, 1fr) 170px; gap: 10px; align-items: center; font-size: 0.8rem; margin-bottom: 8px; }
.lmd-avrow span { color: #5a6b65; font-size: 0.74rem; }
.lmd-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid #ece6d6; margin-bottom: 14px; }
.lmd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lmd-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lmd-links a { font-size: 0.74rem; font-weight: 700; color: #0f5246; background: #e6f5ef; padding: 5px 10px; border-radius: 999px; text-decoration: none; }
.lmd-hub { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 6px 0; border-bottom: 1px dashed #ece6d6; }
.lmd-hub:last-of-type { border-bottom: 0; }
.lmd-hub span { min-width: 0; }
.lmd-hub b { text-align: right; white-space: nowrap; padding-left: 10px; }
.lmd-drive { font-style: normal; font-weight: 600; color: #6b7c76; }
.lmd-nearby { margin-top: 14px; }
.lmd-nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.lmd-nb-h { font-size: 0.78rem; font-weight: 800; color: #0f5246; margin: 6px 0 2px; }
@media (max-width: 640px) {
  .lmd-nb-grid { grid-template-columns: 1fr; }
  .lmd-hub b { white-space: normal; }
}
.lmd-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.lmd-kv div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1ece0; font-size: 0.8rem; }
.lmd-kv span { color: #6b7c76; }
.lmd-kv strong { text-align: right; overflow-wrap: anywhere; }
.lmd-kv code { font-size: 0.72rem; }
.lmd-comp { font-size: 0.76rem; padding: 6px 0; border-bottom: 1px dashed #ece6d6; color: #3d4f49; }
.lmd-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: #faf8f3; border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; font-family: var(--font-sans); font-size: 0.8rem; color: #0b241f; }
.lmd-row:hover { border-color: #c59638; }
.lmd-row small { display: block; color: #8a9a94; font-size: 0.7rem; }
.lmd-row > span:last-child { color: #6b7c76; font-size: 0.72rem; white-space: nowrap; }
.lmd-sim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.lmd-simcard { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid #ece6d6; border-radius: 12px; padding: 8px; cursor: pointer; }
.lmd-simcard:hover { border-color: #c59638; }
.lmd-simimg { position: relative; width: 84px; aspect-ratio: 16 / 11; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #0f3b31, #1d5c4c); }
.lmd-simimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.lmd-simimg span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #e2ba64; font-family: var(--font-serif); }
.lmd-simbody { min-width: 0; }
.lmd-simbody b { display: block; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmd-simbody small { display: block; font-size: 0.7rem; color: #6b7c76; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .lmd-head { grid-template-columns: 1fr; padding: 16px 16px 12px; }
  .lmd-title h2 { font-size: 1.35rem; padding-right: 30px; }
  .lmd-tabs { padding: 8px 12px; }
  .lmd-pane { padding: 14px 14px 20px; }
  .lmd-facts, .lmd-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lmd-facts.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lmd-check, .lmd-two, .lmd-kv, .lmd-sim { grid-template-columns: 1fr; }
  .lmd-avrow { grid-template-columns: 70px minmax(0, 1fr); }
  .lmd-avrow span { grid-column: 2; }
  .lmd-simcard { grid-template-columns: 70px minmax(0, 1fr); }
  .lmd-simcard .lmh-btn { grid-column: 1 / -1; }
  .lmd-simimg { width: 70px; }
}

/* =========================================================================
   News & Research (news.js) — dated newsroom on the dark section
   ========================================================================= */
.lmn-head { margin-bottom: 18px; }
.lmn-head h2 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: #ffffff; margin: 6px 0 6px; }
.lmn-head p { color: #cfe0db; font-size: 0.95rem; margin: 0; }
.lmn-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.lmn-chips button { border: 1px solid rgba(226, 186, 100, 0.4); background: transparent; color: #e7dcc0; border-radius: 999px; padding: 6px 14px; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.lmn-chips button.on, .lmn-chips button:hover { background: #e2ba64; border-color: #e2ba64; color: #0b241f; }
.lmn-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; }
.lmn-lead { background: #ffffff; border-radius: 16px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.lmn-lead:hover, .lmn-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.lmn-lead-body { padding: 18px 22px 22px; }
.lmn-lead h3 { font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.25; color: #0b241f; margin: 6px 0 8px; }
.lmn-lead p { color: #3d4f49; font-size: 0.93rem; line-height: 1.65; margin: 0 0 10px; }
.lmn-read { font-size: 0.82rem; font-weight: 800; color: #9e7220; }
.lmn-meta { font-size: 0.72rem; color: #6b7c76; font-weight: 600; }
.lmn-cover { position: relative; height: 120px; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; }
.lmn-cover.big { height: 200px; }
.lmn-cover-mark { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--font-serif); font-size: 5.5rem; font-weight: 700; color: rgba(255, 255, 255, 0.16); line-height: 1; }
.lmn-cover.big .lmn-cover-mark { font-size: 8rem; }
.lmn-cover.t-market { background: linear-gradient(135deg, #0f5246, #1f8a72); }
.lmn-cover.t-infrastructure { background: linear-gradient(135deg, #1e3a5f, #2f6a9e); }
.lmn-cover.t-regulation { background: linear-gradient(135deg, #6b4d12, #b8862c); }
.lmn-cover.t-explainer { background: linear-gradient(135deg, #3b3355, #6a5a94); }
.lmn-tag { position: relative; z-index: 1; display: inline-block; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #0b241f; }
.lmn-tag.sm { font-size: 0.58rem; padding: 2px 7px; }
.lmn-tag.sm.t-market, .lmn-article .lmn-tag.t-market { background: #e6f5ef; color: #0f5246; }
.lmn-tag.sm.t-infrastructure, .lmn-article .lmn-tag.t-infrastructure { background: #e6eef8; color: #1e3a5f; }
.lmn-tag.sm.t-regulation, .lmn-article .lmn-tag.t-regulation { background: #fdf3dc; color: #7c5813; }
.lmn-tag.sm.t-explainer, .lmn-article .lmn-tag.t-explainer { background: #efeaf8; color: #3b3355; }
.lmn-latest { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(226, 186, 100, 0.25); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.lmn-h { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: #e2ba64; margin-bottom: 4px; }
.lmn-h span { color: #9fb8b0; font-weight: 600; text-transform: none; letter-spacing: 0; }
.lmn-latest-row { text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 9px 4px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-family: var(--font-sans); }
.lmn-latest-row:last-child { border-bottom: 0; }
.lmn-latest-row .lmn-tag { align-self: flex-start; }
/* compact top block: lead story as a horizontal card, tight "Latest" list */
.lmn-top { align-items: start; }
.lmn-lead { flex-direction: row; }
.lmn-lead .lmn-cover.big { height: auto; min-height: 170px; width: 32%; flex: 0 0 32%; }
.lmn-lead .lmn-cover.big .lmn-cover-mark { font-size: 5rem; right: 14px; }
.lmn-lead-body { padding: 14px 18px; display: flex; flex-direction: column; justify-content: center; }
.lmn-lead h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.lmn-lead p { font-size: 0.86rem; line-height: 1.55; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lmn-latest { padding: 10px 12px; gap: 0; }
.lmn-latest .lmn-h { margin-bottom: 2px; }
.lmn-latest-row { padding: 6px 2px; gap: 1px; }
.lmn-latest-row b { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmn-latest-row small { display: flex; align-items: center; gap: 5px; }
.lmn-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #e2ba64; }
.lmn-dot.t-market { background: #34d399; } .lmn-dot.t-infrastructure { background: #60a5fa; }
.lmn-dot.t-regulation { background: #e2ba64; } .lmn-dot.t-explainer { background: #a78bfa; }
@media (max-width: 620px) { .lmn-lead { flex-direction: column; } .lmn-lead .lmn-cover.big { width: 100%; flex: none; min-height: 110px; } }
/* never let the lead story or the latest list push wider than the screen */
.lmn-lead, .lmn-latest { min-width: 0; }
@media (max-width: 980px) { .lmn-top { grid-template-columns: minmax(0, 1fr); } }
.lmn-latest-row b { color: #ffffff; font-size: 0.86rem; line-height: 1.35; }
.lmn-latest-row small { color: #9fb8b0; font-size: 0.7rem; }
.lmn-latest-row:hover b { color: #e2ba64; }
.lmn-band { margin-top: 26px; }
.lmn-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lmn-dcard { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(226, 186, 100, 0.25); border-top: 3px solid #e2ba64; border-radius: 14px; padding: 14px 16px; color: #cfe0db; }
.lmn-dcard .k { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: #e2ba64; }
.lmn-dcard .v { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: #ffffff; margin: 4px 0 2px; }
.lmn-dcard .l { font-size: 0.82rem; line-height: 1.45; min-height: 2.4em; }
.lmn-dcard button { margin-top: 10px; background: none; border: 0; padding: 0; color: #e2ba64; font-weight: 800; font-size: 0.8rem; cursor: pointer; font-family: var(--font-sans); }
.lmn-infra { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lmn-icard { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 14px; color: #cfe0db; font-size: 0.8rem; display: flex; flex-direction: column; gap: 6px; }
.lmn-icard b { color: #ffffff; font-size: 0.86rem; line-height: 1.3; }
.lmn-steps { display: flex; gap: 4px; }
.lmn-steps span { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); }
.lmn-steps span.on { background: #e2ba64; }
.lmn-icard .st { color: #ffffff; font-weight: 700; }
.lmn-icard .st small { color: #9fb8b0; font-weight: 600; }
.lmn-icard .ar { color: #9fb8b0; font-size: 0.74rem; }
.lmn-icard a { color: #e2ba64; font-weight: 700; font-size: 0.74rem; text-decoration: none; margin-top: auto; }
.lmn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.lmn-card { background: #ffffff; border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.lmn-card-body { padding: 12px 14px 16px; }
.lmn-card h4 { font-size: 0.98rem; line-height: 1.35; color: #0b241f; margin: 4px 0 6px; font-family: var(--font-sans); font-weight: 800; }
.lmn-card p { font-size: 0.82rem; color: #3d4f49; line-height: 1.55; margin: 0; }
.lmn-empty { color: #9fb8b0; font-size: 0.86rem; }
/* article reader */
.lmn-article h2 { font-family: var(--font-serif); font-size: 1.9rem; line-height: 1.25; color: #0b241f; margin: 10px 0 8px; }
.lmn-dek { font-size: 1.02rem; color: #3d4f49; line-height: 1.6; margin: 0 0 8px; }
.lmn-article .lmn-meta { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e5dfd1; }
.lmn-body { font-size: 0.96rem; color: #263631; line-height: 1.8; }
.lmn-body h3 { font-family: var(--font-serif); font-size: 1.15rem; color: #0b241f; margin: 20px 0 6px; }
.lmn-body ul, .lmn-body ol { padding-left: 20px; }
.lmn-body a { color: #0f5246; font-weight: 700; }
.lmn-sources { margin-top: 24px; padding: 14px 16px; background: #faf8f3; border: 1px solid #ece6d6; border-radius: 12px; font-size: 0.84rem; }
.lmn-sources ul { margin: 6px 0; padding-left: 18px; }
.lmn-sources a { color: #0f5246; }
.lmn-sources p { margin: 6px 0 0; color: #6b7c76; font-size: 0.76rem; }
@media (max-width: 980px) { .lmn-top { grid-template-columns: 1fr; } .lmn-infra { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lmn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .lmn-data, .lmn-infra, .lmn-grid { grid-template-columns: 1fr; } .lmn-lead h3 { font-size: 1.3rem; } .lmn-cover.big { height: 150px; } .lmn-head h2 { font-size: 1.8rem; } }
