/* v1-6-1: Stays parent page media-mapped to confirmed 2026/05 WordPress Media Library URLs. */

:root {
  --ms-pill-gap: 1.5rem;
}

.ms-stays-template .ms-hero--stays::before {
  background-image:
    linear-gradient(
      to bottom,
      rgba(26, 39, 48, 0.16) 10%,
      rgba(26, 39, 48, 0.48) 55%,
      rgba(26, 39, 48, 0.64) 88%
    ),
    radial-gradient(circle at 28% 20%, rgba(213, 75, 15, 0.20), transparent 34%),
    linear-gradient(135deg, var(--ms-color-primary), var(--ms-color-primary-dark));
  background-size: cover;
  background-position: 50% 60%;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .ms-stays-template .ms-hero--stays::before {
    background-image:
      linear-gradient(
        to bottom,
        rgba(26, 39, 48, var(--ms-hero-overlay-opacity)) 10%,
        rgba(26, 39, 48, 0.40) 55%,
        rgba(26, 39, 48, 0.64) 88%
      ),
      radial-gradient(circle at 50% 18%, rgba(213, 75, 15, 0.18), transparent 34%),
      linear-gradient(135deg, var(--ms-color-primary), var(--ms-color-primary-dark));
    background-position: 50% 50%;
  }
}

@media (min-width: 768px) {
  .ms-stays-template .ms-services-grid.ms-services-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ms-stays-template .ms-trip-card {
  position: relative;
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: rgba(71, 91, 102, 0.14);
}

.ms-stays-template .ms-services-card.ms-trip-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: rgba(71, 91, 102, 0.14);
}

.ms-stays-template .ms-trip-media {
  width: 100%;
  height: 190px;
  overflow: hidden;
  margin: 0;
  background: rgba(71, 91, 102, 0.08);
}

@media (min-width: 900px) {
  .ms-stays-template .ms-trip-media {
    height: 210px;
  }
}

.ms-stays-template .ms-trip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ms-stays-template .ms-stay-media-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(213, 75, 15, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.16), rgba(50, 66, 75, 0.25));
  color: var(--ms-color-primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.ms-stays-template .ms-trip-body {
  padding: 1.1rem 1.5rem 1.6rem;
}

.ms-stays-template #ms-stays-condos .ms-u-divider-top {
  border-top: none;
  padding-top: 0;
  margin-top: var(--ms-pill-gap);
  display: flex;
  justify-content: center;
}

/* v1-10-9: Eton parent cards now match the hotel-pick card click and CTA rhythm. */
.ms-stays-template .ms-stay-unit-card {
  position: relative;
}

.ms-stays-template .ms-stay-unit-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.ms-stays-template .ms-stay-unit-card-link:hover,
.ms-stays-template .ms-stay-unit-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.ms-stays-template .ms-stay-unit-card-link:focus-visible {
  outline: 3px solid rgba(213, 75, 15, 0.38);
  outline-offset: 4px;
}

.ms-stays-template .ms-stay-unit-card .ms-btn--pill {
  width: min(100%, 292px);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (hover: hover) and (pointer: fine) {
  .ms-stays-template .ms-stay-unit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
  }
}

.ms-stays-template .ms-btn--pill {
  background-color: rgba(71, 91, 102, 0.10);
  color: var(--ms-color-primary-dark);
  border-color: rgba(71, 91, 102, 0.18);
  box-shadow: none;
  text-decoration: none;
}

.ms-stays-template .ms-btn--pill:hover,
.ms-stays-template .ms-btn--pill:focus-visible {
  background-color: var(--ms-color-primary);
  border-color: var(--ms-color-primary);
  color: #ffffff;
  text-decoration: none;
}

.ms-stays-template .ms-hotel-card {
  position: relative;
}

/* v1-15-4: each Stays destination card is one native link on all devices. */
.ms-stays-template .ms-hotel-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.ms-stays-template .ms-hotel-card-link:hover,
.ms-stays-template .ms-hotel-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.ms-stays-template .ms-hotel-card-link:focus-visible {
  outline: 3px solid rgba(213, 75, 15, 0.38);
  outline-offset: 4px;
}

.ms-stays-template .ms-card-head {
  padding: 1.35rem 1.5rem 0;
}

.ms-stays-template .ms-card-title {
  text-align: center;
  margin: 0;
}

.ms-stays-template .ms-card-subtitle {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ms-color-muted);
  font-weight: 600;
}

.ms-stays-template .ms-card-divider {
  width: 70%;
  max-width: 220px;
  height: 1px;
  background: var(--ms-color-border-soft);
  margin: 0.95rem auto 1.05rem;
}

.ms-stays-template .ms-card-body {
  padding: 0 1.5rem 0;
}

.ms-stays-template .ms-card-foot {
  padding: var(--ms-pill-gap) 1.5rem 1.45rem;
}

.ms-stays-template .ms-hotel-card .ms-card-foot {
  display: flex;
  justify-content: center;
}

.ms-stays-template .ms-hotel-pill {
  position: relative;
  z-index: 3;
}

.ms-stays-template .ms-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 1.1rem;
}

.ms-stays-template .ms-u-center-mt-2 {
  margin-top: 2rem;
  text-align: center;
}

.ms-stays-template .ms-stays-qc-center-note {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.ms-stays-template .ms-section-divider {
  width: 160px;
  height: 1px;
  background: var(--ms-color-border-soft);
  margin: 1.15rem auto 2rem;
}

.ms-stays-template .ms-trip-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.ms-stays-template .ms-trip-list li,
.ms-stays-template .ms-u-list-compact li {
  margin-bottom: 0.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .ms-stays-template .ms-hotel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    border-color: rgba(0, 0, 0, 0.10);
  }

  .ms-stays-template .ms-hotel-card:hover .ms-hotel-pill {
    background: var(--ms-color-primary);
    color: #ffffff;
    border-color: rgba(71, 91, 102, 0.35);
  }
}

@media (max-width: 700px) {
  .ms-stays-template .ms-card-overlay {
    display: none;
  }
}

/* v1-10-5: Stays parent hotel-picks cards use one large image per card,
   white cards, and hero booking-form color for the dark CTA buttons. */
.ms-stays-template .ms-hotel-picks-grid {
  align-items: stretch;
}

/* v1-10-7: Four Stays parent hotel-pick cards use a balanced 2 by 2 desktop grid. */
@media (min-width: 768px) {
  .ms-stays-template .ms-hotel-picks-grid.ms-hotel-picks-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ms-stays-template .ms-hotel-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: rgba(71, 91, 102, 0.14);
}

.ms-stays-template .ms-hotel-parent-media {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: rgba(71, 91, 102, 0.08);
}

@media (min-width: 900px) {
  .ms-stays-template .ms-hotel-parent-media {
    height: 210px;
  }
}

.ms-stays-template .ms-hotel-parent-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ms-stays-template .ms-hotel-card--bgc .ms-hotel-parent-media img {
  object-position: center bottom;
}

.ms-stays-template .ms-hotel-card--baguio .ms-hotel-parent-media img {
  object-position: center 90%;
}


.ms-stays-template .ms-hotel-parent-media .ms-hotel-thumb-placeholder {
  min-height: 100%;
}

.ms-stays-template .ms-hotel-thumb-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1.35rem 1.35rem 0;
}

.ms-stays-template .ms-hotel-thumb {
  aspect-ratio: 1 / 0.92;
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(71, 91, 102, 0.08);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.ms-stays-template .ms-hotel-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ms-stays-template .ms-hotel-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, rgba(71, 91, 102, 0.12), rgba(50, 66, 75, 0.20));
  color: var(--ms-color-primary-dark);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.ms-stays-template .ms-hotel-card .ms-card-head {
  padding-top: 1.15rem;
}

.ms-stays-template .ms-hotel-card .ms-card-body {
  flex: 1 1 auto;
}

.ms-stays-template .ms-hotel-card .ms-card-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.35rem;
}

.ms-stays-template .ms-hotel-parent-cta {
  position: relative;
  z-index: 4;
  width: min(100%, 292px);
  min-height: 46px;
  gap: 0.45rem;
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(12, 20, 28, 0.35);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 700;
}


.ms-stays-template .ms-hotel-parent-cta img {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}


.ms-stays-template .ms-hotel-card-link:hover .ms-hotel-parent-cta,
.ms-stays-template .ms-hotel-card-link:focus-visible .ms-hotel-parent-cta {
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(12, 20, 28, 0.45);
  text-decoration: none;
}

@media (max-width: 700px) {
  .ms-stays-template .ms-hotel-thumb-row {
    padding-inline: 1.15rem;
    gap: 0.55rem;
  }

  .ms-stays-template .ms-hotel-parent-cta {
    width: 100%;
  }
}


/* v1-9-3: Eton unit-only child pages, v12-aligned collage hero and cleaner lightbox. */
.ms-eton-unit-template {
  background: #ffffff;
}

.ms-eton-unit-hero {
  padding: 0 0 1.25rem;
  background: #ffffff;
}

.ms-eton-unit-hero .ms-container {
  max-width: 1120px;
}

.ms-eton-collage {
  --ms-eton-hero-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  height: var(--ms-eton-hero-height);
}

.ms-eton-main-photo,
.ms-eton-mini-photo {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--ms-radius-md, 10px);
  padding: 0;
  background: rgba(12, 20, 28, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.ms-eton-main-photo {
  width: 100%;
  height: var(--ms-eton-hero-height);
}

.ms-eton-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  height: var(--ms-eton-hero-height);
}

.ms-eton-main-photo img,
.ms-eton-mini-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 220ms ease, filter 220ms ease;
}

.ms-eton-main-photo:hover img,
.ms-eton-mini-photo:hover img,
.ms-eton-main-photo:focus-visible img,
.ms-eton-mini-photo:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.98);
}

.ms-eton-photo-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.20);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
}

.ms-eton-photo-pill img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  transform: none !important;
  filter: none !important;
}

.ms-eton-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 13, 18, 0.98);
}

.ms-eton-lightbox.is-open {
  display: flex;
}

.ms-eton-lightbox__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: 94vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.9rem;
}

.ms-eton-lightbox__topbar {
  display: contents;
}

.ms-eton-lightbox__title {
  display: none;
}

.ms-eton-lightbox__close,
.ms-eton-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ms-eton-lightbox__close:hover,
.ms-eton-lightbox__close:focus-visible,
.ms-eton-lightbox__nav:hover,
.ms-eton-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.ms-eton-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
}

.ms-eton-lightbox__stage {
  position: relative;
  min-height: 0;
  width: min(980px, 100%);
  margin-inline: auto;
  padding-inline: 3.25rem;
  display: grid;
  place-items: center;
}

.ms-eton-lightbox__image {
  max-width: 100%;
  max-height: 74vh;
  display: block;
  border-radius: 0.95rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
  background: rgba(255, 255, 255, 0.06);
}

.ms-eton-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.ms-eton-lightbox__prev {
  left: 0;
}

.ms-eton-lightbox__next {
  right: 0;
}

.ms-eton-lightbox__thumbs {
  width: min(960px, 100%);
  margin-inline: auto;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.2rem;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.ms-eton-lightbox__thumbs::-webkit-scrollbar {
  height: 6px;
}

.ms-eton-lightbox__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.ms-eton-lightbox__thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.ms-eton-lightbox__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ms-eton-lightbox__thumb:hover,
.ms-eton-lightbox__thumb:focus-visible {
  opacity: 0.82;
}

.ms-eton-lightbox__thumb.is-active {
  border-color: rgba(255, 255, 255, 0.86);
  opacity: 1;
}

.ms-eton-lightbox__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.ms-lightbox-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .ms-eton-unit-hero {
    padding-top: 0;
  }

  .ms-eton-collage {
    height: auto;
    grid-template-columns: 1fr;
  }

  .ms-eton-main-photo {
    height: var(--ms-eton-hero-height);
  }

  .ms-eton-mini-grid {
    height: var(--ms-eton-hero-height);
  }
}

@media (max-width: 700px) {
  .ms-eton-collage {
    --ms-eton-hero-height: 240px;
    gap: 4px;
  }

  .ms-eton-mini-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
  }

  .ms-eton-mini-photo {
    aspect-ratio: 1 / 1;
  }

  .ms-eton-photo-pill {
    right: 0.65rem;
    bottom: 0.65rem;
    min-height: 38px;
    padding-inline: 1rem;
    font-size: 0.84rem;
  }

  .ms-eton-lightbox {
    padding: 0.8rem;
  }

  .ms-eton-lightbox__close {
    top: 0.7rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
  }

  .ms-eton-lightbox__stage {
    width: 100%;
    padding-inline: 2.4rem;
  }

  .ms-eton-lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .ms-eton-lightbox__image {
    max-height: 64vh;
  }

  .ms-eton-lightbox__thumb {
    flex-basis: 56px;
    width: 56px;
    height: 42px;
  }
}

/* v1-9-4: Eton child pages get a tighter hero start and a two-panel unit body. */
.ms-eton-unit-template .ms-eton-unit-hero {
  padding-top: 0 !important;
  padding-bottom: 1.05rem;
  background: #ffffff;
}

.ms-eton-unit-template .ms-eton-unit-hero .ms-container {
  max-width: 1120px;
}

.ms-eton-unit-template .ms-eton-unit-body {
  padding-top: 1.05rem !important;
  padding-bottom: 3rem;
  background: #ffffff;
}

.ms-eton-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.92fr);
  gap: 1.35rem;
  align-items: start;
}

.ms-eton-detail-main,
.ms-eton-sticky-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ms-eton-detail-main {
  padding: 1.35rem 1.45rem 1.5rem;
}

.ms-eton-unit-kicker {
  margin: 0 0 0.35rem;
  color: var(--ms-color-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ms-eton-unit-title {
  margin: 0 0 0.55rem;
  color: var(--ms-color-primary-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.ms-eton-unit-lede {
  max-width: 66ch;
  margin: 0;
  color: rgba(31, 31, 31, 0.76);
  font-size: 1rem;
}

.ms-eton-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.ms-eton-fact {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.8rem;
  background: rgba(243, 243, 240, 0.62);
}

.ms-eton-fact__label {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(31, 31, 31, 0.56);
  font-size: 0.76rem;
  font-weight: 650;
}

.ms-eton-fact strong {
  display: block;
  color: var(--ms-color-text);
  font-size: 0.93rem;
  line-height: 1.35;
}

.ms-eton-detail-card {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ms-eton-detail-card h3,
.ms-eton-sticky-panel h3 {
  margin: 0 0 0.7rem;
  color: var(--ms-color-primary-dark);
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.ms-eton-two-col-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.4rem;
  row-gap: 0.3rem;
  margin: 0;
  padding-left: 1.1rem;
}

.ms-eton-two-col-list li {
  margin: 0;
  line-height: 1.45;
}

.ms-eton-detail-aside {
  min-width: 0;
}

.ms-eton-sticky-panel {
  position: sticky;
  top: 6rem;
  padding: 1.15rem;
}

.ms-eton-panel-row {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ms-eton-panel-row span,
.ms-eton-placeholder-label {
  color: rgba(31, 31, 31, 0.58);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ms-eton-panel-row strong {
  color: var(--ms-color-text);
  font-size: 0.94rem;
  line-height: 1.4;
}

.ms-eton-calendar-placeholder {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem;
  border: 1px dashed rgba(71, 91, 102, 0.28);
  border-radius: 0.85rem;
  background: rgba(71, 91, 102, 0.055);
}

.ms-eton-calendar-placeholder p,
.ms-eton-panel-note {
  margin: 0.35rem 0 0;
  color: rgba(31, 31, 31, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ms-eton-panel-note {
  text-align: center;
}

@media (max-width: 980px) {
  .ms-eton-detail-layout {
    grid-template-columns: 1fr;
  }

  .ms-eton-sticky-panel {
    position: static;
  }
}

@media (max-width: 700px) {
  .ms-eton-detail-main,
  .ms-eton-sticky-panel {
    padding: 1.05rem;
  }

  .ms-eton-fact-grid,
  .ms-eton-two-col-list {
    grid-template-columns: 1fr;
  }

  .ms-eton-unit-template .ms-eton-unit-body {
    padding-bottom: 2.2rem;
  }
}

/* v1-9-5: Eton 54 sqm polished body. Typography intentionally follows the
   homepage / Guide Article .ms-heading-lg + .ms-section-heading scale. */
.ms-eton-unit-body--polished {
  padding-top: 0.95rem !important;
  padding-bottom: 3.25rem;
  background: #ffffff;
}

.ms-eton-polished-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.66fr) minmax(300px, 0.9fr);
  grid-template-areas:
    "main aside"
    "below aside";
  gap: 1.45rem;
  align-items: start;
}

.ms-eton-polished-main {
  grid-area: main;
}

.ms-eton-polished-below {
  grid-area: below;
}

.ms-eton-polished-aside {
  grid-area: aside;
  min-width: 0;
}

.ms-eton-polished-main,
.ms-eton-polished-below {
  min-width: 0;
}

.ms-eton-back-link {
  display: inline-flex;
  margin: 0 0 0.85rem;
  color: rgba(31, 31, 31, 0.64);
  font-size: 0.88rem;
  font-weight: 550;
}

.ms-eton-back-link:hover,
.ms-eton-back-link:focus-visible {
  color: var(--ms-color-accent);
  text-decoration: none;
}

.ms-eton-overview-block,
.ms-eton-content-section,
.ms-eton-bottom-cta {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.15rem;
  margin-top: 1.15rem;
}

.ms-eton-overview-block {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.ms-eton-unit-body--polished .ms-section-heading,
.ms-eton-polished-main h2.ms-heading-lg.ms-section-heading,
.ms-eton-polished-below h2.ms-heading-lg.ms-section-heading {
  text-align: left;
  margin: 0 0 0.62rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.ms-eton-polished-title {
  color: var(--ms-color-primary-dark);
}

.ms-eton-address {
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
}

.ms-eton-fact-grid--overview {
  margin-top: 1rem;
}

.ms-eton-fact-grid--overview .ms-eton-fact {
  background: rgba(243, 243, 240, 0.55);
}

.ms-eton-fact-grid--overview .ms-eton-fact__label,
.ms-eton-unit-body--polished .ms-eton-placeholder-label {
  font-weight: 650;
}

.ms-eton-unit-body--polished .ms-eton-unit-kicker {
  font-weight: 700;
  letter-spacing: 0.105em;
}

.ms-eton-two-col-list--clean {
  list-style: disc;
  padding-left: 1.1rem;
}

.ms-eton-two-col-list--clean li,
.ms-eton-term-card li {
  color: rgba(31, 31, 31, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ms-eton-terms-section {
  padding: 1.15rem;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: 1rem;
  background: rgba(243, 243, 240, 0.48);
}

.ms-eton-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.ms-eton-term-card {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: #ffffff;
}

.ms-eton-term-card h3,
.ms-eton-highlight-list h3 {
  margin: 0 0 0.42rem;
  color: var(--ms-color-primary-dark);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
}

.ms-eton-term-card ul {
  margin: 0;
  padding-left: 1.05rem;
}

.ms-eton-section-lede,
.ms-eton-availability-note p,
.ms-eton-bottom-cta p,
.ms-eton-small-note {
  margin: 0;
  color: rgba(31, 31, 31, 0.74);
  font-size: 0.98rem;
  line-height: 1.58;
}

.ms-eton-highlight-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.ms-eton-highlight-list article {
  padding-left: 0.95rem;
  border-left: 3px solid rgba(213, 75, 15, 0.38);
}

.ms-eton-highlight-list p {
  margin: 0;
  color: rgba(31, 31, 31, 0.72);
  font-size: 0.95rem;
  line-height: 1.52;
}

.ms-eton-sticky-panel--shortcode {
  position: sticky;
  top: 6rem;
  padding: 0.95rem;
  border-radius: 1rem;
}

.ms-eton-sticky-panel--shortcode .msac-card {
  box-shadow: none;
}

.ms-eton-sticky-panel--shortcode .ms-eton-calendar-placeholder {
  margin-top: 0;
}

.ms-eton-sticky-panel--shortcode .ms-eton-panel-note {
  margin-top: 0.8rem;
  color: rgba(31, 31, 31, 0.66);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

.ms-eton-sticky-panel--shortcode .ms-eton-panel-note--services {
  margin-top: 0.45rem;
}

.ms-eton-unit-template .ms-btn--eton-primary {
  background-color: var(--ms-color-supporting);
  color: #ffffff;
  border-color: var(--ms-color-supporting);
  box-shadow: 0 10px 24px rgba(50, 66, 75, 0.22);
}

.ms-eton-unit-template .ms-btn--eton-primary:hover,
.ms-eton-unit-template .ms-btn--eton-primary:focus-visible {
  background-color: #25343d;
  color: #ffffff;
  border-color: #25343d;
  box-shadow: 0 14px 28px rgba(50, 66, 75, 0.28);
  text-decoration: none;
}

.ms-eton-guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.ms-eton-guide-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  color: var(--ms-color-text);
  font-size: 0.93rem;
  line-height: 1.35;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  background: #ffffff;
}

.ms-eton-guide-links a::after {
  content: "→";
  margin-left: auto;
  color: rgba(213, 75, 15, 0.78);
}

.ms-eton-guide-links a:hover,
.ms-eton-guide-links a:focus-visible {
  border-color: rgba(213, 75, 15, 0.26);
  background: rgba(243, 243, 240, 0.55);
  text-decoration: none;
}

.ms-eton-nearby-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.ms-eton-nearby-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  color: rgba(31, 31, 31, 0.78);
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(243, 243, 240, 0.62);
}

.ms-eton-small-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.ms-eton-bottom-cta {
  margin-top: 1.35rem;
  padding: 1.15rem;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: 1rem;
  background: rgba(71, 91, 102, 0.055);
}

.ms-eton-bottom-cta h2.ms-heading-lg {
  margin: 0 0 0.55rem;
  color: var(--ms-color-primary-dark);
  line-height: 1.2;
  letter-spacing: 0;
}

.ms-eton-bottom-cta p + p {
  margin-top: 0.45rem;
}

.ms-eton-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

@media (max-width: 980px) {
  .ms-eton-polished-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "aside"
      "below";
  }

  .ms-eton-sticky-panel--shortcode {
    position: static;
  }
}

@media (max-width: 700px) {
  .ms-eton-unit-body--polished {
    padding-bottom: 2.35rem;
  }

  .ms-eton-terms-grid,
  .ms-eton-guide-links {
    grid-template-columns: 1fr;
  }

  .ms-eton-terms-section,
  .ms-eton-bottom-cta {
    padding: 1rem;
  }

  .ms-eton-cta-actions .ms-btn {
    width: 100%;
  }
}

/* v1-9-6 baseline retained as historical Eton 54 sqm polish.
   v1-9-8 refinements below further align spacing, mobile gallery behavior,
   and plugin placement without changing plugin logic. */
.ms-eton-unit-body--polished {
  padding-top: 1rem !important;
  padding-bottom: clamp(3rem, 6vw, 4.75rem);
}

.ms-eton-polished-layout {
  gap: clamp(1.6rem, 3vw, 2.25rem);
}

.ms-eton-back-link {
  gap: 0.35rem;
  margin: 0 0 0.95rem;
  color: var(--ms-color-accent);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

.ms-eton-back-link:hover,
.ms-eton-back-link:focus-visible {
  color: #b13e0c;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ms-eton-polished-title {
  margin-bottom: 0.5rem !important;
}

.ms-eton-address {
  color: rgba(31, 31, 31, 0.72);
}

.ms-eton-overview-block,
.ms-eton-content-section,
.ms-eton-bottom-cta {
  border-top: 0;
  padding-top: 0;
}

.ms-eton-content-section,
.ms-eton-bottom-cta {
  margin-top: clamp(1.85rem, 3.5vw, 2.65rem);
}

.ms-eton-fact-grid--overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.ms-eton-fact-grid--overview .ms-eton-fact {
  min-height: 86px;
  padding: 0.9rem 0.95rem;
  border-color: rgba(15, 23, 42, 0.07);
  background: rgba(243, 243, 240, 0.58);
  box-shadow: none;
}

.ms-eton-fact-grid--overview .ms-eton-fact--wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.ms-eton-fact-grid--overview .ms-eton-fact__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.ms-eton-fact-grid--overview .ms-eton-fact strong {
  font-size: 0.94rem;
  font-weight: 650;
}

.ms-eton-terms-section {
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: 1rem;
  background: rgba(243, 243, 240, 0.48);
}

.ms-eton-terms-grid {
  align-items: stretch;
  gap: 0.85rem;
}

.ms-eton-term-card {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.95rem 1rem;
  border-color: rgba(15, 23, 42, 0.075);
  box-shadow: none;
}

.ms-eton-highlight-list article {
  border-left-color: var(--ms-color-accent);
}

.ms-eton-sticky-panel--shortcode {
  position: sticky;
  top: 6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ms-eton-sticky-panel--shortcode .msac-card {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.ms-eton-sticky-panel--shortcode .ms-eton-panel-note {
  margin: 0.72rem 0 0;
  color: rgba(31, 31, 31, 0.68);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.ms-eton-sticky-panel--shortcode .ms-eton-panel-note--services {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.45rem;
}

.ms-eton-guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1rem;
}

.ms-eton-guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--ms-radius-md);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ms-eton-guide-card:hover,
.ms-eton-guide-card:focus-visible {
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  text-decoration: none;
  transform: translateY(-1px);
}

.ms-eton-guide-card__media {
  display: block;
  width: 100%;
}

.ms-eton-guide-card__media img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ms-eton-guide-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.78rem 0.82rem 0.9rem;
}

.ms-eton-guide-card__title {
  color: var(--ms-color-primary-dark);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.ms-eton-guide-card__text {
  color: rgba(31, 31, 31, 0.68);
  font-size: 0.88rem;
  line-height: 1.42;
}

.ms-eton-bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 0;
  border-radius: 24px;
  background: var(--ms-color-primary-dark);
  color: #ffffff;
  box-shadow: none;
}

.ms-eton-bottom-cta .ms-guide-eyebrow {
  display: inline-flex;
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ms-eton-bottom-cta h2.ms-heading-lg,
.ms-eton-bottom-cta p {
  color: #ffffff;
}

.ms-eton-bottom-cta h2.ms-heading-lg {
  margin-bottom: 0.35rem;
}

.ms-eton-bottom-cta p {
  color: rgba(255, 255, 255, 0.84);
}

.ms-eton-bottom-cta .ms-btn--eton-primary {
  background-color: var(--ms-color-accent);
  border-color: var(--ms-color-accent);
  color: #ffffff;
  box-shadow: none;
}

.ms-eton-bottom-cta .ms-btn--eton-primary:hover,
.ms-eton-bottom-cta .ms-btn--eton-primary:focus-visible {
  background-color: #b13e0c;
  border-color: #b13e0c;
  color: #ffffff;
  box-shadow: none;
}

.ms-eton-bottom-cta .ms-btn--eton-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.ms-eton-bottom-cta .ms-btn--eton-ghost:hover,
.ms-eton-bottom-cta .ms-btn--eton-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ms-eton-bottom-cta .ms-eton-cta-actions {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0;
}

@media (max-width: 980px) {
  .ms-eton-sticky-panel--shortcode {
    position: static;
  }

  .ms-eton-bottom-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ms-eton-fact-grid--overview,
  .ms-eton-guide-card-grid,
  .ms-eton-terms-grid {
    grid-template-columns: 1fr;
  }

  .ms-eton-term-card {
    min-height: 0;
  }

  .ms-eton-guide-card__media img {
    height: 190px;
  }

  .ms-eton-bottom-cta .ms-eton-cta-actions,
  .ms-eton-bottom-cta .ms-btn {
    width: 100%;
  }
}

/* v1-9-8: Eton 54 sqm theme-only polish.
   Keep the availability plugin unchanged. Use governed icon/CTA patterns,
   add a mobile swipe-gallery treatment, and give the page more vertical rhythm. */
.ms-eton-mobile-gallery {
  display: none;
}

.ms-eton-back-link {
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 1.05rem;
  color: var(--ms-color-accent);
  font-weight: 400;
}

.ms-eton-back-link img {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
  flex: 0 0 auto;
}

.ms-eton-back-link:hover,
.ms-eton-back-link:focus-visible {
  color: var(--ms-color-accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ms-eton-polished-layout {
  gap: clamp(1.9rem, 3.4vw, 2.75rem);
}

.ms-eton-content-section,
.ms-eton-bottom-cta {
  margin-top: clamp(2.45rem, 4.7vw, 3.55rem);
}

.ms-eton-overview-block {
  margin-bottom: 0;
}

.ms-eton-fact-grid--overview {
  margin-top: 1.45rem;
}

.ms-eton-fact-grid--overview .ms-eton-fact__value {
  display: block;
  margin-top: 0.22rem;
  color: rgba(31, 31, 31, 0.82);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
}

.ms-eton-terms-section {
  padding: clamp(1.35rem, 2.8vw, 1.7rem);
}

.ms-eton-terms-eyebrow {
  margin: 0 0 0.36rem;
  color: var(--ms-color-accent);
}

.ms-eton-terms-section h2.ms-section-heading {
  color: var(--ms-color-primary-dark);
}

.ms-eton-term-card {
  color: rgba(31, 31, 31, 0.82);
}

.ms-eton-term-card li {
  color: rgba(31, 31, 31, 0.78);
}

.ms-eton-highlight-list {
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.ms-eton-highlight-list article {
  padding-left: 1.05rem;
}

.ms-eton-polished-aside {
  align-self: stretch;
}

.ms-eton-sticky-panel--shortcode {
  top: 5.6rem;
}

.ms-eton-sticky-panel--shortcode .ms-eton-panel-note {
  display: none;
}

.ms-eton-bottom-cta .ms-eton-cta-actions {
  align-items: center;
  gap: 0.85rem;
}

.ms-eton-bottom-cta .ms-guide-cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ms-eton-bottom-cta .ms-guide-cta-note a {
  color: #ffffff;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .ms-eton-polished-aside {
    align-self: start;
  }
}

@media (max-width: 700px) {
  .ms-eton-unit-template .ms-eton-unit-hero {
    padding-bottom: 0.95rem;
  }

  .ms-eton-unit-template .ms-eton-unit-hero .ms-container {
    width: 100%;
    max-width: none;
  }

  .ms-eton-collage {
    display: none;
  }

  .ms-eton-mobile-gallery {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    background: #111915;
  }

  .ms-eton-mobile-gallery__track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ms-eton-mobile-gallery__track::-webkit-scrollbar {
    display: none;
  }

  .ms-eton-mobile-gallery__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: clamp(320px, 58vh, 450px);
    overflow: hidden;
    scroll-snap-align: start;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
  }

  .ms-eton-mobile-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ms-eton-mobile-gallery__counter {
    position: absolute;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 2;
    min-width: 62px;
    padding: 0.42rem 0.68rem;
    border-radius: 0.55rem;
    background: rgba(17, 24, 27, 0.76);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
  }

  .ms-eton-unit-body--polished {
    padding-top: 1.45rem !important;
  }

  .ms-eton-content-section,
  .ms-eton-bottom-cta {
    margin-top: 2.55rem;
  }

  .ms-eton-fact-grid--overview .ms-eton-fact {
    min-height: auto;
  }
}


/* v1-9-8: final Eton 54 sqm micro-polish. Keep the approved layout;
   add contrast to overview labels and tighten the Helpful Guides entry spacing. */
.ms-eton-fact-grid--overview .ms-eton-fact__label {
  color: var(--ms-color-primary-dark);
  font-weight: 650;
}

.ms-eton-fact-grid--overview .ms-eton-fact__value {
  font-weight: 400;
}

.ms-eton-polished-below > .ms-eton-content-section:first-child {
  margin-top: 0.35rem;
}

@media (max-width: 980px) {
  .ms-eton-polished-below > .ms-eton-content-section:first-child {
    margin-top: 0;
  }
}

/* v1-11-1: shared Expedia-aware Stays hotel child-page polish. */
.ms-stays-hotel-child-template .ms-section-subheading--compact {
  margin-bottom: 1.35rem;
}

.ms-stays-hotel-child-template .ms-stays-child-back {
  padding-top: 1.15rem;
  padding-bottom: 0;
}

.ms-stays-hotel-child-template .ms-stays-child-back .ms-eton-back-link {
  margin-bottom: 0;
}

.ms-stays-hotel-child-template .ms-affiliate-disclosure {
  text-align: center;
  max-width: 92ch;
  margin: 1.15rem auto 0;
}

.ms-stays-hotel-child-template #plan-trip .ms-services-icon {
  width: 30px;
  height: 30px;
}

/* v1-15-5: curated and legacy hotel cards are one native Expedia link. */
.ms-stays-hotel-child-template .ms-stays-hotel-card-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.ms-stays-hotel-child-template .ms-stays-hotel-card-link:hover,
.ms-stays-hotel-child-template .ms-stays-hotel-card-link:focus-visible {
  color: inherit;
  text-decoration: none;
}

.ms-stays-hotel-child-template .ms-stays-hotel-card-link:focus-visible {
  outline: 3px solid rgba(213, 75, 15, 0.38);
  outline-offset: 4px;
}

.ms-stays-hotel-child-template .ms-stays-hotel-card-link .ms-btn--expedia {
  pointer-events: none;
}

.ms-stays-hotel-child-template .ms-stays-hotel-grid {
  align-items: stretch;
}

.ms-stays-hotel-child-template .ms-stays-hotel-grid .ms-trip-card {
  display: flex;
  flex-direction: column;
}

.ms-stays-hotel-child-template .ms-stays-hotel-grid .ms-trip-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.ms-stays-hotel-child-template .ms-stays-hotel-grid .ms-u-divider-top {
  margin-top: auto;
  padding-top: 1.45rem;
  border-top: 0;
}

.ms-stays-hotel-child-template .ms-btn--expedia {
  min-height: 46px;
  gap: 0.45rem;
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(12, 20, 28, 0.35);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.ms-stays-hotel-child-template .ms-btn--expedia:hover,
.ms-stays-hotel-child-template .ms-btn--expedia:focus-visible {
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(12, 20, 28, 0.45);
  text-decoration: none;
}

.ms-stays-hotel-child-template .ms-expedia-logo {
  width: auto;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
}


.ms-stays-hotel-child-template .ms-stays-area-label {
  color: var(--ms-color-accent, #b95d2c);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.ms-stays-hotel-child-template .ms-partner-micro {
  text-align: center;
  margin: 0.75rem 0 0;
}

.ms-stays-hotel-child-template .ms-expedia-browse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ms-stays-hotel-child-template .ms-expedia-browse__content {
  padding: 2.1rem 2rem 2rem;
}

.ms-stays-hotel-child-template .ms-expedia-browse__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ms-color-accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ms-stays-hotel-child-template .ms-expedia-browse__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ms-stays-hotel-child-template .ms-expedia-browse__logo {
  width: auto;
  height: 34px;
  display: inline-block;
}

.ms-stays-hotel-child-template .ms-expedia-browse__copy {
  max-width: 66ch;
  margin: 0 0 1.45rem;
  color: var(--ms-color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.ms-stays-hotel-child-template .ms-expedia-browse__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.ms-stays-hotel-child-template .ms-expedia-browse__field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ms-color-primary-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.ms-stays-hotel-child-template .ms-expedia-browse__select {
  width: 100%;
  min-height: 48px;
  padding: 0 2.8rem 0 1rem;
  border: 1px solid rgba(71, 91, 102, 0.16);
  border-radius: 0.85rem;
  appearance: none;
  background-color: #f6f8f9;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(71, 91, 102, 0.78) 50%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.78) 50%, transparent 50%);
  background-position:
    calc(100% - 1.35rem) 50%,
    calc(100% - 0.98rem) 50%;
  background-size: 0.42rem 0.42rem;
  background-repeat: no-repeat;
  color: var(--ms-color-primary-dark);
  font-size: 1rem;
  font-weight: 750;
}

.ms-stays-hotel-child-template .ms-expedia-browse__select:focus {
  outline: 2px solid rgba(36, 55, 70, 0.18);
  outline-offset: 2px;
  border-color: rgba(36, 55, 70, 0.45);
}

.ms-stays-hotel-child-template .ms-expedia-browse__button {
  min-width: 192px;
  min-height: 48px;
  padding-inline: 1.8rem;
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(12, 20, 28, 0.25);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ms-stays-hotel-child-template .ms-expedia-browse__button:hover,
.ms-stays-hotel-child-template .ms-expedia-browse__button:focus-visible {
  background: rgba(12, 20, 28, 0.96);
  border-color: rgba(12, 20, 28, 0.96);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(12, 20, 28, 0.35);
  text-decoration: none;
}

.ms-stays-hotel-child-template .ms-expedia-browse__note {
  margin: 1.35rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(71, 91, 102, 0.14);
  color: var(--ms-color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ms-stays-hotel-child-template .ms-expedia-browse__media {
  min-height: 100%;
  background: rgba(12, 20, 28, 0.08);
}

.ms-stays-hotel-child-template .ms-expedia-browse__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .ms-stays-hotel-child-template .ms-expedia-browse {
    grid-template-columns: 1fr;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__media {
    order: -1;
    max-height: 220px;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__media img {
    min-height: 220px;
  }
}

@media (max-width: 700px) {
  .ms-stays-hotel-child-template .ms-expedia-browse__content {
    padding: 1.5rem 1.25rem 1.45rem;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__title {
    gap: 0.35rem;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__logo {
    height: 28px;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__form {
    grid-template-columns: 1fr;
  }

  .ms-stays-hotel-child-template .ms-expedia-browse__button {
    width: 100%;
    min-width: 0;
  }
}

.ms-stays-hotel-child-template .ms-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.05rem;
}


/* v1-13-7: eight-card Stays parent and completed hotel-area pages. */
@media (min-width: 768px) {
  .ms-stays-template .ms-hotel-picks-grid.ms-hotel-picks-grid--eight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v1-14-2: affiliate-complete legacy hotel-name modules for Baguio and Manila Bay. */
.ms-stays-legacy-editorial,
.ms-stays-legacy-hotel-card {
  overflow: hidden;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: var(--ms-radius-lg);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.ms-stays-legacy-editorial {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.45fr);
  min-height: 320px;
  background: var(--ms-color-soft-bg);
  scroll-margin-top: 6rem;
}

.ms-stays-legacy-editorial__copy {
  align-self: center;
  padding: clamp(1.55rem, 3.4vw, 2.25rem);
}

.ms-stays-legacy-editorial__copy h2 {
  margin: 0 0 0.85rem;
  text-align: left;
}

.ms-stays-legacy-editorial__copy p:not(.ms-stays-legacy-eyebrow):not(.ms-partner-micro) {
  max-width: 64ch;
  margin: 0;
  color: var(--ms-color-muted);
  line-height: 1.68;
}

.ms-stays-legacy-editorial__copy p + p {
  margin-top: 0.8rem;
}

.ms-stays-legacy-editorial__media {
  min-width: 0;
  min-height: 320px;
  background: #ffffff;
}

.ms-stays-legacy-editorial__media > img,
.ms-stays-legacy-hotel-card__media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ms-stays-legacy-editorial__media > img {
  min-height: 320px;
  object-position: center center;
}

.ms-stays-legacy-editorial__action {
  width: min(100%, 302px);
  margin-top: 1.7rem;
}

.ms-stays-legacy-hotel-card__action {
  margin-top: auto;
  padding-top: 1.35rem;
}

.ms-stays-legacy-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--ms-color-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ms-stays-legacy-media-placeholder {
  display: flex;
  min-height: 210px;
  height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 25% 20%, rgba(213, 75, 15, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.14), rgba(50, 66, 75, 0.24));
  color: var(--ms-color-primary-dark);
  text-align: center;
}

.ms-stays-legacy-media-placeholder span {
  font-weight: 800;
  line-height: 1.35;
}

.ms-stays-legacy-media-placeholder small {
  color: var(--ms-color-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ms-stays-legacy-card-grid {
  align-items: stretch;
}

.ms-services-card.ms-stays-legacy-hotel-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 0;
  scroll-margin-top: 6rem;
}

.ms-stays-legacy-hotel-card__media {
  height: 190px;
  background: #ffffff;
}

.ms-stays-legacy-hotel-card__media > img,
.ms-stays-legacy-hotel-card__media .ms-stays-legacy-media-placeholder {
  min-height: 0;
  height: 100%;
}

.ms-area-hotel-image--center-bottom {
  object-position: center bottom;
}

.ms-area-hotel-image--center-center {
  object-position: center center;
}

.ms-area-hotel-image--center-top {
  object-position: center top;
}

.ms-area-hotel-image--left-center {
  object-position: left center;
}

.ms-area-hotel-image--right-center {
  object-position: right center;
}

.ms-stays-legacy-hotel-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.3rem;
}

.ms-stays-legacy-hotel-card__body .ms-services-title {
  margin-bottom: 0.6rem;
}

.ms-stays-legacy-hotel-card__body .ms-services-body {
  margin-bottom: 0.95rem;
}

.ms-stays-legacy-hotel-card__body .ms-u-list-compact {
  margin-top: 0;
}

@media (min-width: 900px) {
  .ms-stays-legacy-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ms-stays-legacy-editorial {
    grid-template-columns: 1fr;
  }

  .ms-stays-legacy-editorial__media,
  .ms-stays-legacy-editorial__media > img {
    min-height: 230px;
  }
}

/* v1-14-6: refined Stays parent all-destinations Expedia search module. */
.ms-stays-template .ms-stays-search-section {
  background: var(--ms-color-bg);
  scroll-margin-top: 6rem;
}

.ms-stays-template .ms-stays-search-card {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(71, 91, 102, 0.14);
  border-radius: 1.1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ms-stays-template .ms-stays-search-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.85rem 2rem 1.75rem;
  background: #ffffff;
}

.ms-stays-template .ms-stays-search-card__eyebrow,
.ms-stays-template .ms-stays-search-card__context,
.ms-stays-template .ms-stays-search-card__description,
.ms-stays-template .ms-stays-search-card__widget-frame,
.ms-stays-template .ms-stays-search-card__note {
  width: min(100%, 535px);
  margin-left: 0;
  margin-right: auto;
}

.ms-stays-template .ms-stays-search-card__eyebrow {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--ms-color-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ms-stays-template .ms-stays-search-card__context,
.ms-stays-template .ms-stays-search-card__description {
  margin-top: 0;
  color: var(--ms-color-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

.ms-stays-template .ms-stays-search-card__context {
  margin-bottom: 0.85rem;
}

.ms-stays-template .ms-stays-search-card__description {
  margin-bottom: 0.9rem;
}

.ms-stays-template .ms-stays-search-card__widget-frame {
  width: min(100%, 535px);
  height: 266px;
  min-height: 266px;
  overflow: hidden;
}

.ms-stays-template .ms-stays-search-card__widget-frame .eg-widget {
  width: 575px;
  max-width: none;
  min-height: 300px;
  margin: 0;
  transform: scale(0.88);
  transform-origin: top left;
}

.ms-stays-template .ms-stays-search-card__widget-frame .eg-widget:empty {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(71, 91, 102, 0.24);
  border-radius: 0.9rem;
  background: #ffffff;
  color: var(--ms-color-muted);
  font-size: 0.92rem;
  text-align: center;
}

.ms-stays-template .ms-stays-search-card__widget-frame .eg-widget:empty::before {
  content: "Loading the Expedia stays search…";
  max-width: 28ch;
  padding: 1.5rem;
}

.ms-stays-template .ms-stays-search-card__note {
  margin-top: 0.7rem;
  margin-bottom: 0;
  color: var(--ms-color-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ms-stays-template .ms-stays-search-card__media {
  min-width: 0;
  min-height: 100%;
  background: rgba(71, 91, 102, 0.12);
}

.ms-stays-template .ms-stays-search-card__media img,
.ms-stays-template .ms-stays-search-card__media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 440px;
}

.ms-stays-template .ms-stays-search-card__media img {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.ms-stays-template .ms-stays-search-card__media-placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(213, 75, 15, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(71, 91, 102, 0.12), rgba(50, 66, 75, 0.24));
  color: var(--ms-color-primary-dark);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1050px) {
  .ms-stays-template .ms-stays-search-card {
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  }

  .ms-stays-template .ms-stays-search-card__content {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 860px) {
  .ms-stays-template .ms-stays-search-card {
    grid-template-columns: 1fr;
  }

  .ms-stays-template .ms-stays-search-card__content {
    padding: 1.6rem 1.35rem 1.4rem;
  }

  .ms-stays-template .ms-stays-search-card__widget-frame {
    width: min(100%, 575px);
    height: auto;
    min-height: 300px;
  }

  .ms-stays-template .ms-stays-search-card__widget-frame .eg-widget {
    width: 100%;
    max-width: 575px;
    transform: none;
  }

  .ms-stays-template .ms-stays-search-card__media img,
  .ms-stays-template .ms-stays-search-card__media-placeholder {
    min-height: 260px;
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .ms-stays-template .ms-stays-search-card__content {
    padding: 1.35rem 0.85rem 1.25rem;
  }

  .ms-stays-template .ms-stays-search-card__widget-frame .eg-widget {
    min-height: 320px;
  }
}

