/* Add background image to section with progressive loading */
.bg-image {
  background-image: url("../images/background-low.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  background-repeat: no-repeat;
  filter: blur(10px);
  transform: scale(1.05);
  transition: filter 0.5s ease-out, transform 0.5s ease-out, background-image 0s;
}

.bg-image.loaded {
  filter: blur(0);
  transform: scale(1);
}

#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 9999;
}

:root {
  --treslodge-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

body {
  font-family: var(--treslodge-font-sans);
}

/* Listing page layout */
.listing-page {
  max-width: 100%;
  overflow-x: clip;
}

.listing-page .display-1 {
  font-size: clamp(2rem, 9vw, 5rem);
  overflow-wrap: break-word;
}

.listing-gallery-outer {
  max-width: 100%;
  overflow-x: clip;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .listing-gallery-outer {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}

.listing-gallery {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.listing-gallery-main {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
}

.listing-gallery-main-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767.98px) {
  .listing-gallery-main {
    aspect-ratio: 4 / 3;
    max-height: 65vw;
  }
}

.listing-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-gallery-nav svg {
  display: block;
  flex-shrink: 0;
}

.listing-gallery-prev {
  left: 0.75rem;
}

.listing-gallery-next {
  right: 0.75rem;
}

.listing-gallery-fullscreen {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.listing-gallery-fullscreen svg {
  display: block;
}

.listing-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.listing-gallery-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  background: none;
  scroll-snap-align: start;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.listing-gallery-thumb.is-active {
  border-color: #daa520;
  opacity: 1;
}

.listing-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-gallery-modal-img {
  max-height: 85vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.listing-gallery-modal-carousel .carousel-inner {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.listing-gallery-modal-carousel .carousel-control-prev,
.listing-gallery-modal-carousel .carousel-control-next {
  width: 3rem;
  height: 3rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0.9;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.listing-gallery-modal-carousel .carousel-control-prev {
  left: 1rem;
}

.listing-gallery-modal-carousel .carousel-control-next {
  right: 1rem;
}

.listing-description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
}

.listing-description p {
  margin: 0;
}

.listing-description p + p,
.listing-description p + ul,
.listing-description ul + p {
  margin-top: 1rem;
}

.listing-description ul {
  margin: 0;
  padding-left: 1.25rem;
}

.listing-description li + li {
  margin-top: 0.35rem;
}

.listing-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  .listing-amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .listing-amenities-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .listing-gallery-thumb {
    flex: 0 0 104px;
    width: 104px;
    height: 78px;
  }
}

.listing-amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(218, 165, 32, 0.08);
  border-radius: 0.5rem;
}

.listing-amenity-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.listing-amenity-label {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #333;
}

.listing-booking-section {
  margin-bottom: 2rem;
}

.listing-booking-card {
  background: #fff;
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.listing-booking-widget-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: visible;
}

@media (min-width: 768px) {
  .listing-booking-card {
    max-width: 780px;
    padding: 1.5rem 1.5rem 1.75rem;
  }
}

.listing-booking-powered {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}

.listing-booking-powered a {
  color: #999;
  text-decoration: none;
}

.listing-booking-powered a:hover {
  color: #daa520;
  text-decoration: underline;
}

#hostaway-calendar-widget {
  width: 100%;
  overflow: visible;
  font-family: var(--treslodge-font-sans);
}

#hostaway-calendar-widget,
#hostaway-calendar-widget * {
  font-family: var(--treslodge-font-sans) !important;
}

#hostaway-calendar-widget > * {
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.treslodge-navbar {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.treslodge-navbar-inner {
  gap: 0.5rem;
}

.treslodge-navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.treslodge-navbar-brand img {
  display: block;
  transition: opacity 0.15s ease;
}

.treslodge-navbar-brand:hover img {
  opacity: 0.85;
}

.treslodge-navbar-toggler {
  border-color: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.55rem;
}

.treslodge-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}

.treslodge-nav .nav-link {
  color: #1a1a1a;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.treslodge-nav .nav-link:hover,
.treslodge-nav .nav-link:focus {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.treslodge-nav .nav-link.active {
  color: #000;
  background: rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

@media (min-width: 992px) {
  .treslodge-nav .nav-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 991.98px) {
  .treslodge-navbar .navbar-collapse {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 0.5rem;
  }

  .treslodge-nav .nav-link {
    padding: 0.6rem 0.5rem;
  }
}

/* Contact section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.contact-map-card,
.contact-info-card {
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: 0.75rem;
  min-height: 320px;
}

.contact-map-card {
  display: flex;
  overflow: hidden;
  background: #fff;
  padding: 0;
}

.contact-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  height: 100%;
  padding: 1.5rem;
  background: rgba(218, 165, 32, 0.06);
}

.contact-block {
  width: 100%;
}

.contact-heading {
  font-size: 1.1rem;
  color: var(--bs-primary, #daa520);
  margin-bottom: 0.75rem;
}

.contact-address-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  background: #fff;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  font-style: normal;
  line-height: 1.55;
  color: #333;
}

.contact-address-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bs-primary, #daa520);
  letter-spacing: 0.01em;
}

.contact-address-line {
  font-size: 0.98rem;
}

.contact-address-meta {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(218, 165, 32, 0.25);
  font-size: 0.9rem;
  color: #666;
}

.contact-address-meta-label {
  font-weight: 600;
  color: #555;
}

.contact-address-maps-link {
  align-self: flex-start;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bs-primary, #daa520);
  text-decoration: none;
  border-bottom: 1px solid rgba(218, 165, 32, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-address-maps-link:hover {
  color: #b8860b;
  border-color: #b8860b;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.contact-line {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: center;
  column-gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-line-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 24px;
}

.contact-line-icon img {
  display: block;
}

.contact-line-text {
  line-height: 1.4;
  word-break: break-word;
}

.contact-line:hover {
  background: rgba(218, 165, 32, 0.12);
  color: var(--bs-primary, #daa520);
}

@media (min-width: 992px) {
  .contact-map-card,
  .contact-info-card,
  .contact-map {
    min-height: 380px;
  }
}
