.lodge-detail-trigger {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #72561f !important;
  font: inherit !important;
  font-weight: 600 !important;
  line-height: inherit !important;
  text-align: inherit !important;
  text-decoration: underline;
  text-decoration-color: rgba(143, 108, 40, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.lodge-detail-trigger:hover {
  color: #3f3217 !important;
  text-decoration-color: currentColor;
}

.lodge-detail-trigger:focus-visible {
  outline: 2px solid #8f6c28 !important;
  outline-offset: 3px;
}

.lodge-detail-dialog {
  width: min(960px, calc(100vw - 32px));
  height: min(640px, 88vh);
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fffaf1;
  color: #1d1d1f;
  box-shadow: 0 28px 80px rgba(8, 23, 17, 0.34);
}

.lodge-detail-dialog::backdrop {
  background: rgba(5, 17, 12, 0.72);
  backdrop-filter: blur(7px);
}

.lodge-detail-dialog__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(8, 23, 17, 0.74);
  color: #fffaf1;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.lodge-detail-dialog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  height: 100%;
}

.lodge-detail-dialog__gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  background: #13271e;
}

.lodge-detail-dialog__figure {
  display: grid;
  min-height: 0;
  margin: 0;
  background: #13271e;
}

.lodge-detail-dialog__figure img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
}

.lodge-detail-dialog__caption {
  position: absolute;
  right: 18px;
  bottom: 82px;
  left: 18px;
  color: #fffaf1;
  font-size: 0.84rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.lodge-detail-dialog__nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(8, 23, 17, 0.64);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.lodge-detail-dialog__nav--previous { left: 14px; }
.lodge-detail-dialog__nav--next { right: 14px; }

.lodge-detail-dialog__thumbs {
  display: flex;
  gap: 8px;
  min-height: 76px;
  padding: 10px 14px;
  overflow-x: auto;
  background: #13271e;
}

.lodge-detail-dialog__thumb {
  flex: 0 0 74px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  opacity: 0.62;
  cursor: pointer;
}

.lodge-detail-dialog__thumb[aria-current="true"] {
  border-color: #e0c184;
  opacity: 1;
}

.lodge-detail-dialog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lodge-detail-dialog__content {
  align-self: center;
  padding: clamp(32px, 5vw, 58px);
  overflow-y: auto;
}

.lodge-detail-dialog__eyebrow {
  margin: 0 0 10px;
  color: #8f6c28;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lodge-detail-dialog__title {
  margin: 0 0 8px;
  color: #14251d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
}

.lodge-detail-dialog__location {
  margin: 0 0 24px;
  color: #6d746f;
  font-size: 0.92rem;
}

.lodge-detail-dialog__summary {
  margin: 0 0 24px;
  color: #3f4742;
  font-size: 0.98rem;
  line-height: 1.75;
}

.lodge-detail-dialog__content h3 {
  margin: 0 0 12px;
  color: #14251d;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lodge-detail-dialog__amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lodge-detail-dialog__amenities li {
  position: relative;
  padding-left: 15px;
  color: #555e58;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lodge-detail-dialog__amenities li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b28739;
  content: "";
}

@media (max-width: 760px) {
  .lodge-detail-dialog {
    width: min(100% - 18px, 620px);
    height: auto;
    max-height: calc(100dvh - 18px);
    border-radius: 16px;
    overflow-y: auto;
  }

  .lodge-detail-dialog__layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .lodge-detail-dialog__figure {
    min-height: 280px;
    max-height: 42vh;
  }

  .lodge-detail-dialog__caption {
    bottom: 76px;
  }

  .lodge-detail-dialog__content {
    padding: 28px 24px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lodge-detail-trigger { transition: none; }
}
