/* ==========================================================================
   Quinta Dodó — panel lateral de navegación
   Portado del sitio DODO (drawer + texto rodante + preview de foto al hover).
   Escrito en CSS plano: el sitio original usaba Tailwind, que acá no existe.
   ========================================================================== */

.qd-drawer-root {
  --qd-canvas: #f5f0eb;
  --qd-border: #ddd4c9;
  --qd-dark: #1a1512;
  --qd-text: #2c2218;
  --qd-muted: #6b5d50;
  --qd-accent: #b8845c;

  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qd-drawer-root.is-open {
  opacity: 1;
  visibility: visible;
}

/* ---------- panel izquierdo ---------- */
.qd-drawer {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--qd-canvas);
  border-right: 1px solid var(--qd-border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.qd-drawer-root.is-open .qd-drawer {
  transform: translateX(0);
}

/* ---------- encabezado ---------- */
.qd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(221, 212, 201, 0.7);
}

.qd-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.qd-brand-link { display: block; }

.qd-brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.qd-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--qd-border);
  color: var(--qd-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  padding: 0;
}

.qd-close:hover {
  background: var(--qd-dark);
  color: #fff;
}

.qd-close svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* ---------- navegación ---------- */
.qd-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qd-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--qd-dark);
  transition: color 0.2s ease;
  align-self: flex-start;
}

.qd-link:hover { color: var(--qd-accent); }

.qd-link--accent { color: var(--qd-accent); }
.qd-link--accent:hover { color: var(--qd-dark); }

/* texto rodante: el text-shadow dibuja la copia de abajo */
.qd-roll {
  --lh: 1.22em;
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  line-height: var(--lh);
  height: var(--lh);
  text-shadow: 0 var(--lh) 0 currentColor;
}

.qd-char {
  display: inline-block;
  white-space: pre;
  flex-shrink: 0;
  line-height: var(--lh);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.qd-link:hover .qd-char { transform: translateY(-100%); }

/* ---------- pie ---------- */
.qd-foot {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(221, 212, 201, 0.7);
}

.qd-foot-block { margin-bottom: 16px; }

.qd-tag {
  display: block;
  margin-bottom: 4px;
  font-family: ui-monospace, "Geist Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qd-muted);
}

.qd-foot a {
  font-size: 12px;
  font-weight: 500;
  color: var(--qd-dark);
  text-decoration: none;
}

.qd-foot a:hover { text-decoration: underline; }

.qd-copy {
  padding-top: 8px;
  font-size: 11px;
  color: var(--qd-muted);
}

/* ---------- panel derecho: foto ---------- */
.qd-preview {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1c1917;
  pointer-events: none;
}

/* dos capas apiladas: la que tiene .is-front se ve, la otra queda abajo
   esperando la proxima foto; al alternar la clase se produce el fundido */
.qd-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.9);
  transition: opacity 0.7s ease;
}

.qd-preview img.is-front {
  opacity: 0.8;
}

/* mapa en vivo: solo lo activa "Ubicación & Mapa" (ver sidebar.js) */
.qd-preview-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.qd-preview-map.is-front {
  opacity: 1;
  pointer-events: auto;
}

.qd-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent 55%);
}

/* ---------- disparador propio: solo el icono, negro, sin circulo ---------- */
.qd-trigger {
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 2147482000;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  color: #1a1512;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.qd-trigger:hover { opacity: 1; }
.qd-trigger svg { width: 20px; height: 20px; display: block; }

/* ---------- nav derecho: "[ Reservar ]" y "[ Booking ]", a la derecha de la barra ---------- */
.qd-nav-right {
  position: fixed;
  top: 0;
  right: 24px;
  height: 68px;            /* mismo alto que la barra de Framer */
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 28px;
}

.qd-nav-reserve {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  text-decoration: none;
  color: #1a1512;
}

.qd-nav-reserve .qd-tag {
  font-size: 10px;
  color: #6b5d50;
  text-align: right;
}

.qd-nav-reserve-txt {
  font-size: 13px;
  font-weight: 600;
  color: #b8845c;
  white-space: nowrap;
  text-align: right;
}

.qd-nav-booking .qd-nav-reserve-txt { color: #1a1512; }

.qd-nav-reserve:hover .qd-nav-reserve-txt { text-decoration: underline; }

@media (max-width: 640px) {
  .qd-nav-right { right: 12px; gap: 16px; }
  .qd-nav-reserve .qd-tag { font-size: 9px; }
  .qd-nav-reserve-txt { font-size: 12px; }
  .qd-drawer { max-width: none; padding: 24px; }
  .qd-preview { display: none; }
  .qd-link { font-size: 25px; }
}
