
/* Tarjetas y detalles de negocios — Página Tolimán */
body .lugar-box{box-sizing:border-box;width:calc(100% - 32px);max-width:760px;margin:22px auto;padding:22px!important;border:1px solid #e9e8e4;border-radius:20px!important;box-shadow:0 5px 22px rgba(24,35,47,.07)!important;transition:transform .2s,box-shadow .2s;background:#fff;color:#263543}
body .lugar-box:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(24,35,47,.1)!important}
body .lugar-box h2{font-size:clamp(21px,3vw,27px);margin:2px 0 13px}
body .lugar-box .pt-preview{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.6;color:#596674;max-height:6.4em;margin:0 0 14px}
body .lugar-box .pt-open{display:inline-flex;align-items:center;justify-content:center;background:#a43a36;color:white;border:0;border-radius:12px;font:600 15px inherit;font-family:inherit;padding:12px 20px;cursor:pointer;transition:background .2s}
body .lugar-box .pt-open:hover{background:#812b28}
body .lugar-box .pt-summary-contact{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
body .lugar-box .pt-summary-contact a{font-size:14px;text-decoration:none;color:#8d302d;font-weight:600}
body .lugar-box .pt-hidden-content{display:none!important}
body .lugar-box .pt-gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain;padding:4px 2px 13px;margin:14px 0;max-width:100%;-webkit-overflow-scrolling:touch}
body .lugar-box .pt-gallery img{display:block;flex:0 0 clamp(190px,65%,310px);width:clamp(190px,65%,310px)!important;height:205px!important;object-fit:cover;border-radius:13px;scroll-snap-align:start}
body .lugar-box .pt-gallery img:hover{transform:none}
.pt-modal[hidden]{display:none!important}
.pt-modal{position:fixed;inset:0;z-index:100000;background:rgba(9,20,31,.74);display:grid;place-items:center;padding:14px;box-sizing:border-box;backdrop-filter:blur(5px)}
.pt-modal__panel{position:relative;box-sizing:border-box;background:#fff;color:#293742;border-radius:22px;padding:clamp(19px,4vw,32px);width:min(720px,100%);max-height:90dvh;overflow:auto;box-shadow:0 24px 70px #0004}
.pt-modal__close{position:sticky;top:0;float:right;border:0;background:#f0f1f2;border-radius:50%;width:39px;height:39px;cursor:pointer;font-size:26px;z-index:2}
.pt-modal__panel h2{font-size:clamp(24px,4vw,32px);margin:5px 48px 18px 0}
.pt-modal__panel .pt-detail-description{white-space:pre-line;line-height:1.7;color:#526170}
.pt-modal__panel .pt-gallery{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:5px 0 14px;margin:18px 0;scrollbar-width:thin}
.pt-modal__panel .pt-gallery img{flex:0 0 min(80%,390px);height:240px;width:min(80%,390px);object-fit:cover;border-radius:13px;scroll-snap-align:start}
.pt-modal__panel .redes{display:flex!important;flex-wrap:wrap;justify-content:flex-start;gap:9px;margin:16px 0}
.pt-modal__panel .red-item{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid #e2e7ea;padding:9px 12px;border-radius:12px;color:#334352}
.pt-modal__panel .red-item img{width:21px;height:21px}
.pt-modal__panel .mapa iframe{width:100%;max-width:100%;border-radius:13px}
.pt-modal__panel h3{margin:18px 0 10px}
@media(max-width:600px){body .lugar-box{margin:15px auto;padding:17px!important}body .lugar-box .pt-gallery img{height:170px!important}.pt-modal__panel .pt-gallery img{height:205px}}

/* 1 o 2 fotos: distribución original; 3 o más: desplazamiento horizontal */
body .lugar-box .imagenes-group.pt-gallery-static{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:18px!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important;justify-content:center}
body .lugar-box .imagenes-group.pt-gallery-static img{width:calc(50% - 9px)!important;max-width:100%!important;height:280px!important;flex:1 1 calc(50% - 9px)!important;object-fit:cover}
body .lugar-box .imagenes-group.pt-gallery-static img:only-child{max-width:550px!important;width:100%!important;flex-basis:100%!important}
.pt-modal__panel .imagenes-group.pt-gallery-static{display:flex!important;flex-wrap:wrap;gap:12px;overflow:visible!important;scroll-snap-type:none!important}
.pt-modal__panel .imagenes-group.pt-gallery-static img{width:calc(50% - 6px)!important;height:225px!important;flex:1 1 calc(50% - 6px)!important}
.pt-modal__panel .imagenes-group.pt-gallery-static img:only-child{width:100%!important;flex-basis:100%!important}
@media(max-width:600px){body .lugar-box .imagenes-group.pt-gallery-static{flex-direction:column!important}body .lugar-box .imagenes-group.pt-gallery-static img{width:100%!important;flex-basis:auto!important;height:230px!important}.pt-modal__panel .imagenes-group.pt-gallery-static img{height:170px!important}}


/* Galerías adaptables: prioridad sobre los estilos móviles de cada categoría. */
@media (max-width: 768px) {
  body .lugar-box .imagenes-group.pt-gallery,
  .pt-modal__panel .imagenes-group.pt-gallery {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 3px 1px 8px !important;
    scrollbar-width: none;
  }
  body .lugar-box .imagenes-group.pt-gallery::-webkit-scrollbar,
  .pt-modal__panel .imagenes-group.pt-gallery::-webkit-scrollbar { display: none; }
  body .lugar-box .imagenes-group.pt-gallery > img,
  .pt-modal__panel .imagenes-group.pt-gallery > img {
    display: block !important;
    flex: 0 0 83% !important;
    width: 83% !important;
    min-width: 0 !important;
    max-width: 83% !important;
    height: 205px !important;
    object-fit: cover !important;
    scroll-snap-align: start;
    border-radius: 13px;
    box-sizing: border-box;
    transform: none !important;
  }
  /* Si únicamente hay dos imágenes, permanecen juntas, sin carrusel. */
  body .lugar-box .imagenes-group.pt-gallery-static,
  .pt-modal__panel .imagenes-group.pt-gallery-static {
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 10px !important;
    align-items: stretch;
    justify-content: center !important;
    overflow: visible !important;
  }
  body .lugar-box .imagenes-group.pt-gallery-static > img,
  .pt-modal__panel .imagenes-group.pt-gallery-static > img {
    flex: 1 1 0 !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    min-width: 0 !important;
    height: 175px !important;
    box-sizing: border-box;
    object-fit: cover;
  }
  body .lugar-box .imagenes-group.pt-gallery-static > img:only-child,
  .pt-modal__panel .imagenes-group.pt-gallery-static > img:only-child {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    height: 225px !important;
  }
}
.pt-gallery-hint {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 14px;padding:0 3px;font-size:12px;color:#67717b;line-height:1.4}
.pt-gallery-hint__swipe {display:inline-flex;gap:6px;align-items:center;letter-spacing:.01em}
.pt-gallery-hint__swipe svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pt-gallery-hint__count {font-variant-numeric:tabular-nums;color:#566271;font-weight:600;white-space:nowrap}
@media (min-width:769px){.pt-gallery-hint{display:none}}

/* Móvil: la X de Explorar se separa del botón flotante del menú. */
@media (max-width: 600px) {
  .pt-modal__panel .pt-modal__close {
    margin-right: 58px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }
}

/* Ventana Explorar: más amplia en computadoras y tabletas grandes. */
@media (min-width: 900px) {
  .pt-modal__panel {width:min(1080px,calc(100vw - 80px));max-height:92dvh;padding:34px 42px 40px;}
  .pt-modal__panel .pt-gallery img {flex-basis:min(72%,510px);width:min(72%,510px);height:330px;}
  .pt-modal__panel .pt-gallery-static img {height:320px!important;}
  .pt-modal__panel .pt-detail-description {font-size:16px;line-height:1.85;}
}
/* Las fotografías se pueden abrir sin modificar los enlaces de contacto. */
.lugar-box .imagenes-group img,.pt-modal__content .imagenes-group img {cursor:zoom-in;}
.lugar-box .imagenes-group img:focus-visible,.pt-modal__content .imagenes-group img:focus-visible {outline:3px solid #1a9eb8;outline-offset:3px;}
.pt-lightbox[hidden],.pt-lightbox__arrow[hidden]{display:none!important}
.pt-lightbox {position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:65px 70px;background:rgba(9,14,22,.96);backdrop-filter:blur(9px);}
.pt-lightbox__image {display:block;max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 8px 55px #0006;user-select:none;}
.pt-lightbox__close,.pt-lightbox__arrow {position:absolute;display:grid;place-items:center;border:1px solid #ffffff4d;background:#242b35;color:#fff;cursor:pointer;touch-action:manipulation;}
.pt-lightbox__close {top:max(16px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));width:48px;height:48px;border-radius:50%;font-size:32px;line-height:1;}
.pt-lightbox__arrow {top:50%;transform:translateY(-50%);height:48px;width:48px;border-radius:50%;font-size:35px;line-height:1;}
.pt-lightbox__prev {left:15px;}.pt-lightbox__next {right:15px;}
.pt-lightbox__close:hover,.pt-lightbox__arrow:hover {background:#485260;}
.pt-lightbox__close:focus-visible,.pt-lightbox__arrow:focus-visible {outline:3px solid white;outline-offset:3px;}
.pt-lightbox__counter {position:absolute;bottom:max(19px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font:600 13px/1.2 system-ui,sans-serif;color:#fff;background:#242b35;border-radius:50px;padding:9px 15px;}
@media(max-width:600px){.pt-lightbox{padding:78px 10px 85px}.pt-lightbox__image{max-height:calc(100dvh - 165px)}.pt-lightbox__arrow{width:40px;height:44px;background:#242b35cc}.pt-lightbox__prev{left:5px}.pt-lightbox__next{right:5px}.pt-lightbox__close{top:max(18px,env(safe-area-inset-top));right:18px;width:48px;height:48px}}

/* Ajuste final: Explorar aprovecha más el espacio de escritorio. */
@media (min-width: 1100px) {
  .pt-modal {padding:20px 26px;}
  .pt-modal__panel {
    width:min(1400px,calc(100vw - 84px));
    max-width:none;
    max-height:95dvh;
    padding:clamp(34px,3.2vw,54px);
  }
  .pt-modal__panel h2 {font-size:clamp(30px,2.8vw,40px);}
  .pt-modal__panel .pt-gallery img {flex-basis:min(70%,650px);width:min(70%,650px);height:clamp(340px,34vw,450px);}
  .pt-modal__panel .pt-gallery-static img {height:clamp(330px,32vw,440px)!important;}
  .pt-modal__panel .pt-detail-description {font-size:17px;line-height:1.9;}
}
/* Móvil y tablet: cerrar Explorar justo debajo del menú fijo.
   Menú: top 11px, alto 44px. Espacio libre 20px. */
@media (max-width: 768px) {
  .pt-modal__panel .pt-modal__close {
    position:fixed!important;
    top:calc(75px + env(safe-area-inset-top, 0px))!important;
    right:11px!important;
    left:auto!important;
    margin:0!important;
    float:none!important;
    width:44px!important;
    height:44px!important;
    min-width:44px;min-height:44px;
    z-index:100010;
    border:1px solid #cdd7dd;
    box-shadow:0 4px 16px rgba(0,0,0,.18);
    touch-action:manipulation;
  }
  .pt-modal__panel {padding-top:65px;}
}

/* Alineación móvil: ambos controles centrados sobre el borde derecho del panel. */
@media (max-width: 768px) {
  .pt-modal__panel .pt-modal__close {
    position: fixed !important;
    top: calc(78px + env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
    left: auto !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
    z-index: 100010 !important;
  }
}

@media (max-width:768px) {
  body:has(.pt-modal:not([hidden])) .menu-hamburguesa,
  body:has(.pt-modal:not([hidden])) .hamburger-menu,
  body:has(.pt-modal:not([hidden])) .menu-toggle {
    right: 10px !important;
  }
}

/* Mejor aprovechamiento del espacio en pantallas de escritorio.
   No altera tabletas, teléfonos ni la sección de Emergencias. */
@media (min-width: 1100px) {
  body .lugar-box {
    width: min(1320px, calc(100% - 96px));
    max-width: 1320px;
    padding: clamp(32px, 3vw, 48px) !important;
    margin: 34px auto;
  }
  body .lugar-box .pt-preview {
    max-width: 100ch;
    font-size: 16px;
    line-height: 1.7;
  }
  body .lugar-box .imagenes-group.pt-gallery-static img {
    height: clamp(310px, 27vw, 430px) !important;
  }
  body .lugar-box .imagenes-group.pt-gallery:not(.pt-gallery-static) img {
    flex-basis: clamp(320px, 36%, 460px);
    width: clamp(320px, 36%, 460px) !important;
    height: 320px !important;
  }
  body .lugar-box .mapa { height: 440px; }
}
@media (min-width: 1600px) {
  body .lugar-box { width: min(1450px, calc(100% - 120px)); max-width: 1450px; }
}

/* Ajuste: resumen legible en escritorio; no mostrar botones innecesarios. */
.pt-open[hidden]{display:none!important}
@media(min-width:1100px){
 body .lugar-box .pt-preview{font-size:clamp(18px,1.12vw,20px)!important;line-height:1.75!important;max-height:7em!important;max-width:105ch}
}
