/* Homepage enhancements — load after rog-modern.css */
:root {
  --rog-gold: #d6b45a;
  --rog-gold-deep: #aa8230;
  --rog-ink: #292c31;
  --rog-muted: #6f737b;
  --rog-line: #e6e0d4;
  --rog-paper: #fff;
}

/* Property card */
.rog-property-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: min(380px, 86vw);
  overflow: hidden;
  background: var(--rog-paper);
  border: 1px solid var(--rog-line);
  border-radius: 22px;
  box-shadow: 0 14px 42px rgba(31, 34, 40, .08);
  isolation: isolate;
  transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease, border-color .45s ease;
}

.rog-property-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--rog-gold), transparent);
  transform: scaleX(0);
  transition: transform .45s ease;
}

.rog-property-card:hover {
  transform: translateY(-9px);
  border-color: rgba(214, 180, 90, .62);
  box-shadow: 0 26px 64px rgba(31, 34, 40, .16);
}

.rog-property-card:hover::after { transform: scaleX(1); }

.rog-property-card__media {
  position: relative;
  display: block;
  height: 255px;
  overflow: hidden;
  background: #dedbd4;
}

.rog-property-card__media > img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.rog-property-card:hover .rog-property-card__media > img {
  transform: scale(1.075);
  filter: saturate(1.06) contrast(1.02);
}

.rog-property-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,19,23,.2), transparent 42%, rgba(17,19,23,.48));
  pointer-events: none;
}

.rog-property-card__badges {
  position: absolute;
  top: 18px;
  left: 18px;
  right: auto;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

.rog-property-card__label,
.rog-property-card__featured,
.rog-property-card__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

/* Reset positioning inherited from the original shared card styles. */
.rog-property-card__badges > .rog-property-card__label,
.rog-property-card__badges > .rog-property-card__featured {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: 30px !important;
  margin: 0 !important;
  transform: none !important;
}

.rog-property-card__label { color: var(--rog-ink); background: var(--rog-gold); }
.rog-property-card.is-rent .rog-property-card__label { color: #fff; background: #41464f; }
.rog-property-card__featured { color: #fff; background: rgba(28,30,35,.72); }
.rog-property-card__featured i { color: var(--rog-gold); }

.rog-property-card__views {
  top: auto !important;
  right: 17px;
  bottom: 16px;
  left: auto !important;
  position: absolute;
  width: auto !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  z-index: 3;
  color: #fff;
  background: rgba(28,30,35,.64);
  letter-spacing: 0;
  text-transform: none;
}

.rog-property-card__open {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--rog-ink);
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(6px) rotate(-8deg);
  transition: opacity .3s ease, transform .3s ease;
}

.rog-property-card:hover .rog-property-card__open { opacity: 1; transform: none; }

.rog-property-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 22px;
}

.rog-property-card__location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 8px;
  color: var(--rog-muted);
  font-size: .82rem;
  line-height: 1.45;
}

.rog-property-card__location i { margin-top: 3px; color: var(--rog-gold-deep); }
.rog-property-card__location span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.rog-property-card h3 { margin: 0; font-size: clamp(1.18rem, 2vw, 1.42rem); line-height: 1.25; }
.rog-property-card h3 a { color: var(--rog-ink); text-decoration: none; }

.rog-property-card__price {
  margin: 13px 0 18px;
  color: var(--rog-gold-deep);
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.rog-property-card__price small { margin-left: 4px; color: var(--rog-muted); font-size: .72rem; font-weight: 600; letter-spacing: 0; }

.rog-property-card__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 15px 0;
  border-top: 1px solid var(--rog-line);
  border-bottom: 1px solid var(--rog-line);
}

.rog-property-card__specs span {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 1px 6px;
  color: var(--rog-muted);
  text-align: center;
}

.rog-property-card__specs span + span { border-left: 1px solid var(--rog-line); }
.rog-property-card__specs i { grid-row: 1 / span 2; align-self: center; color: var(--rog-gold-deep); font-size: .88rem; }
.rog-property-card__specs b { color: var(--rog-ink); font-size: .88rem; line-height: 1; }
.rog-property-card__specs small { font-size: .62rem; line-height: 1; }

.rog-property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}

.rog-property-card__footer p { min-width: 0; margin: 0; }
.rog-property-card__footer p span,
.rog-property-card__footer p b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rog-property-card__footer p span { color: var(--rog-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.rog-property-card__footer p b { max-width: 155px; margin-top: 3px; color: var(--rog-ink); font-size: .78rem; }

.rog-property-card__link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--rog-ink);
  background: var(--rog-gold);
  border-radius: 999px;
  text-decoration: none;
  transition: width .35s ease, background .3s ease, color .3s ease;
}

.rog-property-card__link span { width: 0; opacity: 0; white-space: nowrap; transition: width .35s ease, margin .35s ease, opacity .25s ease; }
.rog-property-card:hover .rog-property-card__link { width: 132px; }
.rog-property-card:hover .rog-property-card__link span { width: auto; margin-right: 9px; opacity: 1; font-size: .75rem; font-weight: 800; }

/* Homepage motion */
.js .rog-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .72s ease, transform .72s cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--rog-reveal-delay, 0ms);
}

.js .rog-reveal.is-visible { opacity: 1; transform: none; }

.js .rog-hero .rog-animate {
  opacity: 0;
  transform: translateY(22px);
  animation: rogHeroEnter .8s cubic-bezier(.2,.75,.25,1) forwards;
}

.js .rog-hero .rog-animate:nth-child(2) { animation-delay: .12s; }
.js .rog-hero .rog-animate:nth-child(3) { animation-delay: .24s; }
.js .rog-hero .rog-animate:nth-child(4) { animation-delay: .36s; }
.js .rog-hero .rog-animate:nth-child(5) { animation-delay: .48s; }

.rog-hero__image { transform: scale(1.035); animation: rogHeroDrift 16s ease-in-out infinite alternate; }
.rog-scroll i { animation: rogScrollCue 1.7s ease-in-out infinite; }

@keyframes rogHeroEnter { to { opacity: 1; transform: none; } }
@keyframes rogHeroDrift { to { transform: scale(1.09) translate3d(-.8%, -.5%, 0); } }
@keyframes rogScrollCue { 50% { transform: translateY(7px); } }

@media (max-width: 680px) {
  .rog-property-card { min-width: 86vw; border-radius: 18px; }
  .rog-property-card__media { height: 225px; }
  .rog-property-card__body { padding: 20px 18px; }
  .rog-property-card__featured { display: none; }
  .rog-property-card__footer p b { max-width: 135px; }
}

@media (prefers-reduced-motion: reduce) {
  .rog-property-card,
  .rog-property-card *,
  .rog-reveal,
  .rog-animate,
  .rog-hero__image,
  .rog-scroll i {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js .rog-reveal,
  .js .rog-hero .rog-animate { opacity: 1; transform: none; }
}
