/* Final responsive polish for the KoriNavi unified public shell. */
.kori-unified-shell .site-header .nav{width:min(calc(100% - 32px),1240px)}
.kori-unified-shell .site-header .brand{flex:0 0 auto}
.kori-unified-shell .site-header .nav-deals{order:99;flex:0 0 auto}
.kori-unified-shell .site-header .nav-quick{flex:0 0 auto}
.kori-unified-shell .site-header .nav-links{min-width:0}
.kori-unified-shell.lang-zh .site-header .nav-quick a[href="/stay/"]{display:none!important}
.kori-unified-shell.lang-zh .site-header .nav-quick a[href="/destinations/"],
.kori-unified-shell.lang-zh .site-header .nav-quick a[href="/esim/"]{display:inline-flex!important}
.kori-unified-shell .kori-runtime-hub{padding-top:54px;background:#fff}
.kori-unified-shell .kori-runtime-hub .hub-main{min-width:0}
.kori-unified-shell .kori-runtime-hub .hub-section>.guide-grid,
.kori-unified-shell .kori-unified-master-index .guide-grid{margin-top:18px!important}
.kori-unified-shell .kori-unified-master-index{margin:0 0 52px;padding:0;border-bottom:1px solid var(--k-line,#d7e0ec)}
.kori-unified-shell .kori-unified-master-index>.hub-section-header{margin-bottom:18px}
.kori-unified-shell .kori-unified-master-index .kori-master-tools{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;gap:12px;align-items:center;margin:18px 0 28px}
.kori-unified-shell .kori-unified-master-index .kori-master-tools input{min-height:46px;padding:10px 13px;border:1px solid var(--k-line,#d7e0ec);border-radius:10px;background:#fff;color:#111827}
.kori-unified-shell .kori-unified-master-index .kori-master-group{margin:30px 0}
.kori-unified-shell .kori-unified-master-index .more-guides-subhead{margin:0 0 14px;color:#071f46;font-size:22px}
.kori-unified-shell .destination-choice-controls{position:sticky;top:86px;z-index:22;box-shadow:0 8px 20px rgba(7,31,70,.07);backdrop-filter:blur(12px)}
.kori-unified-shell .destination-choice-controls button{transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease}
.kori-unified-shell .destination-choice-controls button:active{transform:translateY(1px)}

/* Category navigation is always the primary entry; search stays secondary. */
.kori-unified-shell .kori-navigator-panel,
.kori-unified-shell .kori-master-jumps,
.kori-unified-shell .kori-guide-filter-groups{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px!important;margin:18px 0 26px!important;overflow:visible!important}
.kori-unified-shell .kori-master-jumps a,
.kori-unified-shell .kori-guide-filter-groups button,
.kori-unified-shell [data-kori-filter-button]{display:flex!important;min-height:50px!important;align-items:center!important;justify-content:center!important;padding:10px 14px!important;border:1px solid #c7d4e5!important;border-radius:12px!important;background:#fff!important;color:#17345f!important;font-weight:850!important;text-align:center!important;text-decoration:none!important;white-space:normal!important;line-height:1.25!important}
.kori-unified-shell .kori-master-jumps a:hover,
.kori-unified-shell .kori-guide-filter-groups button:hover,
.kori-unified-shell [data-kori-filter-button]:hover,
.kori-unified-shell [aria-pressed="true"][data-kori-filter-button]{border-color:#cd2e3a!important;background:#cd2e3a!important;color:#fff!important}

/* Hard reset for EN/JA/TH cards. Prevent legacy grid rules from squeezing text into a narrow column. */
.kori-unified-shell .guide-grid{grid-template-columns:repeat(3,minmax(260px,1fr))!important;align-items:stretch!important}
.kori-unified-shell .guide-grid>a.guide-link,
.kori-unified-shell .guide-grid>a.kori-master-link{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  align-items:stretch!important;
  overflow:hidden!important;
  padding:0!important;
}
.kori-unified-shell .guide-grid>a.guide-link>.kori-guide-preview,
.kori-unified-shell .guide-grid>a.guide-link>.kori-guide-thumb,
.kori-unified-shell .guide-grid>a.kori-master-link>.kori-guide-preview,
.kori-unified-shell .guide-grid>a.kori-master-link>.kori-guide-thumb{
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  aspect-ratio:16/9!important;
}
.kori-unified-shell .guide-grid>a.guide-link>.kori-guide-copy,
.kori-unified-shell .guide-grid>a.kori-master-link>.kori-guide-copy{
  grid-column:1!important;
  grid-row:2 / span 2!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:16px 17px 19px!important;
}
.kori-unified-shell .guide-grid>a.guide-link>strong,
.kori-unified-shell .guide-grid>a.kori-master-link>strong{
  grid-column:1!important;
  grid-row:2!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:16px 17px 0!important;
}
.kori-unified-shell .guide-grid>a.guide-link>strong~span:not(.kori-guide-preview):not(.kori-guide-thumb):not(.kori-guide-copy),
.kori-unified-shell .guide-grid>a.kori-master-link>strong~span:not(.kori-guide-preview):not(.kori-guide-thumb):not(.kori-guide-copy){
  grid-column:1!important;
  grid-row:3!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:8px 48px 19px 17px!important;
}
.kori-unified-shell .guide-grid strong,
.kori-unified-shell .guide-grid .kori-guide-copy,
.kori-unified-shell .guide-grid .kori-guide-copy>span,
.kori-unified-shell .guide-grid>a.guide-link>span,
.kori-unified-shell .guide-grid>a.kori-master-link>span{
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}
.kori-unified-shell .guide-grid img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}

@media(max-width:1180px){
  .kori-unified-shell .site-header .nav{gap:10px}
  .kori-unified-shell .site-header .nav-links{gap:11px;font-size:12.5px}
  .kori-unified-shell .site-header .brand-word::after{display:none}
}
@media(max-width:1040px){
  .kori-unified-shell .site-header .nav-links{display:none!important}
  .kori-unified-shell .site-header .nav-quick{display:flex!important;margin-left:auto}
  .kori-unified-shell .site-header .nav-utility{display:none!important}
  .kori-unified-shell .guide-grid{grid-template-columns:repeat(2,minmax(260px,1fr))!important}
}
@media(max-width:760px){
  .kori-unified-shell .site-header .brand-word{display:none}
  .kori-unified-shell .site-header .brand{gap:0}
  .kori-unified-shell .destination-choice-controls{top:66px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .kori-unified-shell .destination-choice-controls::-webkit-scrollbar{display:none}
  .kori-unified-shell .destination-choice-controls button{flex:0 0 auto;white-space:nowrap}
  .kori-unified-shell .kori-unified-master-index .kori-master-tools{grid-template-columns:1fr}
  .kori-unified-shell .guide-grid{grid-template-columns:minmax(0,1fr)!important}
  .kori-unified-shell .guide-grid>a.guide-link,
  .kori-unified-shell .guide-grid>a.kori-master-link{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;min-height:0!important}
  .kori-unified-shell .guide-grid>a.guide-link>.kori-guide-preview,
  .kori-unified-shell .guide-grid>a.guide-link>.kori-guide-thumb,
  .kori-unified-shell .guide-grid>a.kori-master-link>.kori-guide-preview,
  .kori-unified-shell .guide-grid>a.kori-master-link>.kori-guide-thumb{height:auto!important;min-height:0!important;aspect-ratio:16/9!important}
  .kori-unified-shell .kori-navigator-panel,
  .kori-unified-shell .kori-master-jumps,
  .kori-unified-shell .kori-guide-filter-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  .kori-unified-shell .site-header .nav{width:min(calc(100% - 20px),1240px)}
  .kori-unified-shell .site-header .nav-quick{gap:4px}
  .kori-unified-shell .site-header .nav-quick a{min-height:38px;padding:0 6px;font-size:10.5px}
  .kori-unified-shell .site-header .nav-deals{min-height:38px;padding:0 8px;font-size:10.5px}
  .kori-unified-shell .kori-navigator-panel,
  .kori-unified-shell .kori-master-jumps,
  .kori-unified-shell .kori-guide-filter-groups{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:350px){
  .kori-unified-shell.lang-zh .site-header .nav-quick a:first-child{display:none!important}
}
