/**
 * Individual hotel presentation.
 */

.stp-single-hotel {
  --stp-hotel-ink: #1e1e1e;
  --stp-hotel-muted: #58645d;
  --stp-hotel-border: #e3e3e3;
  --stp-hotel-surface: #ffffff;
  --stp-hotel-canvas: #ffffff;
  --stp-hotel-green: #418d16;
  --stp-hotel-green-dark: #418d16;
  --stp-hotel-green-soft: rgba(65, 141, 22, 0.086);
  --stp-hotel-gold: #9a671b;

  color: var(--stp-hotel-ink);
  background: var(--stp-hotel-canvas);
}

.stp-single-hotel ::selection {
  color: #ffffff;
  background: var(--stp-hotel-green-dark);
}

.stp-hotel-hero {
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(1.25rem, 2vw, 2rem);
  border-bottom: 1px solid var(--stp-hotel-border);
}

.stp-hotel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: clamp(0.9rem, 1.5vw, 1.25rem);
  overflow: hidden;
  color: var(--stp-hotel-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.stp-hotel-breadcrumb a {
  color: var(--stp-hotel-green-dark);
  font-weight: 750;
  text-decoration: none;
}

.stp-hotel-breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.stp-hotel-breadcrumb i {
  flex: 0 0 auto;
  color: #9da79f;
  font-size: 0.6rem;
}

.stp-hotel-breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.stp-hotel-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.7fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
}

.stp-hotel-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.stp-hotel-taxonomy-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--stp-hotel-border);
  border-radius: 10px;
  color: var(--stp-hotel-muted);
  background: var(--stp-hotel-surface);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.stp-hotel-taxonomy-row i {
  color: var(--stp-hotel-gold);
}

.stp-hotel-hero h1 {
  max-width: 20ch;
  margin: 0;
  color: var(--stp-hotel-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stp-hotel-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  color: var(--stp-hotel-gold);
}

.stp-hotel-stars i {
  font-size: 0.82rem;
}

.stp-hotel-stars span {
  margin-left: 0.45rem;
  color: var(--stp-hotel-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.stp-hotel-intro {
  max-width: 68ch;
  margin: 0.75rem 0 0;
  color: var(--stp-hotel-muted);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.stp-hotel-hero-actions {
  display: grid;
  gap: 0.65rem;
}

.stp-hotel-hero-actions address {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  color: var(--stp-hotel-muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.45;
}

.stp-hotel-hero-actions address i {
  margin-top: 0.3rem;
  color: var(--stp-hotel-green);
}

.stp-hotel-primary-action,
.stp-hotel-sidebar-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  color: #ffffff;
  background: var(--stp-hotel-green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.stp-hotel-primary-action:hover,
.stp-hotel-sidebar-primary:hover {
  color: #ffffff;
  background: var(--stp-hotel-green);
}

/* The WeTravel widget listens on the checkout link itself. */
.stp-single-hotel .wtrvl-checkout_button * {
  pointer-events: none;
}

.stp-hotel-gallery-wrap,
.stp-hotel-banner-fallback {
  padding: clamp(2rem, 4vw, 3rem) 0 0;
}

.stp-hotel-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.75fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  height: clamp(430px, 54vw, 610px);
  overflow: hidden;
  border-radius: 16px;
  background: #e7e7e7;
}

.stp-hotel-gallery-item {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e2e2e2;
}

.stp-hotel-gallery-item:first-child {
  grid-row: 1 / -1;
}

.stp-hotel-gallery-item:nth-child(n + 4) {
  display: none;
}

.stp-hotel-gallery--1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.stp-hotel-gallery--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.stp-hotel-gallery--2 .stp-hotel-gallery-item:first-child {
  grid-row: auto;
}

.stp-hotel-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stp-hotel-gallery-item:hover .stp-hotel-gallery-image {
  transform: scale(1.025);
}

.stp-hotel-gallery-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  color: var(--stp-hotel-ink);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(65, 141, 22, 0.15);
  font-size: 0.82rem;
  font-weight: 800;
}

.stp-hotel-main {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.stp-hotel-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.7fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.stp-hotel-content-column {
  display: grid;
  gap: clamp(4rem, 7vw, 6.5rem);
  min-width: 0;
}

.stp-hotel-about > h2,
.stp-hotel-section-heading h2,
.stp-related-hotels-heading h2 {
  margin: 0 0 1.5rem;
  color: var(--stp-hotel-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.stp-hotel-rich-content {
  max-width: 72ch;
  color: var(--stp-hotel-muted);
  font-size: 1rem;
  line-height: 1.82;
}

.stp-hotel-description {
  margin-bottom: 1.5rem;
  color: var(--stp-hotel-ink);
  font-size: 1.08rem;
}

.stp-hotel-rich-content > *:first-child {
  margin-top: 0;
}

.stp-hotel-rich-content > *:last-child {
  margin-bottom: 0;
}

.stp-hotel-rich-content h2,
.stp-hotel-rich-content h3,
.stp-hotel-rich-content h4 {
  margin: 2.5rem 0 0.85rem;
  color: var(--stp-hotel-ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stp-hotel-rich-content h3 {
  font-size: 1.45rem;
}

.stp-hotel-rich-content ul,
.stp-hotel-rich-content ol {
  padding-left: 1.25rem;
}

.stp-hotel-rich-content li + li {
  margin-top: 0.45rem;
}

.stp-hotel-rich-content a {
  color: var(--stp-hotel-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.stp-hotel-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stp-hotel-section-heading h2 {
  margin-bottom: 0;
}

.stp-hotel-section-heading p {
  max-width: 34ch;
  margin: 0;
  color: var(--stp-hotel-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stp-hotel-amenity-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--stp-hotel-border);
  list-style: none;
}

.stp-hotel-amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem 0.75rem 1rem 0;
  border-bottom: 1px solid var(--stp-hotel-border);
  color: var(--stp-hotel-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.stp-hotel-amenity-list i {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  color: var(--stp-hotel-green);
  text-align: center;
}

.stp-hotel-sidebar {
  position: sticky;
  top: 1.5rem;
}

.stp-hotel-details-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 16px;
  background: var(--stp-hotel-surface);
  box-shadow: 0 12px 32px rgba(65, 141, 22, 0.09);
}

.stp-hotel-details-panel > h2 {
  margin: 0 0 1.25rem;
  color: var(--stp-hotel-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.stp-hotel-details-panel dl {
  margin: 0;
}

.stp-hotel-details-panel dl > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--stp-hotel-border);
}

.stp-hotel-details-panel dt {
  color: var(--stp-hotel-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stp-hotel-details-panel dd {
  margin: 0;
  color: var(--stp-hotel-ink);
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.55;
}

.stp-hotel-detail-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stp-hotel-tripadvisor,
.stp-hotel-inquiry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--stp-hotel-border);
  border-radius: 12px;
  color: var(--stp-hotel-ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.stp-hotel-tripadvisor:hover,
.stp-hotel-inquiry-link:hover {
  color: var(--stp-hotel-green-dark);
  border-color: #418d16;
  background: var(--stp-hotel-green-soft);
}

.stp-related-hotels {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  border-top: 1px solid var(--stp-hotel-border);
  background: #ffffff;
}

.stp-related-hotels-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stp-related-hotels-heading h2 {
  margin-bottom: 0.45rem;
}

.stp-related-hotels-heading p {
  margin: 0;
  color: var(--stp-hotel-muted);
}

.stp-related-hotels-heading > a {
  flex: 0 0 auto;
  color: var(--stp-hotel-green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.stp-related-hotels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stp-related-hotel {
  overflow: hidden;
  border-radius: 16px;
  background: var(--stp-hotel-surface);
  box-shadow: 0 10px 28px rgba(65, 141, 22, 0.08);
}

.stp-related-hotel-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e2e2e2;
}

.stp-related-hotel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stp-related-hotel:hover .stp-related-hotel-image {
  transform: scale(1.035);
}

.stp-related-hotel-body {
  padding: 1.2rem;
}

.stp-related-hotel-body > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--stp-hotel-gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stp-related-hotel h3 {
  margin: 0.55rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.stp-related-hotel h3 a {
  color: var(--stp-hotel-ink);
  text-decoration: none;
}

.stp-related-hotel h3 a:hover {
  color: var(--stp-hotel-green-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.stp-single-hotel a:focus-visible {
  outline: 3px solid rgba(65, 141, 22, 0.34);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .stp-hotel-hero-grid,
  .stp-hotel-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stp-hotel-hero-actions {
    max-width: 34rem;
  }

  .stp-hotel-hero-grid {
    gap: 1.25rem;
  }

  .stp-hotel-sidebar {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .stp-hotel-gallery {
    display: block;
    height: clamp(300px, 82vw, 430px);
  }

  .stp-hotel-gallery-item:not(:first-child) {
    display: none;
  }

  .stp-hotel-section-heading,
  .stp-related-hotels-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .stp-hotel-amenity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stp-related-hotels-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 575.98px) {
  .stp-hotel-hero {
    padding: 0.9rem 0 1.25rem;
  }

  .stp-hotel-breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.74rem;
  }

  .stp-hotel-hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.25rem);
  }

  .stp-hotel-intro {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .stp-hotel-taxonomy-row span {
    font-size: 0.68rem;
  }

  .stp-hotel-gallery-count {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .stp-hotel-amenity-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stp-hotel-gallery-image,
  .stp-related-hotel-image {
    transition-duration: 0.12s;
  }
}
