/* Pinterest masonry (mobilier): JS packs into shortest column */
.hh-masonry {
  position: relative;
  width: 100%;
  min-height: 120px;
}

.hh-masonry--wayfair.hh-masonry--packed {
  /* height set by pinterest_masonry.js */
}

.hh-masonry__card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  border: none;
  box-shadow: none;
  will-change: transform;
}

.hh-masonry__visual {
  position: relative;
}

.hh-masonry__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #f0eeeb;
}

.hh-masonry__body-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.hh-masonry__textrow {
  position: relative;
}

/* Infos off: only the heart shows, overlaid on the image bottom-left */
.hh-masonry--wayfair .hh-masonry__card:not(.is-info-on) .hh-masonry__textrow {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  right: auto;
  width: auto;
  pointer-events: none;
}

.hh-masonry--wayfair .hh-masonry__card:not(.is-info-on) .hh-masonry__fav {
  pointer-events: auto;
}

.hh-masonry--wayfair .hh-masonry__card:not(.is-info-on) .hh-masonry__body-link {
  display: none;
}

.hh-masonry--wayfair .hh-masonry__card:not(.is-info-on) .hh-masonry__media-link {
  border-radius: 16px;
}

/* Infos on: restore original text block, heart in left corner */
.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__media-link {
  border-radius: 16px 16px 0 0;
}

.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__textrow {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  background: #fff;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__fav {
  position: absolute;
  left: auto;
  right: 0.35rem;
  top: 0.5rem;
  z-index: 2;
  margin: 0;
  color: #57534e;
  filter: none;
}

.hh-masonry__fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.hh-masonry__fav:hover,
.hh-masonry__fav:focus-visible {
  background: transparent;
  outline: none;
  opacity: 0.9;
}

.hh-masonry__fav-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hh-masonry__fav.is-liked {
  color: #e85d04;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__fav.is-liked {
  filter: none;
}

.hh-masonry__fav.is-liked .hh-masonry__fav-icon {
  fill: currentColor;
  stroke: currentColor;
}

/* Hide until JS places pins (avoids a stacked list flash) */
.hh-masonry--wayfair[data-pin-masonry="1"] > .hh-masonry__card {
  position: absolute;
  margin: 0;
  visibility: hidden;
  left: 0;
  top: 0;
}

.hh-masonry--wayfair.hh-masonry--packed > .hh-masonry__card {
  visibility: visible;
}

.hh-masonry__media {
  position: relative;
  background: #ebe7e2;
  overflow: hidden;
  width: 100%;
}

.hh-masonry__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Gallery brand chip: glass bar on image, only with infos */
.hh-masonry__gallery {
  display: none;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.28rem 0.55rem 0.28rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 6px 18px rgba(28, 25, 23, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  pointer-events: none;
}

.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__gallery {
  display: flex;
}

.hh-masonry__gallery-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.hh-masonry__gallery-logo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0.02em;
}

.hh-masonry__gallery-identity {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  flex: 1;
}

.hh-masonry__gallery-name {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1c1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hh-masonry__gallery-verified {
  display: inline-flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #e85d04;
  filter: drop-shadow(0 1px 1px rgba(28, 25, 23, 0.18));
}

.hh-masonry__gallery-verified svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hh-masonry__body {
  padding: 0.55rem 0.45rem 0.65rem;
  background: #fff;
}

.hh-masonry--wayfair .hh-masonry__card.is-info-on .hh-masonry__body {
  display: block;
  padding-right: 1.85rem;
}

.hh-masonry__title {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.3;
  color: #2a2a2a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-masonry__price {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a1a;
}

.hh-masonry__price--missing {
  color: #78716c;
  font-weight: 500;
}

/* Fixed page-corner ⋮ menu (mobilier display options) */
.hh-catalog-infos-menu {
  position: fixed;
  right: 14px;
  bottom: calc(var(--hh-nav-h, 64px) + var(--hh-nav-float-gap, 14px) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 10060;
}

.hh-catalog-infos-menu__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(28, 25, 23, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #1c1917;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.16);
}

.hh-catalog-infos-menu__btn:hover,
.hh-catalog-infos-menu__btn[aria-expanded="true"] {
  background: #fafafa;
}

.hh-catalog-infos-menu__panel {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.14);
  z-index: 10061;
}

.hh-catalog-infos-menu__action {
  display: block;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #1c1917;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.hh-catalog-infos-menu__action:hover {
  background: #f5f5f4;
}

@media (max-width: 899px) {
  .hh-catalog-infos-menu {
    right: 12px;
    bottom: calc(var(--hh-nav-h, 52px) + var(--hh-nav-float-gap, 10px) + 14px + env(safe-area-inset-bottom, 0px));
  }

  .hh-catalog-infos-menu__btn {
    width: 38px;
    height: 38px;
  }
}

/* Airbnb-style square listing grid (matériaux) */
.hh-square-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.55rem;
}

.ap-catalog-grid {
  margin-top: 0.35rem;
}

@media (min-width: 744px) {
  .hh-square-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 0.7rem;
  }
}

@media (min-width: 980px) {
  .hh-square-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem 0.8rem;
  }
}

@media (min-width: 1200px) {
  .hh-square-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.hh-square-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: transparent;
  min-width: 0;
}

.hh-square-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background: #ddd;
  border-radius: 10px;
}

.hh-square-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

/* Mobile: keep 2 columns like Airbnb grid cards */
@media (max-width: 710px) {
  .hh-square-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 0.65rem;
  }

  .hh-square-card__media {
    aspect-ratio: 20 / 19;
    height: auto;
    border-radius: 12px;
  }

  .hh-square-card__body {
    padding: 0.45rem 0.05rem 0.1rem;
  }

  .hh-square-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .hh-square-card__meta {
    font-size: 0.82rem;
    line-height: 1.3;
    color: #717171;
  }

  .hh-square-card__price {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
  }
}

.hh-square-card:hover .hh-square-card__media img {
  transform: scale(1.04);
}

.hh-square-card__body {
  padding: 0.45rem 0.02rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.hh-square-card__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-square-card__meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.25;
  color: #717171;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hh-square-card__price {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.01em;
}

.hh-square-card__price--missing {
  color: #717171;
  font-weight: 500;
}

.hh-section-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

/* Catalog grids inside properties home shell — match immobilier listings offset */
.home-main-column .hh-masonry,
.home-main-column .hh-square-grid,
.home-main-column .no-properties {
  margin-top: calc(var(--chip-h) + 8px);
  padding: 0 0 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 710px) {
  .home-main-column .hh-masonry,
  .home-main-column .hh-square-grid,
  .home-main-column .no-properties {
    margin-top: 60px;
  }

  .home-main-column .hh-square-grid,
  .home-main-column .hh-masonry {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}

.home-main-column .no-properties {
  grid-column: 1 / -1;
}

.hh-infinite-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0 2rem;
  min-height: 2.5rem;
}

.hh-infinite-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.hh-infinite-status {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #717171;
  text-align: center;
}


.hh-section-hero {
  margin: 0.5rem 0 1.1rem;
}

.hh-section-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  letter-spacing: -0.02em;
  color: #1c1917;
}

.hh-section-hero p {
  margin: 0;
  color: #57534e;
  font-size: 0.98rem;
  max-width: 36rem;
  line-height: 1.45;
}

.hh-section-search {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.hh-section-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: #fff;
}

.hh-section-search button {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  background: #e85d04;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.hh-section-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0 0 0.85rem;
  margin: 0 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hh-section-chips::-webkit-scrollbar {
  display: none;
}

.hh-section-chip {
  flex: 0 0 auto;
  text-decoration: none;
  color: #44403c;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hh-section-chip.is-active {
  background: #1c1917;
  border-color: #1c1917;
  color: #fff;
}

.hh-section-empty {
  text-align: center;
  color: #78716c;
  padding: 2.5rem 1rem;
}

.hh-pro-grid {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .hh-pro-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 960px;
    gap: 1rem;
  }
}

.hh-pro-card {
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1rem 1rem;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.05);
}

.hh-pro-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1c1917;
}

.hh-pro-card p {
  margin: 0 0 0.85rem;
  color: #57534e;
  font-size: 0.84rem;
  line-height: 1.4;
  min-height: 2.5em;
}

.hh-pro-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.hh-pro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.hh-pro-btn.hh-pro-btn--primary,
a.hh-pro-btn.hh-pro-btn--primary:visited {
  background: orange !important;
  background-color: orange !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
}

a.hh-pro-btn.hh-pro-btn--primary:hover,
a.hh-pro-btn.hh-pro-btn--primary:focus {
  background: #c94f03 !important;
  background-color: #c94f03 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

a.hh-pro-btn.hh-pro-btn--ghost,
a.hh-pro-btn.hh-pro-btn--ghost:visited {
  background: #fff !important;
  background-color: #fff !important;
  color: #1a1a1a !important;
  border: 1px solid #ddd !important;
  box-shadow: none;
}

a.hh-pro-btn.hh-pro-btn--ghost:hover,
a.hh-pro-btn.hh-pro-btn--ghost:focus {
  background: #fff !important;
  border-color: orange !important;
  color: orange !important;
  transform: none;
}

.hh-catalog-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.hh-catalog-detail__media {
  border-radius: 14px;
  overflow: hidden;
  background: #f5f0ea;
  margin-bottom: 1rem;
}

.hh-catalog-detail__media img {
  display: block;
  width: 100%;
  height: auto;
}

.hh-catalog-detail__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #e85d04;
  margin: 0.35rem 0 0.85rem;
}

.hh-catalog-detail__price--missing {
  color: #78716c;
  font-weight: 600;
}
