/* Homepage — editorial hero matrix (info | visual | search) */

.home-hero {
  --hero-col-info: clamp(196px, 13.5vw, 236px);
  --hero-col-search: clamp(252px, 17vw, 296px);
  --hero-visual-h: clamp(300px, 26vw, 380px);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 0;
  background: #0a0908;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(201, 169, 98, 0.09), transparent 58%),
    radial-gradient(700px 380px at 100% 100%, rgba(232, 93, 93, 0.07), transparent 55%),
    linear-gradient(180deg, #121110 0%, #0a0908 48%, #080706 100%);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.home-hero.is-filters-open {
  overflow: visible;
}

.home-hero__panel {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.home-hero__shell--matrix {
  display: grid;
  grid-template-columns: var(--hero-col-info) minmax(0, 1fr) var(--hero-col-search);
  align-items: stretch;
  max-width: 1920px;
  margin: 0 auto;
  min-height: var(--hero-visual-h);
}

.home-gallery.swiper-container {
  position: relative;
  grid-column: 1 / 3;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: var(--hero-visual-h);
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
}

.home-hero-search {
  grid-column: 3;
  grid-row: 1;
}

.home-gallery.swiper-container .swiper-wrapper,
.home-gallery.swiper-container .swiper-slide,
.home-gallery.swiper-container .slide-item {
  height: auto;
  min-height: var(--hero-visual-h);
}

.home-gallery.swiper-container .swiper-wrapper .swiper-slide .slide-item {
  height: auto !important;
  min-height: var(--hero-visual-h) !important;
  background: transparent !important;
  position: relative;
  overflow: hidden;
}

.home-gallery .slide-item::before {
  display: none;
}

.hero-stage {
  display: grid;
  grid-template-columns: var(--hero-col-info) minmax(0, 1fr);
  align-items: stretch;
  height: 100%;
  min-height: var(--hero-visual-h);
}

.hero-stage__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: clamp(1.35rem, 2vw, 1.85rem) clamp(1.15rem, 1.6vw, 1.5rem);
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-stage__gallery {
  position: relative;
  height: var(--hero-visual-h);
  min-height: var(--hero-visual-h);
  overflow: hidden;
  background: #050504;
}

.hero-stage__gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, rgba(5, 5, 4, 0.35) 0%, transparent 12%, transparent 88%, rgba(5, 5, 4, 0.35) 100%);
}

.home-gallery .hero-slide-photos--triptych {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  height: 100%;
  min-height: var(--hero-visual-h);
  margin: 0;
  padding: 0;
  background: #050504;
}

.home-gallery .hero-slide-photos--triptych.hero-slide-photos--n1 {
  grid-template-columns: 1fr;
  gap: 0;
}

.home-gallery .hero-slide-photos--triptych.hero-slide-photos--n2 {
  grid-template-columns: 1fr 1fr;
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #050504;
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo::after {
  display: none;
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo img,
.home-gallery .hero-slide-photos--triptych .hero-slide-img,
.home-gallery .hero-slide-photos--triptych .swiper-lazy {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  transform: scale(1.015);
  transform-origin: center center;
  filter: saturate(1.05) contrast(1.02);
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(1) img,
.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(1) .swiper-lazy {
  object-position: 54% center;
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(2) img,
.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(2) .swiper-lazy {
  object-position: center 40%;
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(3) img,
.home-gallery .hero-slide-photos--triptych .hero-slide-photo:nth-child(3) .swiper-lazy {
  object-position: 46% center;
}

@media (prefers-reduced-motion: no-preference) {
  .home-gallery .swiper-slide-active .hero-slide-photos--triptych .hero-slide-photo img,
  .home-gallery .swiper-slide-active .hero-slide-photos--triptych .hero-slide-photo .swiper-lazy {
    animation: heroTriptychKenBurns 28s ease-out forwards;
  }
}

@keyframes heroTriptychKenBurns {
  from { transform: scale(1.015); }
  to { transform: scale(1.055); }
}

.home-gallery .hero-slide-photos--triptych .hero-slide-photo:only-child {
  grid-column: 1 / -1;
}

.home-gallery .hero-slide-info {
  color: #f5f2ed;
  text-shadow: none;
}

.home-gallery .hero-slide-info .property-status {
  margin-bottom: 0.75rem;
}

.home-gallery .hero-slide-info .district {
  margin: 0 0 0.85rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a962;
}

.home-gallery .hero-slide-info h3.en {
  margin: 0 0 0.4rem;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
}

.home-gallery .hero-slide-info h3.zh {
  margin: 0 0 1.35rem;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(245, 242, 237, 0.58);
}

.home-gallery .hero-slide-info__meta {
  display: block;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-gallery .hero-slide-info__rent-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.42);
}

.home-gallery .hero-slide-info__price {
  display: block;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

.home-gallery .hero-slide-info__price .currency {
  font-size: 0.78em;
  font-weight: 500;
  color: #c9a962;
}

.home-gallery .hero-slide-info a.details {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 1.45rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-gallery .hero-slide-info a.details::after {
  content: "→";
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.home-gallery .hero-slide-info a.details:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.home-gallery .hero-slide-info a.details:hover::after {
  transform: translateX(3px);
}

.home-gallery .hero-slide-layout:not(.hero-slide-layout--triptych) {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.25rem) 1.25rem clamp(2.5rem, 6vh, 4rem);
  min-height: inherit;
  box-sizing: border-box;
}

.home-gallery .hero-slide-photos {
  display: grid;
  gap: 0.55rem;
  min-height: 240px;
  max-height: 400px;
  height: 100%;
}

.home-gallery .hero-slide-photo {
  min-height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-gallery .hero-slide-photo img,
.home-gallery .hero-slide-img,
.home-gallery .hero-slide-photo .swiper-lazy {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.home-gallery.swiper-container .swiper-wrapper .swiper-slide .slide-item .container {
  position: static !important;
  top: auto !important;
  left: auto !important;
}

.home-gallery .swiper-pagination {
  bottom: 0.75rem !important;
  left: var(--hero-col-info);
  right: 0;
  width: auto;
  z-index: 25;
}

.home-gallery .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.home-gallery .swiper-pagination-bullet-active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.home-gallery .swiper-button-prev,
.home-gallery .swiper-button-next {
  top: 50% !important;
  bottom: auto !important;
  z-index: 26;
  width: 38px;
  height: 38px;
  margin-top: -19px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(10, 9, 8, 0.55);
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 11px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 1 !important;
  transform: none;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-gallery .swiper-button-prev.swiper-button-white,
.home-gallery .swiper-container-rtl .swiper-button-next.swiper-button-white {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E");
}

.home-gallery .swiper-button-next.swiper-button-white,
.home-gallery .swiper-container-rtl .swiper-button-prev.swiper-button-white {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E");
}

.home-gallery .swiper-button-prev:hover,
.home-gallery .swiper-button-next:hover {
  background-color: rgba(10, 9, 8, 0.78);
  border-color: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.home-gallery .swiper-button-prev::after,
.home-gallery .swiper-button-next::after {
  content: none;
}

.home-gallery .swiper-button-prev {
  left: 0.5rem !important;
  right: auto !important;
}

.home-gallery .swiper-button-next {
  right: 0.5rem !important;
  left: auto !important;
}

/* Search — glass right rail */
.home-hero-search {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  z-index: 5;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-hero-search.is-filters-open {
  z-index: 35;
}

.home-hero-search__container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: var(--hero-visual-h);
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 1.6vw, 1.65rem) clamp(1rem, 1.4vw, 1.35rem);
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.home-hero-search__title {
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  letter-spacing: -0.01em;
}

@media (min-width: 992px) {
  .home-hero-search__container {
    max-height: var(--hero-visual-h);
  }

  .home-hero-search__form {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  .home-hero-search__anchor {
    position: relative;
    flex-shrink: 0;
  }

  .home-hero-search__primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .home-hero-search__actions-row {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
  }

  .home-hero-search__keyword-wrap {
    flex: 1 1 auto;
  }

  .home-hero-search__filters-btn {
    flex: 1 1 42%;
    min-width: 0;
  }

  .home-hero-search__submit--main {
    flex: 1 1 58%;
    min-width: 0;
  }

  .home-hero-search__filters-btn,
  .home-hero-search__submit--main {
    width: auto;
    justify-content: center;
    min-height: 40px;
  }

  .home-hero-search__links {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-hero-search__filters:not([hidden]) {
    position: absolute !important;
    top: 0;
    right: calc(100% + 0.65rem);
    left: auto;
    width: min(340px, calc(100vw - var(--hero-col-info) - var(--hero-col-search) - 3rem));
    z-index: 90;
    margin: 0 !important;
    padding: 0;
    border: 0;
    max-height: min(480px, var(--hero-visual-h));
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    background: rgba(10, 9, 8, 0.98);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .home-hero-search__filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .home-hero-search__filters-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 242, 237, 0.72);
  }

  .home-hero-search__filters-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(245, 242, 237, 0.8);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .home-hero-search__filters-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .home-hero-search__filters:not([hidden]) .home-hero-search__filters-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.75rem 0.85rem 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  }
}

.home-hero-search__form {
  margin: 0;
  overflow: visible !important;
}

.home-hero-search__form.lists-search {
  overflow: visible !important;
}

.home-hero-search__container {
  overflow: visible !important;
}

.home-hero-search__anchor {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.home-hero-search.is-filters-open .home-hero-search__anchor {
  z-index: 96;
}

.home-hero-search__primary {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.home-hero-search__actions-row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
}

.home-hero-search__keyword-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-hero-search__keyword-wrap:focus-within {
  border-color: rgba(201, 169, 98, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.12);
  background: rgba(255, 255, 255, 0.09);
}

.home-hero-search__submit--main {
  background: #cd212d !important;
  border-color: #cd212d !important;
  box-shadow: 0 8px 24px rgba(205, 33, 45, 0.35);
}

.home-hero-search__link {
  color: rgba(245, 242, 237, 0.72);
}

.home-hero-search__link:hover {
  color: #fff;
}

.home-hero-search__keyword-wrap > i {
  color: rgba(245, 242, 237, 0.45);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.home-hero-search__keyword-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.72rem 0;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
}

.home-hero-search__keyword-input::placeholder {
  color: rgba(245, 242, 237, 0.38);
}

.home-hero-search__filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(245, 242, 237, 0.88) !important;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-hero-search__filters-btn:hover,
.home-hero-search__filters-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.home-hero-search__filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #cd212d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.home-hero-search__filter-count[hidden] {
  display: none !important;
}

.home-hero-search__submit--main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: #cd212d;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-hero-search__submit--main:hover {
  background: #a01825;
}

@media (min-width: 992px) {
  .home-hero-search__primary {
    flex-direction: column;
  }
}

.home-hero-search__filters {
  margin: 0;
  padding: 0;
  border: 0;
}

.home-hero-search__filters[hidden] {
  display: none !important;
}

.home-hero-search .home-hero-search__filters.is-open,
.home-hero-search .home-hero-search__filters.is-expanded,
.home-hero-search .home-hero-search__filters:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Portaled panel — escapes backdrop-filter stacking context, sits above overlay */
.home-hero-search__filters--portal {
  position: fixed !important;
  z-index: 1300 !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  flex: none !important;
  background: rgba(10, 9, 8, 0.98) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.home-hero-search__filters--portal .home-hero-search__filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.home-hero-search__filters--portal .home-hero-search__filters-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.72);
}

.home-hero-search__filters--portal .home-hero-search__filters-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 242, 237, 0.8);
  cursor: pointer;
}

.home-hero-search__filters--portal .home-hero-search__filters-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-hero-search__filters-foot {
  flex-shrink: 0;
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 7, 6, 0.92);
}

.home-hero-search__filters-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #cd212d;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.home-hero-search__filters-search:hover {
  background: #a01825;
}

.home-hero-search__filters-search:active {
  transform: scale(0.98);
}

.home-hero-search__filters:not([hidden]) .home-hero-search__filters-foot,
.home-hero-search__filters--portal .home-hero-search__filters-foot {
  display: block;
}

@media (max-width: 991.98px) {
  .home-hero-search__filters--portal {
    top: auto !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-height: min(72vh, 560px) !important;
  }
}

body.home-filters-overlay-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
}

@media (min-width: 992px) {
  body.home-filters-overlay-open::before {
    z-index: 1200;
    background: rgba(0, 0, 0, 0.28);
  }
}

.home-hero-search__filters-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-hero-search .home-hero-search__filter-block,
.home-hero-search__filters--portal .home-hero-search__filter-block {
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-width: 0;
}

.home-hero-search .home-hero-search__filter-block .lists-search__block,
.home-hero-search .home-hero-search__filter-block.lists-search__block,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__block,
.home-hero-search__filters--portal .home-hero-search__filter-block.lists-search__block {
  gap: 0.45rem;
}

.home-hero-search .home-hero-search__filter-block .lists-search__label,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.48);
}

.home-hero-search .home-hero-search__filter-block .lists-search__range,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__range {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}

.home-hero-search .home-hero-search__filter-block .lists-search__input,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__input {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 34px;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.home-hero-search .home-hero-search__filter-block .lists-search__input::placeholder,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__input::placeholder {
  color: rgba(245, 242, 237, 0.35);
}

.home-hero-search .home-hero-search__filter-block .lists-search__range-sep,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__range-sep {
  color: rgba(245, 242, 237, 0.35);
  font-size: 0.75rem;
}

.home-hero-search .home-hero-search__filter-block .lists-search__presets,
.home-hero-search .home-hero-search__filter-block .lists-search__pills,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__presets,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.home-hero-search .home-hero-search__filter-block .lists-search__preset,
.home-hero-search .home-hero-search__filter-block .lists-search__pill,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__preset,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__pill {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(245, 242, 237, 0.82);
  cursor: pointer;
  white-space: nowrap;
}

.home-hero-search .home-hero-search__filter-block .lists-search__preset.is-active,
.home-hero-search .home-hero-search__filter-block .lists-search__preset:hover,
.home-hero-search .home-hero-search__filter-block .lists-search__pill.is-active,
.home-hero-search .home-hero-search__filter-block .lists-search__pill:hover,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__preset.is-active,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__preset:hover,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__pill.is-active,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__pill:hover {
  border-color: rgba(205, 33, 45, 0.55);
  background: rgba(205, 33, 45, 0.2);
  color: #fff;
  font-weight: 600;
}

.home-hero-search__district-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.home-hero-search__district-head .lists-search__label {
  margin-bottom: 0;
}

.home-hero-search__district-all {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #c9a962;
  cursor: pointer;
}

.home-hero-search__district-all:hover {
  color: #e8d4a8;
}

.home-hero-search .home-hero-search__filter-block--district .lists-search__chips--district,
.home-hero-search__filters--portal .home-hero-search__filter-block--district .lists-search__chips--district {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 108px;
  overflow-y: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.home-hero-search .home-hero-search__filter-block .lists-search__chip,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__chip {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.home-hero-search .home-hero-search__filter-block .lists-search__chip-input,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.home-hero-search .home-hero-search__filter-block .lists-search__chip span,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__chip span {
  display: inline-block;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  line-height: 1.2;
  color: rgba(245, 242, 237, 0.82);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-hero-search .home-hero-search__filter-block .lists-search__chip-input:checked + span,
.home-hero-search__filters--portal .home-hero-search__filter-block .lists-search__chip-input:checked + span {
  border-color: rgba(205, 33, 45, 0.55);
  background: rgba(205, 33, 45, 0.2);
  color: #fff;
  font-weight: 600;
}

.home-hero-search__form.lists-search {
  gap: 0;
}

.home-hero-search__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-search__link {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
}

.home-hero-search__link--map i {
  margin-right: 0.2rem;
  opacity: 0.75;
}

.home-hero-search.is-filters-open .home-hero-search__container {
  box-shadow: none;
}

/* Beat legacy app.css grid/flex rules on the filters wrapper */
.home-hero-search .home-hero-search__filters.is-open,
.home-hero-search .home-hero-search__filters:not([hidden]) {
  grid-template-columns: none !important;
  min-height: 0 !important;
}

/* Override legacy app.css rules that hide filters btn on desktop */
.home-hero-search__filters-btn {
  display: inline-flex !important;
  position: relative;
  z-index: 3;
  pointer-events: auto !important;
  cursor: pointer;
}

.home-hero-search__submit--main {
  display: inline-flex !important;
}

.home-hero-search .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767.98px) {
  .home-hero-search__submit--main {
    display: inline-flex !important;
  }
}

@media (min-width: 1400px) {
  .home-hero {
    --hero-col-info: 248px;
    --hero-col-search: 312px;
    --hero-visual-h: 400px;
  }
}

@media (max-width: 1199.98px) {
  .home-hero {
    --hero-col-info: clamp(180px, 14vw, 220px);
    --hero-col-search: clamp(240px, 20vw, 280px);
  }
}

@media (max-width: 991.98px) {
  .home-hero {
    width: 100%;
    margin-left: 0;
    padding: 0;
    --hero-visual-h: auto;
  }

  .home-hero-search__container {
    max-height: none;
  }

  .home-hero-search__filters:not([hidden]) {
    position: fixed !important;
    top: auto !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    bottom: 0.75rem !important;
    width: auto !important;
    z-index: 1200;
    margin: 0 !important;
    padding: 0;
    max-height: min(72vh, 560px);
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    border-radius: 14px;
    background: rgba(10, 9, 8, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .home-hero-search__filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .home-hero-search__filters:not([hidden]) .home-hero-search__filters-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 0.9rem 0.5rem;
  }

  .home-hero-search__filters:not([hidden]) .home-hero-search__filters-foot {
    padding: 0.65rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  /* mobile overlay — unified in global body.home-filters-overlay-open::before */

  .home-hero__shell--matrix {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-gallery.swiper-container {
    grid-column: auto;
    grid-row: auto;
  }

  .home-gallery.swiper-container,
  .home-gallery.swiper-container .swiper-wrapper,
  .home-gallery.swiper-container .swiper-slide,
  .home-gallery.swiper-container .slide-item {
    min-height: 0;
    height: auto;
  }

  .home-gallery.swiper-container {
    display: block !important;
    height: auto !important;
  }

  .home-gallery.swiper-container .swiper-wrapper {
    height: auto !important;
  }

  .home-gallery .hero-slide-info,
  .home-gallery .hero-stage__info {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .home-gallery.swiper-container .swiper-wrapper .swiper-slide .slide-item {
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
  }

  .home-gallery.swiper-container .swiper-wrapper {
    height: auto !important;
  }

  .home-gallery.swiper-container .swiper-slide {
    height: auto !important;
  }

  .hero-stage {
    display: block;
    position: relative;
    min-height: 0;
  }

  .hero-stage__gallery {
    order: 0;
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-stage__gallery::after {
    z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 4, 0.35) 100%);
  }

  .hero-stage__info {
    order: unset;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.25rem 1rem 1rem;
    border-right: 0;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.62) 38%, rgba(10, 9, 8, 0.9) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-gallery .hero-slide-info__meta {
    border-top: 0;
    padding-top: 0.75rem;
  }

  .home-gallery .hero-slide-info__meta::before {
    content: "";
    display: block;
    width: 2rem;
    height: 1px;
    margin-bottom: 0.7rem;
    background: rgba(255, 255, 255, 0.28);
  }

  .home-gallery .hero-slide-photos--triptych {
    min-height: 100%;
    height: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .home-gallery .hero-slide-photos--triptych .hero-slide-photo:not(:first-child) {
    display: block !important;
  }

  .home-gallery .hero-slide-photos--triptych .hero-slide-photo {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .home-gallery .hero-slide-photos--triptych .hero-slide-photo img,
  .home-gallery .hero-slide-photos--triptych .hero-slide-photo .swiper-lazy {
    transform: none;
    animation: none !important;
  }

  .home-hero-search {
    order: 3;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .home-hero-search__container {
    min-height: 0;
    height: auto;
    padding: 1rem 1.1rem 1.15rem;
  }

  .home-hero-search__title {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    font-size: 1rem;
  }

  .home-gallery .swiper-pagination {
    left: 0;
    right: 0;
    bottom: 0.65rem !important;
  }

  .home-gallery .swiper-button-prev,
  .home-gallery .swiper-button-next {
    top: 50% !important;
    bottom: auto !important;
    margin-top: -19px !important;
  }

  .home-gallery .swiper-button-prev {
    left: 0.5rem !important;
    right: auto !important;
  }

  .home-gallery .swiper-button-next {
    right: 0.5rem !important;
    left: auto !important;
  }

  .home-gallery .hero-slide-layout:not(.hero-slide-layout--triptych) {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 1.5rem 1rem 2.5rem;
  }

  .home-gallery .hero-slide-photos:not(.hero-slide-photos--triptych) {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    min-height: 0;
    max-height: none;
  }

  .home-gallery .hero-slide-photos:not(.hero-slide-photos--triptych) .hero-slide-photo {
    position: absolute;
    inset: 0;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .home-gallery .hero-slide-photo-extra {
    display: none !important;
  }

  .home-gallery .hero-slide-photos:not(.hero-slide-photos--triptych) .hero-slide-photo:first-child img,
  .home-gallery .hero-slide-photos:not(.hero-slide-photos--triptych) .hero-slide-photo:first-child .swiper-lazy {
    min-height: 100%;
  }

  .home-hero-search__title {
    font-size: 1rem;
    margin-bottom: 0.65rem;
    text-align: left;
  }

  .home-hero-search__primary {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .home-hero-search__keyword-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .home-hero-search__actions-row {
    width: 100%;
  }

  .home-hero-search__filters-btn,
  .home-hero-search__submit--main {
    flex: 1;
    justify-content: center;
  }

  .home-hero-search__filters-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rent"
      "bedroom"
      "district";
    gap: 0.75rem;
  }

  .home-hero-search__filter-block {
    padding: 0.75rem 0.85rem;
  }

  .home-hero-search__links {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .home-hero::before {
    background:
      radial-gradient(700px 320px at 0% 0%, rgba(201, 169, 98, 0.06), transparent 58%),
      linear-gradient(180deg, rgba(18, 17, 16, 0.35) 0%, rgba(10, 9, 8, 0.15) 42%, rgba(8, 7, 6, 0.55) 100%);
  }

  .home-hero::after {
    opacity: 0.12;
  }

  .hero-stage__gallery {
    aspect-ratio: 4 / 3;
  }

  .hero-stage__info {
    padding: 2rem 1rem 0.85rem;
  }

  .home-gallery .hero-slide-photos--triptych {
    display: block !important;
    min-height: 100%;
    height: 100%;
  }

  .home-gallery .hero-slide-photos--triptych .hero-slide-photo:not(:first-child) {
    display: none !important;
  }

  .home-gallery .hero-slide-photos--triptych .hero-slide-photo:first-child {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .home-gallery .hero-slide-info h3.en {
    font-size: 1.2rem;
  }

  .home-gallery .hero-slide-info h3.zh {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .home-gallery .hero-slide-info__meta {
    border-top: 0;
    padding-top: 0.75rem;
  }

  .home-gallery .hero-slide-info__meta::before {
    width: 2rem;
  }

  /* Beat legacy app.css mobile hero — keep photos visible, not frosted over */
  .home-gallery.swiper-container {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .home-gallery.swiper-container .swiper-wrapper {
    height: auto !important;
  }

  .home-gallery.swiper-container .swiper-slide,
  .home-gallery.swiper-container .swiper-wrapper .swiper-slide .slide-item {
    height: auto !important;
    min-height: 0 !important;
  }

  .home-gallery .hero-slide-info,
  .home-gallery .hero-stage__info {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Main content */
main.container.home-page {
  max-width: 1320px;
  padding: 0 1rem 2rem !important;
}

.home-page .latest-uploads-section {
  margin: 1.75rem 0;
}

.home-page .latest-uploads-section:first-of-type {
  margin-top: 1.25rem;
}

.home-page .home-property-section {
  margin-top: 0.25rem;
}

.home-page .latest-uploads-grid > [class*="col-"] {
  display: flex;
}

.home-page .latest-listing-card .property-status {
  top: 0.35rem;
  right: 0.35rem;
  padding: 0;
}

.home-page .latest-listing-card__meta--address {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.home-page hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid rgba(44, 36, 25, 0.08);
}

.home-page .text-brand-primary {
  color: #bc9f5d !important;
}

/* Agent & service carousels */
.home-page-carousel-section {
  margin: 1.75rem 0;
}

.home-page .home-carousel {
  position: relative;
  padding: 0 2.25rem;
  margin: 0 -0.25rem;
}

.home-page .home-carousel .swiper-wrapper {
  align-items: stretch;
}

.home-page .home-carousel .swiper-button-prev,
.home-page .home-carousel .swiper-button-next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(44, 36, 25, 0.12);
  opacity: 1 !important;
}

.home-page .home-carousel .swiper-button-prev {
  left: 0 !important;
}

.home-page .home-carousel .swiper-button-next {
  right: 0 !important;
}

.home-page .home-carousel .swiper-button-disabled {
  opacity: 0.35 !important;
  pointer-events: none;
}

.home-page .home-carousel .swiper-pagination {
  position: static;
  margin-top: 0.85rem;
}

.home-agent-slide {
  width: 148px;
  text-align: center;
}

.home-agent-slide__photo {
  display: block;
}

.home-agent-slide__photo img {
  display: block;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(44, 36, 25, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-agent-slide__photo:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 36, 25, 0.16);
}

.home-agent-slide__name {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #bc9f5d;
  text-decoration: none !important;
}

.home-agent-slide__name:hover {
  color: #cd212d;
}

.home-service-slide {
  width: min(300px, 78vw);
}

.home-service-slide__photo {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f0ebe3;
  aspect-ratio: 16 / 10;
}

.home-service-slide__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-service-slide__photo:hover img {
  transform: scale(1.03);
}

.home-service-slide__title {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #bc9f5d;
  text-align: center;
  text-decoration: none !important;
}

.home-service-slide__title:hover {
  color: #cd212d;
}

@media (max-width: 767.98px) {
  main.container.home-page {
    padding: 0 0.75rem 1.5rem !important;
  }

  .home-page .home-carousel {
    padding: 0 1.75rem;
  }

  .home-agent-slide {
    width: 132px;
  }

  .home-agent-slide__photo img {
    width: 8.5rem;
    height: 8.5rem;
  }
}

/* Comment avatars (shared) */
.comment-avatar-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.comment-avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--comment-avatar-color, #bc9f5d);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.comment-avatar-wrap.has-photo .comment-avatar--initial {
  display: none;
}

.comment-avatar-wrap.is-fallback .comment-avatar--photo {
  display: none;
}

.comment-avatar-wrap.is-fallback .comment-avatar--initial {
  display: flex;
}

.comment-avatar--photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Latest Testimonials on homepage */
.home-testimonials-section {
  margin-top: 0.5rem;
}

.home-testimonials-section .latest-uploads-grid > [class*="col-"] {
  display: flex;
}

.home-comment-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(188, 159, 93, 0.28);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(44, 36, 25, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-comment-card:hover {
  box-shadow: 0 6px 20px rgba(44, 36, 25, 0.1);
  transform: translateY(-2px);
}

.home-comment-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.home-comment-card__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.home-comment-card__stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.home-comment-card__stars img {
  width: 1.05rem;
  height: 1.05rem;
}

.home-comment-card__rating-label {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #aaa;
}

.home-comment-card__date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
}

.home-comment-card__message {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2c2419;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-comment-card__country {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5d3c19;
  background: #faf8f4;
  border-radius: 999px;
  width: fit-content;
}

.home-comment-card__pics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.home-comment-card__pics img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 6px;
  object-fit: cover;
}

.home-comment-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(44, 36, 25, 0.08);
  font-size: 0.8rem;
  color: #666;
}

@media (max-width: 767.98px) {
  .home-comment-card__message {
    -webkit-line-clamp: 6;
  }
}
