/* ---------- GRID ---------- */
.lcar-grid{display:grid; gap:24px;}
.lcar-grid[data-cols="1"]{grid-template-columns:1fr;}
.lcar-grid[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr));}
.lcar-grid[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr));}
.lcar-grid[data-cols="4"]{grid-template-columns:repeat(4,minmax(0,1fr));}

@media (max-width: 1024px){
  .lcar-grid[data-cols="3"], .lcar-grid[data-cols="4"]{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 640px){
  .lcar-grid{grid-template-columns:1fr !important;}
}

/* ---------- CARD (match screenshot) ---------- */
.lcar-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,.10);
  display:flex;
  flex-direction:column;
  min-height:260px;
}

.lcar-card-top{
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 22px 18px;
  background:#fff;
}

.lcar-logo{
  max-height:110px;
  max-width:90%;
  object-fit:contain;
}

.lcar-logo-placeholder{
  width:70%;
  height:70%;
  border-radius:10px;
  background: rgba(0,0,0,.04);
}

.lcar-card-bottom{
  border-top: 1px solid rgba(0,0,0,.10);
  padding: 20px 20px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.lcar-title{
  font-size:22px;
  line-height:1.2;
  font-weight:800;
  color:#0b2f6b;
  margin:0 0 12px 0;
}

.lcar-industry-row{
  display:flex;
  align-items:center;
  gap:12px;
}

.lcar-industry-icon{
  width:44px;
  height:44px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

/* house icon mask (can be extended later) */
.lcar-industry-icon::before{
  content:"";
  width:18px;
  height:18px;
  display:block;
  background:#111;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 3l9 7v11h-6v-6H9v6H3V10z%22/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 3l9 7v11h-6v-6H9v6H3V10z%22/%3E%3C/svg%3E") no-repeat center/contain;
  opacity:.95;
}

.lcar-industry-text{
  font-size:18px;
  color:#6b7280; /* soft gray like screenshot */
  font-weight:500;
}

/* Info button (like screenshot) */
.lcar-info-btn{
  width:44px;
  height:44px;
  border-radius:999px;
  border:none;
  background:#0b2f6b;
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 20px rgba(11,47,107,.22);
  flex:0 0 auto;
}
.lcar-info-btn:hover{ transform: translateY(-1px); }
.lcar-info-btn:active{ transform: translateY(0); }
.lcar-info-btn:focus{ outline: 3px solid rgba(11,47,107,.22); outline-offset: 2px; }

.lcar-info-i{
  font-size:24px;
  font-weight:800;
  line-height:1;
  transform: translateY(-1px);
}

/* ---------- MODAL (smaller + 16px text) ---------- */
.lcar-modal{display:none;}
.lcar-modal.is-open{display:block;}

.lcar-modal-overlay{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  z-index: 99998;
}

.lcar-modal-panel{
  position:fixed;
  top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: min(860px, calc(100% - 40px));
  background:#fff;
  border-radius: 16px;
  z-index: 99999;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
}

.lcar-modal-close{
  position:absolute;
  top:16px; right:16px;
  width:44px; height:44px;
  border:none;
  border-radius:999px;
  background:#0b2f6b;
  color:#fff;
  cursor:pointer;
  font-size:26px;
  line-height:1;
  display:flex;align-items:center;justify-content:center;
}

.lcar-modal-top{
  height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 24px;
  background:#fff;
}

.lcar-modal-logo{
  max-height:120px;
  max-width:80%;
  object-fit:contain;
}

.lcar-modal-body{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 22px;
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(0,0,0,.10);
}

@media (max-width: 900px){
  .lcar-modal-body{ grid-template-columns: 1fr; }
}

.lcar-modal-name{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:800;
  color:#0b2f6b;
}

.lcar-modal-industry-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
}

.lcar-modal-industry-icon{
  width:40px; height:40px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.lcar-modal-industry-icon::before{
  content:"";
  width:16px; height:16px;
  display:block;
  background:#111;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 3l9 7v11h-6v-6H9v6H3V10z%22/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 3l9 7v11h-6v-6H9v6H3V10z%22/%3E%3C/svg%3E") no-repeat center/contain;
}

.lcar-modal-industry{
  font-size:16px;
  color:#6b7280;
  font-weight:600;
}

.lcar-modal-field{
  margin: 12px 0;
  font-size:16px;
}
.lcar-modal-field strong{
  display:inline-block;
  min-width: 110px;
  color:#0b2f6b;
  font-weight:800;
}
.lcar-modal-field a{ color: inherit; text-decoration: underline; }

.lcar-modal-designated{
  font-size:16px;
  margin: 0 0 10px 0;
}
.lcar-modal-details{
  font-size:16px;
  line-height:1.6;
  color:#222;
  white-space: pre-wrap;
}


/* User request: remove industry icons next to industry across the board */
.lcar-industry-icon, .lcar-modal-industry-icon{ display:none !important; }
.lcar-industry-row{ gap:0 !important; }
.lcar-modal-industry-row{ gap:0 !important; }

/* Ensure modal text is left-aligned */
.lcar-modal-panel, .lcar-modal-body, .lcar-modal-left, .lcar-modal-right{ text-align:left; }


/* ---- v1.0.6 tweaks ---- */
.lcar-card-bottom{ text-align:left; }
.lcar-meta{ text-align:left; }
.lcar-title{ font-size:20px !important; line-height:1.25 !important; margin-bottom:10px !important; }
.lcar-info-btn{ width:40px !important; height:40px !important; }
.lcar-info-i{ font-size:22px !important; }
.lcar-modal-field strong{ min-width:auto !important; margin-right:10px !important; }
.lcar-modal-field{ display:flex; align-items:baseline; gap:0; }
.lcar-modal-field a{ word-break:break-word; }
.lcar-field-address{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---- v1.0.7 modal centering + smaller ---- */
.lcar-modal-overlay{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}

.lcar-modal-panel{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  width:min(720px, 100%);
  max-height:90vh;
  overflow:auto;
  margin:0 auto;
}

.lcar-modal-top{
  height:150px;
}

.lcar-modal-logo{
  max-height:90px;
}

.lcar-modal-close{
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  font-size:20px;
}

/* ---- v1.0.8 fixes: z-index, centering, field layout ---- */
.lcar-modal-overlay{ z-index:2147483646 !important; }
.lcar-modal-panel{ z-index:2147483647 !important; }

.lcar-modal-overlay{
  padding:18px 18px !important;
}

.lcar-modal-panel{
  position:fixed !important;
  max-height:85vh !important;
}

.lcar-modal-field{
  display:grid !important;
  grid-template-columns: 120px 1fr;
  column-gap:10px;
  align-items:baseline;
}
.lcar-modal-field strong{
  min-width:auto !important;
  margin-right:0 !important;
}
/* Address: keep on one line in the value column */
.lcar-field-address a,
.lcar-field-address span,
.lcar-field-address{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* ---- v1.0.9: modal centered correctly + no address ellipsis + consistent smaller info button ---- */

/* Modal: center in viewport (Colibri-safe) */
.lcar-modal-overlay{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px 20px !important;
}
.lcar-modal-panel{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  width:min(720px, 100%) !important;
  max-height:90vh !important;
  overflow:auto !important;
  margin:0 !important;
}

/* Remove ellipsis and allow normal wrapping for address */
.lcar-field-address,
.lcar-field-address a,
.lcar-field-address span{
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

/* Card: pin info button to same spot on every card and make it smaller */
.lcar-card-bottom{
  position:relative !important;
  padding-right:78px !important; /* space for button */
}
.lcar-info-btn{
  width:38px !important;
  height:38px !important;
  position:absolute !important;
  right:20px !important;
  top:50% !important;
  transform: translateY(-50%) !important;
}
.lcar-info-i{
  font-size:20px !important;
}

/* ---- v1.1.0 TRUE CENTERED MODAL ---- */
.lcar-modal-overlay{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
  z-index:2147483646 !important;
}

.lcar-modal-panel{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  transform:none !important;
  margin:0 !important;
  width:min(700px, 100%) !important;
  max-height:85vh !important;
  overflow:auto !important;
  z-index:2147483647 !important;
}

/* Slightly smaller business name on card */
.lcar-title{
  font-size:18px !important;
}

/* ---- v1.1.1: Colibri transform-safe modal (JS moves modal to <body>) ---- */
.lcar-modal-overlay{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
  z-index:2147483646 !important;
  pointer-events:auto;
}
.lcar-modal-panel{
  position:relative !important;
  margin:0 !important;
  width:min(700px, 100%) !important;
  max-height:85vh !important;
  overflow:auto !important;
  z-index:2147483647 !important;
}

/* ---- v1.1.2: REAL CENTERING (panel is sibling of overlay) ---- */
.lcar-modal.is-open{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:20px !important;
  z-index:2147483647 !important;
}
/* overlay sits behind panel inside the modal flex container */
.lcar-modal.is-open .lcar-modal-overlay{
  position:absolute !important;
  inset:0 !important;
  display:block !important;
  padding:0 !important;
  z-index:2147483646 !important;
}
/* panel centered by the flex container */
.lcar-modal.is-open .lcar-modal-panel{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin:0 !important;
  z-index:2147483647 !important;
}
