/* ==========================================
   Inner pages: Maps + Collector Rates
   Loaded after style.css
   ========================================== */
body.inner { background: var(--light); }
.crumbs { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.crumbs a { color: var(--primary); }
.crumbs a:hover { text-decoration: underline; }
.page-hero {
  background: linear-gradient(135deg, #0b2a4a 0%, #0066B3 100%);
  color: var(--white);
  padding: 44px 0 34px;
}
.page-hero .crumbs, .page-hero .crumbs a { color: rgba(255,255,255,.8); }
.page-hero h1 { font-family: 'Poppins', sans-serif; font-size: 38px; line-height: 1.2; margin-bottom: 10px; }
.page-hero p { max-width: 760px; opacity: .92; font-size: 16.5px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm i.ico { font-size: 15px; }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: #eaf3fb; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-blue { background: var(--primary); color: var(--white); }
.btn-blue:hover { background: #00528f; }
.btn-wa { background: #25D366; color: var(--white); }
.btn-wa:hover { background: #1ebe5a; }
.btn-ghost { background: var(--white); color: var(--dark); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.inner-section { padding: 34px 0 60px; }

/* ---------- toolbar (search + chips) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.search-box { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-box i.ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.search-box input {
  width: 100%; padding: 13px 14px 13px 40px; border-radius: 12px; border: 1px solid var(--border);
  font-size: 15.5px; font-family: inherit; background: var(--white); outline: none;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,102,179,.15); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-f {
  border: 1px solid var(--border); background: var(--white); color: var(--text);
  padding: 8px 14px; border-radius: 50px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.chip-f:hover { border-color: var(--primary); color: var(--primary); }
.chip-f.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.count-note { color: var(--text-light); font-size: 13.5px; margin-bottom: 14px; }

/* ---------- map grid ---------- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.map-card {
  background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.map-card__img { aspect-ratio: 3 / 2; background: #eef1f5; overflow: hidden; }
.map-card__img img { width: 100%; height: 100%; object-fit: cover; }
.map-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.map-card__no { font-size: 11.5px; font-weight: 700; color: var(--primary); letter-spacing: .4px; text-transform: uppercase; }
.map-card__name { font-size: 15.5px; font-weight: 700; color: var(--dark); line-height: 1.35; }
.map-card[hidden] { display: none; }
.empty-note { text-align: center; padding: 30px 0; color: var(--text-light); }
.empty-note a { color: var(--primary); font-weight: 600; }

.book-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--border); border-left: 5px solid var(--gold);
  border-radius: 14px; padding: 18px 20px; margin: 30px 0 0;
}
.book-banner h2 { font-size: 18px; color: var(--dark); margin-bottom: 4px; }
.book-banner p { font-size: 14px; color: var(--text-light); }

.note { font-size: 13px; color: var(--text-light); margin-top: 26px; display: flex; gap: 8px; align-items: flex-start; }
.note i.ico { margin-top: 2px; }

/* ---------- single map page ---------- */
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.map-head h1 { font-family: 'Poppins', sans-serif; font-size: 30px; color: var(--dark); line-height: 1.2; }
.map-head .map-no { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: .4px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.viewer {
  position: relative; height: min(74vh, 760px); min-height: 380px; border-radius: 14px; overflow: hidden;
  background: #dfe5ec; border: 1px solid var(--border); touch-action: none; cursor: grab; user-select: none;
}
.viewer.is-dragging { cursor: grabbing; }
.viewer img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; will-change: transform; background: #fff; }
.viewer-tools { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.viewer-tools button {
  width: 42px; height: 42px; border-radius: 10px; border: 0; background: rgba(13,23,34,.75); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px;
}
.viewer-tools button:hover { background: rgba(13,23,34,.92); }
.viewer-status {
  position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(13,23,34,.75); color: #fff;
  font-size: 12.5px; padding: 6px 12px; border-radius: 50px; pointer-events: none; transition: opacity .5s;
}
.viewer:fullscreen { border-radius: 0; height: 100vh; }

.map-nav { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; flex-wrap: wrap; }
.map-nav a { flex: 1 1 240px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.map-nav a:hover { border-color: var(--primary); }
.map-nav small { display: block; color: var(--text-light); font-size: 12px; }
.map-nav strong { color: var(--dark); font-size: 14.5px; }
.map-nav .next { text-align: right; }

.map-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 26px; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.panel h2 { font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.panel p { font-size: 14.5px; color: var(--text-light); }
.panel .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.related { margin-top: 30px; }
.related h2 { font-size: 20px; color: var(--dark); margin-bottom: 14px; }

/* ---------- collector rates ---------- */
.disclaimer {
  display: flex; gap: 12px; align-items: flex-start; background: #fff8e6; border: 1px solid #f3d27a;
  color: #5b4300; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
}
.disclaimer i.ico { color: #c98a00; font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.disclaimer strong { color: #3f2f00; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.year-tab {
  border: 1px solid var(--border); background: var(--white); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; color: var(--dark);
}
.year-tab small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text-light); }
.year-tab.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.year-tab.is-active small { color: rgba(255,255,255,.85); }
.rate-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rate-meta { font-size: 13.5px; color: var(--text-light); margin: 6px 0 12px; }
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: auto; max-height: 70vh; }
table.rates { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rates th {
  position: sticky; top: 0; background: #0b2a4a; color: #fff; text-align: left; font-weight: 600; font-size: 12.5px;
  padding: 10px 12px; white-space: nowrap; z-index: 1;
}
table.rates td { padding: 9px 12px; border-top: 1px solid #eef1f5; vertical-align: top; }
table.rates td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rates tr:hover td { background: #f5f9fd; }
table.rates tr.grp td { background: #eef4fa; font-weight: 700; color: var(--primary); font-size: 13px; letter-spacing: .3px; }
table.rates mark { background: #ffe58a; padding: 0 1px; }
.more-row { text-align: center; padding: 14px; }
.pdf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.pdf-list a {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; font-weight: 600; color: var(--dark);
}
.pdf-list a:hover { border-color: var(--primary); color: var(--primary); }
.pdf-list i.ico { color: #d93025; font-size: 22px; }
.pdf-list small { display: block; font-weight: 500; color: var(--text-light); font-size: 12px; }
.section-title { font-size: 20px; color: var(--dark); margin: 34px 0 6px; }

/* ---------- homepage resource cards ---------- */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.res-card {
  display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: 16px; padding: 24px;
  border: 2px solid transparent; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.res-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.res-card__icon {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0066B3, #004d87); color: #fff; font-size: 28px;
}
.res-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.res-card p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.res-card span { color: var(--accent); font-weight: 700; font-size: 14px; }

@media (max-width: 900px) {
  .map-info { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 30px 0 24px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero p { font-size: 15px; }
  .map-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .map-card__body { padding: 9px 10px 11px; }
  .map-card__name { font-size: 13.5px; }
  .map-head h1 { font-size: 23px; }
  .map-actions .btn-sm span { display: none; }
  .viewer { height: 62vh; min-height: 320px; }
  table.rates { font-size: 13px; }
  table.rates th, table.rates td { padding: 8px 9px; }
  .res-card { padding: 18px; }
}
@media (max-width: 380px) { .map-grid { grid-template-columns: 1fr; } }
.sheet-tabs[hidden] { display: none; }
