/* DSR Travel Journal - published website (blog style). Copied to the DSRTrips site on every share. */
:root{
  --paper:#faf6ee; --card:#fffdf8; --ink:#2a2418; --ink-soft:#6b604c; --line:#e6dcc6;
  --accent:#9a6b00; --gold:#FFD700; --band:#000; --band-ink:#FFD700; --shadow:0 1px 3px rgba(60,40,0,.12),0 6px 24px rgba(60,40,0,.06);
  --flight:#1f5fbf; --road:#b3261e;
}
@media (prefers-color-scheme:dark){
  :root{ --paper:#14120e; --card:#1d1a14; --ink:#efe6d4; --ink-soft:#b3a68c; --line:#3a3326; --accent:#e8b923; --shadow:0 1px 3px rgba(0,0,0,.5) }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--paper); color:var(--ink); font:17px/1.65 Georgia,"Times New Roman","Noto Serif",serif}
a{color:var(--accent)}
img{max-width:100%}

/* top band - the app's black and gold */
.band{background:var(--band); color:var(--band-ink); position:sticky; top:0; z-index:3000}
.band .in{max-width:760px; margin:0 auto; padding:10px 16px; display:flex; align-items:center; gap:10px; font:600 15px/1.2 "Segoe UI",Roboto,Arial,sans-serif}
.band a{color:var(--band-ink); text-decoration:none}
.band svg{width:26px; height:26px; flex:none}
.band .grow{flex:1}
.band .small{font-weight:500; font-size:13px; opacity:.85}

.wrap{max-width:760px; margin:0 auto; padding:0 16px}
.ui{font-family:"Segoe UI",Roboto,Arial,sans-serif}
.muted{color:var(--ink-soft)}
.btn{display:inline-block; font:600 14px/1 "Segoe UI",Roboto,Arial,sans-serif; padding:11px 16px; border-radius:999px; border:1.5px solid var(--accent); color:var(--accent); text-decoration:none; background:transparent; cursor:pointer}
.btn.solid{background:var(--gold); border-color:var(--gold); color:#000}

/* hero */
.hero{position:relative; min-height:62vh; display:flex; align-items:flex-end; color:#fff; background:#222 center/cover no-repeat}
.hero::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.72))}
.hero .in{position:relative; z-index:1; max-width:760px; width:100%; margin:0 auto; padding:28px 16px 30px}
.hero.plain{min-height:0; background:var(--band); color:var(--band-ink)}
.hero.plain::after{display:none}
.hero h1{font-size:clamp(34px,8vw,56px); line-height:1.05; margin:0 0 8px; letter-spacing:-.5px}
.hero .sub{font-style:italic; font-size:19px; margin:0 0 10px; opacity:.95}
.hero .meta{font:500 14px/1.4 "Segoe UI",Roboto,Arial,sans-serif; opacity:.9}
.strip{display:flex; gap:6px; margin-top:14px; overflow-x:auto}
.strip img{height:64px; width:92px; object-fit:cover; border-radius:6px; border:2px solid rgba(255,255,255,.85); cursor:zoom-in; flex:none}

/* contents */
.toc{margin:26px 0 8px}
.toc h2,.sec-title{font:700 13px/1 "Segoe UI",Roboto,Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin:0 0 12px}
.toc ol{list-style:none; padding:0; margin:0; border-top:1px solid var(--line)}
.toc li a{display:flex; gap:12px; padding:10px 2px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink)}
.toc .n{font:600 13px/1.9 "Segoe UI",Roboto,Arial,sans-serif; color:var(--ink-soft); min-width:96px; white-space:nowrap}
.actions{display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 6px}

/* maps */
.map{height:320px; border-radius:12px; overflow:hidden; border:1px solid var(--line); background:#dfe7ea; box-shadow:var(--shadow); position:relative; margin:14px 0}
.map.big{height:420px}
.maphint{position:absolute; z-index:500; left:50%; bottom:10px; transform:translateX(-50%); background:rgba(0,0,0,.66); color:#fff; font:500 12px/1 "Segoe UI",Roboto,Arial,sans-serif; padding:7px 11px; border-radius:99px; pointer-events:none; white-space:nowrap}
.map,.notes .nmap{isolation:isolate}   /* keep Leaflet's layers (z-index up to 1000) inside the map */
.map .cap,.nmap .cap{position:absolute; z-index:500; left:8px; top:8px; background:rgba(255,255,255,.9); color:#333; font:600 12px/1 "Segoe UI",Roboto,Arial,sans-serif; padding:5px 8px; border-radius:6px}
.leaflet-tooltip{font:600 12px/1.2 "Segoe UI",Roboto,Arial,sans-serif}

/* a day */
.day{margin:44px 0; scroll-margin-top:60px}
.day .eyebrow{font:700 13px/1 "Segoe UI",Roboto,Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--accent)}
.day h2{font-size:clamp(26px,6vw,34px); line-height:1.15; margin:8px 0 4px}
.day .date{font:500 15px/1.4 "Segoe UI",Roboto,Arial,sans-serif; color:var(--ink-soft)}
.facts{display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 4px; padding:0; list-style:none}
.facts li{font:500 14px/1.3 "Segoe UI",Roboto,Arial,sans-serif; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:7px 12px}
.facts b{color:var(--accent); font-weight:700; margin-right:5px}
.notes{font-family:var(--jf,Georgia,serif); font-size:calc(17px * var(--js,1)); display:flow-root; margin-top:10px}
.notes p{margin:0 0 .9em}
.notes img[data-pid]{border-radius:8px; box-shadow:var(--shadow); cursor:zoom-in; margin:6px 0 10px 14px; height:auto}
.notes img[data-pid][style*="float: left"],.notes img[data-pid][style*="float:left"]{margin:6px 14px 10px 0}
.notes img[data-pid][style*="float: none"],.notes img[data-pid][style*="display: block"]{margin:10px auto}
.notes p:has(+ .nmap){display:flow-root}   /* even space above/below a map */
.notes .nmap{border-radius:10px; overflow:hidden; border:1px solid var(--line); position:relative; min-height:180px; background:#dfe7ea}
.notes .wiki,.notes blockquote{border-left:3px solid var(--accent); margin:12px 0; padding:4px 0 4px 14px; color:var(--ink-soft)}
/* phones: photos and maps go full width - easier to see than a 45% float */
@media (max-width:560px){
  body{font-size:16.5px}
  .notes img[data-pid],.notes .nmap{float:none!important; width:100%!important; display:block; margin:12px 0!important}
  .map{height:260px}
  .map.big{height:320px}
  .hero{min-height:56vh}
}
hr.sep{border:0; height:1px; background:var(--line); margin:40px 0}

/* gallery */
.gallery{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:6px; margin:12px 0 40px}
.gallery img{width:100%; aspect-ratio:1; object-fit:cover; border-radius:6px; cursor:zoom-in; display:block}

/* lightbox */
.lb{position:fixed; inset:0; z-index:5000; background:rgba(0,0,0,.94); display:none; align-items:center; justify-content:center; touch-action:pan-y}
.lb.on{display:flex}
.lb img{max-width:96vw; max-height:88vh; object-fit:contain; border-radius:4px}
.lb button{position:absolute; background:rgba(255,255,255,.12); color:#fff; border:0; width:48px; height:48px; border-radius:50%; font-size:26px; cursor:pointer}
.lb .x{top:14px; right:14px}
.lb .pv{left:10px; top:50%; transform:translateY(-50%)}
.lb .nx{right:10px; top:50%; transform:translateY(-50%)}
.lb .count{position:absolute; bottom:14px; left:0; right:0; text-align:center; color:#ddd; font:500 13px/1 "Segoe UI",Roboto,Arial,sans-serif}

/* home */
.home-head{padding:34px 0 8px}
.home-head h1{font-size:clamp(32px,7vw,46px); margin:0 0 4px}
.cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; margin:18px 0 50px}
.card{background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); text-decoration:none; color:var(--ink); display:flex; flex-direction:column; transition:transform .15s}
.card:hover{transform:translateY(-2px)}
.card .ph{aspect-ratio:3/2; background:#2a2418 center/cover no-repeat}
.card .tx{padding:14px 16px 16px}
.card h3{margin:0 0 4px; font-size:21px; line-height:1.2}
.card .d{font:500 13px/1.4 "Segoe UI",Roboto,Arial,sans-serif; color:var(--ink-soft)}
.card .ds{font-style:italic; margin-top:6px; font-size:15px; color:var(--ink-soft)}

.notice{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; margin:30px 0; font:500 15px/1.5 "Segoe UI",Roboto,Arial,sans-serif}
footer{padding:26px 16px 40px; text-align:center; font:500 13px/1.5 "Segoe UI",Roboto,Arial,sans-serif; color:var(--ink-soft); border-top:1px solid var(--line)}
@media print{ .band,.actions,.maphint,.lb{display:none!important} .hero{min-height:0; color:var(--ink); background:none!important} .hero::after{display:none} }
