/* Lodging spotlight: same shell as place tiles (rounded thumb + text below, no action icons) */
.lodging-spotlights {
  margin: 32px 0 40px;
}

a.lodging-spotlight-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.lodging-spotlight-tile:focus-visible {
  outline: 2px solid var(--focus-ring, #0a7);
  outline-offset: 2px;
  border-radius: var(--radius-md, 12px);
}

.lodging-spotlight-tile .card__bottom.bottom {
  text-align: left;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.lodging-spotlight-tile .place-tile__title-row {
  margin-bottom: 0;
  justify-content: flex-start;
  width: 100%;
}

.lodging-spotlight-tile .place-tile__title-left {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.lodging-spotlight-tile .card__name.name {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lodging-spotlight-tile .card__sub.sub {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  text-align: left;
  width: 100%;
}

.lodging-spotlight-tile .lodging-spotlight-tile__media .img {
  border: 0;
  vertical-align: middle;
  position: relative;
  z-index: 0;
}

/* Pill overlay: positioning anchor must be this wrapper (not only global .place-tile__thumb-wrap). */
.lodging-spotlight-tile .lodging-spotlight-tile__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lodging-spotlight-tile .lodging-spotlight-tile__pill {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
}

/* Carousel arrows: center on ~square thumb (not 3:4 route tile) */
.carousel-wrap--lodging-spotlights:has(> .home-popular-routes-carousel) > .arrows .arrow {
  top: calc(var(--carousel-home-popular-route-width, 25vw) / 2);
  transform: translateY(-50%);
}

.lodging-spotlight-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lodging-spotlight-modal[hidden] {
  display: none !important;
}
.lodging-spotlight-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.lodging-spotlight-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-sizing: border-box;
}
.lodging-spotlight-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-size: 22px;
}
.lodging-spotlight-modal__gallery {
  display: none; /* legacy multi-grid replaced by .lodging-sheet-gallery */
}
.lodging-spotlight-modal__title {
  margin: 16px 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
}
.lodging-spotlight-modal__lead {
  margin: 0 0 14px;
  color: var(--muted, #666);
}
.lodging-spotlight-modal__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 20px;
}
.lodging-spotlight-modal__cols--contact-only {
  grid-template-columns: minmax(0, 1fr);
}
.lodging-spotlight-modal__cols h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.lodging-spotlight-modal__rooms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lodging-spotlight-modal__room {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}
.lodging-spotlight-modal__room-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.lodging-spotlight-modal__room-meta,
.lodging-spotlight-modal__room-desc {
  margin: 4px 0 0;
  color: var(--muted, #666);
}
@media (max-width: 768px) {
  .lodging-spotlight-modal__cols,
  .lodging-spotlight-modal__room {
    grid-template-columns: 1fr;
  }
}

/* Shared sheet gallery: one large photo + thumbs on it */
.lodging-sheet-gallery {
  margin: 0 0 4px;
}
.lodging-sheet-gallery__main {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft, #f0f0f0);
}
.lodging-sheet-gallery__main > img[data-ls-sheet-gallery-main] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lodging-sheet-gallery__thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 28px 10px 10px;
  overflow-x: auto;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  box-sizing: border-box;
}
.lodging-sheet-gallery__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  opacity: 0.85;
}
.lodging-sheet-gallery__thumb.is-active {
  border-color: #fff;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.lodging-sheet-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Standalone presentation page */
body.lodging-presentation-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-soft, #f4f5f7);
}
.lodging-presentation-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 16px 32px;
  box-sizing: border-box;
}
.lodging-presentation-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
.lodging-presentation-card .lodging-spotlight-modal__cols {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.lodging-presentation-card .lodging-spotlight-modal__cols--contact-only {
  grid-template-columns: minmax(0, 1fr);
}
.lodging-presentation-footer {
  margin-top: 28px;
  text-align: center;
}
.lodging-presentation-footer__logo {
  display: inline-block;
  line-height: 0;
  opacity: 0.85;
}
.lodging-presentation-footer__logo:hover {
  opacity: 1;
}
.lodging-presentation-footer__logo img {
  display: block;
  height: 22px;
  width: auto;
}
body.lodging-presentation-page--embed {
  background: #fff;
  min-height: 0;
}
body.lodging-presentation-page--embed .lodging-presentation-wrap {
  width: 100%;
  padding: 12px 14px 16px;
}
body.lodging-presentation-page--embed .lodging-presentation-card {
  box-shadow: none;
  border-radius: 12px;
  padding: 10px;
}
@media (max-width: 640px) {
  .lodging-sheet-gallery__main {
    height: 280px;
  }
  .lodging-presentation-card .lodging-spotlight-modal__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Route-builder / carousel: presentation sheet (iframe) */
.lodging-presentation-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: auto;
}
.lodging-presentation-modal[hidden] {
  display: none !important;
  pointer-events: none;
}
.lodging-presentation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.lodging-presentation-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  height: auto;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
}
.lodging-presentation-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #111;
}
.lodging-presentation-modal__frame {
  display: block;
  width: 100%;
  height: 320px; /* updated on load to content height */
  max-height: 90vh;
  border: 0;
  background: #fff;
}
