/* ── Nyxia Hero v2 ──────────────────────────────────────────────── */
.nyx-hero {
  position: relative;
  width: 100%;
  min-height: var(--nyx-hero-height, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: var(--nyx-hero-justify, center);
  box-sizing: border-box;
  font-family: var(--nyx-hero-font, inherit);
  /* NO overflow:hidden — il calendario vive su body:fixed */
}

/* ── Background & overlay ───────────────────────────────────────── */
.nyx-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--nyx-hero-bg-img, none);
  background-size: var(--nyx-hero-bg-size, cover);
  background-position: var(--nyx-hero-bg-pos, center center);
  background-repeat: var(--nyx-hero-bg-repeat, no-repeat);
}
.nyx-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--nyx-hero-overlay-color, rgba(0,0,0,.45));
}

/* ── Content wrapper ────────────────────────────────────────────── */
.nyx-hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: 900px;
  padding: 3rem 1.5rem 2rem;
  text-align: var(--nyx-hero-text-align, center);
  display: flex; flex-direction: column; align-items: center;
  gap: .6rem;
}

.nyx-hero__title {
  font-size: var(--nyx-hero-title-size, clamp(2rem, 6vw, 3.8rem));
  font-weight: 700;
  color: var(--nyx-hero-text-color, #fff);
  margin: 0; line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
  letter-spacing: -.01em;
}
.nyx-hero__sep {
  width: 60px; height: 3px;
  background: var(--nyx-hero-accent-color, rgba(255,255,255,.6));
  border-radius: 2px; margin: .4rem 0;
}
.nyx-hero__subtitle {
  font-size: var(--nyx-hero-subtitle-size, clamp(.95rem, 2.5vw, 1.15rem));
  color: var(--nyx-hero-text-color, #fff);
  opacity: .92; margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
  max-width: 600px; line-height: 1.55;
}

/* ── Search bar (inside content, centered) ──────────────────────── */
.nyx-hero__bar {
  position: relative; z-index: 2;
  margin-top: 2rem;
  width: 100%; max-width: 860px;
  background: #fff;
  border-radius: var(--nyx-hero-bar-radius, 14px);
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
  display: flex; align-items: stretch;
  overflow: visible; /* MUST be visible — calendar is on body */
}

/* ── bar-bottom variant ─────────────────────────────────────────── */
.nyx-hero--bar-bottom .nyx-hero__content {
  padding-bottom: 6rem; /* leave space at bottom */
}
.nyx-hero--bar-bottom .nyx-hero__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-width: 100%; margin: 0;
  border-radius: 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,.12);
}

/* ── Field ──────────────────────────────────────────────────────── */
.nyx-hero__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  cursor: pointer; user-select: none;
  border-right: 1px solid rgba(0,0,0,.07);
  transition: background .15s;
}
.nyx-hero__field:last-of-type { border-right: none; }
.nyx-hero__field:hover { background: rgba(0,0,0,.03); }

.nyx-hero__field-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--nyx-primary, var(--nyx-hero-btn-bg, #2A5C43));
  opacity: .75;
}
.nyx-hero__field-inner {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.nyx-hero__field-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(0,0,0,.4); line-height: 1;
  margin-bottom: 3px;
}
.nyx-hero__field-value {
  font-size: .9rem; font-weight: 500; color: #1a2f26;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nyx-hero__field-value.nyx-placeholder { color: rgba(0,0,0,.3); font-weight: 400; }

/* ── Guests popup ───────────────────────────────────────────────── */
.nyx-hero__guests-popup {
  display: none; position: fixed; z-index: 999999;
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  padding: 12px 16px; min-width: 230px;
}
.nyx-hero__guests-popup.open { display: block; }

.nyx-guests-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; font-size: .88rem; color: #1a2f26;
}
.nyx-guests-row + .nyx-guests-row { border-top: 1px solid rgba(0,0,0,.07); }
.nyx-guests-row__label { font-weight: 600; }
.nyx-guests-row__sub { font-size: .73rem; color: rgba(0,0,0,.4); margin-top: 2px; }
.nyx-guests-stepper { display: flex; align-items: center; gap: 10px; }
.nyx-guests-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--nyx-primary, var(--nyx-hero-btn-bg, #2A5C43));
  background: none; color: var(--nyx-primary, var(--nyx-hero-btn-bg, #2A5C43));
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .15s;
  line-height: 1; padding: 0;
}
.nyx-guests-btn:hover { background: var(--nyx-primary, var(--nyx-hero-btn-bg, #2A5C43)); color: #fff; }
.nyx-guests-btn:disabled { opacity: .3; pointer-events: none; }
.nyx-guests-count { font-weight: 700; min-width: 20px; text-align: center; font-size: .95rem; }

/* ── CTA button ─────────────────────────────────────────────────── */
.nyx-hero__cta {
  flex-shrink: 0; padding: 0 28px;
  background: var(--nyx-hero-btn-bg, #2A5C43);
  color: var(--nyx-hero-btn-text, #fff);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .18s; font-family: inherit;
  border-radius: 0 var(--nyx-hero-bar-radius, 14px) var(--nyx-hero-bar-radius, 14px) 0;
  min-height: 56px;
}
.nyx-hero--bar-bottom .nyx-hero__cta { border-radius: 0; }
.nyx-hero__cta:hover { background: var(--nyx-hero-btn-hover-bg, #1e4233); }
.nyx-hero__cta svg  { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Booking modal overlay (auto-injected, plug-and-play) ───────── */
.nyx-hero-booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999990;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.nyx-hero-booking-modal.open { display: flex; }

.nyx-hero-booking-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nyx-hero-booking-modal__inner {
  position: relative;
  width: 100%;
  max-width: 1020px;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  margin: auto 0;
}
.nyx-hero-booking-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(0,0,0,.06);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,.5);
  transition: background .15s, color .15s;
}
.nyx-hero-booking-modal__close:hover { background: rgba(0,0,0,.12); color: #222; }

/* Prevent body scroll while modal open */
body.nyx-modal-open { overflow: hidden; }

@media (max-width: 700px) {
  .nyx-hero-booking-modal { padding: .5rem; align-items: flex-end; }
  .nyx-hero-booking-modal__inner { border-radius: 20px 20px 0 0; padding: 2rem 1rem 2rem; }
}

/* ── Hero bar inline error ──────────────────────────────────────── */
.nyx-hero__bar-error {
  width: 100%;
  padding: .5rem 1rem;
  background: rgba(231,76,60,.1);
  color: #c0392b;
  font-size: .82rem;
  text-align: center;
  border-top: 1px solid rgba(231,76,60,.2);
}

/* ── Validation highlight ───────────────────────────────────────── */
.nyx-hero__field.nyx-field-error {
  outline: 2px solid #e74c3c;
  border-radius: 4px;
  animation: nyx-shake .3s ease;
}
@keyframes nyx-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .nyx-hero__content { padding: 2rem 1rem 1.5rem; }
  .nyx-hero__bar {
    flex-direction: column; border-radius: var(--nyx-hero-bar-radius, 14px);
    max-width: calc(100% - 2rem); margin: 1.5rem 1rem 0;
  }
  .nyx-hero__field {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding: 14px 16px;
  }
  .nyx-hero__field:last-of-type { border-bottom: none; }
  .nyx-hero__cta {
    border-radius: 0 0 var(--nyx-hero-bar-radius, 14px) var(--nyx-hero-bar-radius, 14px);
    justify-content: center; padding: 16px;
  }
  .nyx-hero--bar-bottom .nyx-hero__bar {
    position: relative; bottom: auto; left: auto; right: auto;
    max-width: calc(100% - 2rem);
  }
}
