/* TMLAND Masterplan Compare v7.3.12 */
:root {
  --tmlc-green: #176b36;
  --tmlc-green-dark: #0f4d27;
  --tmlc-ink: #132018;
  --tmlc-muted: #637069;
  --tmlc-line: #dce5df;
  --tmlc-cream: #fffaf0;
  --tmlc-shadow: 0 18px 55px rgba(12, 42, 25, .18);
}

.tmlc-lock { overflow: hidden; }
.tmlc-root, .tmlc-root * { box-sizing: border-box; }
.tmlc-root { font-family: Inter, Arial, sans-serif; color: var(--tmlc-ink); }

.tmlc-tray {
  position: fixed;
  z-index: 46010;
  left: 50%;
  bottom: 18px;
  width: min(860px, calc(100vw - 24px));
  min-height: 58px;
  transform: translateX(-50%) translateY(120px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--tmlc-shadow);
  transition: transform .25s ease;
}
.tmlc-tray--active { transform: translateX(-50%) translateY(0); }
.tmlc-tray__title { border: 0; background: transparent; color: var(--tmlc-green-dark); font-weight: 800; cursor: pointer; }
.tmlc-tray__actions { display: flex; gap: 8px; }
.tmlc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tmlc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--tmlc-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--tmlc-ink);
  font-weight: 700;
  cursor: pointer;
}
.tmlc-chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tmlc-color); }

.tmlc-btn, .tmlc-add {
  min-height: 40px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 800;
  cursor: pointer;
}
.tmlc-btn:disabled { opacity: .42; cursor: not-allowed; }
.tmlc-btn--primary, .tmlc-add { background: var(--tmlc-green); color: #fff; }
.tmlc-btn--ghost { background: #fff; color: var(--tmlc-green-dark); border-color: var(--tmlc-line); }
.tmlc-add { width: 100%; margin-top: 10px; }

.tmlc-overlay {
  position: fixed;
  z-index: 46020;
  inset: 0;
  padding: 16px;
  background: rgba(5, 24, 14, .62);
  overflow: auto;
}
.tmlc-overlay[hidden] { display: none; }
.tmlc-panel {
  width: min(1120px, 100%);
  margin: 24px auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--tmlc-shadow);
  overflow: hidden;
}
.tmlc-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--tmlc-green-dark), var(--tmlc-green));
  color: #fff;
}
.tmlc-panel__header h2 { margin: 0 0 4px; font-size: 25px; }
.tmlc-panel__header p { margin: 0; opacity: .82; }
.tmlc-close { border: 0; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }

.tmlc-controls { padding: 16px 24px 4px; }
.tmlc-controls label { display: grid; gap: 6px; max-width: 310px; font-size: 13px; font-weight: 800; }
.tmlc-select { min-height: 42px; border: 1px solid var(--tmlc-line); border-radius: 9px; padding: 0 11px; background: #fff; color: var(--tmlc-ink); }
.tmlc-result { padding: 12px 24px; }
.tmlc-result__banner { display: grid; gap: 5px; padding: 15px 17px; border-radius: 12px; border: 1px solid #ead7ad; background: var(--tmlc-cream); }
.tmlc-result__banner.is-good { border-color: #a9d6b6; background: #edf8f0; }
.tmlc-result__banner strong { font-size: 17px; }
.tmlc-result__banner span, .tmlc-result__banner small { color: var(--tmlc-muted); }

.tmlc-table-wrap { padding: 0 24px 18px; overflow-x: auto; }
.tmlc-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--tmlc-line); border-radius: 12px; overflow: hidden; }
.tmlc-table th, .tmlc-table td { padding: 11px 12px; border-right: 1px solid var(--tmlc-line); border-bottom: 1px solid var(--tmlc-line); vertical-align: top; text-align: left; }
.tmlc-table tr:last-child th, .tmlc-table tr:last-child td { border-bottom: 0; }
.tmlc-table th:last-child, .tmlc-table td:last-child { border-right: 0; }
.tmlc-table thead th { background: #f7faf8; border-top: 4px solid var(--tmlc-color, var(--tmlc-line)); }
.tmlc-table tbody th { width: 170px; background: #fbfcfb; color: var(--tmlc-muted); font-size: 13px; }
.tmlc-unit-link { border: 0; padding: 0; background: transparent; color: var(--tmlc-green-dark); font-size: 16px; font-weight: 900; cursor: pointer; }
.tmlc-badge { display: block; width: fit-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.tmlc-badge.is-price { background: #dcfce7; color: #166534; }
.tmlc-badge.is-location { background: #fff7ed; color: #9a3412; }

.tmlc-location { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 2px 24px 18px; }
.tmlc-location h3, .tmlc-location__distance { grid-column: 1 / -1; }
.tmlc-location h3 { margin: 0; }
.tmlc-location__card { display: grid; gap: 6px; border: 1px solid var(--tmlc-line); border-top: 4px solid var(--tmlc-color); border-radius: 11px; padding: 13px; }
.tmlc-location__card span { color: var(--tmlc-muted); }
.tmlc-location__card ul { margin: 4px 0 0; padding-left: 18px; color: var(--tmlc-muted); }
.tmlc-location__card li { margin: 4px 0; }
.tmlc-location__empty { color: var(--tmlc-muted); }
.tmlc-location__distance { margin: 0; padding: 10px 12px; border-radius: 9px; background: #f5f8f6; color: var(--tmlc-muted); }
.tmlc-cta { margin: 0 24px 4px; padding: 17px; border: 1px solid #a9d6b6; border-radius: 13px; background: linear-gradient(135deg, #edf8f0, #fff); }
.tmlc-cta:empty { display: none; }
.tmlc-cta > strong { display: block; margin-bottom: 10px; font-size: 16px; color: var(--tmlc-green-dark); }
.tmlc-cta__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.tmlc-cta__primary, .tmlc-cta__secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 0 15px; font-weight: 900; text-decoration: none; cursor: pointer; }
.tmlc-cta__primary { flex: 1 1 360px; border: 1px solid var(--tmlc-green); background: var(--tmlc-green); color: #fff; }
.tmlc-cta__secondary { flex: 1 1 220px; border: 1px solid var(--tmlc-line); background: #fff; color: var(--tmlc-green-dark); }
.tmlc-disclaimer { margin: 0; padding: 14px 24px 22px; color: var(--tmlc-muted); font-size: 12px; }

.tmlc-poi-toggle {
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid #b8c9be;
  border-radius: 9px;
  padding: 0 12px;
  background: rgba(255,255,255,.96);
  color: var(--tmlc-green-dark);
  box-shadow: 0 3px 13px rgba(12,42,25,.15);
  font-weight: 900;
  cursor: pointer;
}
.tmlc-poi-toggle.is-on { border-color: var(--tmlc-green); background: var(--tmlc-green); color: #fff; }
.tmlc-poi-icon-wrap { background: transparent; border: 0; display: grid; place-items: center; }
.tmlc-poi-icon {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.98);
  border-radius: 50%;
  background: #fff;
  color: var(--tmlc-green-dark);
  box-shadow: 0 2px 8px rgba(6,45,27,.22), 0 0 0 1px rgba(12,92,57,.14);
  transform: scale(var(--tmlc-poi-scale, .84));
  transform-origin: center;
  transition: transform .16s ease;
}
.tmlc-poi-icon svg { width: 17px; height: 17px; display: block; fill: currentColor; }
.tmlc-poi-icon--custom {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}
.tmlc-poi-icon--custom img {
  box-sizing: border-box;
  flex: 0 0 22px;
  width: 22px !important;
  height: 22px !important;
  min-width: 0;
  min-height: 0;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}
.tmlc-poi-icon-fallback { display: none !important; }
.tmlc-poi-icon--logo-error img { display: none !important; }
.tmlc-poi-icon--logo-error .tmlc-poi-icon-fallback {
  width: 17px;
  height: 17px;
  display: block !important;
  fill: currentColor;
}
.tmlc-poi-icon--mall { color: #b36f08; }
.tmlc-poi-icon--horse { color: #8a4f22; }
.tmlc-poi-icon--wonder { color: #7c3aed; }
.tmlc-poi-icon--marina { color: #0877b9; }
.tmlc-poi-icon--school { color: #2459a6; }
.tmlc-poi-icon--buildings { color: #4b5563; }
.tmlc-road-line { pointer-events: none; }
.tmlc-road-label-wrap { background: transparent; border: 0; pointer-events: none; }
.tmlc-road-label {
  width: 94px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8,118,79,.45);
  border-radius: 9px;
  background: rgba(255,255,255,.78);
  color: #075e3f;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.tmlc-poi-leaflet-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 14px; }
.tmlc-poi-leaflet-popup .leaflet-popup-content { width: 280px !important; margin: 0 !important; line-height: 1.4; }
.tmlc-poi-leaflet-popup .leaflet-popup-close-button { top: 7px; right: 7px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #40554a; font-size: 19px; line-height: 24px; }
.tmlc-poi-leaflet-popup--below .leaflet-popup-tip-container { display: none; }
.tmlc-poi-popup { width: 280px; min-width: 0; color: var(--tmlc-ink); background: #fff; }
.tmlc-poi-popup__media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #eef3f0; }
.tmlc-poi-popup__media[hidden] { display: none; }
.tmlc-poi-popup__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tmlc-poi-popup__body { display: grid; gap: 7px; padding: 15px 17px 16px; }
.tmlc-poi-popup strong { padding-right: 22px; font-size: 15px; line-height: 1.3; color: var(--tmlc-green-dark); }
.tmlc-poi-popup p { margin: 0; line-height: 1.45; }
.tmlc-poi-popup a { width: fit-content; color: var(--tmlc-green); font-weight: 800; }

@media (max-width: 520px) {
  .tmlc-poi-leaflet-popup .leaflet-popup-content, .tmlc-poi-popup { width: min(252px, calc(100vw - 44px)) !important; }
}

@media (max-width: 767px) {
  .tmlc-poi-icon {
    width: 20px;
    height: 20px;
    padding: 2px;
    box-shadow: 0 1px 5px rgba(6,45,27,.20), 0 0 0 1px rgba(12,92,57,.11);
  }
  .tmlc-poi-icon svg { width: 13px; height: 13px; }
  .tmlc-poi-icon--custom { padding: 1px; }
  .tmlc-poi-icon--custom img {
    flex-basis: 18px;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
  .tmlc-poi-icon--logo-error .tmlc-poi-icon-fallback { width: 13px; height: 13px; }
  .tmlc-poi-leaflet-popup .leaflet-popup-content-wrapper {
    max-height: min(68vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .tmlc-poi-popup__body { padding: 13px 15px 14px; }
  .tmlc-poi-popup strong { font-size: 14px; }
  .tmlc-poi-popup p { font-size: 13px; }
}

.tmlc-coordinate-picking { cursor: crosshair !important; }
.tmlc-coordinate-control { margin-top: 8px; font: 13px/1.35 Arial, sans-serif; color: #173126; }
.tmlc-coordinate-toggle {
  min-height: 38px; border: 1px solid #b8c9be; border-radius: 9px; padding: 0 12px;
  background: rgba(255,255,255,.97); color: #075e3f; box-shadow: 0 3px 13px rgba(12,42,25,.15);
  font-weight: 900; cursor: pointer;
}
.tmlc-coordinate-toggle.is-on { border-color: #b42318; background: #b42318; color: #fff; }
.tmlc-coordinate-panel {
  width: min(360px, calc(100vw - 28px)); max-height: min(72vh, 680px); margin-top: 7px; overflow: auto;
  border: 1px solid #bfd0c4; border-radius: 12px; padding: 12px; background: rgba(255,255,255,.98);
  box-shadow: 0 12px 34px rgba(8,36,24,.25);
}
.tmlc-coordinate-panel[hidden] { display: none; }
.tmlc-coordinate-head { display: flex; align-items: center; justify-content: space-between; color: #075e3f; font-size: 16px; }
.tmlc-coordinate-head button { border: 0; background: transparent; color: #52645b; font-size: 24px; cursor: pointer; }
.tmlc-coordinate-help { margin: 6px 0 10px; color: #607269; font-size: 12px; }
.tmlc-coordinate-modes, .tmlc-coordinate-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.tmlc-coordinate-modes button, .tmlc-coordinate-actions button {
  min-height: 32px; border: 1px solid #c8d5cc; border-radius: 7px; padding: 0 9px; background: #f6f8f7; color: #173126;
  font-weight: 800; cursor: pointer;
}
.tmlc-coordinate-modes button.is-on { border-color: #08764f; background: #08764f; color: #fff; }
.tmlc-coordinate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tmlc-coordinate-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 7px 0; }
.tmlc-coordinate-checks label { display: flex; align-items: center; gap: 7px; margin: 0; }
.tmlc-coordinate-checks input { width: auto; }
.tmlc-coordinate-panel label { display: grid; gap: 4px; margin: 7px 0; color: #405149; font-size: 11px; font-weight: 800; }
.tmlc-coordinate-panel input, .tmlc-coordinate-panel textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #c8d5cc; border-radius: 7px; padding: 7px 8px; background: #fff;
  color: #173126; font: 12px/1.35 Consolas, monospace;
}
.tmlc-coordinate-panel input[readonly], .tmlc-coordinate-panel textarea[readonly] { background: #f2f6f3; }
.tmlc-coordinate-count { margin: 2px 0 8px; color: #607269; font-size: 12px; font-weight: 800; }
.tmlc-coordinate-panel hr { height: 1px; margin: 10px 0; border: 0; background: #dbe5de; }
.tmlc-coordinate-copy-row, .tmlc-coordinate-sheet {
  width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  border: 1px solid #08764f; border-radius: 8px; padding: 0 10px; background: #08764f; color: #fff;
  font-weight: 900; text-decoration: none; cursor: pointer;
}
.tmlc-coordinate-sheet { margin-top: 7px; border-color: #c8d5cc; background: #fff; color: #075e3f; }
.tmlc-coordinate-status { margin-top: 9px; border-radius: 7px; padding: 8px; background: #edf8f0; color: #075e3f; font-size: 12px; }
.tmlc-coordinate-status.is-error { background: #fff1f0; color: #b42318; }

@media (max-width: 760px) {
  .tmlc-tray { grid-template-columns: 1fr auto; gap: 8px; }
  .tmlc-tray__title { text-align: left; }
  .tmlc-chips { grid-column: 1 / -1; grid-row: 2; }
  .tmlc-btn--ghost { display: none; }
  .tmlc-overlay { padding: 0; }
  .tmlc-panel { min-height: 100%; margin: 0; border-radius: 0; }
  .tmlc-panel__header, .tmlc-controls, .tmlc-result, .tmlc-table-wrap, .tmlc-location, .tmlc-disclaimer { padding-left: 14px; padding-right: 14px; }
  .tmlc-location { grid-template-columns: 1fr; }
  .tmlc-cta { margin-left: 14px; margin-right: 14px; }
  .tmlc-cta__primary, .tmlc-cta__secondary { width: 100%; }
  .tmlc-coordinate-panel { max-height: 66vh; }
}
