/* jpcanada.com style adaptation for imvan.ca */
/* Based on jpcanada.com/resources2018/styles-pc.css + styles-phone.css */
/* Exact values from agent research 2026-04-11 */

/* ===== Reset & Base ===== */
body.jp-style {
  font-family: Lato, "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 22px;
  color: #333;
  text-align: center;
  margin: 0;
  padding: 0;
  background: #fff;
}
body.jp-style a { color: #0044cc; text-decoration: underline; }
body.jp-style a:hover { color: red; }
body.jp-style a:hover img { border: 1px red solid; }
body.jp-style h1, body.jp-style h2, body.jp-style h3, body.jp-style h4, body.jp-style h5 {
  margin: 0; padding: 0;
}

/* ===== Page Frame (840 + 1/8 = 945px) ===== */
.jp-header, .jp-section, .jp-footer {
  width: 945px;
  margin: 0 auto;
  text-align: left;
  clear: both;
}
.jp-header { padding-top: 0; }
.jp-section { padding-top: 10px; }

/* Two-column float layout */
#jp-content { width: 778px; float: right; }
#jp-banner-left { width: 147px; float: left; }

/* Clearfix for float container */
.jp-clearfix::after { content: ''; display: table; clear: both; }

/* ===== H1 SEO Bar (jpcanada-style fixed top) ===== */
.jp-h1-bar {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  min-width: 600px;
  z-index: 99999;
  background: #eee;
  color: #333;
  font-size: 0.6em;
  font-weight: 300;
  height: 1.5em;
  text-align: right;
  padding-top: 2px;
  margin-top: 0;
}

/* ===== Header ===== */
.jp-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.jp-header-inner li {
  display: inline-block;
  vertical-align: top;
  text-align: center;
  border: 1px #eee solid;
  list-style: none;
}
.jp-logo { width: 145px; }
.jp-logo img {
  transition: transform 0.3s ease;
}
.jp-logo img:hover {
  transform: rotate(-10deg);
}

/* Header info bar (weather + exchange rate) */
.jp-header-info {
  margin-top: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.jp-header-info select {
  border: solid 1px #bbb;
  padding: 2px 4px;
  font-size: 12px;
}

/* Exchange rate */
.exchange { background: #ccffff; font-weight: 700; padding: 2px 4px; font-size: 12px; }

/* ===== Left Banner Sidebar ===== */
#jp-banner-left ul { list-style: none; margin: 0; padding: 0; }
#jp-banner-left li { margin: 0; padding: 0; }
#jp-banner-left h3 {
  background-color: #ff0000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px;
  margin-bottom: 0;
}
#jp-banner-left .links-box {
  background-color: #FFFFDD;
  padding: 5px;
  margin: 0;
  border: #eee 1px solid;
  font-size: 12px;
  line-height: 1.8;
}
.sbn-img { border: #ccc solid 1px; display: block; margin-bottom: 4px; width: 140px; }

/* ===== Section Headlines (black bar) ===== */
.bbs-headline {
  display: block;
  background-color: #000;
  color: #fff;
  padding: 1px 2px;
  font-size: 15px;
  font-weight: 400;
}
.bbs-headline a { color: #fff; }

/* ===== Content text ===== */
#jp-content p { padding: 0; margin: 0; font-size: 13px; }
#jp-content h3 { font-size: 15px; text-align: left; }
#jp-content h4, #jp-content h5 { font-size: 14px; }

/* ===== Board Grid (bbs-table) — 3 columns like jpcanada ===== */
.bbs-table { display: table; width: 100%; text-align: left; margin-top: 2px; margin-bottom: 2px; }
.bbs-table .divTableRow { display: table-row; }
.bbs-table .divTableCell {
  display: table-cell;
  width: 33.33%;
  padding: 5px 4px;
  font-size: 14px;
  vertical-align: top;
}

/* ===== Entry Banners (jpcanada CLASSIFIED — thick border, white bg, colored text) ===== */
.jp-entry-banners {
  display: flex;
  gap: 10px;
  margin: 6px 0;
}
.jp-entry-banner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 22px;
  letter-spacing: 2px;
  background: #fff;
}
/* Gold/yellow — bright, high contrast */
.jp-entry-banner-gold {
  border: 8px solid #ffcc00;
  color: #cc8800 !important;
}
.jp-entry-banner-gold:hover {
  background: #fffbe6;
  color: #b07000 !important;
}
/* Pink — bright, high contrast */
.jp-entry-banner-pink {
  border: 8px solid #ffaabb;
  color: #dd5577 !important;
}
.jp-entry-banner-pink:hover {
  background: #fff0f3;
  color: #cc4466 !important;
}
.jp-entry-banner small {
  display: block;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0;
  margin-top: 2px;
}

/* ===== 12 Colored Border Classes ===== */
.tbYellow  { border: #daa520 1px solid; padding: 3px; }
.tbGreen   { border: #00cc33 1px solid; padding: 3px; }
.tbBlue    { border: #0000ff 1px solid; padding: 3px; }
.tbLtBlue  { border: #0099ff 1px solid; padding: 3px; }
.tbOrange  { border: #ff9933 1px solid; padding: 3px; }
.tbPink    { border: #ff00ff 1px solid; padding: 3px; }
.tbStPink  { border: #cc3399 1px solid; padding: 3px; }
.tbSmBlue  { border: #009999 1px solid; padding: 3px; }
.tbGray    { border: #bebebe 1px solid; padding: 3px; }
.tbPurple  { border: #990099 1px solid; padding: 3px; }
.tbRed     { border: #ff0000 1px solid; padding: 3px; }
.tbYGreen  { border: #33ff66 1px solid; padding: 3px; }

/* ===== Board Wrapper (3px colored border around content when viewing a category) ===== */
.board-wrapper {
  border: 3px solid;
  border-radius: 6px;
  padding: 4px;
  margin-top: 4px;
}
.board-wrapper.bw-rental     { border-color: #0000ff; }
.board-wrapper.bw-real_estate { border-color: #00cc33; }
.board-wrapper.bw-car         { border-color: #ff9933; }
.board-wrapper.bw-job         { border-color: #990099; }
.board-wrapper.bw-buy_sell    { border-color: #ff00ff; }
.board-wrapper.bw-service_nanny      { border-color: #009999; }
.board-wrapper.bw-service_renovation { border-color: #ff0000; }
.board-wrapper.bw-service_gardening  { border-color: #33ff66; }
.board-wrapper.bw-service_hvac       { border-color: #0099ff; }

/* ===== Info Table (2-column guide) ===== */
.info-table { display: table; width: 100%; text-align: left; }
.info-table .divTableRow { display: table-row; }
.info-table .divTableCell {
  display: table-cell;
  width: 50%;
  padding: 5px 4px;
  font-size: 14px;
  vertical-align: top;
}

/* ===== Area Table (city × category matrix) ===== */
.area-table { display: table; border: 1px solid #000; width: 100%; text-align: center; }
.area-table .divTableRow { display: table-row; }
.area-table .divTableCell, .area-table .divTableHead {
  display: table-cell;
  border: 1px solid #fff;
  padding: 4px 3px;
  font-size: 14px;
  vertical-align: middle;
}
.area-table .divTableRow:nth-child(even) { background: #DEE0E0; }
.area-table .tbHeader, .area-table .tbHeader a {
  background-color: #000;
  color: white;
}
.area-table .tbHeader a { text-decoration: none; }
.area-table .tbHeader a:hover { font-weight: 600; color: white; }

/* ===== Free Space (Ad Placeholders) ===== */
.free-space { text-align: center; margin: 10px auto; padding: 10px 0; }

/* Ad placeholder box (for when no real ads) */
.ad-placeholder {
  display: inline-block;
  background: #f5f5f5;
  border: 1px dashed #ccc;
  color: #999;
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
  padding: 4px;
}
.ad-placeholder-468 { width: 468px; height: 60px; line-height: 60px; }
.ad-placeholder-147 { width: 140px; height: 100px; }

/* ===== CTA Bar ===== */
.jp-cta-bar {
  background: #fffde7;
  border-bottom: 2px solid #c00;
  padding: 4px 0;
}
.jp-cta-btn {
  background: #c00;
  color: #fff !important;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 16px;
  text-decoration: none !important;
  display: inline-block;
}
.jp-cta-btn:hover { background: #a00; color: #fff !important; }

/* ===== Search ===== */
.jp-search input[type="text"] {
  border: 1px solid #bbb;
  padding: 4px 8px;
  font-size: 12px;
}
.jp-search button {
  background: #003399;
  color: #fff;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* ===== Listing Rows ===== */
.jp-listing-row {
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  gap: 4px;
  align-items: baseline;
}
.jp-listing-row a { color: #333; text-decoration: none; }
.jp-listing-row a:hover { color: #c00; text-decoration: underline; }
.jp-price { color: #c60; font-weight: bold; font-size: 12px; }
.jp-time { color: #999; font-size: 10px; white-space: nowrap; }

/* Listing page rows (detail rows) */
.listing-row { display: flex; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #eee; font-size: 14px; align-items: flex-start; }
.listing-row:nth-child(even) { background: #f9f9f9; }
.listing-row:hover { background: #fffde7; }
.listing-row .thumb { width: 80px; height: 60px; object-fit: cover; border: 1px solid #ddd; flex-shrink: 0; background: #f0f0f0; }
.listing-row .info { flex: 1; min-width: 0; }
.listing-row .info .title-link { color: #0044cc; text-decoration: none; font-weight: bold; font-size: 14px; }
.listing-row .info .title-link:hover { color: red; text-decoration: underline; }
.listing-row .info .meta { font-size: 11px; color: #666; margin-top: 2px; }
.listing-row .info .desc { font-size: 11px; color: #888; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-row .price { font-size: 14px; font-weight: bold; color: #c60; white-space: nowrap; }
.listing-row .date { font-size: 10px; color: #999; white-space: nowrap; }

/* Page nav */
.page-nav { text-align: center; padding: 8px; font-size: 12px; }
.page-nav a { color: #0044cc; margin: 0 4px; }

/* Filter bar */
.filter-bar { background: #f5f5f5; border-bottom: 1px solid #ddd; padding: 4px 8px; font-size: 12px; }
.filter-bar select, .filter-bar input { border: 1px solid #bbb; padding: 3px 6px; font-size: 12px; }
.filter-bar button { background: #003399; color: #fff; border: none; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* ===== Footer ===== */
.jp-footer {
  font-size: 12px;
  line-height: 1.5;
  padding-top: 20px;
}
.jp-footer #copyright {
  text-align: center;
  color: #333;
  font-size: 1em;
  font-weight: 300;
  width: 100%;
  min-width: 945px;
  margin-top: 20px;
}

/* Quick links */
.jp-quicklinks {
  font-size: 12px;
  text-align: center;
  padding: 6px;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
}

/* ===== Ticker shared ===== */
.ticker {
  font-size: 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #f9f9f9;
}
.ticker a { color: #0044cc; text-decoration: none; }
.ticker a:hover { text-decoration: underline; }
.ticker-label {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-weight: bold;
  font-size: 11px;
  color: #fff;
  background: #c00;
  white-space: nowrap;
  flex-shrink: 0;
  height: 100%;
}
.ticker-sep { color: #ccc; margin: 0 12px; }

/* ① Marquee 水平滚动 */
.ticker-marquee {
  display: flex;
  align-items: center;
  height: 26px;
  overflow: hidden;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.ticker-scroll {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-scroll 35s linear infinite;
  gap: 0;
}
.ticker-marquee:hover .ticker-scroll { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}




/* ===== Featured cards (news/promo) ===== */
.jp-card-row {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}
.jp-card {
  flex: 1;
  border-bottom: 1px solid #eee;
  padding: 4px;
  font-size: 12px;
}
.jp-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid #DADCE0;
  float: left;
  margin-right: 5px;
}
.jp-card .title { font-weight: bold; font-size: 12px; }
.jp-card .text { color: #888; font-size: 0.8em; margin-top: 2px; }

/* ===== Utility: text helpers ===== */
.txt-red { color: #ff0000; }
.txt-small { font-size: 10px; }
.txt-bold { font-weight: 700; }

/* ===== Mobile overrides ===== */
@media (max-width: 767px) {
  .jp-header, .jp-section, .jp-footer { width: auto; padding: 0 0.5em; }
  .jp-footer #copyright { min-width: auto; font-size: 0.8em; }
  #jp-content { width: auto; float: none; }
  #jp-banner-left { display: none; }

  .bbs-table .divTableCell { display: block; width: 100%; }
  .bbs-table .divTableRow { display: block; }

  .info-table .divTableCell { display: block; width: 100%; }
  .info-table .divTableRow { display: block; }

  .area-table .divTableRow { display: block; margin-bottom: 1em; }
  .area-table .divTableCell { display: block; font-size: large; margin-bottom: 0.5em; }
  .area-table .tbHeader { display: none; }
  .area-table .phone-area-name {
    display: block;
    background-color: #000;
    color: #fff;
    padding: 0.3em;
  }

  .free-space { margin-top: 2em; }
  .ad-placeholder-468 { width: 100%; height: auto; min-height: 40px; }

  .jp-card-row { flex-direction: column; }

  .jp-header-inner { flex-wrap: wrap; }
  .jp-h1-bar { display: none; }

  .listing-row .thumb { width: 60px; height: 45px; }
}
