/* P4V - scoped only to the five P4U edited cities. Matches the Okinawa score/banner hierarchy while protecting full text. */
html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-okinawa-air-card,
html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-p4u-nz-score-card{
 display:grid!important;grid-template-columns:minmax(136px,.30fr) minmax(0,1.70fr)!important;
 gap:8px!important;align-items:center!important;padding:14px!important;
 box-sizing:border-box!important;max-width:100%;min-width:0;overflow:hidden;
}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-left,
html[lang="ko"] #twfStableTravelScore .twf-p4u-nz-left{
 min-width:0!important;max-width:100%;overflow:visible!important;
}
html[lang="ko"] #twfStableTravelScore .travel-score-label{
 font-size:11px!important;line-height:1.35!important;white-space:normal!important;
 overflow-wrap:anywhere!important;letter-spacing:0!important;
}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-tags{display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0;max-width:100%;}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-tags .travel-tag{
 display:flex!important;align-items:center!important;white-space:normal!important;
 min-width:0!important;max-width:100%!important;width:100%;box-sizing:border-box!important;
 overflow-wrap:anywhere!important;word-break:keep-all!important;
 padding:6px 7px!important;font-size:10.5px!important;line-height:1.4!important;
}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-right,
html[lang="ko"] #twfStableTravelScore .twf-p4u-nz-right{min-width:0!important;max-width:100%!important;overflow:hidden;}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-banner,
html[lang="ko"] #twfStableTravelScore .twf-nz-tripcom-air-banner{
 display:block;width:100%!important;max-width:100%!important;height:auto!important;
 aspect-ratio:490/273!important;overflow:hidden;border-radius:13px;line-height:0;
}
html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-banner img,
html[lang="ko"] #twfStableTravelScore .twf-nz-tripcom-air-banner img{
 display:block!important;width:100%!important;max-width:100%!important;height:100%!important;
 min-height:0!important;aspect-ratio:490/273!important;object-fit:fill!important;
}
html[lang="ko"] #twfStableTravelScore .twf-nz-score-method{max-width:100%;overflow-wrap:anywhere;font-size:10px!important;line-height:1.4!important;}
@media(max-width:600px){
 html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-okinawa-air-card,
 html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-p4u-nz-score-card{
  grid-template-columns:minmax(100px,.33fr) minmax(0,1.67fr)!important;gap:6px!important;padding:9px!important;
 }
 html[lang="ko"] #twfStableTravelScore .travel-score-label{font-size:10px!important;line-height:1.33!important;}
 html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-tags .travel-tag{font-size:9.4px!important;padding:4px 5px!important;line-height:1.38!important;}
 html[lang="ko"] #twfStableTravelScore .travel-score-number{font-size:26px!important;}
 html[lang="ko"] #twfStableTravelScore .travel-score-unit{font-size:10px!important;}
}
@media(max-width:360px){
 html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-okinawa-air-card,
 html[lang="ko"] .detail-page #twfStableTravelScore>.travel-score-card.twf-p4u-nz-score-card{
 grid-template-columns:minmax(96px,.34fr) minmax(0,1.66fr)!important;gap:4px!important;padding:7px!important;
 }
 html[lang="ko"] #twfStableTravelScore .twf-okinawa-air-tags .travel-tag{font-size:9px!important;}
}

/* P4Z (2026-10-28): New Zealand only. Keep original 16:9 banner from stretching
   to the height of the longer, explanatory score column at narrow widths.
   Preserve score/method, linked destination, tracking and every other city. */
html[lang="ko"] #twfStableTravelScore .twf-p4u-nz-score-card > .twf-p4u-nz-right {
  align-self:center!important;
  height:auto!important;
  min-height:0!important;
}
html[lang="ko"] #twfStableTravelScore .twf-p4u-nz-score-card .twf-nz-tripcom-air-banner {
  display:block!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  align-self:center!important;
}
html[lang="ko"] #twfStableTravelScore .twf-p4u-nz-score-card .twf-nz-tripcom-air-banner img {
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  object-fit:contain!important;
}
