/* =====================================================
   The Wedding House — Venues V11
   • Cards SIEMPRE centradas (cualquier número)
   • Layout flexible que envuelve a otra fila si no caben
   • Sin scroll horizontal — todo visible
   • V10: lightbox al hacer clic en cada card
   ===================================================== */

/* ---------- Layout del rail: flex-wrap + centro ---------- */
.venues .venue-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  overflow-x: visible !important;
  padding: 24px 32px 0 !important;
  scrollbar-width: auto;
}
.venues .venue-card {
  /* Mantienen su ancho fijo (~300px) pero se centran cuando hay
     menos cards de las que caben en la fila */
  width: 300px;
  flex: 0 0 300px;
  max-width: 100%;
}

@media (max-width: 980px) {
  .venues .venue-card { width: 280px; flex: 0 0 280px; }
}
@media (max-width: 640px) {
  .venues .venue-rail { gap: 16px; padding: 18px 18px 0 !important; }
  .venues .venue-card { width: calc(50% - 8px); flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 460px) {
  .venues .venue-card { width: 100%; flex: 0 0 100%; }
}

/* Card clickeable */
.venue-card.venue-clickable {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.venue-card.venue-clickable:hover {
  transform: translateY(-3px);
}
.venue-card.venue-clickable .photo {
  transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.venue-card.venue-clickable:hover .photo {
  transform: scale(1.04);
  filter: brightness(.92);
}
.venue-card.venue-clickable:focus-visible {
  outline: 2px solid var(--accent, #CDAF87);
  outline-offset: 4px;
}

/* Hint "Ver galería" arriba a la derecha */
.venue-card .venue-hint {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(36,36,35,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--bg, #F2EFEA);
  font: 500 9px/1 var(--sans, "Montserrat"), sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  z-index: 2;
}
.venue-card:hover .venue-hint,
.venue-card:focus-within .venue-hint {
  opacity: 1;
  transform: translateY(0);
}
.venue-card .venue-hint-count {
  background: var(--accent, #CDAF87);
  color: var(--ink, #242423);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  min-width: 18px;
  text-align: center;
}

/* Ícono lupa pequeño antes del texto */
.venue-card .venue-hint::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EFEA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.7' y2='16.7'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 2px;
}

/* En móvil, hint siempre visible (no hay hover) */
@media (max-width: 760px) {
  .venue-card .venue-hint {
    opacity: 1;
    transform: translateY(0);
    top: 10px; right: 10px;
    padding: 6px 9px;
    font-size: 8px;
  }
}

/* =====================================================
   Lightbox de venues (reutiliza estética del lightbox de galería)
   Usa clase propia .vlb para no chocar con .arale-lb si convive
   ===================================================== */
body.vlb-locked { overflow: hidden; }

.vlb {
  position: fixed; inset: 0;
  background: rgba(28,28,28,.96);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 80px;
  opacity: 0;
  transition: opacity .25s ease;
}
.vlb.open { display: flex; opacity: 1; }

.vlb-figure {
  position: relative;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.vlb-img {
  max-width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  background: #000;
}
.vlb-caption {
  color: rgba(242,239,234,.78);
  font: italic 300 14px/1.4 var(--serif, "Cormorant Garamond"), serif;
  text-align: center;
  max-width: 720px;
}

.vlb-title {
  position: absolute;
  top: 24px; left: 28px;
  color: var(--bg, #F2EFEA);
  font: 400 18px/1.2 var(--serif, "Cormorant Garamond"), serif;
  letter-spacing: .04em;
}
.vlb-title small {
  display: block;
  font: 500 9px/1 var(--sans, "Montserrat"), sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent, #CDAF87);
  margin-bottom: 4px;
}

.vlb-counter {
  position: absolute;
  top: 32px; right: 80px;
  color: rgba(242,239,234,.7);
  font: 500 11px/1 var(--sans, "Montserrat"), sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.vlb-close,
.vlb-prev,
.vlb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(242,239,234,.45);
  color: var(--bg, #F2EFEA);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
  font: 400 22px/1 var(--sans, sans-serif);
}
.vlb-close { top: 24px; right: 28px; }
.vlb-prev  { top: 50%; left: 28px;  transform: translateY(-50%); }
.vlb-next  { top: 50%; right: 28px; transform: translateY(-50%); }
.vlb-close:hover, .vlb-prev:hover, .vlb-next:hover {
  background: var(--accent, #CDAF87);
  border-color: var(--accent, #CDAF87);
  color: var(--ink, #242423);
}
.vlb-prev:hover { transform: translateY(-50%) translateX(-3px); background: var(--accent, #CDAF87); border-color: var(--accent, #CDAF87); color: var(--ink, #242423); }
.vlb-next:hover { transform: translateY(-50%) translateX(3px);  background: var(--accent, #CDAF87); border-color: var(--accent, #CDAF87); color: var(--ink, #242423); }

/* Tiras de miniaturas abajo */
.vlb-thumbs {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  max-width: 90vw;
  overflow-x: auto;
  padding: 4px 8px;
  scrollbar-width: thin;
}
.vlb-thumbs::-webkit-scrollbar { height: 5px; }
.vlb-thumbs::-webkit-scrollbar-thumb { background: rgba(242,239,234,.3); border-radius: 3px; }

.vlb-thumb {
  flex: 0 0 60px;
  height: 44px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .55;
  border: 1px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}
.vlb-thumb:hover { opacity: 1; }
.vlb-thumb.active {
  opacity: 1;
  border-color: var(--accent, #CDAF87);
}

@media (max-width: 760px) {
  .vlb { padding: 24px 16px; }
  .vlb-title { top: 14px; left: 16px; font-size: 14px; }
  .vlb-counter { top: 20px; right: 70px; font-size: 10px; }
  .vlb-close { top: 14px; right: 14px; }
  .vlb-prev, .vlb-next {
    top: auto; bottom: 80px; transform: none;
    width: 38px; height: 38px;
  }
  .vlb-prev { left: calc(50% - 50px); }
  .vlb-next { right: calc(50% - 50px); }
  .vlb-prev:hover, .vlb-next:hover { transform: none; }
  .vlb-figure { max-height: calc(100vh - 200px); }
  .vlb-img { max-height: calc(100vh - 260px); }
  .vlb-thumbs { bottom: 10px; }
  .vlb-thumb { flex: 0 0 50px; height: 38px; }
}
