/* Volcanes de Tenerife – interactive map (L.A.V.A. Europe style). Everything is scoped under .vdt */
.vdt {
	--vdt-sand: #E4D7B8; --vdt-sand-d: #D5C59E; --vdt-sand-l: #F1E9D6;
	--vdt-ink: #3A2E28; --vdt-ink-soft: #5B4E45; --vdt-lava: #C2410C; --vdt-lava-d: #9A3412;
	--vdt-peach: #E9B98F; --vdt-sea: #DDE5E7; --vdt-white: #fff;
	--vdt-radius: 14px;
	position: relative; display: flex; flex-direction: column; width: 100%; max-width: 100%;
	background: var(--vdt-sea); color: var(--vdt-ink); border-radius: var(--vdt-radius); overflow: hidden;
	font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.5;
	box-shadow: 0 10px 30px rgba(58, 46, 40, .18); margin: 1.5em 0; text-align: left;
}
.vdt *, .vdt *::before, .vdt *::after { box-sizing: border-box; }
.vdt button { font-family: inherit; cursor: pointer; }
.vdt img { max-width: none; border: 0; box-shadow: none; margin: 0; }
.vdt p { margin: 0 0 .7em; }
.vdt-loading { padding: 60px 20px; text-align: center; color: var(--vdt-ink-soft); }

/* header */
.vdt-head { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--vdt-ink); color: #fff; flex: 0 0 auto; }
.vdt-head .vdt-brand { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.vdt-kicker { font-size: 10.5px; letter-spacing: .22em; font-weight: 700; color: var(--vdt-peach); text-transform: uppercase; }
.vdt-title { font-size: 20px; font-weight: 700; letter-spacing: .01em; color: #fff; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdt-title small { font-weight: 500; color: var(--vdt-peach); font-size: .7em; margin-left: .4em; }
.vdt-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.vdt-lang { display: inline-flex; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.vdt-lang button { border: 0; background: transparent; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.vdt-lang button[aria-pressed="true"] { background: var(--vdt-lava); }
.vdt-iconbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--vdt-lava); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 999px; line-height: 1; }
.vdt-iconbtn:hover, .vdt-iconbtn:focus-visible { background: var(--vdt-lava-d); }
.vdt-iconbtn svg { width: 16px; height: 16px; }

/* body */
.vdt-body { display: flex; flex: 1 1 auto; min-height: 0; }
.vdt-mapcol { position: relative; flex: 1 1 62%; min-width: 0; display: flex; align-items: center; justify-content: center; background: var(--vdt-sea); }
.vdt-mapbox { position: relative; width: 100%; aspect-ratio: 2400 / 1950; }
.vdt-mapbox > img, .vdt-mapbox > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vdt-hint { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.88); color: var(--vdt-ink); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.vdt-hint b { color: var(--vdt-lava); }

/* svg map */
.vdt svg text { font-family: 'Poppins', system-ui, sans-serif; }
.vdt-town circle { fill: var(--vdt-ink); }
.vdt-town text, .vdt-peak text, .vdt-mlabel { paint-order: stroke; stroke: rgba(255,255,255,.88); stroke-width: 9px; stroke-linejoin: round; fill: var(--vdt-ink); }
.vdt-town text { font-size: 27px; font-weight: 500; }
.vdt-peak text { font-size: 26px; font-weight: 700; letter-spacing: .06em; }
.vdt-peak path { fill: var(--vdt-ink); stroke: #fff; stroke-width: 3px; }
.vdt-rift path { fill: none; stroke: var(--vdt-lava); stroke-opacity: .75; stroke-width: 7px; stroke-dasharray: 22 16; }
.vdt-rift text { font-size: 26px; font-weight: 700; letter-spacing: .18em; fill: var(--vdt-lava); paint-order: stroke; stroke: rgba(255,255,255,.7); stroke-width: 6px; }
.vdt-lava { stroke: var(--vdt-lava); stroke-width: 9px; stroke-linecap: round; opacity: .9; }
.vdt-vent { fill: var(--vdt-ink); stroke: #fff; stroke-width: 3px; }
.vdt-leader { stroke: var(--vdt-ink); stroke-width: 3.5px; }
.vdt-marker { cursor: pointer; outline: none; }
.vdt-marker .vdt-ring { fill: var(--vdt-lava); opacity: 0; transform-box: fill-box; transform-origin: center; }
.vdt-marker .vdt-dot { fill: var(--vdt-lava); stroke: #fff; stroke-width: 6px; transition: fill .15s; }
.vdt-marker .vdt-num { fill: #fff; font-size: 34px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vdt-marker .vdt-scale { transform-box: fill-box; transform-origin: center; transition: transform .18s ease; }
.vdt-marker:hover .vdt-scale, .vdt-marker:focus-visible .vdt-scale { transform: scale(1.18); }
.vdt-marker:focus-visible .vdt-dot { stroke: var(--vdt-ink); }
.vdt-marker.is-active .vdt-dot { fill: var(--vdt-ink); }
.vdt-marker.is-active .vdt-scale { transform: scale(1.3); }
.vdt-marker.is-active .vdt-ring { animation: vdt-pulse 1.8s ease-out infinite; }
@keyframes vdt-pulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
.vdt-mlabel { font-size: 30px; font-weight: 700; cursor: pointer; }
.vdt.is-compact .vdt-mlabel, .vdt.is-compact .vdt-town text, .vdt.is-compact .vdt-rift text, .vdt.is-compact .vdt-peak text { display: none; }
.vdt-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--vdt-ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; opacity: 0; transition: opacity .12s; }
.vdt-tip.is-on { opacity: 1; }
.vdt-tip small { display: block; font-weight: 400; color: var(--vdt-peach); }

/* panel */
.vdt-panel { flex: 0 0 38%; max-width: 480px; min-width: 300px; background: var(--vdt-sand); overflow-y: auto; overscroll-behavior: contain; position: relative; }
.vdt-pad { padding: 18px 20px 22px; }
.vdt-h2 { font-size: 27px; line-height: 1.08; font-weight: 700; margin: 0 0 4px; color: var(--vdt-ink); letter-spacing: .005em; text-transform: uppercase; }
.vdt-place { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: var(--vdt-lava); text-transform: uppercase; margin-bottom: 14px; }
.vdt-label { font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--vdt-lava); text-transform: uppercase; margin: 16px 0 6px; }
.vdt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vdt-tile { background: var(--vdt-ink); color: #fff; border-radius: 10px; padding: 9px 11px 10px; }
.vdt-tile span { display: block; font-size: 9.5px; letter-spacing: .14em; font-weight: 600; color: var(--vdt-peach); text-transform: uppercase; margin-bottom: 2px; }
.vdt-tile b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: block; }
.vdt-text { font-size: 15px; color: var(--vdt-ink); }
.vdt-impact { list-style: none; margin: 0; padding: 0; }
.vdt-impact li { position: relative; padding-left: 16px; margin: 0 0 4px; font-size: 14.5px; font-weight: 500; }
.vdt-impact li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--vdt-lava); }
.vdt-fact { background: var(--vdt-lava); color: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.vdt-fact .vdt-label { color: #fff; margin-top: 0; }
.vdt-fact p { font-size: 15px; font-weight: 500; margin: 0; }
.vdt-vei { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 4px; }
.vdt-vei i { font-style: normal; text-align: center; font-size: 11px; font-weight: 600; padding: 3px 0; border-radius: 4px; color: rgba(58,46,40,.6); }
.vdt-vei i.on { color: #fff; font-weight: 700; outline: 2px solid var(--vdt-ink); transform: scaleY(1.25); }
.vdt-vei-note { font-size: 12.5px; color: var(--vdt-ink-soft); margin-top: 6px; }
.vdt-photo { position: relative; aspect-ratio: 16 / 10; background: var(--vdt-ink); overflow: hidden; }
.vdt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdt-photo .vdt-badge { position: absolute; left: 14px; top: 14px; background: var(--vdt-lava); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .1em; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; }
.vdt-photo .vdt-credit { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 10px 5px; font-size: 10px; color: rgba(255,255,255,.88); text-align: right; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.vdt-nav { display: flex; gap: 8px; margin-top: 18px; }
.vdt-nav button { flex: 1; border: 0; border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; background: var(--vdt-sand-l); color: var(--vdt-ink); }
.vdt-nav button:hover, .vdt-nav button:focus-visible { background: #fff; }
.vdt-nav .vdt-back { flex: 0 0 auto; background: var(--vdt-ink); color: #fff; }
.vdt-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(58,46,40,.75); color: #fff; font-size: 20px; line-height: 34px; padding: 0; }
.vdt-list { list-style: none; margin: 6px 0 0; padding: 0; }
.vdt-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: var(--vdt-sand-l); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; text-align: left; color: var(--vdt-ink); }
.vdt-list button:hover, .vdt-list button:focus-visible { background: #fff; }
.vdt-list .n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--vdt-lava); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.vdt-list .t { display: flex; flex-direction: column; line-height: 1.25; }
.vdt-list .t b { font-size: 14px; font-weight: 600; }
.vdt-list .t small { font-size: 12px; color: var(--vdt-ink-soft); }
.vdt-foot { border-top: 1px solid var(--vdt-sand-d); margin-top: 18px; padding-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--vdt-ink-soft); line-height: 1.4; }
.vdt-foot img { height: 34px; width: auto; }
.vdt-foot div { flex: 1 1 180px; }

/* timeline */
.vdt-tl { flex: 0 0 auto; background: var(--vdt-ink); color: #fff; padding: 10px 18px 12px; }
.vdt-tl-row { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.vdt-tl-row::before { content: ''; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: rgba(255,255,255,.25); }
.vdt-tl-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #fff; padding: 0 2px; min-width: 0; flex: 0 1 auto; }
.vdt-tl-item .n { width: 28px; height: 28px; border-radius: 50%; background: var(--vdt-lava); border: 2px solid #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.vdt-tl-item .y { font-size: 12px; font-weight: 700; color: var(--vdt-peach); }
.vdt-tl-item .nm { font-size: 11px; color: rgba(255,255,255,.8); white-space: nowrap; }
.vdt-tl-item:hover .n, .vdt-tl-item:focus-visible .n { transform: scale(1.15); }
.vdt-tl-item.is-active .n { background: #fff; color: var(--vdt-lava); }
.vdt-tl-gap { position: absolute; top: -2px; font-size: 10px; color: rgba(255,255,255,.55); transform: translateX(-50%); white-space: nowrap; }

/* full screen */
.vdt.is-fs { position: fixed !important; inset: 0 !important; z-index: 999999 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; }
.vdt:fullscreen { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
html.vdt-lock, html.vdt-lock body { overflow: hidden !important; }

/* small screens: stack map above the panel */
@media (max-width: 820px) {
	.vdt { font-size: 14px; }
	.vdt-body { flex-direction: column; }
	.vdt-panel { flex: 1 1 auto; max-width: none; min-width: 0; }
	.vdt-title { font-size: 17px; }
	.vdt-kicker { display: none; }
	.vdt-head { padding: 10px 12px; }
	.vdt-title small { display: none; }
	.vdt-iconbtn .txt { display: none; }
	.vdt-tl-item .nm { display: none; }
	.vdt-tl-gap { display: none; }
	.vdt.is-fs .vdt-mapcol { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.vdt-marker.is-active .vdt-ring { animation: none; }
	.vdt * { transition: none !important; }
}
