/* Properties listing page — load after the shared ROG styles. */
.rog-page-properties { background: #f7f5f0; color: #292c31; }

.rog-page-hero { position: relative; min-height: 430px; display: grid; align-items: end; overflow: hidden; background: #292c31; }
.rog-page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: rogHeroDrift 18s ease-in-out infinite alternate; }
.rog-page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,30,35,.88), rgba(28,30,35,.45) 60%, rgba(28,30,35,.25)), linear-gradient(0deg, rgba(28,30,35,.62), transparent 60%); }
.rog-page-hero__content {
  position: relative;
  z-index: 1;
  width: calc(100% - 64px) !important;
  max-width: 1380px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 170px 0 76px !important;
  color: #fff;
  box-sizing: border-box;
}
.rog-page-hero h1 { max-width: 820px; margin: 10px 0 15px; font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.rog-page-hero__content > p:last-child { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); font-size: 1.05rem; line-height: 1.7; }

.rog-properties-section { position: relative; padding: 42px 32px 100px; }
.rog-properties-section > .rog-shell { width: 100% !important; max-width: 1320px !important; margin-right: auto !important; margin-left: auto !important; padding-right: 0 !important; padding-left: 0 !important; }
.rog-property-tools { width: 100%; margin: 0 auto 52px; padding: 34px 36px; background: #fff; border: 1px solid #e6e0d4; border-radius: 22px; box-shadow: 0 22px 62px rgba(31,34,40,.12); box-sizing: border-box; }
.rog-property-tools .rog-property-tools__heading { display: block !important; margin: 0 0 24px !important; padding: 0 !important; text-align: left !important; }
.rog-property-tools .rog-property-tools__heading > * { display: block !important; width: auto !important; max-width: 650px; margin-right: 0 !important; margin-left: 0 !important; text-align: left !important; }
.rog-property-tools .rog-property-tools__heading .rog-kicker { margin-bottom: 7px !important; }
.rog-property-tools .rog-property-tools__heading h2 { margin-top: 0 !important; margin-bottom: 7px !important; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.rog-property-tools__intro { color: #777a81; font-size: .92rem; line-height: 1.55; }

/* The current page is set by rog-properties.js. These rules support both
   versions of the shared navbar classes. */
.rog-page-properties .rog-current-page,
.rog-page-properties .rog-current-page > strong { color: #fff !important; }
.rog-page-properties .rog-current-page { position: relative; }
.rog-page-properties .rog-current-page::after {
  position: absolute !important;
  right: 0 !important;
  bottom: -20px !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  content: "" !important;
  background: #d6b45a !important;
  border-radius: 3px 3px 0 0;
  transform: none !important;
  opacity: 1 !important;
}

.rog-property-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
.rog-property-search label { min-height: 58px; display: flex; align-items: center; gap: 13px; padding: 0 18px; background: #f7f5f0; border: 1px solid #ddd7cc; border-radius: 12px; transition: border-color .25s, box-shadow .25s; }
.rog-property-search label:focus-within { border-color: #d6b45a; box-shadow: 0 0 0 4px rgba(214,180,90,.16); }
.rog-property-search label i { color: #aa8230; }
.rog-property-search input { width: 100%; padding: 0; color: #292c31; background: transparent; border: 0; outline: 0; font: inherit; }
.rog-property-search button { min-width: 142px; padding: 0 23px; color: #292c31; background: #d6b45a; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .25s, background .25s; }
.rog-property-search button:hover { transform: translateY(-2px); background: #e0c16c; }

.rog-property-tools__meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 19px; border-top: 1px solid #e6e0d4; }
.rog-property-tools__meta > p { margin: 0; color: #6f737b; }
.rog-property-tools__meta > p strong { color: #292c31; }
.rog-property-tools__meta form { display: flex; align-items: center; gap: 10px; }
.rog-property-tools__meta label { color: #6f737b; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rog-property-tools__meta select { min-height: 42px; padding: 0 38px 0 13px; color: #292c31; background: #fff; border: 1px solid #ddd7cc; border-radius: 9px; font: inherit; cursor: pointer; }

.rog-property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.rog-property-grid .rog-property-card { min-width: 0; width: 100%; }
.rog-property-grid .rog-property-card__media { height: 235px; }
.rog-property-card__type { margin: 0 0 8px; color: #aa8230; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rog-property-card__status { position: static !important; display: inline-flex; align-items: center; height: 30px; padding: 6px 11px; color: #fff; background: #525862; border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.rog-property-card__status.is-reserved { color: #292c31; background: #f1c75b; }
.rog-property-card__status.is-sold { background: #a8483e; }
.rog-property-card__footer p small { display: block; margin-top: 5px; color: #8b8e94; font-size: .66rem; }

.rog-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 56px; }
.rog-pagination p { margin: 0; color: #6f737b; }
.rog-pagination p strong { color: #292c31; }
.rog-pagination a { display: inline-flex; min-height: 46px; align-items: center; gap: 9px; padding: 0 18px; color: #292c31; background: #fff; border: 1px solid #ddd7cc; border-radius: 999px; font-size: .82rem; font-weight: 800; text-decoration: none; transition: transform .25s, border-color .25s, background .25s; }
.rog-pagination a:hover { transform: translateY(-2px); border-color: #d6b45a; background: #fffaf0; }
.rog-pagination a.is-disabled { opacity: .38; pointer-events: none; }

.rog-property-empty { max-width: 690px; margin: 25px auto 0; padding: 70px 34px; text-align: center; background: #fff; border: 1px solid #e6e0d4; border-radius: 22px; }
.rog-property-empty > span { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; place-items: center; color: #aa8230; background: #f4ead0; border-radius: 50%; font-size: 1.7rem; }
.rog-property-empty h2 { margin: 8px 0 11px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.rog-property-empty > p:not(.rog-kicker) { color: #6f737b; }
.rog-property-empty a { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: #292c31; font-weight: 800; text-decoration: none; }

.rog-notice { display: flex; align-items: center; gap: 12px; margin: 24px 0; padding: 15px 18px; background: #fff; border: 1px solid #ddd7cc; border-left: 4px solid #d6b45a; border-radius: 10px; }
.rog-notice.is-error { border-left-color: #a8483e; }
.sr-only { 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: 1050px) { .rog-property-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .rog-page-hero { min-height: 380px; }
  .rog-page-hero__content { width: calc(100% - 36px) !important; padding-top: 135px !important; padding-bottom: 68px !important; }
  .rog-properties-section { padding: 26px 18px 70px; }
  .rog-property-tools { margin: 0 auto 38px; padding: 23px 18px; border-radius: 17px; }
  .rog-property-search { grid-template-columns: 1fr; }
  .rog-property-search button { min-height: 52px; }
  .rog-property-tools__meta { align-items: flex-start; flex-direction: column; }
  .rog-property-tools__meta form { width: 100%; justify-content: space-between; }
  .rog-property-tools__meta select { min-width: 0; flex: 1; }
  .rog-property-grid { grid-template-columns: 1fr; }
  .rog-property-grid .rog-property-card { min-width: 0; }
  .rog-pagination { gap: 10px; }
  .rog-pagination a span { display: none; }
  .rog-pagination a { width: 44px; padding: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { .rog-page-hero > img { animation: none !important; } }
