/* ==========================================================================
   Inner pages — shared styles for team member, neighborhood, search,
   featured properties, and listing detail pages.
   ========================================================================== */

/* ---------- Page hero banner (shared pattern) ---------- */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.page-hero.short { min-height: 60vh; }
.page-hero-overlay { position: absolute; inset: 0; background: #000; opacity: .31; }
.page-hero-content {
  position: relative;
  width: 100%;
  max-width: 1440px;
  text-align: center;
  color: #fff;
  padding: 0 80px;
}
.page-hero-title {
  font-family: var(--gruppo);
  font-size: 70px;
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
}
.page-hero-title h1, .page-hero-title h2 { display: inline; font: inherit; color: inherit; }
.page-hero-sub {
  margin-top: 10px;
  font-family: 'Inter', var(--lato), sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- Team member: info block ---------- */
.agent-info {
  max-width: 1440px;
  margin: 0 auto;
  padding: 90px 30px 40px;
  display: grid;
  grid-template-columns: 511px 1fr;
  gap: 110px;
}
.agent-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.agent-name {
  font-family: var(--gruppo);
  font-size: 43px;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.3;
}
.agent-role {
  margin-top: 8px;
  font-family: var(--gruppo);
  font-size: 21px;
  color: var(--secondary);
  line-height: 1.5;
}
.agent-contact { margin-top: 28px; }
.agent-contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.agent-contact p {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 26px;
  color: var(--secondary);
  text-transform: uppercase;
}
.agent-contact p.no-upper { text-transform: none; }
.agent-contact a:hover { text-decoration: underline; }
.agent-divider { height: 1px; background: #d5d5d5; margin: 20px 0 24px; }
.agent-socials { display: flex; gap: 10px; }
.agent-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  border: 1.5px solid #C6C6C6;
  color: #b9bec4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .3s, border-color .3s;
}
.agent-socials a:hover { color: #fff; border-color: #fff; }

/* ---------- Team member: bio ---------- */
.agent-bio { max-width: 1440px; margin: 0 auto; padding: 70px 80px 40px; }
.agent-bio h2 {
  font-family: var(--gruppo);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: 20px;
}
.agent-bio p { font-size: 16px; line-height: 26px; color: var(--secondary); margin-bottom: 20px; }

/* ---------- Property card grid (team + featured properties) ---------- */
.props-section { max-width: 1440px; margin: 0 auto; padding: 40px 65px 90px; }
.props-section > h2 {
  font-family: var(--gruppo);
  font-size: 43px;
  font-weight: 400;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: 30px;
}
.props-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
  row-gap: 60px;
}
.prop-card {
  display: block;
  background: #fff;
}
.prop-info {
  background: #fff;
  padding: 26px 26px 34px;
  text-align: center;
}
.prop-media { position: relative; overflow: hidden; }
.prop-media img {
  width: 100%;
  aspect-ratio: 575 / 350;
  object-fit: cover;
  transition: transform .6s ease;
}
.prop-card:hover .prop-media img { transform: scale(1.04); }
/* light white wash + centered "View Property" button, both fading in on hover */
.prop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .32);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.prop-card:hover .prop-overlay { opacity: 1; }
.prop-view {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  border: 2px solid var(--secondary);
  background: transparent;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 42px;
  white-space: nowrap;
  transition: opacity .4s ease, background-color .3s ease, color .3s ease;
}
.prop-card:hover .prop-view { opacity: 1; pointer-events: auto; }
.prop-view:hover { background: var(--secondary); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .prop-media img,
  .prop-overlay,
  .prop-view { transition: none; }
}
.prop-status {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 35px;
  letter-spacing: .5px;
}
.prop-title {
  margin-top: 0;
  font-family: var(--gruppo);
  font-size: 25px;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.35;
}
.prop-address {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--secondary);
}
.prop-specs {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--secondary);
}
.prop-specs li { white-space: nowrap; }
.prop-specs li + li { border-left: 1px solid #c9c9c9; padding-left: 14px; }
.prop-price { margin-top: 14px; font-size: 16px; font-weight: 700; color: var(--secondary); }

/* featured properties */
.sale-hero { min-height: 600px; }

/* Collection grids (Featured / Sold / International / Past Transactions) sit on
   a light grey band so the white listing cards read as cards. No shadow. */
.sale-grid-section {
  max-width: none;
  padding: 64px 0 90px;
  background: #f1f1f1;
}
.sale-grid-section .props-grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
  column-gap: 48px;
}
.sale-grid-section .collection-pagination { padding-top: 56px; }

@media (max-width: 1180px) {
  .agent-info { grid-template-columns: 1fr; gap: 50px; padding-top: 60px; }
  .agent-photo { max-width: 511px; }
  .agent-bio { padding: 50px 30px 30px; }
  .props-section { padding: 30px 30px 70px; }
  .props-grid { column-gap: 40px; }
  .sale-grid-section { padding: 48px 0 72px; }
  .sale-grid-section .props-grid { padding: 0 28px; column-gap: 32px; }
  .page-hero-title { font-size: 48px; }
}
@media (max-width: 768px) {
  .props-grid { grid-template-columns: 1fr; }
  .sale-grid-section .props-grid { padding: 0 20px; }
  .agent-contact .row2 { grid-template-columns: 1fr; gap: 0; }
  .page-hero-title { font-size: 36px; }
  .page-hero-sub { font-size: 17px; }
  .prop-view { font-size: 13px; padding: 13px 32px; }
  .agent-bio h2, .props-section > h2 { font-size: 34px; }
}
@media (max-width: 480px) {
  .prop-info { padding: 24px 16px 30px; }
  .prop-specs { gap: 10px; font-size: 13px; letter-spacing: .4px; }
  .prop-specs li + li { padding-left: 10px; }
}

/* ---------- CMS states ---------- */
.cms-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  font-family: var(--gruppo);
  font-size: 21px;
  color: #666;
}
.cms-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-size: 16px;
  color: #666;
}
.cms-notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: var(--header-h) 20px 60px;
  text-align: center;
}
.cms-notfound h1 { font-family: var(--gruppo); font-size: 43px; font-weight: 400; color: var(--secondary); }
.cms-notfound p { font-size: 16px; color: #444; }
.cms-notfound a { margin-top: 10px; }

/* pagination on collection pages */
.collection-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 60px 0 0;
}
.collection-pagination button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cfcfcf;
  color: var(--secondary);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.collection-pagination button:hover { background: #f2f2f2; }
.collection-pagination button.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.testi-pagination { padding: 30px 20px 90px; }

/* team collection page reuses the homepage grid on plain white */
.team-page { padding: 90px 0; background: #fff; }
.team-page::before { display: none; }

/* "Get To Know" intro band — same content width as the team-card grid below */
.team-intro { background: #f1f1f1; padding: 100px 0; }
.team-intro .about-inner {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px;
}
.team-intro .about-text { padding: 0; }
.team-intro .about-title { margin-bottom: 24px; }
.team-intro .btn-outline-dark { display: inline-block; margin-top: 8px; }

/* Press page — "Gerard on News Nation" video */
.press-video-sec { background: #fff; padding: 74px 0 34px; text-align: center; }
.press-video-sec .section-title { margin-bottom: 36px; }
.press-video {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.press-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* Press & Media card grid — same content width, ported from the reference */
.team-press { background: #f1f1f1; padding: 40px 0 100px; text-align: center; }
.team-press .section-title { margin-bottom: 50px; }
.team-press .collection-pagination { padding-top: 56px; }
.press-grid {
  max-width: 1370px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}
.press-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  padding-bottom: 30px;
}
/* image + title overlay: the title is pinned to the bottom of the image so a
   one-line and a three-line headline both sit flush with the image edge */
.press-card-media {
  display: block;
  position: relative;
  overflow: hidden;
}
.press-card-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}
.press-card-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .62));
  pointer-events: none;
}
.press-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 16px 26px;
  font-family: var(--lato);
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: .29px;
  color: #fff;
}
.press-card-label {
  margin: 22px 0 14px;
  padding: 0 26px;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #979797;
}
.press-card-excerpt {
  padding: 0 26px;
  font-family: var(--lato);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: .25px;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-card-more {
  align-self: flex-start;
  margin: 28px 26px 0;
  padding: 14px 30px;
  border: 2px solid var(--secondary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  transition: background-color .25s, color .25s;
}
.press-card-more:hover { background: var(--secondary); color: #fff; }
.team-press-cta { margin-top: 56px; }

@media (max-width: 1024px) {
  .team-intro { padding: 28px 0; }
  .team-intro .about-inner { padding: 0 28px; gap: 0; }
  .team-intro .about-photo img { height: auto; max-height: 460px; object-fit: contain; }
  .team-intro .about-text { padding: 28px 0 0; }
  /* team-card grid gets the same 28px side gutter as the sections around it */
  .team-page .team-inner { padding: 0 28px; }
  .team-photo-inner { margin: 0; }   /* drop the desktop hover bleed on mobile */
  .press-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 0 28px; }
  .press-video-sec { padding: 48px 0 24px; }
  .press-video { padding: 0 28px; }
}
@media (max-width: 680px) {
  .press-grid { grid-template-columns: 1fr; }
}
