/* TE 5.9.10 | Avance 026.1 | Solo fichas del mapa 3D. */
@media (min-width: 901px) {
  body.home #app .te-detail-panel {
    width: min(440px, calc(100vw - 32px)) !important;
    height: auto !important;
    max-height: min(600px, calc(100dvh - 110px)) !important;
    right: clamp(12px, 3vw, 50px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }
  body.home #app .te-detail-hero {height: 172px !important;}
  body.home #app .te-detail-panel .te-detail-scroll {
    padding: 10px 22px 14px !important;
    flex: 0 1 auto !important;
    overflow-y: auto !important;
  }
  body.home #app .te-detail-panel h2 {font-size: 21px !important; margin-bottom: 10px !important;}
  body.home #app .te-detail-panel p {margin-bottom: 9px !important; line-height: 1.5 !important;}
  body.home #app .te-detail-panel .te-detail-actions {padding: 9px 12px 11px !important;}
}
@media (max-width: 900px) {
  body.home #app .te-detail-panel {
    height: auto !important;
    max-height: min(590px, calc(100dvh - 155px)) !important;
    width: min(440px, calc(100vw - 16px)) !important;
  }
  body.home #app .te-detail-hero {height: 145px !important;}
  body.home #app .te-detail-panel .te-detail-scroll {padding: 9px 16px 12px !important; flex: 0 1 auto !important;}
  body.home #app .te-detail-panel .te-detail-actions {padding: 9px 10px !important;}
}
/* La ficha completa de WordPress, botones y datos no se modifican. */

/* Avance 026.3: logotipo opcional centrado en el borde de la foto del mapa. */
body.home #app .te-detail-hero {position: relative !important; overflow: visible !important;}
body.home #app .te-detail-logo {
  position:absolute; left:50%; bottom:-28px; transform:translateX(-50%);
  width:88px; height:88px; box-sizing:border-box;
  padding:5px; background:#fff; border:3px solid #fff;
  box-shadow:0 3px 12px rgba(0,0,0,.28); z-index:4;
  display:flex; align-items:center; justify-content:center;
}
body.home #app .te-detail-logo img {width:100%; height:100%; object-fit:contain; display:block;}
body.home #app .te-detail-hero:has(.te-detail-logo) + .te-detail-scroll {padding-top:42px !important;}
@media (max-width:900px){body.home #app .te-detail-logo {width:76px;height:76px;bottom:-24px;}}

/* AVANCE 026.4 — Tarjetas del mapa mas altas, ancho y escala de imagen intactos.
   Se mantiene la proporcion de la fotografia y del logotipo. */
@media (min-width: 901px) {
  body.home #app .te-detail-panel {
    min-height: min(470px, calc(100dvh - 110px)) !important;
  }
  body.home #app .te-detail-panel .te-detail-scroll {
    min-height: 225px !important;
    padding-bottom: 25px !important;
    flex: 1 1 auto !important;
  }
}
/* Ribete mas fino, sin reducir el tamano exterior del logotipo. */
body.home #app .te-detail-logo {
  padding: 2px !important;
  border: 1px solid #fff !important;
}

/* AVANCE 026.6 — Ficha mapa 440 x 700, ampliando SOLO la zona informativa.
   Mantiene imagen, logo, ancho, botones y estructura. */
@media (min-width: 901px) {
  body.home #app .te-detail-panel {
    width: min(440px, calc(100vw - 32px)) !important;
    height: min(700px, calc(100dvh - 110px)) !important;
    min-height: 0 !important;
    max-height: min(700px, calc(100dvh - 110px)) !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.home #app .te-detail-panel .te-detail-hero {
    flex: 0 0 172px !important;
    height: 172px !important;
  }
  body.home #app .te-detail-panel .te-detail-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 28px !important;
  }
  body.home #app .te-detail-panel .te-detail-actions {
    flex: 0 0 auto !important;
  }
}
/* Fondo negro translucido para los tres botones, sin cambiar su comportamiento. */
body.home #app .te-detail-panel .te-detail-actions button,
body.home #app .te-detail-panel .te-detail-actions a {
  background: rgba(0,0,0,.72) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.23) !important;
}
body.home #app .te-detail-panel .te-detail-actions button:hover,
body.home #app .te-detail-panel .te-detail-actions a:hover {
  background: rgba(0,0,0,.86) !important;
}

/* TE 5.9.13 — Avance 026.6: ficha del mapa, sin alterar portada ni fichas WP.
   La ficha se coloca arriba; el papel queda SOLO en el bloque informativo. */
@media (min-width: 901px) {
  body.home #app .te-detail-panel:not([hidden]) {
    top: 92px !important;
    bottom: auto !important;
    transform: none !important;
    width: min(440px, calc(100vw - 32px)) !important;
    height: min(700px, calc(100dvh - 110px)) !important;
    max-height: calc(100dvh - 110px) !important;
  }
}
body.home #app .te-detail-panel:not([hidden]) {
  background: rgba(10, 12, 13, .83) !important;
  border-color: rgba(255,255,255,.20) !important;
  backdrop-filter: blur(13px) !important;
  -webkit-backdrop-filter: blur(13px) !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-scroll {
  background: #eee6d8 url('./papel-artesanal.jpg') repeat !important;
  background-size: 512px 512px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions {
  background: rgba(9, 11, 12, .76) !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
/* Mantener los tres botones reconocibles sobre la base de vidrio oscuro. */
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions a,
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions button {
  background: rgba(0,0,0,.68) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.23) !important;
}
/* Las fichas ocultas nunca deben reservar espacio ni crear paneles vacíos. */
body.home #app .te-detail-panel[hidden] { display:none !important; }

/* TE 5.9.14 — Avance 026.7: solo botonera de fichas del Mapa 3D. */
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions {
  background: rgba(9, 12, 15, .38) !important;
  border-top: 1px solid rgba(255,255,255,.20) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08) !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button) {
  color: #242a29 !important;
  border: 1px solid rgba(255,255,255,.48) !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.40) !important;
  transition: background-color .18s ease, filter .18s ease, box-shadow .18s ease, transform .18s ease !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-map {background:rgba(163,221,204,.88)!important;}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-route {background:rgba(238,166,148,.90)!important;}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-web {background:rgba(244,218,153,.90)!important;}
@media (hover:hover) and (pointer:fine) {
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button):hover {
    filter:brightness(1.14) saturate(1.20)!important;
    transform:translateY(-2px)!important;
    box-shadow:0 0 14px rgba(255,240,190,.52),0 5px 13px rgba(0,0,0,.25)!important;
  }
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button):focus-visible {
  outline:2px solid #fff2b4!important;outline-offset:2px;
}

/* TE 5.9.15 — Avance 026.8: botonera coherente con el panel lateral oscuro.
   Solo el pie de las fichas del mapa. No toca papel, foto, logo ni geometria. */
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions {
  background: rgba(17, 22, 27, .86) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,0) 60%) !important;
  border-top: 1px solid rgba(255,255,255,.16) !important;
  backdrop-filter: blur(20px) saturate(110%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(110%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button) {
  background: rgba(255,255,255,.055) !important;
  color: #f5f2e9 !important;
  border: 1px solid rgba(255,255,255,.19) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 5px rgba(0,0,0,.17) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.35) !important;
  filter: none !important;
  transform: none !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease !important;
}
/* El pastel funciona como acento sutil, no como tres bloques macizos. */
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-map {
  background: rgba(153,213,196,.11) !important;
  border-color: rgba(153,213,196,.49) !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-route {
  background: rgba(231,160,143,.12) !important;
  border-color: rgba(231,160,143,.52) !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-web {
  background: rgba(235,210,151,.11) !important;
  border-color: rgba(235,210,151,.49) !important;
}
@media (hover:hover) and (pointer:fine) {
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-map:hover {
    background: rgba(153,213,196,.38) !important;
    border-color: #bcebdc !important;
    box-shadow: 0 0 13px rgba(153,213,196,.30), inset 0 1px rgba(255,255,255,.24) !important;
  }
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-route:hover {
    background: rgba(231,160,143,.40) !important;
    border-color: #ffd0c2 !important;
    box-shadow: 0 0 13px rgba(231,160,143,.30), inset 0 1px rgba(255,255,255,.24) !important;
  }
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button).te-action-web:hover {
    background: rgba(235,210,151,.38) !important;
    border-color: #ffe8af !important;
    box-shadow: 0 0 13px rgba(235,210,151,.30), inset 0 1px rgba(255,255,255,.24) !important;
  }
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button):hover {
    color: #fff !important;
    filter: none !important;
    transform: translateY(-1px) !important;
  }
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button):focus-visible {
  outline: 2px solid #f5dfa7 !important;
  outline-offset: 2px !important;
}
@media (prefers-reduced-motion:reduce) {
  body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button) {transition:none!important;transform:none!important;}
}

/* TE 5.9.16 — Avance 026.9: desplazar la ficha 7 px e iconos discretos.
   Solo panel de detalle del mapa; no afecta el menu ni el panel lateral. */
@media (min-width: 901px) {
  body.home #app .te-detail-panel:not([hidden]) {
    top: 99px !important; /* antes 92px */
    max-height: calc(100dvh - 117px) !important;
    height: min(700px, calc(100dvh - 117px)) !important;
  }
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(a,button) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions :is(.te-action-map,.te-action-route,.te-action-web)::before {
  content: "";
  display: inline-block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions .te-action-map::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2021s7-6.2%207-12a7%207%200%201%200-14%200c0%205.8%207%2012%207%2012Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2021s7-6.2%207-12a7%207%200%201%200-14%200c0%205.8%207%2012%207%2012Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%229%22%20r%3D%222.5%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions .te-action-route::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m4%2020%206-16%203%207%207%203-16%206Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22m10%2011%204%204%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m4%2020%206-16%203%207%207%203-16%206Z%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22m10%2011%204%204%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
body.home #app .te-detail-panel:not([hidden]) .te-detail-actions .te-action-web::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c-5%205-5%2013%200%2018M12%203c5%205%205%2013%200%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c-5%205-5%2013%200%2018M12%203c5%205%205%2013%200%2018%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%2F%3E%3C%2Fsvg%3E"); }

/* AVANCE 029.1: etiquetas compactas dentro del panel, sin alterar el Dock */
.te-detail-scroll .te-map-amenities{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 18px;}
.te-detail-scroll .te-map-amenity{font-size:12px;line-height:1.35;padding:7px 9px;border:1px solid #cbbba4;border-radius:7px;background:rgba(255,255,255,.65);color:#3c3025;}
