/* Nha Trang Planner — reference home v1, 2026-11-08.
   Presentation layer only; the existing itinerary engine, family API, approvals,
   restaurant data, and saved state remain authoritative. */
html.nt-redesign body{
  background:linear-gradient(180deg,#e5f2fc 0,#f3f7fc 650px,#f7f9fe 100%);
  color:#10223e;
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
}
html.nt-redesign body .app{max-width:660px;min-height:100vh;padding-bottom:calc(99px + env(safe-area-inset-bottom))}
html.nt-redesign body .hero,
html.nt-redesign body .premium-overview,
html.nt-redesign body #ntDiscovery,
html.nt-redesign body #ntDayRail,
html.nt-redesign body #ntBottomNav,
html.nt-redesign body .nav{display:none!important}
html.nt-redesign body .bar{display:none!important}
html.nt-redesign body.nt-screen-schedule .bar{display:flex!important;flex-wrap:wrap;padding:12px 17px 3px}
html.nt-redesign body.nt-screen-schedule .bar button{font-size:12px;box-shadow:none;border:1px solid #e2eaf3}
html.nt-redesign body:not(.nt-screen-schedule) #main{display:none!important}
html.nt-redesign body.nt-screen-schedule #main{display:block!important}
html.nt-redesign body:not(.nt-screen-food):not(.nt-screen-places):not(.nt-screen-resort) #db{display:none!important}
html.nt-redesign body.nt-screen-food #db,
html.nt-redesign body.nt-screen-places #db,
html.nt-redesign body.nt-screen-resort #db{display:block!important}
html.nt-redesign body:not(.nt-screen-profile) #rules{display:none!important}
html.nt-redesign body.nt-screen-profile #rules{display:block!important}
#ntReferenceHome{display:none}
html.nt-redesign body.nt-screen-home #ntReferenceHome{display:block}
#ntReferenceHome button,#ntReferenceNav button,#ntReferenceScreen button{
  font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;
}
#ntReferenceHome button:focus-visible,#ntReferenceNav button:focus-visible,
#ntReferenceScreen button:focus-visible,#ntReferenceMap a:focus-visible{
  outline:3px solid #ffbe59;outline-offset:2px;
}
#ntReferenceHome .nt-home-hero{
  position:relative;min-height:354px;isolation:isolate;overflow:hidden;
  padding:calc(22px + env(safe-area-inset-top)) 23px 100px;
  background:#1379a8;
  background-image:
     linear-gradient(180deg,rgba(2,42,72,.13) 0%,rgba(0,53,80,.05) 25%,rgba(0,52,76,.28) 57%,rgba(3,40,63,.80) 100%),
     url("https://images.unsplash.com/photo-1533002832-1721d16b4bb9?auto=format&fit=crop&w=1400&q=84");
  background-size:cover;background-position:center 44%;
  color:#fff;
}
#ntReferenceHome .nt-home-hero:before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,rgba(6,43,73,.39) 0%,transparent 85%);
}
#ntReferenceHome .nt-home-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
#ntReferenceHome .nt-brand{
  display:flex;align-items:center;gap:10px;min-width:0;font-size:25px;
  line-height:1.1;letter-spacing:-.075em;font-weight:950;text-shadow:0 2px 10px #123e5c65;
}
#ntReferenceHome .nt-brand-icon{width:32px;height:32px;flex:0 0 32px;stroke:#fff;stroke-width:2.5}
#ntReferenceHome .nt-account{
  border:1.5px solid #ffffffac;border-radius:999px;background:#146eb775;
  color:white;display:flex;align-items:center;gap:6px;font-weight:850;
  font-size:14px;padding:9px 13px;white-space:nowrap;backdrop-filter:blur(9px);
}
#ntReferenceHome .nt-account svg{width:20px;height:20px;stroke:currentColor}
#ntReferenceHome .nt-hero-content{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:69px}
#ntReferenceHome .nt-trip-intro{min-width:0}
#ntReferenceHome .nt-trip-intro h1{
  margin:0;color:#fff;line-height:1.18;font-weight:930;letter-spacing:-.07em;
  font-size:clamp(27px,6.9vw,40px);text-shadow:0 2px 13px #10293b85;
}
#ntReferenceHome .nt-trip-intro h1 span{white-space:nowrap}
#ntReferenceHome .nt-trip-meta{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px;
  font-size:clamp(10px,2.7vw,14px);font-weight:730;text-shadow:0 1px 8px #0b2d4999;
}
#ntReferenceHome .nt-trip-meta svg{width:17px;height:17px;stroke:currentColor;flex:none}
#ntReferenceHome .nt-trip-meta .nt-sep{opacity:.7;margin:0 3px}
#ntReferenceHome .nt-dday{
  flex:0 0 109px;text-align:center;border-radius:24px;padding:15px 9px 12px;
  background:linear-gradient(150deg,#faffff 0%,#edf8ff 65%,#fff 100%);
  color:#152744;box-shadow:0 12px 33px #093f6652;
}
#ntReferenceHome .nt-dday-label{font-size:13px;font-weight:920;letter-spacing:-.05em}
#ntReferenceHome .nt-dday-value{font-size:34px;color:#0873e9;line-height:1.3;font-weight:960;letter-spacing:-.045em}
#ntReferenceHome .nt-dday-emoji{font-size:23px;line-height:1}
#ntReferenceHome .nt-home-actions{
  position:relative;z-index:2;margin:-49px 16px 23px;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;
}
#ntReferenceHome .nt-home-action{
  min-width:0;height:91px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:7px;padding:10px 2px;
  border:1px solid #fff;border-radius:21px;background:#fff;color:#11213e;
  box-shadow:0 9px 24px #18476d17;font-weight:900;font-size:12px;
  letter-spacing:-.05em;line-height:1.1;
}
#ntReferenceHome .nt-home-action:active{transform:translateY(1px)}
#ntReferenceHome .nt-home-action .nt-action-icon{width:30px;height:30px;stroke-width:2.3;fill:none}
#ntReferenceHome .nt-home-action small{font-size:9px;color:#7d8b9d;font-weight:800;white-space:nowrap}
#ntReferenceHome .nt-home-action[data-destination="schedule"] svg{stroke:#339bdd}
#ntReferenceHome .nt-home-action[data-destination="food"] svg{stroke:#f7a438}
#ntReferenceHome .nt-home-action[data-destination="places"] svg{stroke:#1bab75}
#ntReferenceHome .nt-home-action[data-destination="resort"] svg{stroke:#8d61e2}
#ntReferenceHome .nt-home-action[data-destination="map"] svg{stroke:#299ee8}
#ntReferenceHome .nt-home-section{padding:0 15px 20px}
#ntReferenceHome .nt-home-section-header{
  display:flex;justify-content:space-between;align-items:center;
  gap:9px;margin-bottom:14px;
}
#ntReferenceHome .nt-home-section-header h2{
  display:flex;align-items:center;gap:8px;font-size:19px;letter-spacing:-.065em;
  line-height:1.25;margin:0;font-weight:950;color:#152340;
}
#ntReferenceHome .nt-home-section-header h2 svg{width:24px;height:24px;stroke:#0875df;stroke-width:2.3}
#ntReferenceHome .nt-home-section-header>button{
  background:transparent;color:#1179df;border:0;font-size:12px;font-weight:890;
  padding:8px 1px;white-space:nowrap;letter-spacing:-.04em;
}
#ntReferenceHome .nt-home-section-header>button span{font-size:18px;vertical-align:-1px;padding-left:3px}
#ntReferenceHome .nt-home-days{display:flex;flex-direction:column;gap:11px}
#ntReferenceHome .nt-home-day{
  display:grid;grid-template-columns:38% minmax(0,1fr);gap:0;
  width:100%;min-height:111px;padding:0;border:0;overflow:hidden;text-align:left;
  background:#fff;border-radius:21px;box-shadow:0 7px 19px #12395b14;
}
#ntReferenceHome .nt-home-day-picture{
  position:relative;min-height:111px;background-color:#67c6d8;
  background-size:cover;background-position:center;display:block;
}
#ntReferenceHome .nt-home-day-no-photo{
  background-color:#e5f2f1;
  background-image:linear-gradient(145deg,#dae9eb,#f1f7f5 65%,#e8efe9)!important;
}
#ntReferenceHome .nt-home-day-no-photo:before{
  content:"📷";position:absolute;left:50%;top:48%;
  transform:translate(-50%,-50%);z-index:1;font-size:28px;opacity:.55;
}
#ntReferenceHome .nt-home-day-picture:after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,#051b4144,transparent 68%);
}
#ntReferenceHome .nt-home-day-badge{
  position:absolute;z-index:1;left:9px;top:9px;
  color:#fff;background:#1c385b9c;padding:6px 8px;border-radius:999px;
  font-size:11px;font-weight:850;line-height:1;white-space:nowrap;backdrop-filter:blur(7px);
}
#ntReferenceHome .nt-home-day-mango-credit{
  position:absolute;z-index:2;left:7px;right:7px;bottom:7px;
  display:block;max-width:calc(100% - 14px);padding:4px 5px;
  border-radius:6px;background:rgba(14,34,41,.75);
  color:#fff;font-size:9px;line-height:1.35;font-weight:750;
  overflow:hidden;text-overflow:ellipsis;
}
#ntReferenceHome .nt-home-day-info{
  display:flex;flex-direction:column;justify-content:center;gap:9px;min-width:0;
  position:relative;padding:12px 29px 13px 14px;
}
#ntReferenceHome .nt-home-day-title{
  display:block;font-size:16px;font-weight:930;color:#10223e;
  line-height:1.25;letter-spacing:-.055em;overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
#ntReferenceHome .nt-home-day-sub{
  display:block;font-size:11px;font-weight:630;color:#75859a;
  line-height:1.4;letter-spacing:-.035em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
#ntReferenceHome .nt-home-day-chevron{
  position:absolute;right:9px;top:50%;transform:translateY(-50%);
  color:#7189a4;font-size:26px;font-weight:300;
}
#ntReferenceHome .nt-home-dots{display:flex;gap:9px;justify-content:center;margin:19px 0 4px}
#ntReferenceHome .nt-home-dot{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#cbd5e3}
#ntReferenceHome .nt-home-dot.on{background:#1279e8}
#ntReferenceHome .nt-image-credit{font-size:9px;text-align:center;color:#98a6b8;margin:15px 0 0}
#ntReferenceHome .nt-image-credit a{color:inherit;text-decoration:underline}
#ntReferenceNav{
  display:none;position:fixed;z-index:110;bottom:0;left:50%;transform:translateX(-50%);
  width:min(660px,100%);grid-template-columns:repeat(5,minmax(0,1fr));
  padding:8px 7px calc(8px + env(safe-area-inset-bottom));
  background:#fffffff5;border-top:1px solid #edf0f6;
  box-shadow:0 -10px 32px #1d386212;backdrop-filter:blur(20px);
}
html.nt-redesign #ntReferenceNav{display:grid}
#ntReferenceNav button{
  min-width:0;min-height:51px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:4px;
  border:0;border-radius:12px;background:transparent;color:#71839d;
  font-size:11px;font-weight:790;letter-spacing:-.05em;
}
#ntReferenceNav button.active{color:#087bf2}
#ntReferenceNav button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}
#ntReferenceNav button.active svg.nt-home-fill{fill:currentColor}
#ntReferenceScreen{display:none;padding:26px 18px 6px}
html.nt-redesign body:not(.nt-screen-home):not(.nt-screen-map) #ntReferenceScreen{display:block}
#ntReferenceScreen .nt-screen-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
#ntReferenceScreen .nt-screen-head h1{font-size:25px;letter-spacing:-.07em;line-height:1.2;margin:0;color:#132744}
#ntReferenceScreen .nt-screen-head p{font-size:12px;color:#7d8b9b;margin:6px 0 0}
#ntReferenceScreen .nt-head-home{border:0;background:#e7f2ff;color:#0878ed;border-radius:12px;padding:10px 12px;font-weight:850;font-size:12px}
#ntReferenceScreen .nt-profile-actions{display:none;gap:9px;flex-wrap:wrap;margin-top:20px}
body.nt-screen-profile #ntReferenceScreen .nt-profile-actions{display:flex}
#ntReferenceScreen .nt-profile-actions button{background:white;border:1px solid #dfe9f3;border-radius:14px;padding:13px 15px;font-weight:850;color:#176fbe;font-size:13px}
html.nt-redesign body.nt-screen-profile #rules{margin-top:7px}
#ntReferenceMap{display:none;padding:26px 17px 8px}
html.nt-redesign body.nt-screen-map #ntReferenceMap{display:block}
#ntReferenceMap h1{font-size:25px;letter-spacing:-.06em;margin:0 0 7px}
#ntReferenceMap p{color:#6b7b92;font-size:13px;line-height:1.5;margin:0 0 16px}
#ntReferenceMap iframe{display:block;width:100%;min-height:430px;border:0;background:#dfeefa;border-radius:20px;box-shadow:0 8px 25px #16365517}
#ntReferenceMap a{display:inline-block;margin:16px 0;border-radius:13px;padding:12px 17px;background:#087bf2;color:#fff;font-size:13px;font-weight:850;text-decoration:none}
@media(min-width:600px){
  #ntReferenceHome .nt-home-hero{min-height:395px;padding:28px 32px 112px}
  #ntReferenceHome .nt-brand{font-size:30px}
  #ntReferenceHome .nt-hero-content{margin-top:93px}
  #ntReferenceHome .nt-dday{flex-basis:137px;padding:17px 10px}
  #ntReferenceHome .nt-dday-value{font-size:42px}
  #ntReferenceHome .nt-home-actions{gap:14px;margin:-55px 26px 30px}
  #ntReferenceHome .nt-home-action{height:109px;font-size:15px}
  #ntReferenceHome .nt-home-action .nt-action-icon{width:37px;height:37px}
  #ntReferenceHome .nt-home-section{padding:0 25px 25px}
  #ntReferenceHome .nt-home-day{min-height:136px}
  #ntReferenceHome .nt-home-day-picture{min-height:136px}
  #ntReferenceHome .nt-home-day-title{font-size:20px}
  #ntReferenceHome .nt-home-day-sub{font-size:14px}
}
@media(max-width:370px){
  #ntReferenceHome .nt-home-hero{min-height:323px;padding:20px 14px 89px}
  #ntReferenceHome .nt-brand{font-size:21px;gap:6px}
  #ntReferenceHome .nt-brand-icon{width:27px;flex-basis:27px}
  #ntReferenceHome .nt-account{padding:8px 10px;font-size:12px}
  #ntReferenceHome .nt-hero-content{margin-top:55px}
  #ntReferenceHome .nt-trip-intro h1{font-size:26px}
  #ntReferenceHome .nt-dday{flex-basis:90px;border-radius:19px}
  #ntReferenceHome .nt-dday-value{font-size:28px}
  #ntReferenceHome .nt-home-actions{margin:-44px 9px 20px;gap:5px}
  #ntReferenceHome .nt-home-action{height:82px;border-radius:17px;font-size:11px}
  #ntReferenceHome .nt-home-action .nt-action-icon{width:25px;height:25px}
  #ntReferenceHome .nt-home-section{padding-left:10px;padding-right:10px}
  #ntReferenceHome .nt-home-day-info{padding:10px 22px 10px 10px}
  #ntReferenceHome .nt-home-day-title{font-size:14px}
  #ntReferenceHome .nt-home-day-sub{font-size:10px}
  #ntReferenceHome .nt-home-day-badge{font-size:10px;left:6px;top:7px}
}
@media(prefers-reduced-motion:reduce){
  #ntReferenceHome *,#ntReferenceNav *{scroll-behavior:auto;transition:none!important}
}
/* Actual venue-photo attribution. Cards remain clickable, links are siblings
   so no interactive element is nested inside the itinerary button. */
#ntReferenceHome .nt-home-photo-wrap{display:block;min-width:0}
#ntReferenceHome .nt-place-photo-badge{
  position:absolute;bottom:8px;left:8px;z-index:2;
  display:inline-flex;align-items:center;max-width:calc(100% - 16px);
  padding:3px 6px;border-radius:7px;
  background:rgba(17,35,55,.58);color:#fff;
  font-size:9px;line-height:1.2;font-weight:750;letter-spacing:-.02em;
  backdrop-filter:blur(5px);
}
#ntReferenceHome .nt-place-photo-badge.is-verified{
  background:rgba(7,84,94,.88);color:#fff;
}
#ntReferenceHome .nt-place-photo-credit{
  display:flex;justify-content:flex-end;
  padding:4px 4px 2px;max-width:100%;
}
#ntReferenceHome .nt-place-photo-credit[hidden]{display:none}
#ntReferenceHome .nt-place-photo-credit a{
  color:#607f94;text-decoration:underline;text-underline-offset:2px;
  font-size:9px;line-height:1.45;text-align:right;overflow-wrap:anywhere;
  max-width:100%;
}
#ntReferenceHome .nt-place-photo-credit a:focus-visible{
  outline:2px solid #0b77e9;outline-offset:2px;
}

#ntReferenceHome .nt-place-photo-credit{flex-wrap:wrap;column-gap:7px;row-gap:2px}
#ntReferenceHome .nt-place-photo-credit a:last-child{color:#326b97}


/* 2026-11-08: iPhone itinerary picker hotfix.
   Open modal must always sit ABOVE the persistent app navigation. */
html.nt-redesign body #daySheet.sheet.on {z-index:211}
html.nt-redesign body #pickSheet.sheet.on {z-index:221}
html.nt-redesign body #condSheet.sheet.on {z-index:231}
html.nt-redesign body:has(.sheet.on) #ntReferenceNav,
html.nt-redesign body:has(.sheet.on) #ntBottomNav {
  display:none!important;
}
html.nt-redesign body .sheet .panel {
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
}
html.nt-redesign body #pickSheet .panel {
  min-height:70vh;
  min-height:70dvh;
  max-height:93vh;
  max-height:93dvh;
  overflow-y:auto;
  padding-bottom:calc(22px + env(safe-area-inset-bottom));
}
html.nt-redesign body #pickSheet .ph {
  position:sticky;top:-12px;z-index:3;
  background:#f9fcfa;
  padding:11px 0 12px;
  border-bottom:1px solid #e8eeee;
}
html.nt-redesign body #pickSheet .themeRow,
html.nt-redesign body #pickSheet .subRow {
  display:flex;flex-wrap:wrap;overflow:visible;
  white-space:normal;gap:8px;
  padding:5px 1px 7px;
}
html.nt-redesign body #pickSheet .themeBtn,
html.nt-redesign body #pickSheet .subBtn {
  min-height:42px;
  font-size:12px;
  padding:10px 13px;
  touch-action:manipulation;
  border:1px solid #e1e9f0;
}
html.nt-redesign body #pickSheet .themeBtn small,
html.nt-redesign body #pickSheet .subBtn small {
  font-size:10px;font-weight:900;opacity:.75;
  margin-left:2px;
}
html.nt-redesign body #pickSheet #pickList {
  min-height:100px;
  padding-bottom:calc(18px + env(safe-area-inset-bottom));
}
html.nt-redesign body #pickSheet .pickStatus {
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin:14px 1px 12px;
  padding:11px 13px;
  background:#eaf6f4;border-radius:12px;
  color:#1a626b;font-size:12px;font-weight:800;
}
html.nt-redesign body #pickSheet .pickStatus strong {
  font-size:13px;color:#106a70;white-space:nowrap;
}
html.nt-redesign body #pickSheet .pickEmpty {
  border:1px dashed #bfd9df;border-radius:16px;
  padding:26px 15px;text-align:center;
  background:#fff;color:#41566d;
}
html.nt-redesign body #pickSheet .pickEmpty p {
  font-size:12px;line-height:1.5;margin:8px 0 17px;
}
html.nt-redesign body #pickSheet .pickEmpty button,
html.nt-redesign body #pickSheet .pickMore {
  border:0;border-radius:12px;
  padding:12px 17px;background:#087cdb;color:#fff;
  font-size:13px;font-weight:850;min-height:45px;
}
html.nt-redesign body #pickSheet .pickMore {
  display:block;margin:12px auto 4px;
  width:100%;
}
html.nt-redesign body #pickSheet .pickNotice {
  padding:11px 13px;margin:0 0 13px;
  background:#fff4e5;color:#72502a;
  font-size:12px;line-height:1.5;border-radius:12px;
}
@media(max-width:380px){
  html.nt-redesign body #pickSheet .themeBtn,
  html.nt-redesign body #pickSheet .subBtn {
    font-size:11px;padding:9px 10px;min-height:40px;
  }
}
