/* Habitaciones: botones sobre la foto (me gusta y fotos) y visor a pantalla completa. */
.room-card__mediawrap, .room__photowrap { position: relative; }
.room-tools {
  position: absolute; inset: auto 0.75rem 0.75rem 0.75rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem;
  pointer-events: none; z-index: 2;
}
.room-tools__btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 2.5rem; min-width: 2.5rem; padding: 0 0.75rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(17, 21, 24, 0.62); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 600 0.8125rem/1 var(--font-body, system-ui, sans-serif);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.room-tools__btn:hover { background: rgba(17, 21, 24, 0.82); }
.room-tools__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.room-tools__btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.room-tools__like[aria-pressed="true"] svg { fill: #ef4b5f; stroke: #ef4b5f; }
.room-tools__like [data-like-count]:empty { display: none; }
.room-tools__like.is-pop svg { animation: gp-like-pop 0.35s ease-out; }
@keyframes gp-like-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .room-tools__like.is-pop svg { animation: none; } }

/* Visor de fotos */
html.gp-gal-open { overflow: hidden; }
.gp-gal {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0b0b0d; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto auto;
  font-family: var(--font-body, system-ui, sans-serif);
}
.gp-gal:not([open]), .gp-gal [hidden] { display: none !important; }
.gp-gal::backdrop { background: rgba(0, 0, 0, 0.8); }
.gp-gal__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; }
.gp-gal__title { margin: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }
.gp-gal__title strong { color: #fff; font-weight: 600; margin-right: 0.375rem; }
.gp-gal__close, .gp-gal__nav {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease;
}
.gp-gal__close:hover, .gp-gal__nav:hover { background: rgba(255, 255, 255, 0.24); }
.gp-gal__close:focus-visible, .gp-gal__nav:focus-visible, .gp-gal__thumbs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gp-gal svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gp-gal__stage { position: relative; min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 4.25rem; touch-action: pan-y; }
.gp-gal__img, .gp-gal__pano { grid-area: 1 / 1; }
.gp-gal__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gp-gal__pano { align-self: stretch; justify-self: stretch; width: 100%; height: 100%; border-radius: 0.5rem; overflow: hidden; }
.gp-gal__hint {
  position: absolute; top: 0.75rem; left: 50%; transform: translateX(-50%); margin: 0; z-index: 3;
  padding: 0.375rem 0.75rem; border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 0.8125rem; pointer-events: none;
}
.gp-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.gp-gal__nav--prev { left: 0.75rem; }
.gp-gal__nav--next { right: 0.75rem; }
.gp-gal.is-single .gp-gal__nav, .gp-gal.is-single .gp-gal__thumbs { display: none; }
.gp-gal__caption { margin: 0; min-height: 1.5rem; padding: 0.5rem 1rem 0; text-align: center; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.85); }
.gp-gal__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 1rem 1rem; justify-content: safe center; scrollbar-width: thin; }
.gp-gal__thumbs button {
  position: relative; flex: none; width: 4.5rem; height: 3.25rem; padding: 0; border: 2px solid transparent; border-radius: 0.375rem;
  overflow: hidden; cursor: pointer; background: #222; opacity: 0.55; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gp-gal__thumbs button:hover { opacity: 0.85; }
.gp-gal__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.gp-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-gal__thumbs span { position: absolute; left: 3px; bottom: 3px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, 0.7); font-size: 0.625rem; font-weight: 700; }
@media (max-width: 40rem) {
  .gp-gal__stage { padding: 0; }
  .gp-gal__nav { width: 2.5rem; height: 2.5rem; background: rgba(0, 0, 0, 0.45); }
  .gp-gal__nav--prev { left: 0.5rem; }
  .gp-gal__nav--next { right: 0.5rem; }
}
