/* Clean Premium Ship/Shore route. Uses the locked Home shell variables and components. */

.np-shipshore-main{padding-top:26px}
.np-shipshore-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 2px 20px}
.np-shipshore-heading h1{margin:4px 0 0;font-size:25px;line-height:1.15;letter-spacing:-.03em;font-weight:650;color:var(--np-text)}
.np-shipshore-heading p{margin:7px 0 0;max-width:610px;color:var(--np-muted);font-size:10.5px;line-height:1.6}

.np-maritime-primary-actions{display:flex;gap:9px;flex:0 0 auto}
.np-maritime-primary-actions>button{min-width:148px;min-height:52px;padding:8px 10px;display:grid;grid-template-columns:30px 1fr 14px;align-items:center;gap:8px;border:1px solid var(--np-line);border-radius:12px;background:var(--np-surface);box-shadow:var(--np-shadow-soft);text-align:left;cursor:pointer;transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.np-maritime-primary-actions>button:hover{border-color:color-mix(in srgb,var(--np-accent) 46%,var(--np-line));transform:translateY(-1px);box-shadow:0 10px 24px rgba(30,48,70,.09)}
.np-maritime-primary-actions>button>.np-icon:first-child{width:20px;height:20px;color:var(--np-accent-2)}
.np-maritime-primary-actions>button>.np-icon:last-child{width:13px;height:13px;color:var(--np-faint)}
.np-maritime-primary-actions>button span{min-width:0}
.np-maritime-primary-actions small{display:block;color:var(--np-muted);font-size:6.8px;letter-spacing:.075em}
.np-maritime-primary-actions b{display:block;margin-top:1px;color:var(--np-text);font-size:9px;font-weight:600}
.np-maritime-primary-actions>button.primary{border-color:color-mix(in srgb,var(--np-accent) 28%,var(--np-line));background:var(--np-accent-soft)}

.np-maritime-tabs{width:min(340px,100%);display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid var(--np-line);border-radius:11px;background:var(--np-surface-2)}
.np-maritime-tabs button{height:36px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;background:transparent;color:var(--np-muted);font-size:8.5px;cursor:pointer;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.np-maritime-tabs button span{width:18px;height:18px;display:grid;place-items:center}
.np-maritime-tabs button .np-icon{width:14px;height:14px}
.np-maritime-tabs button b{font-weight:550}
.np-maritime-tabs button.active{background:var(--np-surface);box-shadow:0 4px 11px rgba(30,48,70,.07);color:var(--np-accent-2)}
html[data-theme="dark"] .np-maritime-tabs button.active{box-shadow:0 5px 13px rgba(0,0,0,.18)}

.np-maritime-search{margin-top:14px;padding:14px 15px 12px;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-maritime-searchbox{height:44px;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 7px 0 13px;border:1px solid var(--np-line-strong);border-radius:10px;background:var(--np-surface-2);color:var(--np-muted)}
.np-maritime-searchbox>.np-icon{width:17px;height:17px}
.np-maritime-searchbox input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--np-text);font-size:10px}
.np-maritime-searchbox input::placeholder{color:var(--np-faint)}
.np-maritime-searchbox button{height:32px;min-width:74px;padding:0 13px;border:0;border-radius:8px;background:var(--np-accent-2);color:#fff;font-size:8.5px;font-weight:600;cursor:pointer}
.np-maritime-search p{margin:8px 2px 0;color:var(--np-muted);font-size:8px;line-height:1.5}

.np-directory-section{margin-top:18px}
.np-directory-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 2px 9px}
.np-directory-head h2{margin:0;color:var(--np-text);font-size:14px;font-weight:650;letter-spacing:-.015em}
.np-directory-head p{margin:3px 0 0;max-width:720px;color:var(--np-muted);font-size:8px;line-height:1.5}
.np-directory-head>span{flex:0 0 auto;color:var(--np-muted);font-size:8px}

.np-directory-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--np-line);border-radius:14px;background:var(--np-surface);box-shadow:var(--np-shadow-soft)}
.np-directory-row{min-width:0;min-height:88px;padding:9px 11px;display:grid;grid-template-columns:72px minmax(0,1fr) 18px;align-items:center;gap:11px;border:0;border-bottom:1px solid var(--np-line);background:transparent;text-align:left;cursor:pointer;transition:background .14s ease}
.np-directory-row:nth-child(odd){border-right:1px solid var(--np-line)}
.np-directory-row:hover{background:var(--np-surface-2)}
.np-directory-image{width:72px;height:66px;display:block;overflow:hidden;border-radius:10px;background:linear-gradient(145deg,#dff7f9,#e9f1f7)}
html[data-theme="dark"] .np-directory-image{background:#102839}
.np-directory-image img{width:100%;height:100%;display:block;object-fit:cover}
.np-directory-fallback{width:100%;height:100%;display:grid;place-items:center;color:var(--np-accent-2);background:linear-gradient(145deg,var(--np-accent-soft),var(--np-surface-2))}
.np-directory-fallback.ship{color:#4aa7c8}
.np-directory-fallback .np-icon{width:27px;height:27px}
.np-directory-copy{min-width:0;display:block}
.np-directory-title{display:flex;align-items:center;gap:7px;min-width:0}
.np-directory-title b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--np-text);font-size:10px;font-weight:600}
.np-directory-title em{flex:0 0 auto;padding:3px 6px;border-radius:999px;background:var(--np-accent-soft);color:var(--np-accent-2);font-size:6.5px;font-style:normal;font-weight:600}
.np-directory-copy>span:not(.np-directory-title){display:block;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--np-muted);font-size:8.3px}
.np-directory-copy small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--np-faint);font-size:7.2px}
.np-directory-arrow{display:grid;place-items:center;color:var(--np-faint)}
.np-directory-arrow .np-icon{width:14px;height:14px}

.np-directory-loading,.np-directory-empty{grid-column:1/-1;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--np-muted)}
.np-directory-loading{flex-direction:row;gap:9px;font-size:9px}
.np-directory-loading i{width:18px;height:18px;border:2px solid var(--np-line-strong);border-top-color:var(--np-accent-2);border-radius:50%;animation:npDirectorySpin .7s linear infinite}
.np-directory-empty>span{width:40px;height:40px;display:grid;place-items:center;margin-bottom:8px;border-radius:11px;background:var(--np-accent-soft);color:var(--np-accent-2)}
.np-directory-empty>span .np-icon{width:20px;height:20px}
.np-directory-empty b{color:var(--np-text);font-size:10px}
.np-directory-empty p{margin:3px 0 0;font-size:8px}
.np-directory-sentinel{min-height:28px;display:grid;place-items:center;color:var(--np-faint);font-size:7px}
@keyframes npDirectorySpin{to{transform:rotate(360deg)}}

@media(max-width:1120px){
  .np-shipshore-heading{align-items:flex-start;flex-direction:column}
  .np-maritime-primary-actions{width:100%}
  .np-maritime-primary-actions>button{flex:1}
}

@media(max-width:860px){
  .np-shipshore-main{padding-top:20px}
  .np-shipshore-heading h1{font-size:21px}
  .np-directory-results{grid-template-columns:1fr}
  .np-directory-row:nth-child(odd){border-right:0}
}

@media(max-width:620px){
  .np-shipshore-main{padding:17px 14px 88px}
  .np-shipshore-heading{margin-bottom:16px;gap:14px}
  .np-shipshore-heading h1{font-size:20px}
  .np-shipshore-heading p{font-size:9px}
  .np-maritime-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .np-maritime-primary-actions>button{min-width:0;min-height:48px;grid-template-columns:23px 1fr 12px;padding:7px 8px}
  .np-maritime-primary-actions>button>.np-icon:first-child{width:17px;height:17px}
  .np-maritime-primary-actions small{font-size:5.8px}
  .np-maritime-primary-actions b{font-size:8px}
  .np-maritime-tabs{width:100%}
  .np-maritime-tabs button{height:36px}
  .np-maritime-search{margin-top:10px;padding:10px}
  .np-maritime-searchbox{height:42px;grid-template-columns:18px minmax(0,1fr)}
  .np-maritime-searchbox button{display:none}
  .np-maritime-search p{font-size:7px}
  .np-directory-head{align-items:flex-start}
  .np-directory-head p{display:none}
  .np-directory-row{min-height:78px;grid-template-columns:60px minmax(0,1fr) 14px;padding:8px 9px;gap:9px}
  .np-directory-image{width:60px;height:58px;border-radius:9px}
  .np-directory-title b{font-size:9px}
  .np-directory-title em{font-size:5.8px}
  .np-directory-copy>span:not(.np-directory-title){font-size:7.5px}
  .np-directory-copy small{font-size:6.5px}
}
