/* Lux Vidigal — the Vidigal map (vmap.css, 2026-09-25). Loaded on /vidigal-map only,
   after leaflet.css, styles.css and lv2.css. Brand colours only: ocean, terracotta,
   cream, sand, ink, with lime as the highlighter. */
.vm-head { background: var(--c-ocean-deep); color: var(--c-cream); padding: calc(var(--lvh-h) + clamp(1.4rem, 3vw, 2.6rem)) var(--gutter) clamp(1.2rem, 2vw, 1.8rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; position: relative; z-index: 2; }
.vm-head .breadcrumb { padding: 0 0 0.9rem; color: rgba(245, 239, 228, 0.7); }
.vm-head .breadcrumb a { color: var(--c-lime); }
.vm-head .breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }
.vm-head h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6rem); line-height: 0.92; letter-spacing: -0.03em; }
.vm-head h1 .vm-hand { font-family: var(--f-hand); font-weight: 700; font-size: 0.42em; color: var(--c-lime); display: inline-block; transform: rotate(-4deg) translateY(-0.4em); margin-left: 0.3em; letter-spacing: 0; }
.vm-head p { margin-top: 0.9rem; max-width: 46em; color: rgba(245, 239, 228, 0.86); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.55; }
.vm-tools { display: grid; gap: 0.8rem; justify-items: start; }
.vm-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vm-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.85rem; border: 1px solid rgba(245, 239, 228, 0.28); border-radius: 2px; color: var(--c-cream); font-weight: 600; font-size: 0.86rem; background: rgba(245, 239, 228, 0.04); transition: background 160ms, border-color 160ms, color 160ms; }
.vm-chip i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--c-cream); }
.vm-chip[aria-pressed="true"] { background: var(--c-cream); color: var(--c-ocean-deep); border-color: var(--c-cream); }
.vm-chip:hover { border-color: var(--c-cream); }
.vm-chip:focus-visible { outline: 2px solid var(--c-lime); outline-offset: 2px; }
.vm-search { display: flex; align-items: center; gap: 0.6rem; }
.vm-search input { width: min(360px, 70vw); padding: 0.7rem 0.9rem; border: 0; border-bottom: 2px solid rgba(245, 239, 228, 0.4); background: rgba(245, 239, 228, 0.06); color: var(--c-cream); font: inherit; font-size: 0.95rem; }
.vm-search input::placeholder { color: rgba(245, 239, 228, 0.6); }
.vm-search input:focus { outline: none; border-bottom-color: var(--c-lime); }
.vm-count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 239, 228, 0.7); }
@media (max-width: 900px) { .vm-head { grid-template-columns: 1fr; } }

/* category colours: two brand colours + ink, told apart by glyph */
.vm-c-eat { --pc: #d4502a; } .vm-c-trails { --pc: #0d3b47; } .vm-c-beach { --pc: #1f6b78; }
.vm-c-culture { --pc: #b8401f; } .vm-c-move { --pc: #0f0f0e; } .vm-c-daily { --pc: #5b544a; }
.vm-chip.vm-c-eat i { background: #d4502a; } .vm-chip.vm-c-trails i { background: #0d3b47; } .vm-chip.vm-c-beach i { background: #1f6b78; }
.vm-chip.vm-c-culture i { background: #b8401f; } .vm-chip.vm-c-move i { background: #0f0f0e; } .vm-chip.vm-c-daily i { background: #5b544a; }
.vm-chip.vm-c-all i { background: var(--c-lime); }

/* ---------- split ---------- */
.vm { --stick: var(--lvh-h-s); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: start; background: var(--c-cream); position: relative; z-index: 2; }
.vm-mapcol { position: sticky; top: var(--stick); height: calc(100vh - var(--stick)); height: calc(100svh - var(--stick)); min-height: 520px; overflow: hidden; background: #0d3b47; isolation: isolate; }
.vm-map { position: absolute; inset: 0; background: #0d3b47; font-family: var(--f-ui); outline: none; contain: strict; }
.vm-map:focus-visible { box-shadow: inset 0 0 0 3px var(--c-lime); }
.vm-listcol { min-width: 0; padding: clamp(1.2rem, 2vw, 2rem) var(--gutter) 3rem clamp(1.2rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.leaflet-container { background: #0d3b47; font-family: var(--f-ui); }
.leaflet-container a { color: inherit; }
.vm-tiles--core .leaflet-tile { transition: opacity 0.35s; }

.vm-ctl { position: absolute; right: 14px; top: 14px; z-index: 800; display: grid; gap: 6px; }
.vm-ctl button { width: 42px; height: 42px; display: grid; place-items: center; background: var(--c-cream); color: var(--c-ink); border: 1px solid rgba(15, 15, 14, 0.18); border-radius: 2px; font: 700 1.2rem/1 var(--f-ui); box-shadow: 0 6px 16px rgba(7, 40, 49, 0.25); }
.vm-ctl button:hover { background: #fff; }
.vm-ctl button:focus-visible { outline: 2px solid var(--c-terracotta); outline-offset: 2px; }
.vm-ctl button svg { width: 18px; height: 18px; }
.vm-ctl button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vm-attr { position: absolute; left: 10px; bottom: 8px; z-index: 800; font-size: 0.68rem; color: rgba(245, 239, 228, 0.85); background: rgba(7, 40, 49, 0.72); padding: 3px 7px; border-radius: 2px; }
.vm-attr a { text-decoration: underline; text-underline-offset: 2px; }
.vm-legend { position: absolute; left: 12px; top: 12px; z-index: 800; background: rgba(245, 239, 228, 0.94); color: var(--c-ink); padding: 0.55rem 0.75rem 0.6rem; font-size: 0.74rem; line-height: 1.5; border-left: 3px solid var(--c-terracotta); max-width: 240px; }
.vm-legend b { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-terracotta); margin-bottom: 0.2rem; }
.vm-legend span { display: flex; align-items: center; gap: 0.5rem; }
.vm-legend i { display: inline-block; width: 22px; height: 0; border-top: 3px dashed #d4502a; }
.vm-legend i.hl { border-top: 6px solid rgba(212, 224, 74, 0.7); }
.vm-legend i.br { width: 12px; height: 10px; border: 0; background: #d4502a; }
.vm-legend i.st { width: 22px; border-top: 3px dotted #8f3217; }
.vm-legend i.ap { width: 14px; height: 14px; border: 2px dashed #0d3b47; border-radius: 50%; background: rgba(212, 224, 74, 0.35); }

/* ---------- labels ---------- */
.vm-area, .vm-street, .vm-note, .vm-stay-l { width: 0 !important; height: 0 !important; overflow: visible; pointer-events: none; }
.vm-area span, .vm-street span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; text-align: center; }
.vm-area--hood span { font-family: var(--f-display); font-weight: 900; font-size: 34px; letter-spacing: 0.02em; color: #0f0f0e; text-shadow: 0 0 1px #f5efe4, 0 0 12px rgba(245, 239, 228, 0.95), 0 0 24px rgba(245, 239, 228, 0.8); }
.vm-area--city span { font-family: var(--f-ui); font-weight: 800; font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase; color: #3a342c; text-shadow: 0 0 3px #f5efe4, 0 0 10px rgba(245, 239, 228, 0.95); }
.vm-area--small span { font-family: var(--f-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #5b544a; text-shadow: 0 0 3px #f5efe4, 0 0 8px rgba(245, 239, 228, 0.9); }
.vm-area--peak span { font-family: var(--f-display); font-weight: 800; font-size: 17px; color: #0f0f0e; text-shadow: 0 0 3px #f5efe4, 0 0 10px rgba(245, 239, 228, 0.95); }
.vm-area--peak small { display: block; font-family: var(--f-hand); font-size: 16px; font-weight: 700; color: #b8401f; transform: rotate(-3deg); }
.vm-area--sea span { font-family: var(--f-hand); font-weight: 700; font-size: 30px; color: rgba(245, 239, 228, 0.85); transform: translate(-50%, -50%) rotate(-4deg); }
.vm-street span { font-family: var(--f-ui); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #4a4136; text-shadow: 0 0 3px #fffaf0, 0 0 6px #fffaf0; }
.vm-note span { position: absolute; display: block; width: max-content; max-width: 210px; font-family: var(--f-hand); font-weight: 700; font-size: 19px; line-height: 1.02; color: #b8401f; text-shadow: 0 0 3px #f5efe4, 0 0 8px rgba(245, 239, 228, 0.95); }
.vm-area.is-off, .vm-street.is-off, .vm-note.is-off, .vm-area.is-hid, .vm-street.is-hid, .vm-note.is-hid, .vm-stay-l.is-hid { display: none; }
.vm-map[data-z="14"] .vm-area--hood span { font-size: 26px; }
.vm-map[data-z="18"] .vm-area--hood span, .vm-map[data-z="19"] .vm-area--hood span { opacity: 0.35; }

/* the apartment's area */
.vm-stay { fill: rgba(212, 224, 74, 0.28); stroke: #0d3b47; stroke-width: 2; stroke-dasharray: 5 6; }
.vm-stay-l span { position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; pointer-events: none; }
.vm-stay-l b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 16px; color: #0d3b47; text-shadow: 0 0 3px #f5efe4, 0 0 10px rgba(245, 239, 228, 0.95); }
.vm-stay-l i { display: block; font-style: normal; font-family: var(--f-hand); font-size: 16px; font-weight: 700; color: #b8401f; text-shadow: 0 0 3px #f5efe4, 0 0 8px rgba(245, 239, 228, 0.95); }

/* ---------- pins ---------- */
.vm-pin { width: 0 !important; height: 0 !important; margin: 0 !important; overflow: visible; outline: none; cursor: pointer; contain: layout style; }
.vm-pin-in { position: absolute; left: 0; top: 0; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--pc, #d4502a);
  box-shadow: 0 0 0 3px #fffaf0, 0 6px 14px rgba(7, 40, 49, 0.45); transition: width 0.22s var(--ease-out), height 0.22s var(--ease-out), box-shadow 0.22s; display: grid; place-items: center; }
.vm-pin-in.has-ph { width: 50px; height: 50px; background: #0d3b47; }
.vm-pin-ph { position: absolute; inset: 0; border-radius: 50%; background-size: cover; background-position: center; }
.vm-pin-g { width: 20px; height: 20px; display: grid; place-items: center; }
.vm-pin-g svg { width: 18px; height: 18px; fill: #fff; }
.vm-pin-in.has-ph .vm-pin-g { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--pc, #d4502a); box-shadow: 0 0 0 2px #fffaf0; }
.vm-pin-in.has-ph .vm-pin-g svg { width: 12px; height: 12px; }
.vm-pin--eat { --pc: #d4502a; } .vm-pin--trails { --pc: #0d3b47; } .vm-pin--beach { --pc: #1f6b78; }
.vm-pin--culture { --pc: #b8401f; } .vm-pin--move { --pc: #0f0f0e; } .vm-pin--daily { --pc: #5b544a; }
.vm-pin-l { position: absolute; left: 0; top: 28px; transform: translateX(-50%); white-space: nowrap; text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  font: 700 12.5px/1.15 var(--f-ui); color: #0f0f0e; text-shadow: 0 0 2px #fffaf0, 0 0 6px #fffaf0, 0 0 10px rgba(255, 250, 240, 0.9); }
.vm-pin-l b { display: block; font-weight: 800; }
.vm-pin-l i { display: block; font-style: normal; font-weight: 600; font-size: 10.5px; color: #8f3217; }
.vm-pin.has-lab .vm-pin-l, .vm-pin:hover .vm-pin-l, .vm-pin.is-hot .vm-pin-l, .vm-pin:focus-visible .vm-pin-l { opacity: 1; }
.vm-pin.is-dot .vm-pin-in { width: 16px; height: 16px; box-shadow: 0 0 0 2px #fffaf0, 0 2px 6px rgba(7, 40, 49, 0.45); }
.vm-pin.is-dot .vm-pin-ph, .vm-pin.is-dot .vm-pin-g { opacity: 0; }
.vm-pin.is-dot .vm-pin-l { top: 13px; }
.vm-pin:hover .vm-pin-in, .vm-pin.is-hot .vm-pin-in, .vm-pin:focus-visible .vm-pin-in { width: 54px; height: 54px; box-shadow: 0 0 0 3px var(--c-lime), 0 10px 22px rgba(7, 40, 49, 0.55); }
.vm-pin:hover .vm-pin-ph, .vm-pin.is-hot .vm-pin-ph, .vm-pin:hover .vm-pin-g, .vm-pin.is-hot .vm-pin-g { opacity: 1; }
.vm-pin:hover, .vm-pin.is-hot, .vm-pin:focus-visible { z-index: 9000 !important; }
.vm-pin.is-dot:hover .vm-pin-l, .vm-pin.is-dot.is-hot .vm-pin-l { top: 30px; }

/* ---------- popup ---------- */
.vm-pop .leaflet-popup-content-wrapper { background: var(--c-cream); color: var(--c-ink); border-radius: 2px; padding: 0; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(7, 40, 49, 0.65); }
.vm-pop .leaflet-popup-content { margin: 0; width: 300px !important; line-height: 1.45; font-family: var(--f-ui); }
.vm-pop .leaflet-popup-tip { background: var(--c-cream); }
.vm-pop .leaflet-popup-close-button { top: 8px !important; right: 8px !important; width: 28px; height: 28px; border-radius: 50%; background: rgba(7, 40, 49, 0.75); color: #fff !important; font: 400 18px/28px var(--f-ui) !important; text-align: center; padding: 0 !important; }
.vm-popc img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vm-popc .vm-plate { aspect-ratio: 16 / 10; }
.vm-popc-b { padding: 0.8rem 1rem 1rem; display: grid; gap: 0.35rem; }
.vm-popc-k { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-terracotta); }
.vm-popc-t { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.vm-popc-d { font-size: 0.88rem; color: #3f3a33; }
.vm-popc a { color: var(--c-terracotta); font-weight: 700; font-size: 0.84rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- cards ---------- */
.vm-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
.vm-intro .lvx-note { font-size: 1.3rem; }
.vm-group { margin-bottom: 1.6rem; }
.vm-group > h2 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-ui); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-ink); padding: 0.7rem 0; border-bottom: 2px solid var(--c-ink); margin-bottom: 0.9rem; }
.vm-group > h2 i { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); }
.vm-cards { display: grid; gap: 1.6rem; }
.vm-cardlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1700px) { .vm-cardlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vm-card { display: grid; grid-template-rows: auto 1fr; background: #fffaf0; border: 1px solid var(--line); transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s; scroll-margin-top: calc(var(--lvh-h-s) + 16px); }
.vm-card.is-hot { border-color: var(--pc); box-shadow: 0 0 0 2px var(--pc); }
.vm-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0d3b47; }
.vm-card-img img { width: 100%; height: 100%; object-fit: cover; }
.vm-card-img .vm-cat { position: absolute; left: 10px; top: 10px; padding: 0.3rem 0.55rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--pc); }
.vm-card-img .vm-credit { position: absolute; right: 0; bottom: 0; padding: 0.25rem 0.5rem; font-size: 0.62rem; color: rgba(245, 239, 228, 0.9); background: rgba(7, 40, 49, 0.62); max-width: 90%; }
.vm-plate { height: 100%; display: grid; place-items: center; align-content: center; text-align: center; padding: 1rem; background: radial-gradient(120% 90% at 30% 20%, #134a57 0%, #0d3b47 55%, #072831 100%); color: var(--c-cream); }
.vm-plate b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1; letter-spacing: -0.01em; }
.vm-plate span { display: block; margin-top: 0.55rem; font-family: var(--f-hand); font-weight: 700; font-size: 1.3rem; color: var(--c-lime); transform: rotate(-3deg); }
.vm-card-b { padding: 0.95rem 1rem 1.05rem; display: grid; gap: 0.45rem; align-content: start; }
.vm-card-k { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pc); }
.vm-card h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; line-height: 1.08; }
.vm-card p { font-size: 0.92rem; line-height: 1.55; color: #3f3a33; }
.vm-card dl { display: grid; gap: 0.3rem; margin: 0.2rem 0 0; font-size: 0.84rem; }
.vm-card dt { font-weight: 800; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6c665b; }
.vm-card dd { margin: 0; color: #2d2924; }
.vm-card-a { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.35rem; align-items: center; }
.vm-card-a button, .vm-card-a a { font: 700 0.8rem/1 var(--f-ui); letter-spacing: 0.06em; color: var(--c-terracotta); text-decoration: underline; text-underline-offset: 3px; padding: 0.3rem 0; }
.vm-card-a button { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; color: var(--c-ocean); }
.vm-card-a button svg { width: 14px; height: 14px; }
.vm-card-a :focus-visible { outline: 2px solid var(--c-terracotta); outline-offset: 2px; }
.vm-card[hidden], .vm-group[hidden], .vm-sc[hidden] { display: none; }
.vm-empty { padding: 1rem 0; color: #5b544a; }

/* ---------- phones ---------- */
.vm-strip { display: none; }
@media (max-width: 1099px) {
  .vm { grid-template-columns: 1fr; }
  .vm-mapcol { position: relative; top: 0; height: 74svh; min-height: 440px; }
  .vm-listcol { border-left: 0; padding: 1.4rem var(--gutter) 3rem; }
  .vm-strip { display: flex; position: absolute; left: 0; right: 0; bottom: 10px; z-index: 850; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px 4px; scrollbar-width: none; }
  .vm-strip::-webkit-scrollbar { display: none; }
  .vm-sc { flex: 0 0 min(82vw, 330px); scroll-snap-align: center; display: grid; grid-template-columns: 96px 1fr; background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(7, 40, 49, 0.35); min-height: 96px; }
  .vm-sc-img { overflow: hidden; background: #0d3b47; }
  .vm-sc-img img { width: 100%; height: 100%; object-fit: cover; }
  .vm-sc-img .vm-plate { padding: 0.4rem; } .vm-sc-img .vm-plate b { font-size: 0.95rem; } .vm-sc-img .vm-plate span { display: none; }
  .vm-sc-b { padding: 0.55rem 0.7rem; display: grid; gap: 0.2rem; align-content: center; }
  .vm-sc-k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pc); }
  .vm-sc-t { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; line-height: 1.1; }
  .vm-sc a { font-size: 0.75rem; font-weight: 700; color: var(--c-terracotta); text-decoration: underline; }
  .vm-legend { display: none; }
  .vm-cardlist { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
html.vm-fullscreen { overflow: hidden; }
html.vm-fullscreen .site-header { display: none; }
.vm.is-full .vm-mapcol { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 200; top: 0; }

/* text-only cards: the plate text sits below the category tag, never under it */
.vm-card-img .vm-plate { padding: 3.2rem 1rem 1.2rem; }
.vm-card-img .vm-plate b { font-size: clamp(1.2rem, 0.95rem + 0.8vw, 1.7rem); }
.vm-pin.is-under { visibility: hidden; }
