/* Philippines travel map (philippines-travel-map.html) */
.phmap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.phmap__map {
  position: relative;
  background: linear-gradient(180deg, #eaf4f6 0%, #dcecef 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}
.phmap__svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.phmap__area {
  fill: #d4dcdb;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.15s ease;
}
.phmap__area--has { cursor: pointer; }
.phmap__area--l1 { fill: #9fd0cc; }
.phmap__area--l2 { fill: #5fb2ae; }
.phmap__area--l3 { fill: #1f8f8f; }
.phmap__area--l4 { fill: var(--accent-dark); }
.phmap__area--has:hover,
.phmap__area--has:focus-visible { fill: #e8a33d; outline: none; }
.phmap__area.is-active { fill: #d9822b; stroke: var(--deep); stroke-width: 2.5; }
.phmap__ring { fill: rgba(11, 122, 124, 0.08); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; cursor: pointer; }
.phmap__tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--deep);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
  display: grid;
  z-index: 2;
}
.phmap__tip[hidden] { display: none; }
.phmap__tip span { opacity: 0.8; }

.phmap__panel {
  position: sticky;
  top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 18px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.phmap__eyebrow { margin: 0 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.phmap__place { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.15; color: var(--deep); }
.phmap__lead { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }

.full-content .phmap__stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.full-content .phmap__story a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit; border-radius: 8px; padding: 4px; }
.phmap__story a:hover .phmap__story-title,
.phmap__story a:focus-visible .phmap__story-title { color: var(--accent); text-decoration: underline; }
.phmap__story img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.phmap__story-text { display: grid; gap: 2px; min-width: 0; }
.phmap__story-title { font-weight: 600; color: var(--ink); line-height: 1.3; }
.phmap__story-meta { font-size: 13px; color: var(--muted); }
.phmap__stories--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.phmap__clear {
  margin-top: 14px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  color: var(--deep);
}
.phmap__clear:hover { border-color: var(--accent); }

.phmap__places { display: flex; flex-wrap: wrap; gap: 8px; }
.phmap__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.phmap__chip:hover { border-color: var(--accent); }
.phmap__chip[aria-pressed="true"] { background: var(--soft); border-color: var(--accent); color: var(--deep); font-weight: 600; }
.phmap__count { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 1px 7px; }

@media (max-width: 760px) {
  .phmap { grid-template-columns: 1fr; }
  .phmap__panel { position: static; max-height: none; }
  .phmap__svg { max-height: 70vh; margin: 0 auto; }
}
