/* LeaseMatrix Latest Transactions — 透明背景成交表格（配合 Elementor 背景） */

.lmt-wrap {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  font-family: inherit;
  color: #4a5568;
  --lmt-tab-active: #2f80c8;
  --lmt-header-bg: transparent;
  --lmt-header-border: rgba(96, 116, 128, 0.35);
  --lmt-text: #4a5568;
  --lmt-text-strong: #2d3748;
  --lmt-header-text: #607480;
  --lmt-text-muted: #718096;
  --lmt-leased: #6B33EC;
  --lmt-sold: #D933EC;
}

.lmt-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #d94f6d;
  letter-spacing: 0.02em;
}

.lmt-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.lmt-tab {
  appearance: none;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--lmt-text-strong);
  font-size: 15px;
  line-height: 1.2;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lmt-tab:hover {
  color: var(--lmt-tab-active);
}

.lmt-tab.is-active {
  border-color: var(--lmt-tab-active);
  color: var(--lmt-tab-active);
}

.lmt-tab__label--short {
  display: none;
}

.lmt-cards {
  display: none;
}

.lmt-card-empty {
  text-align: center;
  color: var(--lmt-text-muted);
  padding: 40px 18px;
  background: #fff;
  border-radius: 12px;
}

.lmt-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.lmt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  border: none;
}

.lmt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 1040px;
  font-size: 14px;
  line-height: 1.5;
  background: transparent;
  border: none !important;
  outline: none;
}

.lmt-table thead {
  border: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(96, 116, 128, 0.1) !important;
}

.lmt-table thead tr {
  border: none !important;
  box-shadow: none !important;
}

.lmt-table thead th {
  padding: 0 18px 14px;
  height: 36px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0;
  color: var(--lmt-header-text);
  background: transparent !important;
  white-space: nowrap;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.lmt-table tbody td {
  padding: 16px 18px;
  vertical-align: middle;
  text-align: center;
  color: var(--lmt-text);
  background: transparent;
  border: none !important;
  outline: none;
  box-shadow: none !important;
}

.lmt-table tbody tr {
  background: transparent;
}

.lmt-table tbody tr:not(.lmt-row-even):not(.lmt-empty-row) {
  filter: drop-shadow(0 2px 8px rgba(45, 55, 72, 0.06));
}

.lmt-table tbody tr:not(.lmt-row-even):not(.lmt-empty-row) td {
  background: #fff;
}

.lmt-table tbody tr:not(.lmt-row-even):not(.lmt-empty-row) td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.lmt-table tbody tr:not(.lmt-row-even):not(.lmt-empty-row) td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.lmt-row-even {
  background: transparent !important;
  filter: none !important;
}

.lmt-row-even td {
  background: transparent !important;
}

/* 覆寫主題 / Elementor 預設 table border（移除表頭上方線條） */
.lmt-wrap table.lmt-table,
.lmt-wrap table.lmt-table caption,
.lmt-wrap table.lmt-table thead tr,
.lmt-wrap table.lmt-table thead th,
.lmt-wrap table.lmt-table tbody tr,
.lmt-wrap table.lmt-table tbody td {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-block-start: none !important;
  border-block-start-width: 0 !important;
  border-block-start-style: none !important;
  border-inline-start: none !important;
  border-inline-end: none !important;
}

.lmt-wrap table.lmt-table caption + thead tr:first-child td,
.lmt-wrap table.lmt-table caption + thead tr:first-child th,
.lmt-wrap table.lmt-table colgroup + thead tr:first-child td,
.lmt-wrap table.lmt-table colgroup + thead tr:first-child th,
.lmt-wrap table.lmt-table thead:first-child tr:first-child td,
.lmt-wrap table.lmt-table thead:first-child tr:first-child th {
  border-block-start: none !important;
  border-block-start-width: 0 !important;
  border-block-start-style: none !important;
  border-top: none !important;
}

.lmt-wrap table.lmt-table thead th {
  border-bottom: none !important;
  border-block-end: none !important;
}

.lmt-col-property {
  color: var(--lmt-text-strong);
  font-weight: 500;
}

.lmt-property-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.lmt-property-link:hover,
.lmt-property-link:focus {
  color: var(--lmt-tab-active);
  text-decoration: underline;
}

.lmt-col-area {
  white-space: nowrap;
}

.lmt-status {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
}

.lmt-status-leased,
.lmt-status-rent,
.lmt-status-deal {
  color: var(--lmt-leased);
}

.lmt-status-sold,
.lmt-status-sale {
  color: var(--lmt-sold);
}

.lmt-status-transfer {
  color: #d97706;
}

.lmt-status-default {
  color: var(--lmt-text);
}

.lmt-empty-row td {
  text-align: center;
  color: var(--lmt-text-muted);
  padding: 40px 18px;
}

.lmt-more-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 0;
  background: transparent;
}

.lmt-more-link {
  color: var(--lmt-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.lmt-more-link:hover {
  color: var(--lmt-tab-active);
}

.lmt-pagination {
  margin-top: 28px;
  text-align: center;
}

.lmt-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  color: #444;
  text-decoration: none;
}

.lmt-pagination .page-numbers.current {
  color: var(--lmt-tab-active);
  font-weight: 600;
}

.lmt-wrap.is-loading .lmt-table-wrap {
  opacity: 0.55;
  pointer-events: none;
}

.lmt-archive-page .lmt-archive-container {
  max-width: none;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* 內頁 Archive — 已租/已售精簡表 */
.lmt-status-widget .lmt-title {
  text-align: left;
  margin-bottom: 16px;
}

.lmt-status-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.lmt-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.lmt-status-badge--leased {
  background: #d94f6d;
}

.lmt-status-badge--sold {
  background: #c44569;
}

.lmt-table--status {
  min-width: 760px;
}

.lmt-status-widget .lmt-table thead th {
  font-size: 18px;
}

@media (max-width: 768px) {
  .lmt-status-widget .lmt-title {
    font-size: 22px;
  }

  .lmt-status-widget .lmt-table thead th {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .lmt-wrap {
    --lmt-tab-active-bg: #2d3748;
  }

  .lmt-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2d3748;
  }

  .lmt-tabs {
    gap: 10px;
    margin-bottom: 16px;
  }

  .lmt-tab {
    flex: 1 1 0;
    min-width: 0;
    max-width: 120px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #d0d7de;
    background: #fff;
    color: #2d3748;
  }

  .lmt-tab:hover {
    color: #2d3748;
  }

  .lmt-tab.is-active {
    border-color: var(--lmt-tab-active-bg);
    background: var(--lmt-tab-active-bg);
    color: #fff;
  }

  .lmt-tab__label--full {
    display: none;
  }

  .lmt-tab__label--short {
    display: inline;
  }

  .lmt-table-wrap {
    display: none;
  }

  .lmt-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .lmt-deal-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(45, 55, 72, 0.08);
    padding: 16px 16px 14px;
  }

  .lmt-deal-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .lmt-deal-card__date {
    font-size: 13px;
    color: #718096;
    line-height: 1.3;
  }

  .lmt-deal-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(107, 51, 236, 0.12);
  }

  .lmt-deal-card__badge.lmt-status-leased,
  .lmt-deal-card__badge.lmt-status-rent,
  .lmt-deal-card__badge.lmt-status-deal {
    color: var(--lmt-leased);
    background: rgba(107, 51, 236, 0.12);
  }

  .lmt-deal-card__badge.lmt-status-sold,
  .lmt-deal-card__badge.lmt-status-sale {
    color: var(--lmt-sold);
    background: rgba(217, 51, 236, 0.12);
  }

  .lmt-deal-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a202c;
  }

  .lmt-deal-card__title .lmt-property-link {
    color: inherit;
    text-decoration: none;
  }

  .lmt-deal-card__title .lmt-property-link:hover,
  .lmt-deal-card__title .lmt-property-link:focus {
    color: var(--lmt-tab-active);
    text-decoration: underline;
  }

  .lmt-deal-card__meta {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #718096;
  }

  .lmt-deal-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
  }

  .lmt-deal-card__price {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
  }

  .lmt-deal-card__price-label {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 10px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #212121;
  }

  .lmt-deal-card__price.lmt-status-leased,
  .lmt-deal-card__price.lmt-status-rent,
  .lmt-deal-card__price.lmt-status-deal {
    color: var(--lmt-leased);
  }

  .lmt-deal-card__price.lmt-status-sold,
  .lmt-deal-card__price.lmt-status-sale {
    color: var(--lmt-sold);
  }

  .lmt-deal-card__source {
    flex-shrink: 0;
    font-size: 10px;
    color: #a0aec0;
    line-height: 1.3;
  }

  .lmt-more-wrap {
    display: block;
    padding: 16px 0 0;
  }

  .lmt-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    border: 1.5px solid #607480;
    border-radius: 8px;
    background: #fff;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
  }

  .lmt-more-link:hover {
    color: #2d3748;
    border-color: #2d3748;
  }

  .lmt-wrap.is-loading .lmt-cards {
    opacity: 0.55;
    pointer-events: none;
  }
}
