/* =============================================================================
   The Family Freedom Travel Co. : itinerary map (fftMapEngine) styles
   Pairs with /assets/js/fft-map-engine.js. Brand: cream, editorial red,
   Instrument Serif numerals, Plus Jakarta Sans text, 12px radius.
   ========================================================================== */
.fftm{--fm-cream:#FBF5E4;--fm-red:#E5534E;--fm-deep:#D9381A;--fm-hover:#B22B12;--fm-ink:#241610;
  --fm-muted:#6B5A4A;--fm-hair:#E5D9BE;--fm-tan:#B8A588;--fm-white:#fff;
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--fm-ink);}
.fftm *{box-sizing:border-box;}
.fftm-head{margin-bottom:22px;}
.fftm-head .label{display:block;margin-bottom:6px;}
.fftm-head h2{font-family:'Instrument Serif',Georgia,serif;font-weight:400;color:var(--fm-red);font-size:44px;line-height:1.05;margin:0;}
.fftm-head p{font-size:15px;line-height:1.7;color:var(--fm-ink);max-width:640px;margin:10px 0 0;}
.fftm-head a.fftm-more{display:inline-block;margin-top:12px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--fm-hover);border-bottom:1px solid var(--fm-deep);padding-bottom:3px;text-decoration:none;}

.fftm-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:stretch;}
.fftm.fftm--tall .fftm-mapwrap{min-height:640px;}
.fftm-mapwrap{position:relative;min-height:440px;border-radius:12px;overflow:hidden;background:#EFE4CB;
  border:1px solid var(--fm-hair);box-shadow:0 8px 28px rgba(36,22,16,.10);}
.fftm-map{position:absolute;inset:0;}
.fftm-map .leaflet-container,.fftm-map.leaflet-container{background:#F1E9D6;font-family:inherit;}
.fftm-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;
  padding:24px;font-size:13px;color:var(--fm-muted);pointer-events:none;}
.fftm-status[hidden]{display:none;}

/* List */
.fftm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:640px;overflow:auto;}
.fftm:not(.fftm--tall) .fftm-list{max-height:440px;}
.fftm-item button{all:unset;box-sizing:border-box;display:flex;gap:14px;align-items:flex-start;width:100%;cursor:pointer;
  padding:12px 14px;border-radius:12px;background:var(--fm-white);border:1px solid var(--fm-hair);transition:border-color .15s,box-shadow .15s,background .15s;}
.fftm-item button:hover{border-color:var(--fm-tan);}
.fftm-item button:focus-visible{outline:2px solid var(--fm-deep);outline-offset:2px;}
.fftm-item.is-active button{border-color:var(--fm-deep);box-shadow:0 0 0 3px rgba(217,56,26,.12);}
.fftm-num{flex:none;width:30px;height:30px;border-radius:50%;background:var(--fm-deep);color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:'Instrument Serif',Georgia,serif;font-size:19px;line-height:1;}
.fftm-item .fftm-txt{display:flex;flex-direction:column;gap:2px;min-width:0;}
.fftm-item .fftm-name{font-family:'Instrument Serif',Georgia,serif;font-size:22px;line-height:1.1;color:var(--fm-ink);}
.fftm-item .fftm-meta{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--fm-hover);font-weight:700;}
.fftm-item .fftm-sub{font-size:13px;line-height:1.5;color:var(--fm-muted);}
.fftm-leg{display:flex;align-items:center;gap:8px;padding:0 0 0 22px;font-size:12px;color:var(--fm-muted);}
.fftm-leg i{flex:none;width:22px;border-top:2px dashed var(--fm-red);}
.fftm-leg.ferry i{border-top-style:dotted;}
.fftm-leg.road i{border-top-style:solid;border-color:var(--fm-ink);}
.fftm-item.info .fftm-num{background:var(--fm-tan);}

/* Pins */
.fftm-pin{position:relative;width:34px;height:34px;border-radius:50% 50% 50% 4px;transform:rotate(-45deg);
  background:var(--fm-deep);border:3px solid var(--fm-cream);box-shadow:0 4px 12px rgba(36,22,16,.35);
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s,background .15s;}
.fftm-pin span{transform:rotate(45deg);font-family:'Instrument Serif',Georgia,serif;color:#fff;font-size:19px;line-height:1;}
.fftm-pin.is-active{background:var(--fm-red);transform:rotate(-45deg) scale(1.18);z-index:5;}
.fftm-pin.is-info{background:var(--fm-tan);}
.fftm-pin.is-small{width:24px;height:24px;border-width:2px;}
.fftm-pin.is-small span{font-size:14px;}
.leaflet-div-icon.fftm-icon{background:none;border:0;}

/* Card */
.fftm-card{position:absolute;right:16px;bottom:16px;z-index:800;width:min(340px,calc(100% - 32px));background:var(--fm-white);
  border-radius:12px;box-shadow:0 12px 40px rgba(36,22,16,.22);overflow:hidden;display:flex;flex-direction:column;}
.fftm-card[hidden]{display:none;}
.fftm-card img{width:100%;height:120px;object-fit:cover;display:block;filter:sepia(.2) saturate(1.1);}
.fftm-card .fftm-cbody{padding:16px 18px 18px;}
.fftm-card .fftm-ck{font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--fm-hover);}
.fftm-card h3{font-family:'Instrument Serif',Georgia,serif;font-weight:400;color:var(--fm-red);font-size:28px;line-height:1.05;margin:4px 0 6px;}
.fftm-card p{font-size:13.5px;line-height:1.6;color:var(--fm-ink);margin:0;}
.fftm-card .fftm-nights{font-size:12px;color:var(--fm-muted);margin-top:6px;}
.fftm-card a.fftm-go{display:inline-block;margin-top:12px;background:var(--fm-deep);color:#fff;text-decoration:none;font-size:11.5px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;padding:11px 16px;border-radius:8px;}
.fftm-card a.fftm-go:hover{background:var(--fm-hover);}
.fftm-close{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:0;background:rgba(255,255,255,.92);
  color:var(--fm-ink);font-size:18px;line-height:1;cursor:pointer;box-shadow:0 2px 6px rgba(36,22,16,.2);}
.fftm-close:focus-visible{outline:2px solid var(--fm-deep);}

/* Legend + controls */
.fftm-legend{position:absolute;top:12px;right:12px;z-index:800;background:rgba(255,255,255,.94);border-radius:10px;padding:8px 12px;
  display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--fm-muted);box-shadow:0 2px 10px rgba(36,22,16,.12);}
.fftm-legend span{display:flex;align-items:center;gap:8px;}
.fftm-legend i{display:inline-block;width:24px;border-top:2px dashed var(--fm-red);}
.fftm-legend i.ferry{border-top-style:dotted;}
.fftm-legend i.road{border-top-style:solid;border-color:var(--fm-ink);}
.fftm-legend label{display:flex;align-items:center;gap:6px;margin-top:4px;padding-top:6px;border-top:1px solid var(--fm-hair);cursor:pointer;color:var(--fm-ink);font-weight:600;}
.fftm-legend input{accent-color:var(--fm-deep);}

.fftm .leaflet-control-attribution{font-size:10px;background:rgba(255,255,255,.8);}
.fftm .leaflet-control-zoom a{color:var(--fm-ink);}

/* No map (tiles or script failed): the list carries the route on its own */
.fftm.fftm--nomap .fftm-body{grid-template-columns:1fr;}
.fftm.fftm--nomap .fftm-mapwrap{display:none;}
.fftm.fftm--nomap .fftm-list{max-height:none;}
.fftm-note{font-size:13px;color:var(--fm-muted);margin:0 0 12px;}
.fftm-note[hidden]{display:none;}
.fftm-detail{display:none;}
.fftm.fftm--nomap .fftm-item.is-active .fftm-detail{display:block;font-size:13px;line-height:1.6;color:var(--fm-ink);margin-top:6px;}
.fftm.fftm--nomap .fftm-item.is-active .fftm-detail a{color:var(--fm-hover);}

@media (max-width:860px){
  .fftm-body{grid-template-columns:1fr;}
  .fftm-mapwrap,.fftm.fftm--tall .fftm-mapwrap{min-height:380px;}
  .fftm-list,.fftm:not(.fftm--tall) .fftm-list{max-height:none;}
  .fftm-head h2{font-size:34px;}
  .fftm-card{left:10px;right:10px;bottom:10px;width:auto;}
  .fftm-card img{display:none;}
  .fftm-card .fftm-cbody{padding:12px 14px 14px;}
  .fftm-card h3{font-size:24px;}
  .fftm-card p{font-size:13px;line-height:1.5;}
  .fftm-legend{top:8px;right:8px;}
}
