/**
 * Ficha de apartamento Asten (apartamento.php)
 */

body.apartamento-asten-page {
  background: rgb(244 246 250 / var(--tw-bg-opacity, 1));
  color: #15243e;
}

.apt-main {
  padding-top: 0;
}

/* —— Hero —— */
.apt-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  max-height: 92vh;
  overflow: visible;
  background: #0f1a2e;
}

.apt-hero__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.apt-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.apt-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.apt-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

.apt-hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr min(20rem, 42vw);
  align-items: end;
  gap: 1.5rem 2rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5.5rem 1rem 2rem;
  box-sizing: border-box;
  pointer-events: none;
}

.apt-hero__bottom > * {
  pointer-events: auto;
}

@media (max-width: 767px) {
  .apt-hero__bottom {
    grid-template-columns: 1fr;
    padding-bottom: 1.5rem;
  }
}

.apt-hero__content {
  min-width: 0;
  max-width: 36rem;
  padding-bottom: 0.25rem;
}

.apt-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
}

.apt-hero__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.apt-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #15243e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.apt-hero__nav:hover {
  background: #fff;
}

.apt-hero__nav--prev {
  left: 1.25rem;
}

.apt-hero__nav--next {
  right: 1.25rem;
}

@media (min-width: 768px) {
 
}

.apt-hero-booking {
  width: 100%;
  max-width: 20rem;
  justify-self: end;
  position: relative;
  z-index: 8;
}

@media (max-width: 767px) {
  .apt-hero-booking {
    max-width: 100%;
    justify-self: stretch;
  }

  .apt-hero__nav--next {
    top: 42%;
    right: 0.75rem;
  }
}

.apt-booking-card--hero {
  position: relative;
  overflow: visible;
  background: #fff;
  border: 1px solid #e5e2dc;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.apt-calendar-mount .day-item {
  min-height: 2.85rem;
}

/* Días no disponibles: pasado, ocupados o sin precio (como Genteel) */
.apt-calendar-mount .litepicker .container__days .day-item.is-locked,
.apt-calendar-mount .litepicker .container__days .day-item.is-unavailable {
  color: #bdbdbd !important;
  text-decoration: line-through !important;
  text-decoration-color: #bdbdbd !important;
  -webkit-text-decoration-color: #bdbdbd !important;
  cursor: default !important;
  box-shadow: none !important;
  pointer-events: none;
}

.apt-calendar-mount .litepicker .container__days .day-item.is-locked:hover,
.apt-calendar-mount .litepicker .container__days .day-item.is-unavailable:hover {
  color: #bdbdbd !important;
  box-shadow: none !important;
}

.apt-calendar-mount .litepicker .container__days .day-item:not(.is-locked):not(.is-unavailable):not(.is-start-date):not(.is-end-date) {
  color: #1a1a1a !important;
  font-weight: 500;
}

.apt-calendar-mount .day-item .day-price {
  display: block;
  font-size: 0.55rem;
  line-height: 1.1;
  color: #c49c60;
  margin-top: 2px;
  font-weight: 500;
}

.apt-calendar-mount .day-item.is-locked .day-price,
.apt-calendar-mount .day-item.is-unavailable .day-price {
  display: none !important;
}

.apt-calendar-mount .litepicker .container__days .day-item.is-start-date .day-price,
.apt-calendar-mount .litepicker .container__days .day-item.is-end-date .day-price {
  color: rgba(255, 255, 255, 0.92) !important;
}

.apt-booking-dates-wrap {
  position: relative;
  z-index: 2;
}

.apt-booking-dates-wrap .apt-booking-fields {
  margin-bottom: 0;
}

.apt-booking-guests-wrap {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem;
}

.apt-booking-fields--guests {
  margin-bottom: 0;
}

.apt-booking-value--guests {
  width: 100%;
  justify-content: space-between;
  font-weight: 500;
}

.apt-guests-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 110;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 1.15rem 1.25rem 1.25rem;
}

.apt-guests-popover.is-open {
  display: block;
}

.apt-guests-popover__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem 0;
}

.apt-guests-popover__row:first-child {
  padding-top: 0;
}

.apt-guests-popover__row:last-child {
  padding-bottom: 0;
}

.apt-guests-popover__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.apt-guests-popover__title {
  font-size: 0.9rem;
  color: #2d2d2d;
  font-weight: 600;
  line-height: 1.25;
}

.apt-guests-popover__title::after {
  content: ":";
}

.apt-guests-popover__hint {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
  line-height: 1.3;
}

.apt-guests-popover__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.apt-guests-count {
  min-width: 1.25rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d2d2d;
  font-variant-numeric: tabular-nums;
}

.apt-guests-step-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  background: #f3f3f3;
  color: #4b5563;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.apt-guests-step-btn:hover:not(:disabled):not(.is-disabled) {
  background: #ebebeb;
  border-color: #d1d5db;
  color: #1f2937;
}

.apt-guests-step-btn.is-disabled,
.apt-guests-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #c4c4c4;
  background: #f8f8f8;
}

.apt-calendar-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  width: 586px;
  background: #fff;
  border: 1px solid #e5e2dc;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  padding: 0.5rem;
  overflow: visible;
}

.apt-calendar-popover.is-open {
  display: block;
}

/* Evitar que el campo huéspedes quede visible bajo el calendario */
.apt-booking-card--hero.is-calendar-open .apt-booking-guests-wrap {
  visibility: hidden;
  pointer-events: none;
}

.apt-calendar-mount {
  overflow: visible;
}

.apt-calendar-mount .litepicker {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 100% !important;
  font-family: var(--font-sans);
  box-shadow: none !important;
  --litepicker-day-color: #1a1a1a;
  --litepicker-day-color-hover: #15243e;
  --litepicker-is-in-range-color: #e9eef6;
  --litepicker-is-start-color: #fff;
  --litepicker-is-start-color-bg: #15243e;
  --litepicker-is-end-color: #fff;
  --litepicker-is-end-color-bg: #15243e;
}

.apt-calendar-mount .container__main {
  border: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
}

.apt-calendar-mount .container__months {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.apt-calendar-mount .month-item {
  flex: 1 1 50% !important;
  min-width: 0 !important;
}

@media (max-width: 640px) {
  .apt-calendar-popover {
    right: 50%;
    transform: translateX(50%);
    width: calc(100vw - 1.5rem);
  }
}

.apt-hero__counter {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 4;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
}

/* —— Kicker compartido —— */
.apt-kicker {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c49c60;
  margin-bottom: 1.25rem;
}

/* —— La estancia —— */
.apt-estancia {
  background: #fff;
  padding: 4.2rem 0;
}

.apt-estancia__lead {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
  color: #15243e;
  margin: 0 auto 2.5rem;
}

.apt-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apt-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #5c5348;
}

.apt-stats svg {
  color: #c49c60;
}

.apt-rooms {
  margin-top: 3.5rem;
  padding-bottom: 1rem;
}

.apt-rooms__title {
  font-size: 1.75rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: #15243e;
}

.apt-rooms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .apt-rooms__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.apt-room-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e4de;
}

.apt-room-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.apt-room-card:hover .apt-room-card__img img {
  transform: scale(1.03);
}

.apt-room-card__name {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5c5348;
  text-align: center;
}

/* —— El refugio —— */
.apt-refugio {
  background: rgb(244 246 250 / var(--tw-bg-opacity, 1));
  padding: 4rem 0 4.5rem;
}

.apt-refugio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .apt-refugio__grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3.5rem;
  }
}

.apt-refugio__media {
  overflow: hidden;
}

.apt-refugio__media img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.apt-refugio__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  color: #15243e;
}

.apt-refugio__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4a5568;
}

.apt-refugio__text p {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-family: 'Inter';
}

.apt-refugio-readmore__excerpt,
.apt-refugio-readmore__full {
  margin: 0 0 1rem;
}

.apt-refugio-readmore__btn {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--asten-gold, #c49c60);
  cursor: pointer;
  transition: color 0.15s ease;
}

.apt-refugio-readmore__btn:hover {
  color: var(--asten-navy, #15243e);
}

.apt-refugio-readmore__btn:focus-visible {
  outline: 2px solid var(--asten-navy, #15243e);
  outline-offset: 3px;
}

/* —— Ficha apartamento (estilo amenities Asten) —— */
.apt-ficha {
  padding: 5rem 0 6rem;
  background: #ffffff;
  overflow: visible;
}

.apt-ficha__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.apt-ficha__band {
  width: 100%;
}

.apt-ficha__band--soft {
  background-color:rgb(244 246 250 / var(--tw-bg-opacity, 1));
  padding: 6rem 0;
  margin: 0rem 0 4rem 0;
}

.apt-ficha__section {
  padding: 2.5rem 0;
}

.apt-ficha__inner > .apt-ficha__section:first-child {
  padding-top: 0;
}

.apt-ficha__band--soft .apt-ficha__section {
  padding: 0;
}

.apt-ficha__band--soft .apt-ficha__section--spaced {
  margin-top: 3rem;
}

.apt-ficha__title {
  margin: 0 0 1.25rem;
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: normal;
  color: #15243e;
}

@media (max-width: 640px) {
  .apt-ficha__title {
    font-size: 2rem;
  }
}

.apt-ficha__box {
  background: #fff;
  padding: 2.5rem 2rem;
}

.apt-icon-line,
.apt-stats svg {
  color: #c49c60;
  flex-shrink: 0;
}

/* Equipamiento: icono línea + texto (como apt-stats) */
.apt-ficha__equip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .apt-ficha__equip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .apt-ficha__equip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.apt-ficha__equip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}

.apt-ficha__equip-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.apt-ficha__equip-title {
  font-size: 0.80rem;
  font-weight: 400;
  color: #15243e;
  line-height: 1;
}

.apt-ficha__equip-sub {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

.apt-ficha__equip-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.apt-ficha__equip-all-btn {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border: 1px solid #1a2b40;
  background: transparent;
  color: #1a2b40;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.apt-ficha__equip-all-btn:hover {
  background: #243652;
  border-color: #243652;
  color: #fff;
}

.apt-ficha__equip-all-btn:focus-visible {
  outline: 2px solid var(--asten-gold, #c49c60);
  outline-offset: 3px;
}

/* Servicios, normas, info: grid amenities con punto dorado */
.apt-ficha__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem 1.5rem;
}

@media (min-width: 640px) {
  .apt-ficha__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .apt-ficha__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.apt-ficha__list--info {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .apt-ficha__list--info {
    grid-template-columns: 1fr;
  }
}

.apt-ficha__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.80rem;
  color: #15243e;
  line-height: 1.45;
  font-family: 'Inter';
}

.apt-ficha__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  background: #c49c60;
}

.apt-ficha__list--info li {
  font-weight: 400;
}

.apt-ficha__list li strong,
.apt-ficha__list--info li strong {
  font-weight: inherit;
}

/* Modal equipamiento por habitación */
.apt-equip-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.apt-equip-modal[hidden] {
  display: none;
}

.apt-equip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 36, 62, 0.55);
}

.apt-equip-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: min(85vh, 640px);
  background: #fff;
  border: 1px solid #e5e2dc;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.apt-equip-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e5e2dc;
}

.apt-equip-modal__title {
  margin: 0;
}

.apt-equip-modal__close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 0.25rem;
}

.apt-equip-modal__close:hover {
  color: var(--asten-navy, #15243e);
}

.apt-equip-modal__body {
  overflow-y: auto;
  padding: 1rem 1.15rem 1.25rem;
}

.apt-equip-modal__room {
  border: 1px solid #e5e2dc;
  padding: 1rem;
  margin-bottom: 1rem;
}

.apt-equip-modal__room:last-child {
  margin-bottom: 0;
}

.apt-equip-modal__room-title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--asten-navy, #15243e);
}

.apt-equip-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.apt-equip-modal__tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  background: var(--asten-bg-accent, #e9eef6);
  color: var(--asten-navy, #15243e);
  border-radius: 2px;
}

.apt-equip-modal__empty {
  text-align: center;
  color: #6b7280;
  font-size: 0.85rem;
  padding: 2rem 0;
}

/* —— Widget reserva (hero) —— */
.apt-datepicker-hidden {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

.apt-calendar-mount .month-item {
  padding: 0.5rem !important;
}

.apt-calendar-mount .litepicker .container__days .day-item.is-in-range {
  background: #e9eef6 !important;
  color: #1a1a1a !important;
}

.apt-calendar-mount .litepicker .container__days .day-item.is-start-date,
.apt-calendar-mount .litepicker .container__days .day-item.is-end-date {
  background: #15243e !important;
  color: #fff !important;
}

.apt-calendar-mount .litepicker .container__days .day-item.is-start-date:hover,
.apt-calendar-mount .litepicker .container__days .day-item.is-end-date:hover {
  color: #fff !important;
}


.apt-booking-card {
  background: #fff;
  border: 1px solid #e5e2dc;
  padding: 1.5rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  width: 400px;
}

.apt-booking-card__price {
  font-size: 1.65rem;
  font-weight: 500;
  color: #15243e;
  margin: 0 0 1.25rem;
}

.apt-booking-card__per {
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
}

.apt-booking-fields {
  border: 1px solid #e5e2dc;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.apt-booking-row {
  border-bottom: 1px solid #e5e2dc;
}

.apt-booking-row:last-child {
  border-bottom: none;
}

.apt-booking-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.apt-booking-row--split .apt-booking-field:first-child {
  border-right: 1px solid #e5e2dc;
}

.apt-booking-field {
  padding: 0.85rem 1rem;
}

.apt-booking-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.35rem;
}

.apt-booking-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  color: #15243e;
  cursor: pointer;
  font-family: inherit;
}

.apt-booking-value:hover {
  color: #c49c60;
}

.apt-booking-field--guests .apt-guest-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #15243e;
}

.apt-guest-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #15243e;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}

.apt-guest-btn:hover {
  border-color: #15243e;
}

.apt-tarifas-wrap {
  margin-bottom: 1rem;
}

.apt-tarifas-unavailable {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  padding: 0.75rem 0;
}

.apt-tarifas-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apt-tarifa-option {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e5e2dc;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.apt-tarifa-option:hover {
  background: var(--asten-bg-soft, #f4f6fa);
  border-color: #d1d5db;
}

.apt-tarifa-option:has(.apt-tarifa-option__radio:checked) {
  border-color: var(--asten-navy, #15243e);
  background: var(--asten-bg-accent, #e9eef6);
  box-shadow: 0 0 0 1px var(--asten-navy, #15243e);
}

.apt-tarifa-option__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Radio Asten (dorado relleno, sin azul del navegador) */
.apt-tarifa-option__radio {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  border: 2px solid var(--asten-gold, #c49c60);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.apt-tarifa-option__radio:checked {
  border-color: var(--asten-gold, #c49c60);
  background-color: var(--asten-gold, #c49c60);
}

.apt-tarifa-option__radio:focus,
.apt-tarifa-option__radio:focus-visible {
  outline: none;
  box-shadow: none;
}

.apt-tarifa-option__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--asten-navy, #15243e);
}

.apt-tarifa-option:has(.apt-tarifa-option__radio:checked) .apt-tarifa-option__title {
  color: var(--asten-gold, #c49c60);
}

.apt-tarifa-option__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}

.apt-tarifa-option__detail {
  font-size: 0.68rem;
  line-height: 1.45;
  color: #6b7280;
  flex: 1;
}

.apt-tarifa-option__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--asten-navy, #15243e);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.apt-tarifa-option:has(.apt-tarifa-option__radio:checked) .apt-tarifa-option__price {
  font-weight: 700;
  color: var(--asten-navy, #15243e);
}

.apt-booking-cta {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #15243e;
  color: #fff;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.apt-booking-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.apt-booking-cta:hover:not(:disabled) {
  background: #243652;
}

.apt-booking-note {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.85rem 0 0;
}

.apt-ficha__corporativo {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(21, 36, 62, 0.08);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(21, 36, 62, 0.78);
}

.apt-ficha__corporativo p {
  margin: 0 0 0.5rem;
}

.apt-ficha__corporativo p:last-child {
  margin-bottom: 0;
}

/* —— Botón galería en hero (misma estética que 01/05), debajo del navbar —— */
.apt-hero__gallery-btn {
  position: absolute;
  top: 6.25rem;
  left: 1.5rem;
  z-index: 6;
  margin: 0;
  display: inline-block;
  border: none;
  border-radius: 2px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.2s ease;
  pointer-events: auto;
}

.apt-hero__gallery-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .apt-hero__gallery-btn {
    top: 5.5rem;
    left: 1rem;
  }
}

/* —— Galería a pantalla completa —— */
.apt-gallery {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.apt-gallery[hidden] {
  display: none !important;
}

.apt-gallery.is-open {
  display: flex;
}

.apt-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.88);
  backdrop-filter: blur(4px);
}

.apt-gallery__inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.apt-gallery__viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: min(70vh, 720px);
  max-height: calc(100vh - 5rem);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.apt-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.apt-gallery__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.apt-gallery__slide img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
  display: block;
  background: #111;
}

.apt-gallery__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #15243e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(-100%);
  margin-top: -0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.apt-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #15243e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.apt-gallery__nav:hover {
  background: #fff;
}

.apt-gallery__nav--prev {
  left: -1.25rem;
}

.apt-gallery__nav--next {
  right: -1.25rem;
}

@media (max-width: 767px) {
  .apt-gallery__nav--prev {
    left: 0.25rem;
  }

  .apt-gallery__nav--next {
    right: 0.25rem;
  }

  .apt-gallery__close {
    top: 0.5rem;
    right: 0.5rem;
    transform: none;
    margin-top: 0;
  }

  .apt-gallery__inner {
    width: 100%;
  }
}

.apt-gallery__counter {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

body.apt-gallery-open {
  overflow: hidden;
}

/* Navbar fija sobre hero y contenido */
body.apartamento-asten-page .asten-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* —— Valoraciones y reviews —— */
.apt-stars {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
  color: #d1d5db;
}

.apt-stars__fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: calc(var(--score, 0) / 10 * 100%);
  color: #eab308;
}

.apt-reviews-carousel {
  margin: 2rem 0;
  padding: 2.5rem 0;
  background: #f4f6fa;
}

.apt-reviews-carousel__inner .apt-ficha__title {
  margin-bottom: 1.5rem;
}

.apt-reviews-swiper-wrap {
  position: relative;
}

.apt-reviews-swiper {
  display: block;
  width: 100%;
}

.apt-review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 12.5rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 26, 46, 0.08);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.apt-review-card:hover {
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.12);
}

.apt-review-card__top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #111827;
}

.apt-review-card__name {
  font-size: 0.875rem;
}

.apt-review-card__score {
  font-size: 1.5rem;
  font-weight: 600;
}

.apt-review-card__date {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.15rem 0 0.5rem;
}

.apt-review-card__excerpt {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.45;
}

.apt-reviews-swiper-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.apt-reviews-swiper-prev,
.apt-reviews-swiper-next {
  border: none;
  background: transparent;
  color: #15243e;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.apt-reviews-carousel__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.apt-reviews-all-btn {
  border: none;
  background: #15243e;
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.apt-reviews-all-btn:hover {
  background: rgba(21, 36, 62, 0.88);
}

.apt-review-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.apt-review-modal[hidden] {
  display: none !important;
}

.apt-review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.apt-review-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.apt-review-modal__panel--wide {
  max-width: 42rem;
}

.apt-review-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.apt-review-modal__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.apt-review-modal__close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.apt-review-modal__body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
}

body.apt-review-modal-open {
  overflow: hidden;
}

.apt-reviews-all-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apt-reviews-all-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apt-reviews-all-item__date {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.apt-reviews-all-item__text {
  margin: 0.5rem 0 0;
  white-space: pre-line;
}

.apt-reviews-all-item__reply {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

/* Litepicker: ocultar botón/enlace suelto "Calendar" fuera del popover de reserva */
body.apartamento-asten-page .litepicker-open,
body.apartamento-asten-page .litepicker-open-button,
body.apartamento-asten-page a.litepicker-open,
body.apartamento-asten-page .litepicker-backdrop,
body.apartamento-asten-page .apt-ficha .litepicker,
body.apartamento-asten-page .apt-ficha__section > .litepicker-open,
body.apartamento-asten-page .apt-ficha__box ~ .litepicker-open {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
