/*
 * Legends Spots – CSS Ficha de Hotel
 * Fuente: hotel-detail.css del proyecto estático.
 * La tipografía BMWMotorrad la carga el tema; este plugin no la duplica.
 *
 * Desarrollado por Legger SAS (https://legger.co)
 */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --anthracite: #262626;
  --blue: #0062FF;
  --blue-1: #0653B6;
  --white: #FFFFFF;
  --grey-1: #4D4D4D;
  --grey-3: #8E8E8E;
  --grey-5: #E6E6E6;
  --grey-6: #F2F2F2;
  --header-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 400;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.breadcrumb-grey {
  color: var(--grey-3);
}

.breadcrumb-white {
  color: var(--white);
}

.breadcrumb-active {
  color: var(--white);
  text-decoration: underline;
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--anthracite);
  padding: 42px 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  position: relative;
}

.hero-info {
  width: 437px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-name {
  font-weight: 900;
  font-size: 50px;
  line-height: 50px;
  color: var(--white);
}

.hero-stars {
  display: flex;
  gap: 2px;
  align-items: center;
}

.hero-stars .star {
  font-size: 22px;
  color: #FFB400;
}

.hero-tagline {
  font-weight: 700;
  font-size: 16px;
  color: var(--white) !important;
}

.hero-copy p {
  font-weight: 400;
  font-size: 16px;
  color: var(--white) !important;
  line-height: 1.5;
}

/* Galería */
.gallery-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.gallery-slide {
  display: none;
}

.gallery-slide.active {
  display: contents;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 300px;
  gap: 32px;
  position: relative;
}

.gallery-grid .img-main {
  grid-column: 1;
  grid-row: 1;
}

.gallery-grid .img-stack {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 280px;
}

.gallery-grid .img-stack .img-half {
  flex: 1;
  min-height: 0;
}

.gallery-grid .img-side {
  grid-column: 3;
  grid-row: 1;
}

/* Fancybox anchor wrappers inside gallery cells must fill their container */
.gallery-grid .img-main>a,
.gallery-grid .img-stack .img-half>a,
.gallery-grid .img-side>a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid-wrap {
  position: relative;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -21px;
  right: -21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.gallery-dot {
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
  transition: width 0.3s, opacity 0.3s;
}

.gallery-dot.active {
  width: 97px;
  opacity: 1;
}

.gallery-dot.inactive {
  width: 19px;
  opacity: 0.25;
}

/* ── Sección de contenido (mapa + info) ─────────────────────────────────────── */
.content-section {
  background: var(--white);
  padding: 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.map-col {
  width: 553px;
  flex-shrink: 0;
}

.map-col img {
  width: 100%;
  height: 354px;
  object-fit: cover;
  display: block;
}

.hotel-map-embed {
  width: 100%;
  height: 354px;
  display: block;
  border: none;
}

.info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-headline {
  font-weight: 700;
  font-size: 35px;
  line-height: 30px;
  color: var(--anthracite);
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  font-family: 'bmwmotorrad-regular';
  display: flex;
  gap: 6px;
  align-items: center;
}

.chip-blue {
  background: rgba(6, 83, 182, 0.05);
  border: 1px solid rgba(6, 83, 182, 0.25);
  color: var(--blue-1);
}

.chip-blue svg {
  max-height: 20px;
  animation: exclusiveFloat 2.5s ease-in-out infinite;
}

.chip-grey {
  background: var(--grey-6);
  border: 1px solid var(--grey-5);
  color: var(--grey-1);
}

.hotel-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--anthracite);
}

/* CTAs */
.cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-outline-blue,
.btn-filled-blue {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: 'bmwmotorrad-heavy';
}

.btn-outline-blue {
  padding: 12px;
  border: 1px solid var(--blue) !important;
  background: var(--white) !important;
  color: var(--blue) !important;
  font-family: 'bmwmotorrad-heavy';
}

.btn-outline-blue:hover {
  background: var(--blue) !important;
  color: var(--white) !important;
}

.btn-filled-blue {
  padding: 12px 16px;
  background: var(--blue) !important;
  color: var(--white) !important;
  border: 1px solid var(--blue) !important;
  font-family: 'bmwmotorrad-heavy';
}

.btn-filled-blue:hover {
  background: var(--blue-1) !important;
  border-color: var(--blue-1) !important;
}

/* Acordeón T&C */
.tc-box {
  background: var(--grey-6);
  padding: 12px;
}

.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 10px;
}

.tc-title {
  font-size: 20px;
  line-height: 22px;
  color: var(--anthracite);
  flex: 1;
  font-family: 'bmwmotorrad-heavy';
}

.tc-chevron {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.tc-chevron.open {
  transform: rotate(180deg);
}

.tc-body {
  font-size: 16px;
  font-weight: 400;
  color: var(--anthracite);
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.2s;
}

.tc-body.open {
  max-height: 400px;
  padding-top: 10px;
}

/* Volver */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--blue) !important;
  cursor: pointer;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.18s;
}

.back-link:hover {
  opacity: 0.75;
}

.back-link .arrow-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ── Footer desktop (compartido) ────────────────────────────────────────────── */
.desk-footer {
  width: 100%;
}

.desk-footer-subscribe {
  background: #f2f2f2;
  padding: 40px 0;
}

.desk-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
}

.desk-footer-left {
  flex: 0 0 50%;
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.desk-footer-title {
  font-size: 16px;
  font-weight: 400;
  color: #212529;
  margin-bottom: 16px;
  line-height: 1.4;
}

.desk-footer-btn {
  display: inline-block;
  padding: 10px 28px;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.desk-footer-sep {
  height: 1px;
  background: #ccc;
  width: 100%;
  margin-bottom: 16px;
}

.desk-footer-social {
  display: flex;
  gap: 20px;
}

.desk-footer-social a {
  font-size: 14px;
  color: #212529;
  text-decoration: none;
}

.desk-footer-social a:hover {
  text-decoration: underline;
}

.desk-footer-links {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.desk-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #212529;
  text-decoration: none;
  line-height: 1.2;
}

.desk-footer-links a:hover {
  text-decoration: underline;
}

.desk-footer-arrow {
  display: inline-flex;
  flex-shrink: 0;
}

.desk-footer-arrow svg {
  width: 20px;
  height: 20px;
}

.desk-footer-policy {
  flex: 0 0 25%;
}

.desk-footer-policy a {
  font-size: 14px;
  color: #212529;
  text-decoration: none;
}

.desk-footer-policy a:hover {
  text-decoration: underline;
}

.desk-footer-bottom {
  background: var(--white);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desk-footer-copy {
  font-size: 12px;
  color: #212529;
}

.desk-footer-makelife {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.desk-footer-makelife-text {
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
  color: var(--anthracite);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.desk-footer-makelife-line {
  height: 3px;
  background: #000;
  width: 169px;
}

/* ── Desktop vs mobile ───────────────────────────────────────────────────────── */
.desktop-only {
  display: block;
  padding-top: var(--header-h);
}

.mobile-only {
  display: none;
  padding-top: var(--header-h);
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .desk-footer {
    display: none;
  }

  /* Header mobile (asumido en el tema, solo ajustes de layout aquí) */

  /* Hero mobile */
  .mobile-hero {
    background: var(--anthracite);
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
  }

  .mobile-breadcrumbs {
    position: absolute;
    top: 4px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 400;
  }

  /* Galería mobile */
  .mobile-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
  }

  .mobile-gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    position: absolute;
    inset: 0;
  }

  .mobile-gallery-img-wrap img.active {
    display: block;
  }

  .mobile-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(38, 38, 38, 0.78);
    border-radius: 120px;
    padding: 4px 8px;
    font-size: 10px;
    color: var(--white);
    font-weight: 400;
  }

  /* Info mobile */
  .mobile-hotel-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-hotel-name {
    font-weight: 700;
    font-size: 35px;
    line-height: 30px;
    color: var(--white)!important;
  }

  .mobile-hotel-tagline {
    font-weight: 700;
    font-size: 16px;
    color: var(--white)!important;
  }

  .mobile-hotel-copy p {
    font-size: 16px;
    font-weight: 400;
    color: var(--white)!important;
    line-height: 1.5;
  }

  /* Secciones mobile */
  .mobile-benefits {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-section-title {
    font-weight: 900;
    font-size: 20px;
    line-height: 22px;
    color: var(--anthracite);
  }

  .mobile-location {
    display: flex;
    flex-direction: column;
  }

  .mobile-location-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }

  .mobile-location .hotel-map-embed {
    height: 300px;
  }

  .mobile-map-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  .mobile-cta-row {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .mobile-cta-row .btn-outline-blue {
    flex: 1;
    min-width: 130px;
    text-align: center;
    justify-content: center;
  }

  .mobile-cta-row .btn-filled-blue {
    width: 100%;
    justify-content: center;
  }

  .mobile-tc {
    padding: 0 16px 12px;
  }

  .mobile-back {
    padding: 12px 16px;
  }

  /* Footer mobile */
  .mobile-footer {
    border-top: 1px solid var(--grey-5);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .mobile-footer-copy {
    font-size: 10px;
    font-weight: 400;
    color: var(--anthracite);
    text-align: center;
    line-height: 1.5;
  }

  .mobile-footer-makelife {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 169px;
  }

  .mobile-footer-makelife-text {
    font-weight: 900;
    font-size: 13px;
    color: var(--anthracite);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .mobile-footer-makelife-line {
    height: 3px;
    background: var(--anthracite);
    width: 169px;
  }
}

@keyframes exclusiveFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}