/* WordPress integration layer. The original visual language stays in styles.css. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 62px;
}
.desktop-nav > ul,
.mobile-nav > ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.desktop-nav > ul {
  display: flex;
  gap: 25px;
  align-items: center;
}
.desktop-nav li {
  position: relative;
}
.desktop-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #111;
  padding: 18px;
  list-style: none;
}
.desktop-nav li:hover > .sub-menu {
  display: grid;
  gap: 12px;
}
.mobile-nav > ul {
  display: block;
}
.mobile-nav .sub-menu {
  list-style: none;
  padding-left: 18px;
}
.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 11px 16px;
  font-size: 12px;
  white-space: nowrap;
}
.hero[style] .hero-media {
  background-image: var(--hero-image);
}
.page-hero {
  position: relative;
}
.page-hero[style] {
  background-image: linear-gradient(
      180deg,
      rgba(15, 47, 75, 0.18),
      rgba(15, 47, 75, 0.82)
    ),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.api-term-card {
  background-color: #263746;
  background-image: linear-gradient(145deg, #334b5c, #142d40);
}
.api-term-card:before {
  z-index: 1;
}
.api-term-grid .api-term-card {
  display: block;
}
.fourfront-empty {
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-socials a {
  color: #aaa;
}
.footer-socials a svg{
	fill: currentColor;
}
.site-footer .menu {
  display: grid;
  gap: 10px;
}
.fourfront-cta {
  text-align: center;
  background: var(--cream);
}
.fourfront-cta p {
  max-width: 650px;
  margin: 18px auto 28px;
}
.page-extra {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}
.pf-items-widget__grid,
.pf-home-properties {
  width: 100%;
}
.pf-properties-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 36px 22px !important;
}
.pf-property-card {
  min-width: 0;
}
.pf-property-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.pf-property-filter {
  margin-bottom: 40px;
}
.pf-home-properties__cta {
  text-align: center;
  margin-top: 36px;
}
.pf-home-properties__btn {
  display: inline-flex;
  background: var(--brand-navy);
  color: #fff;
  padding: 16px 24px;
}
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.navigation.pagination .page-numbers {
  border: 1px solid var(--line);
  padding: 10px 15px;
}
.navigation.pagination .current {
  background: var(--brand-navy);
  color: #fff;
}
.article-prose img {
  height: auto;
}
.wp-caption {
  max-width: 100%;
}
@media (max-width: 1080px) {
  .desktop-nav > ul {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
  .pf-properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 720px) {
  .header-cta {
    display: none;
  }
  .mobile-nav > ul {
    display: grid;
  }
  .pf-properties-grid {
    grid-template-columns: 1fr !important;
  }
  .pf-property-card img {
    height: 260px;
  }
  .page-hero {
    min-height: 430px;
    padding: 145px 0 60px;
  }
  .page-hero h1 {
    font-size: 44px;
  }
  .archive-search,
  .pf-property-filter form {
    grid-template-columns: 1fr !important;
  }
  .split-content,
  .contact-page-grid,
  .auth-grid,
  .agent-profile-grid {
    grid-template-columns: 1fr;
  }
  .community-visual {
    min-height: 380px;
  }
  .blog-grid,
  .community-grid {
    grid-template-columns: 1fr;
  }
  .blog-image,
  .article-feature {
    height: 330px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
}

/* 4Front refinement pass */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
main > * {
  min-width: 0;
}
.container > * {
  min-width: 0;
}
svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services-section h2,
.services-section h3,
.area-section h2,
.area-section h3,
.site-footer h2,
.site-footer h3,
.pf-agent-hero h1,
.pf-agents-archive__header h1,
.pf-archive-header h1,
.fourfront-cta.has-dark-background h2 {
  color: #fff;
}
.page-hero h1,
.page-hero h2 {
  color: #fff;
}

/* Search: one clean full-container row on desktop */
.hero .pf-property-filter {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(4, 20, 32, 0.24);
}
.hero .pf-property-filter__grid,
.pf-archive-content .pf-property-filter__grid {
  grid-template-columns: minmax(210px, 1.3fr) minmax(140px, 0.72fr) minmax(
      130px,
      0.62fr
    ) minmax(235px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.hero .pf-property-filter__field,
.pf-archive-content .pf-property-filter__field {
  min-width: 0;
}
.hero .pf-property-filter__input,
.hero .pf-property-filter__select {
  min-height: 52px;
  border-radius: 2px;
}
.hero .pf-property-filter__submit {
  min-height: 52px;
  border-radius: 2px;
  background: var(--brand-navy);
  color: #fff;
  box-shadow: none;
}
.pf-archive-content {
  padding: 72px 0 110px;
}
.pf-archive-content > .pf-property-filter {
  width: 100%;
  max-width: none;
  margin: -116px auto 52px;
  position: relative;
  z-index: 4;
  border-radius: 4px;
}
.archive-result-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 26px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #75818a;
}
.pf-archive-content .pf-properties-grid {
  margin-top: 0;
}
.page-template-default .properties-section .pf-items-widget,
.community-properties .pf-items-widget {
  margin-top: 30px;
}

/* Property cards */
.pf-property-card {
  border-radius: 0 !important;
  border: 1px solid #e9e7e2 !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s !important;
}
.pf-property-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 55px rgba(12, 42, 61, 0.12) !important;
}
.pf-property-details {
  padding: 22px !important;
}
.pf-card__title {
  font-family: var(--ff-heading-font);
  font-size: 23px !important;
  line-height: 1.18 !important;
}
.pf-property-location {
  margin-top: 17px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pf-property-location a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-navy);
  font-weight: 700;
}
.pf-property-location a:before {
  content: "";
  width: 7px;
  height: 7px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.pf-property-location a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Modern CF7 surfaces */
.contact-section[style] {
  background: linear-gradient(
      90deg,
      rgba(242, 239, 233, 0.96),
      rgba(242, 239, 233, 0.86)
    ),
    var(--contact-image) center/cover;
}
.contact-form--cf7 {
  border-radius: 2px;
  box-shadow: 0 30px 80px rgba(12, 40, 56, 0.11);
}
.contact-form--cf7 .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}
.contact-form--cf7 .wpcf7-form > p {
  margin: 0;
}
.contact-form--cf7 .wpcf7-form > p:has(.wpcf7-textarea),
.contact-form--cf7 .wpcf7-form > p:has(.wpcf7-submit),
.contact-form--cf7 .wpcf7-form > p:last-of-type,
.contact-form--cf7 .wpcf7-form > label:has(.wpcf7-textarea),
.contact-form--cf7 .wpcf7-form > .wpcf7-submit {
  grid-column: 1/-1;
  width: 100%;
}
.contact-form--cf7 label {
  display: block;
  margin: 0;
}
.contact-form--cf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.contact-form--cf7 input:not([type="submit"]),
.contact-form--cf7 textarea,
.contact-form--cf7 select {
  width: 100%;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fafafa;
  padding: 13px 14px;
  font: inherit;
}
.contact-form--cf7 textarea {
  display: block;
  box-sizing: border-box;
  height: 125px;
}
.contact-form--cf7 input[type="submit"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 16px 28px;
  font-weight: 700;
  cursor: pointer;
}
.contact-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}
.contact-detail-list > a,
.contact-detail-list > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(23, 56, 79, 0.14);
}
.contact-detail-list .contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
}
.contact-detail-list small,
.contact-detail-list strong {
  display: block;
}
.contact-detail-list small {
  color: #7a858c;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-detail-list strong {
  font-size: 14px;
  margin-top: 2px;
}
.contact-page-modern {
  background: linear-gradient(180deg, #fff, #f6f4ef);
}
.contact-page-copy h2,
.contact-form--cf7 h2 {
  font-size: clamp(36px, 4vw, 58px);
}
.contact-page-image {
  height: 310px;
  margin-top: 35px;
  background-size: cover;
  background-position: center;
}
.contact-page-modern .contact-form {
  align-self: start;
  position: sticky;
  top: 120px;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 25px;
  background: #071923;
}
.footer-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.footer-glow--one {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -260px;
  background: radial-gradient(
    circle,
    rgba(184, 154, 99, 0.22),
    transparent 68%
  );
}
.footer-glow--two {
  width: 380px;
  height: 380px;
  left: -180px;
  bottom: -230px;
  background: radial-gradient(circle, rgba(55, 112, 142, 0.2), transparent 68%);
}
.footer-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 45px;
  padding: 78px 0 58px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.footer-topline h2 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
}
.footer-talk {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.footer-talk span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #071923;
}
.footer-grid {
  position: relative;
  padding-top: 58px;
  grid-template-columns: 1.55fr 0.8fr 0.8fr 1.1fr;
}
.footer-grid h4 {
  color: var(--gold);
}
.footer-grid a {
  transition: color 0.2s, transform 0.2s;
}
.footer-grid a:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.footer-socials {
  margin-top: 16px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact i {
  width: 18px;
  color: var(--gold);
  font-style: normal;
}
.footer-contact ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}
.footer-contact li {
  margin: 0;
}
.footer-bottom {
  position: relative;
}

/* Modern 404 page */
.error-page--modern {
  position: relative;
  isolation: isolate;
  min-height: 820px;
  padding: 170px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(184, 154, 99, 0.16), transparent 32%),
    linear-gradient(145deg, #061722 0%, var(--brand-navy-deep) 52%, #0d3044 100%);
}
.error-page__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 900px;
  flex-direction: column;
  align-items: center;
}
.error-page__code {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
  color: transparent;
  font-family: var(--ff-heading-font);
  font-size: clamp(150px, 21vw, 280px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.085em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.44);
}
.error-page__zero {
  width: 0.72em;
  height: 0.72em;
  margin: 0 0.05em;
}
.error-page__zero svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.error-page__zero circle {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--gold);
  stroke-width: 2;
}
.error-page__zero path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.error-page--modern h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.05;
}
.error-page__lead {
  max-width: 650px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.8;
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.error-page__button {
  min-width: 190px;
  min-height: 56px;
  padding: 15px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.error-page__button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #071923;
}
.error-page__button span {
  width: 18px;
  height: 18px;
}
.error-page__button:hover {
  border-color: #fff;
  background: #fff;
  color: #071923;
  transform: translateY(-3px);
}
.error-page__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.error-page__links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.error-page__links a:hover {
  color: var(--gold);
}
.error-page__shape {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.error-page__shape--one {
  top: 12%;
  left: -170px;
  width: 430px;
  height: 430px;
}
.error-page__shape--two {
  right: -210px;
  bottom: -110px;
  width: 520px;
  height: 520px;
  border-color: rgba(184, 154, 99, 0.18);
}

@media (max-width: 600px) {
  .error-page--modern {
    min-height: 720px;
    padding: 135px 0 75px;
  }
  .error-page__code {
    margin: 16px 0 22px;
    font-size: clamp(118px, 43vw, 175px);
  }
  .error-page--modern h1 {
    font-size: 36px;
  }
  .error-page__lead {
    font-size: 14px;
  }
  .error-page__actions,
  .error-page__button {
    width: 100%;
  }
  .error-page__links {
    gap: 14px 20px;
    margin-top: 36px;
  }
}

/* Community archive and single */
.communities-showcase {
  background: #f7f5f0;
}
.community-grid--modern {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}
.community-card--modern {
  background: #fff;
  overflow: hidden;
}
.community-card--modern .community-photo {
  height: 410px;
  position: relative;
  background: linear-gradient(145deg, #29475a, #102b3e);
  transition: background-size 0.4s;
}
.community-card--modern .community-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 20, 29, 0.6));
}
.community-index {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.community-card-arrow {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-navy);
  transition: transform 0.3s;
}
.community-card--modern:hover .community-card-arrow {
  transform: rotate(-35deg);
}
.community-card-copy {
  padding: 23px 25px 28px;
}
.community-card-copy > p {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #879198;
}
.community-card-copy h3 {
  margin: 8px 0 20px;
  font-size: 31px;
}
.community-card-copy > div a {
  font-size: 12px;
  font-weight: 700;
}
.community-intro {
  position: relative;
  z-index: 3;
  margin-top: -54px;
}
.community-intro-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  padding: 55px 62px;
  background: #fff;
  box-shadow: 0 25px 65px rgba(12, 39, 55, 0.12);
}
.community-intro-card h2 {
  font-size: clamp(38px, 4.5vw, 64px);
}
.community-visual-story {
  background: #f6f3ed;
}
.community-visual--framed {
  position: relative;
  min-height: 680px;
  box-shadow: 24px 24px 0 #d9cdb8;
}
.community-visual--framed span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 17px 24px;
  background: #fff;
  font-family: var(--ff-heading-font);
  font-size: 22px;
}
.community-visual-story .split-content {
  align-items: start;
}
.community-visual-story h2 {
  font-size: clamp(38px, 4.2vw, 62px);
  margin-bottom: 35px;
}
.community-highlights {
  display: grid;
  gap: 2px;
  background: #ddd;
}
.community-highlights article {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 15px;
  padding: 22px;
  background: #fff;
}
.community-highlights article > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-navy);
  color: #fff;
}
.community-highlights img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}
.community-highlights h3 {
  margin: 0 0 5px;
  font-size: 18px;
}
.community-highlights p {
  margin: 0;
  color: #6f787d;
  font-size: 13px;
}
.community-gallery-section {
  background: #0a2638;
  color: #fff;
}
.community-gallery-section h2 {
  color: #fff;
}
.community-gallery {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  grid-template-rows: 280px 280px;
  gap: 8px;
}
.community-gallery figure {
  margin: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.community-gallery figure:first-child {
  grid-row: 1/3;
}
.community-gallery figcaption {
  position: absolute;
  left: 15px;
  bottom: 15px;
  padding: 8px 11px;
  background: rgba(7, 25, 35, 0.76);
  font-size: 11px;
}
.community-property-count,
.team-count {
  color: #77838a;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Team and agent */
.leadership-showcase {
  background: #0a2638;
  color: #fff;
}
.leadership-showcase h2 {
  color: #fff;
}
.leaders-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.leader-card {
  background: #0a2638;
}
.leader-card .team-photo {
  aspect-ratio: 3/4;
  position: relative;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}
.leader-card .team-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 23, 33, 0.68));
  transition: 0.3s;
}
.leader-card:hover .team-photo:after {
  background: linear-gradient(180deg, transparent 35%, rgba(5, 23, 33, 0.78));
}
.leader-card-arrow {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-navy);
  transform: rotate(-35deg);
  transition: 0.3s;
}
.leader-card:hover .leader-card-arrow {
  transform: rotate(0);
}
.leader-card .team-card-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.leader-card .team-card-copy h3 {
  color: #fff;
}
.leader-bio {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 12px !important;
  line-height: 1.6;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.team-showcase {
  background: #f6f4ef;
}
.team-grid--api {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}
.team-card--api {
  background: #fff;
}
.team-card--api .team-photo {
  aspect-ratio: 3/4;
  position: relative;
  background: #12374d;
}
.team-card--api .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-card--api:hover .team-photo img {
  transform: scale(1.04);
}
.team-card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 55px 18px 17px;
  background: linear-gradient(transparent, rgba(5, 23, 33, 0.85));
  color: #fff;
}
.team-card-overlay b {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-navy);
}
.team-card-copy {
  padding: 19px;
}
.team-card-copy > p {
  margin: 0;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.team-card-copy h3 {
  font-size: 25px;
}
.team-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.team-card-actions a {
  font-size: 12px;
  font-weight: 700;
}
.team-card-actions a:first-child {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-navy);
  color: #fff;
}
.team-card-overlay svg{
	width: 15px;
	height: 15px;
}
.pf-agent-single-wrap {
  background: #f2f0eb !important;
}
.pf-agent-hero {
  position: relative;
  overflow: hidden;
  padding: 155px 24px 85px !important;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(201, 168, 76, 0.22),
      transparent 32%
    ),
    linear-gradient(135deg, #071923, #163e55 60%, #071923) !important;
}
.pf-agent-hero:after {
  content: "4F";
  position: absolute;
  right: -2vw;
  bottom: -10vw;
  font-family: var(--ff-heading-font);
  font-size: 36vw;
  line-height: 1;
  color: rgba(255, 255, 255, 0.025);
}
.pf-agent-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1280px !important;
  gap: 70px !important;
}
.pf-agent-hero__photo {
  width: 340px !important;
  height: 430px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 28px 28px 0 rgba(201, 168, 76, 0.35) !important;
}
.pf-agent-hero__name {
  font-family: var(--ff-heading-font);
  font-size: clamp(52px, 6vw, 88px) !important;
  font-weight: 500 !important;
}
.pf-agent-hero__stats {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.pf-agent-body {
  padding-top: 70px !important;
}
.pf-agent-block {
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 44px !important;
}
.pf-agent-block__title {
  font-family: var(--ff-heading-font);
  font-size: 38px !important;
}
.pf-agent-contact-bar {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-top: 4px solid var(--gold);
}

/* Blog cards and motion */
.blog-card {
  min-width: 0;
}
.blog-image {
  position: relative;
  overflow: hidden;
  background-color: #18384b;
  background-size: cover;
  transition: transform 0.4s;
}
.blog-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 24, 35, 0.25));
  transition: background 0.3s;
}
.blog-card:hover .blog-image:after {
  background: rgba(5, 24, 35, 0.12);
}
.blog-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-navy);
  transform: translateY(8px);
  opacity: 0;
  transition: 0.3s;
}
.blog-card:hover .blog-card-arrow {
  transform: none;
  opacity: 1;
}
.blog-card h2 {
  font-size: clamp(30px, 3vw, 43px);
}
@keyframes ffFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}
@keyframes ffShine {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(240%) skewX(-20deg);
  }
}
.about-badge {
  animation: ffFloat 5s ease-in-out infinite;
}
.page-hero:after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: 7vw;
  bottom: -220px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035),
    0 0 0 110px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
.pf-property-card:after,
.community-card--modern:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 20%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.32),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}
.pf-property-card:hover:after,
.community-card--modern:hover:after {
  animation: ffShine 0.8s ease;
}
.pf-property-card,
.community-card--modern {
  position: relative;
}

@media (max-width: 1100px) {
  .hero .pf-property-filter__grid,
  .pf-archive-content .pf-property-filter__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero .pf-property-filter__field--price,
  .hero .pf-property-filter__field--submit,
  .pf-archive-content .pf-property-filter__field--price,
  .pf-archive-content .pf-property-filter__field--submit {
    grid-column: auto;
  }
  .team-grid--api {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .leaders-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .community-grid--modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .hero .pf-property-filter__grid,
  .pf-archive-content .pf-property-filter__grid {
    grid-template-columns: 1fr;
  }
  .hero .pf-property-filter__field--price,
  .hero .pf-property-filter__field--submit,
  .pf-archive-content .pf-property-filter__field--price,
  .pf-archive-content .pf-property-filter__field--submit {
    grid-column: auto;
  }
  .hero .pf-property-filter {
    padding: 16px;
  }
  .pf-archive-content {
    padding-top: 52px;
  }
  .pf-archive-content > .pf-property-filter {
    margin: -88px auto 36px;
  }
  .contact-form--cf7 .wpcf7-form {
    grid-template-columns: 1fr;
  }
  .contact-form--cf7 .wpcf7-form > p:has(textarea),
  .contact-form--cf7 .wpcf7-form > p:last-of-type {
    grid-column: auto;
  }
  .contact-page-modern .contact-form {
    position: static;
  }
  .footer-topline {
    align-items: flex-start;
    flex-direction: column;
    padding: 60px 0 45px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .community-grid--modern,
  .team-grid--api,
  .leaders-grid {
    grid-template-columns: 1fr;
  }
  .community-intro {
    margin-top: -28px;
  }
  .community-intro-card {
    grid-template-columns: 1fr;
    padding: 34px 25px;
    gap: 25px;
  }
  .community-visual--framed {
    min-height: 460px;
    box-shadow: 12px 12px 0 #d9cdb8;
  }
  .community-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .community-gallery figure,
  .community-gallery figure:first-child {
    grid-row: auto;
    height: 310px;
  }
  .pf-agent-hero {
    padding: 130px 20px 70px !important;
  }
  .pf-agent-hero__photo {
    width: 100% !important;
    max-width: 330px;
    height: 390px !important;
  }
  .pf-agent-block {
    padding: 25px !important;
  }
  .pf-agent-block__title {
    font-size: 30px !important;
  }
  .row-heading {
    align-items: flex-start;
  }
  .page-hero:after {
    display: none;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: auto;
  }
  .community-card--modern .community-photo {
    height: 340px;
  }
  .team-card--api .team-photo {
    aspect-ratio: 4/5;
  }
  .pf-agent-hero__name {
    font-size: 48px !important;
  }
}

/* Communities + team repair pass */
.community-archive-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}
.community-archive-heading h2 {
  max-width: 720px;
  font-size: clamp(43px, 5vw, 70px);
  line-height: 1.02;
}
.community-archive-heading > p {
  max-width: 510px;
  margin: 0 0 8px;
  color: #6f7a82;
  line-height: 1.8;
}
.community-grid--modern {
  align-items: stretch;
}
.community-card--modern {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid #e6e2da;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(12, 39, 55, 0.07);
}
.community-card--modern .community-photo {
  display: block;
  height: 330px;
  flex: none;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  background: linear-gradient(145deg, #29475a, #102b3e);
  overflow: hidden;
}
.community-card--modern .community-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.community-card--modern:hover .community-photo img {
  transform: scale(1.045);
}
.community-card--modern .community-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 24px 26px 27px;
}
.community-card--modern .community-card-copy > p {
  margin: 0;
}
.community-card--modern .community-card-copy h3 {
  width: 100%;
  margin: 9px 0 24px;
  font-size: clamp(25px, 2.25vw, 32px);
  line-height: 1.12;
}
.community-card--modern .community-card-copy h3 a {
  border: 0;
}
.community-card--modern .community-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  border: 0;
  border-bottom: 1px solid #aeb4b7;
  padding-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
}
.communities-showcase .pagination {
  margin-top: 58px;
}
.communities-showcase .navigation.pagination {
  display: block;
}
.communities-showcase .navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.team-page-nav {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid #e5e3de;
}
.team-page-nav .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.team-page-nav a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 25px 28px;
  border-left: 1px solid #e5e3de;
}
.team-page-nav a:last-child {
  border-right: 1px solid #e5e3de;
}
.team-page-nav strong {
  font-family: var(--ff-heading-font);
  font-size: 30px;
  color: var(--brand-navy);
}
.team-page-nav span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a858c;
}
.leadership-showcase .leaders-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  background: transparent;
}
.leadership-showcase .leader-card {
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0d3045;
  transition: transform 0.35s, box-shadow 0.35s;
}
.leadership-showcase .leader-card:nth-child(-n + 2) {
  grid-column: span 3;
}
.leadership-showcase .leader-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}
.leader-card__link,
.leader-card__visual,
.leader-card__copy {
  display: block;
}
.leader-card__visual {
  position: relative;
  height: 410px;
  overflow: hidden;
  background: linear-gradient(145deg, #29475a, #102b3e);
}
.leadership-showcase .leader-card:nth-child(-n + 2) .leader-card__visual {
  height: 500px;
}
.leader-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.leader-card:hover .leader-card__visual img {
  transform: scale(1.035);
}
.leader-card__visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(5, 23, 33, 0.36));
}
.leader-card__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-heading-font);
  font-size: 72px;
  color: #fff;
}
.leader-card__copy {
  min-height: 130px;
  padding: 23px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.leader-card__copy small,
.leader-card__copy strong,
.leader-card__copy .leader-bio {
  display: block;
}
.leader-card__copy small {
  min-height: 30px;
  color: var(--gold);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.leader-card__copy strong {
  margin-top: 7px;
  color: #fff;
  font-family: var(--ff-heading-font);
  font-size: 27px;
  font-weight: 500;
}
.leader-card__copy .leader-bio {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.6;
}
.leader-card .leader-card-arrow {
  right: 18px;
  bottom: 18px;
}
.team-grid--api {
  align-items: stretch;
}
.team-grid--api .team-card--api {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.team-grid--api .team-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.team-grid--api .team-card-actions {
  margin-top: auto;
}
.team-showcase .section-heading > div > p:last-child {
  max-width: 650px;
  color: #6e7981;
  line-height: 1.75;
}
@media (max-width: 1100px) {
  .community-archive-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .leadership-showcase .leaders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .leadership-showcase .leader-card,
  .leadership-showcase .leader-card:nth-child(-n + 2) {
    grid-column: auto;
  }
  .leadership-showcase .leader-card:nth-child(-n + 2) .leader-card__visual,
  .leader-card__visual {
    height: 440px;
  }
}
@media (max-width: 760px) {
  .community-archive-heading {
    margin-bottom: 34px;
  }
  .community-card--modern .community-photo {
    height: 300px;
  }
  .team-page-nav .container {
    grid-template-columns: 1fr;
  }
  .team-page-nav a,
  .team-page-nav a:last-child {
    padding: 17px 8px;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #e5e3de;
  }
  .leadership-showcase .leaders-grid {
    grid-template-columns: 1fr;
  }
  .leadership-showcase .leader-card:nth-child(-n + 2) .leader-card__visual,
  .leader-card__visual {
    height: min(118vw, 520px);
  }
  .leader-card__copy {
    min-height: 0;
  }
  .team-showcase .row-heading {
    gap: 22px;
  }
}

/* Requested image, profile-action and community-lightbox fixes */
.team-card-actions a:first-child {
  width: auto;
  height: auto;
  border-radius: 0;
  display: inline-block;
  background: transparent;
  color: var(--brand-navy);
}
.team-card-actions .team-card-call {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-navy);
  color: #fff;
  flex: none;
}
.team-card-actions .team-card-profile {
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.2;
}
.team-card-actions .team-card-profile:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.about-page-content > .page-hero {
  display: none;
}
.about-page-content > .section {
  width: 100%;
}
.about-page .team-card .team-photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.about-page .team-card .team-photo > span {
  display: none;
}
.about-page .team-card:nth-child(1) .team-photo {
  background-image: url("https://4frealty.com/wp-content/uploads/2025/03/Ahmed-Shehada.png");
}
.about-page .team-card:nth-child(2) .team-photo {
  background-image: url("https://4frealty.com/wp-content/uploads/2025/07/Samer-Mehdi.png");
}
.about-page .team-card:nth-child(3) .team-photo {
  background-image: url("https://4frealty.com/wp-content/uploads/2025/03/Salah-Habib.png");
}
.about-page .team-card:nth-child(4) .team-photo {
  background-image: url("https://4frealty.com/wp-content/uploads/2025/07/Abbas-Saidi.png");
}
.community-gallery-hint {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.community-gallery .community-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
}
.community-gallery .community-gallery__item:first-child {
  grid-row: 1/3;
}
.community-gallery__item:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 20, 29, 0.7));
  transition: background 0.3s;
}
.community-gallery__item:hover:after {
  background: linear-gradient(
    180deg,
    rgba(5, 20, 29, 0.05),
    rgba(5, 20, 29, 0.56)
  );
}
.community-gallery__zoom {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-navy);
  font-size: 23px;
  transition: transform 0.3s;
}
.community-gallery__item:hover .community-gallery__zoom {
  transform: rotate(90deg);
}
.community-gallery__caption {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  background: rgba(7, 25, 35, 0.76);
  color: #fff;
  font-size: 11px;
}
.community-lightbox[hidden] {
  display: none;
}
.community-lightbox {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  place-items: center;
  padding: 36px;
  background: rgba(2, 13, 21, 0.94);
  backdrop-filter: blur(14px);
}
.community-lightbox figure {
  grid-column: 2;
  margin: 0;
  max-width: min(1180px, 82vw);
  max-height: 88vh;
  text-align: center;
}
.community-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}
.community-lightbox figcaption {
  min-height: 22px;
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.community-lightbox__close,
.community-lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.community-lightbox__close {
  position: absolute;
  right: 28px;
  top: 24px;
  width: 48px;
  height: 48px;
  font-size: 31px;
}
.community-lightbox__nav {
  width: 54px;
  height: 54px;
  font-size: 21px;
}
.community-lightbox__prev {
  grid-column: 1;
}
.community-lightbox__next {
  grid-column: 3;
}
.community-lightbox__count {
  position: absolute;
  left: 28px;
  bottom: 25px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.community-lightbox-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  .about-page .team-grid {
    grid-template-columns: 1fr;
  }
  .community-gallery .community-gallery__item,
  .community-gallery .community-gallery__item:first-child {
    grid-row: auto;
    height: 310px;
  }
  .community-lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding: 18px 8px;
  }
  .community-lightbox figure {
    max-width: calc(100vw - 112px);
  }
  .community-lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .community-lightbox__close {
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
  }
  .community-lightbox__count {
    left: 14px;
    bottom: 14px;
  }
}
