/*
 * Small front-end corrections kept outside Oxygen's generated stylesheets.
 * This file loads after the builder CSS and is also available in the editor.
 */

/* Oxygen's default blue link hover must never leak into project links. */
body.home.breakdance .cdh-site-header:not(.is-scrolled) {
  border-bottom-color: transparent;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

body.home.breakdance .cdh-site-header:not(.is-scrolled) .cdh-site-brand,
body.home.breakdance .cdh-site-header:not(.is-scrolled) .cdh-site-nav,
body.home.breakdance .cdh-site-header:not(.is-scrolled) .cdh-header-actions {
  text-shadow: 0 2px 14px rgba(8, 15, 11, 0.5);
}

.cdh-site-header .cdh-site-brand,
.cdh-site-header .cdh-site-brand:hover,
.cdh-site-header .cdh-site-brand:focus,
.cdh-site-header .cdh-site-nav a,
.cdh-site-header .cdh-site-nav a:hover,
.cdh-site-header .cdh-site-nav a:focus,
.cdh-site-header .cdh-site-language,
.cdh-site-header .cdh-site-language:hover,
.cdh-site-header .cdh-site-language:focus {
  color: #fff;
}

.cdh-cottage-link:hover,
.cdh-cottage-link:focus,
.cdh-property-fact-link:hover,
.cdh-property-fact-link:focus,
.cdh-room-gallery-open:hover,
.cdh-room-gallery-open:focus,
.cdh-amenities__link:hover,
.cdh-amenities__link:focus,
.cdh-location__map-link:hover,
.cdh-location__map-link:focus,
.cdh-reviews__favorite-link:hover,
.cdh-reviews__favorite-link:focus,
.cdh-instagram__profile-link:hover,
.cdh-instagram__profile-link:focus {
  color: var(--cdh-green);
}

.cdh-footer-list a:hover,
.cdh-footer-list a:focus,
.cdh-instagram-card__link:hover,
.cdh-instagram-card__link:focus {
  color: #fff;
}

.cdh-place-card__link:hover,
.cdh-place-card__link:focus {
  color: var(--cdh-green-dark);
}

.cdh-button:hover,
.cdh-button:focus,
.cdh-button:active {
  color: #fff;
}

.cdh-button--light:hover,
.cdh-button--light:focus,
.cdh-button--light:active,
.cdh-cta__button:hover,
.cdh-cta__button:focus,
.cdh-cta__button:active,
.cdh-header-book:hover,
.cdh-header-book:focus,
.cdh-header-book:active {
  color: var(--cdh-green-dark);
}

/* Crop the YouTube chrome outside the visible cover, as on the Astro site. */
body.breakdance .bde-video.cdh-video-native-cover .ee-video {
  width: 114vw !important;
  height: 64.125vw !important;
  min-width: 202.67vh !important;
  min-height: 114% !important;
}

/* Front-end carousel built from five native Oxygen Image elements. */
body.breakdance:not(.cdh-oxygen-builder) .cdh-cottage-gallery {
  position: relative;
  min-height: 0;
  display: block;
  grid-template-columns: none;
  grid-template-rows: none;
  gap: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #e9ece9;
}

body.breakdance:not(.cdh-oxygen-builder) .cdh-cottage-gallery .cdh-cottage-slide {
  position: absolute;
  inset: 0;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 520ms ease, transform 750ms ease;
}

body.breakdance:not(.cdh-oxygen-builder) .cdh-cottage-gallery:not(.is-carousel) .cdh-cottage-slide:first-child,
body.breakdance:not(.cdh-oxygen-builder) .cdh-cottage-gallery .cdh-cottage-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

body.breakdance:not(.cdh-oxygen-builder) .cdh-cottage-gallery .cdh-cottage-image {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: cover;
}

.cdh-cottage-carousel__previous,
.cdh-cottage-carousel__next {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(27, 39, 33, 0.58);
  color: #fff;
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.cdh-cottage-carousel__previous {
  left: 18px;
}

.cdh-cottage-carousel__next {
  right: 18px;
}

.cdh-cottage-carousel__previous:hover,
.cdh-cottage-carousel__previous:focus-visible,
.cdh-cottage-carousel__next:hover,
.cdh-cottage-carousel__next:focus-visible {
  background: rgba(27, 39, 33, 0.84);
}

.cdh-cottage-carousel__dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(27, 39, 33, 0.52);
  transform: translateX(-50%);
}

.cdh-cottage-carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.cdh-cottage-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

/* In Oxygen, keep every media element visible and directly selectable. */
body.cdh-oxygen-builder .cdh-cottage-gallery {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

body.cdh-oxygen-builder .cdh-cottage-gallery .cdh-cottage-slide {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.cdh-oxygen-builder .cdh-cottage-gallery .cdh-cottage-slide:first-child {
  grid-row: 1 / -1;
}

body.cdh-oxygen-builder .cdh-cottage-gallery .cdh-cottage-slide:nth-child(n + 2) {
  grid-column: 2;
}

/* Reproduce Airbnb's Guest Favourite summary without locking its texts. */
body.breakdance .cdh-reviews__favorite {
  position: relative;
  grid-template-columns: minmax(210px, 1.05fr) minmax(240px, 1.45fr) 110px 90px;
  gap: 0;
  padding: 18px 24px;
  border-color: rgba(31, 47, 40, 0.15);
  box-shadow: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

body.breakdance .cdh-reviews__favorite:hover {
  box-shadow: 0 12px 32px rgba(31, 47, 40, 0.11);
  transform: translateY(-1px);
}

body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label {
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
  display: grid;
  grid-template-columns: 21px minmax(0, 160px) 21px;
  align-items: center;
  justify-self: center;
  gap: 12px;
  margin: 0;
  color: var(--cdh-ink);
  font-family: var(--cdh-font-reviews), sans-serif;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 650;
  line-height: 1.12;
  text-align: center;
}

body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label::before,
body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label::after {
  width: 21px;
  height: 36px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: '';
}

body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label::before {
  background-image: url('./laurel-left.png');
}

body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label::after {
  background-image: url('./laurel-right.png');
}

body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 0 0 24px;
  padding: 0 24px;
  border-left: 1px solid rgba(31, 47, 40, 0.18);
  color: #3f4642;
  font-size: 13px;
  line-height: 1.55;
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(3),
body.breakdance .cdh-reviews__favorite > p:nth-of-type(4) {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(31, 47, 40, 0.18);
  color: transparent;
  font-size: 0;
  line-height: 1;
  text-align: center;
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(3) {
  grid-column: 3;
  grid-row: 1;
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(3)::before {
  color: var(--cdh-ink);
  font-size: 22px;
  font-weight: 700;
  content: '5,0';
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(3)::after {
  margin-top: 6px;
  color: var(--cdh-ink);
  font-size: 9px;
  letter-spacing: 1px;
  content: '★★★★★';
}

body.cdh-language-en.breakdance .cdh-reviews__favorite > p:nth-of-type(3)::before {
  content: '5.0';
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(4) {
  grid-column: 4;
  grid-row: 1;
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(4)::before {
  color: var(--cdh-ink);
  font-size: 22px;
  font-weight: 700;
  content: '52';
}

body.breakdance .cdh-reviews__favorite > p:nth-of-type(4)::after {
  margin-top: 5px;
  color: var(--cdh-copy);
  font-size: 11px;
  line-height: 1.2;
  content: 'avis';
}

body.cdh-language-en.breakdance .cdh-reviews__favorite > p:nth-of-type(4)::after {
  content: 'reviews';
}

body.breakdance:not(.cdh-oxygen-builder) .cdh-reviews__favorite-link {
  position: absolute;
  z-index: 3;
  inset: 0;
  grid-column: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  color: transparent !important;
  font-size: 0;
  text-decoration: none;
}

body.breakdance:not(.cdh-oxygen-builder) .cdh-reviews__favorite-link:focus-visible {
  border-radius: 18px;
  outline: 3px solid var(--cdh-green);
  outline-offset: 4px;
}

body.breakdance .cdh-reviews__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

body.breakdance .cdh-reviews__button::before {
  width: 20px;
  height: 22px;
  flex: 0 0 auto;
  background: url('./airbnb-mark-white.png') center / contain no-repeat;
  content: '';
}

@media (max-width: 767px) {
  .cdh-cottage-carousel__previous,
  .cdh-cottage-carousel__next {
    width: 40px;
    height: 40px;
  }

  .cdh-cottage-carousel__previous {
    left: 12px;
  }

  .cdh-cottage-carousel__next {
    right: 12px;
  }

  body.breakdance .cdh-reviews__favorite {
    grid-template-columns: 1fr 1fr;
    padding: 24px 20px 20px;
  }

  body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-label {
    grid-column: 1 / -1;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  body.breakdance .cdh-reviews__favorite .cdh-reviews__favorite-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    margin: 18px 0 0;
    padding: 18px 0;
    border-top: 1px solid rgba(31, 47, 40, 0.18);
    border-left: 0;
    text-align: center;
  }

  body.breakdance .cdh-reviews__favorite > p:nth-of-type(3),
  body.breakdance .cdh-reviews__favorite > p:nth-of-type(4) {
    grid-row: 3;
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(31, 47, 40, 0.18);
    border-left: 0;
  }

  body.breakdance .cdh-reviews__favorite > p:nth-of-type(3) {
    grid-column: 1;
  }

  body.breakdance .cdh-reviews__favorite > p:nth-of-type(4) {
    grid-column: 2;
    border-left: 1px solid rgba(31, 47, 40, 0.18);
  }
}

@media (max-width: 420px) {
  body.breakdance .cdh-reviews__button {
    gap: 8px;
    padding-inline: 18px;
    font-size: 12px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdh-cottage-gallery .cdh-cottage-slide {
    transition: none;
  }
}
