.cabins {
  padding: 88px 0;
}

.cabins-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

/* GRID: 3 cards por fila */
.cabins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* CARD */
.cabin-card {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(190, 160, 114, 0.16);
  box-shadow: 0 12px 30px rgba(30, 30, 30, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
}

.cabin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(30, 30, 30, 0.08);
}

.cabin-card:focus-within {
  box-shadow:
    0 18px 42px rgba(30, 30, 30, 0.08),
    0 0 0 2px rgba(190, 160, 114, 0.22);
}

/* MEDIA */
.cabin-media {
  position: relative;
  aspect-ratio: 4 / 5.2;
  overflow: hidden;
  background: #d8d8cf;
}

.cabin-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cabin-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.cabin-slide.is-active {
  opacity: 1;
}

/* ARROWS */
.cabin-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 247, 237, 0.18);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
  z-index: 3;
}

.cabin-arrow span {
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-1px);
}

.cabin-arrow--prev {
  left: 14px;
}

.cabin-arrow--next {
  right: 14px;
}

.cabin-media:hover .cabin-arrow,
.cabin-card:focus-within .cabin-arrow {
  opacity: 1;
}

.cabin-arrow:hover {
  background: rgba(246, 247, 237, 0.28);
}

/* DOTS */
.cabin-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.cabin-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cabin-dots button.is-active {
  background: rgba(255, 255, 255, 0.95);
}

/* BODY */
.cabin-body {
  padding: 20px 20px 22px;
}

.cabin-copy h3 {
  margin: 0 0 10px;
  font-family: "AUGE", "ITC Avant Garde Gothic", "Futura", sans-serif;
  font-weight: 500;
  font-size: 1.42rem;
  color: #2c2c2c;
}

.cabin-copy p {
  margin: 0;
  color: #6e6e6e;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* FEATURES */
.cabin-features {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

.cabin-feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabin-feature img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter:
    invert(44%) sepia(16%) saturate(692%) hue-rotate(33deg) brightness(92%) contrast(88%);
}

.cabin-feature span {
  font-size: 0.93rem;
  line-height: 1.3;
  color: #4a4a4a;
  font-family: "ITC Avant Garde Gothic", "Futura", system-ui, sans-serif;
}

/* =========================
   OVERLAY / MODAL
   ========================= */

.cabin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 18, 0.64);
  backdrop-filter: blur(8px);
}

.cabin-modal.is-open {
  display: flex;
}

.cabin-modal-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 28px;
  background: #f6f7ed;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.cabin-modal-media {
  position: relative;
  min-height: 620px;
  background: #d8d8cf;
}

.cabin-modal-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.cabin-modal-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.cabin-modal-slide.is-active {
  opacity: 1;
}

.cabin-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 247, 237, 0.22);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cabin-modal-arrow:hover {
  background: rgba(246, 247, 237, 0.34);
}

.cabin-modal-arrow span {
  font-size: 1.8rem;
  line-height: 1;
}

.cabin-modal-arrow--prev {
  left: 18px;
}

.cabin-modal-arrow--next {
  right: 18px;
}

.cabin-modal-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.cabin-modal-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cabin-modal-dots button.is-active {
  background: rgba(255, 255, 255, 0.96);
}

.cabin-modal-panel {
  position: relative;
  padding: 34px 30px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.cabin-modal-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 96px;
}

.cabin-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.06);
  color: #3b3b3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.cabin-modal-close:hover {
  background: rgba(30, 30, 30, 0.12);
  transform: scale(1.03);
}

.cabin-modal-close span {
  font-size: 1.4rem;
  line-height: 1;
}

.cabin-modal-title {
  margin: 10px 0 12px;
  font-family: "AUGE", "ITC Avant Garde Gothic", "Futura", sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: #2c2c2c;
}

.cabin-modal-text {
  margin: 0 0 22px;
  color: #6e6e6e;
  line-height: 1.7;
  font-size: 1rem;
  max-width: 50ch;
}

.cabin-modal-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
  margin-bottom: 24px;
}

.cabin-modal-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cabin-modal-feature img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter:
    invert(44%) sepia(16%) saturate(692%) hue-rotate(33deg) brightness(92%) contrast(88%);
}

.cabin-modal-feature span {
  font-size: 0.96rem;
  line-height: 1.35;
  color: #4a4a4a;
  font-family: "ITC Avant Garde Gothic", "Futura", system-ui, sans-serif;
}

.cabin-modal-meta {
  padding-top: 18px;
  border-top: 1px solid rgba(190, 160, 114, 0.18);
}

.cabin-modal-meta p {
  margin: 0;
  color: #6e6e6e;
  line-height: 1.7;
  font-size: 0.96rem;
}

/* MODAL - AVAILABILITY */
.cabin-modal-availability {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(190, 160, 114, 0.18);
}

.cabin-modal-section-heading h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c2c;
}

.cabin-modal-section-heading p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: #6e6e6e;
  line-height: 1.5;
}

.cabin-modal-calendar-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 30, 30, 0.08);
  background: #ffffff;
}

.cabin-modal-calendar-frame iframe {
  width: 100%;
  height: 185px;
  border: 0;
  display: block;
}

.cabin-modal-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #8a8a8a;
  line-height: 1.5;
}

.cabin-modal-actions {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 18px;
  padding-top: 14px;
  background: linear-gradient(to top, #f6f7ed 72%, rgba(246, 247, 237, 0));
  z-index: 4;
}

.cabin-modal-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .cabins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabin-modal-dialog {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .cabin-modal-media {
    min-height: 420px;
  }

  .cabin-modal-panel {
    max-height: 46vh;
    padding: 28px 22px 18px;
  }

  .cabin-modal-scroll {
    padding-bottom: 92px;
  }

  .cabin-modal-actions {
    left: 22px;
    right: 22px;
    bottom: 18px;
  }

  .cabin-modal-calendar-frame iframe {
    height: 200px;
  }
}

@media (max-width: 680px) {
  .cabins {
    padding: 72px 0;
  }

  .cabins-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cabin-media {
    aspect-ratio: 4 / 4.7;
  }

  .cabin-arrow {
    opacity: 1;
    width: 38px;
    height: 38px;
  }

  .cabin-body {
    padding: 18px 16px 20px;
  }

  .cabin-copy h3 {
    font-size: 1.26rem;
  }

  .cabin-copy p {
    font-size: 0.95rem;
  }

  .cabin-features {
    gap: 12px 10px;
  }

  .cabin-feature span {
    font-size: 0.9rem;
  }

  .cabin-modal {
    padding: 12px;
  }

  .cabin-modal-dialog {
    border-radius: 20px;
  }

  .cabin-modal-media {
    min-height: 300px;
  }

  .cabin-modal-panel {
    padding: 22px 18px 16px;
  }

  .cabin-modal-title {
    font-size: 1.55rem;
  }

  .cabin-modal-text,
  .cabin-modal-meta p {
    font-size: 0.94rem;
  }

  .cabin-modal-features {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }

  .cabin-modal-feature span {
    font-size: 0.9rem;
  }

  .cabin-modal-scroll {
    padding-bottom: 88px;
  }

  .cabin-modal-actions {
    left: 18px;
    right: 18px;
    bottom: 14px;
  }

  .cabin-modal-calendar-frame iframe {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cabin-slide,
  .cabin-modal-slide {
    transition: none;
  }

  .cabin-arrow,
  .cabin-modal-arrow,
  .cabin-card,
  .cabin-modal-close {
    transition: none;
  }
}

.cabin-modal-media-actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cabin-modal-media-actions .btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.cabin-modal-dots {
  bottom: 94px;
}
@media (max-width: 680px) {
  .cabin-modal-media-actions {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .cabin-modal-media-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .cabin-modal-dots {
    bottom: 82px;
  }
}