/* ============================================
   McKinnon Real Estate — Page Styles
   (Agents, Profiles, Properties, etc.)
   ============================================ */

/* ─── Page hero / banner ───────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: 180px 0 90px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(79,138,61,0.22), transparent 70%);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero .section-label {
  color: var(--green-light);
}

.page-hero .section-label::before {
  background: var(--green-light);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 20px;
}

.page-hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.breadcrumb a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--green-light);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

/* ─── Agents listing ───────────────────────── */
.agents-page {
  background: var(--off-white);
}

.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.agent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.agent-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.agent-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light-grey);
}

.agent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.agent-card:hover .agent-card-image img {
  transform: scale(1.05);
}

.agent-card-body {
  padding: 32px 34px 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.agent-card-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.agent-card-role {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.agent-card-bio {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #666;
  margin-bottom: 24px;
  flex: 1;
}

.agent-card-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.agent-card-contact a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--charcoal);
  transition: color var(--transition);
}

.agent-card-contact a:hover {
  color: var(--green);
}

.agent-card-contact svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ─── Agent profile hero ───────────────────── */
.profile-hero {
  background: var(--charcoal);
  padding: 150px 0 0;
  overflow: hidden;
}

.profile-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: end;
}

.profile-hero-image {
  position: relative;
  align-self: end;
}

.profile-hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

.profile-hero-content {
  padding-bottom: 80px;
}

.profile-hero-content .section-label {
  color: var(--green-light);
}

.profile-hero-content .section-label::before {
  background: var(--green-light);
}

.profile-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 12px;
}

.profile-hero-role {
  font-size: 1.05rem;
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 32px;
}

.profile-hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.profile-hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.profile-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Profile story ────────────────────────── */
.profile-story {
  background: var(--off-white);
}

.profile-story-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.profile-story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.profile-story-image--pair {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
}

.profile-story-image--pair img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.profile-story-image--pair img:last-child {
  display: none;
}

@media (min-width: 1024px) {
  .profile-story-image--pair img:last-child {
    display: block;
  }
}

.profile-story-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.profile-story-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 36px 0 12px;
}

.profile-story-content h3:first-of-type {
  margin-top: 28px;
}

.profile-story-content .heading-md {
  margin-bottom: 24px;
}

.profile-story-content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 20px;
}

.profile-story-content p:last-child {
  margin-bottom: 0;
}

/* ─── Profile stats band ───────────────────── */
.profile-stats {
  background: var(--green);
  padding: 80px 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.profile-stats-item {
  text-align: center;
  padding: 12px 24px;
  position: relative;
}

.profile-stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

.profile-stats-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.profile-stats-icon svg {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,0.85);
}

.profile-stats-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-stats-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Profile contact form ─────────────────── */
.profile-contact {
  background: var(--light-grey);
}

.profile-contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: stretch;
}

.profile-contact-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 100%;
}

.profile-contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.profile-contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 48px;
  box-shadow: var(--shadow-sm);
}

.profile-contact-form .heading-sm {
  margin-bottom: 8px;
}

.profile-contact-form > p {
  font-size: 0.95rem;
  color: var(--mid-grey);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color var(--transition);
  background: var(--off-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.profile-contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* ─── Community section ────────────────────── */
.profile-community {
  background: var(--off-white);
}

.profile-community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.community-features {
  list-style: none;
  margin-top: 28px;
}

.community-features li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.community-features li:last-child {
  border-bottom: none;
}

.community-feature-icon {
  width: 42px;
  height: 42px;
  background: #eef5ec;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.community-feature-text strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 3px;
}

.community-feature-text span {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.profile-community-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
  background: var(--light-grey);
}

.profile-community-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-community-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4e8cf, #9ec49a);
  color: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Property filter bar ──────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.filter-group select {
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--off-white);
  cursor: pointer;
  min-width: 170px;
  transition: border-color var(--transition);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--green);
}

.filter-result {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--mid-grey);
  padding-bottom: 12px;
}

/* property-features text style (listing pages) */
.property-features .property-feature {
  font-size: 0.82rem;
}

/* ─── Property detail ──────────────────────── */
.property-gallery {
  padding: 150px 0 56px;
  background: var(--charcoal);
}

.property-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: 70vh;
  max-height: 620px;
}

.property-gallery-main {
  grid-row: 1 / 3;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
}
.property-gallery-grid > div { min-width: 0; min-height: 0; overflow: hidden; }

.property-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity var(--transition);
}

.property-gallery-grid img:hover {
  opacity: 0.92;
}

.property-gallery-grid > div:nth-child(2) img { border-radius: 0 var(--radius) 0 0; }
.property-gallery-grid > div:nth-child(3) img { border-radius: 0 0 var(--radius) 0; }

.gallery-more {
  position: relative;
  cursor: pointer;
}

/* Greyed overlay covering the bottom-right photo, with "+N Photos" centred */
.gallery-more-badge {
  position: absolute;
  inset: 0;
  border-radius: 0 0 var(--radius) 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition);
  pointer-events: none;
}

.gallery-more:hover .gallery-more-badge {
  background: rgba(0,0,0,0.62);
}

.gallery-more-badge::before {
  content: '⤢';
  font-size: 1.2rem;
}

.property-layout {
  background: var(--off-white);
}

.property-layout-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  align-items: start;
}

.property-main .property-status {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.property-main h1 {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.property-main .property-detail-address {
  font-size: 1.05rem;
  color: var(--mid-grey);
  margin-bottom: 24px;
}

.property-detail-price {
  font-family: var(--font-body);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 28px;
}

.property-detail-specs {
  display: flex;
  gap: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.property-spec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-spec svg {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex-shrink: 0;
}

.property-spec strong {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
}

.property-spec span {
  font-size: 0.85rem;
  color: var(--mid-grey);
}

.property-block {
  margin-bottom: 48px;
}

.property-block h2 .block-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef5ec;
  color: var(--green);
  flex-shrink: 0;
}

.property-block h2 .block-ic svg {
  width: 21px;
  height: 21px;
}

.property-block h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.property-block p {
  font-size: 1rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 16px;
}

.property-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}

.property-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: 6px 0;
}

.property-feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef5ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234F8A3D' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
  flex-shrink: 0;
}

.property-floorplan img,
.property-video iframe,
.property-map iframe {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.property-floorplan {
  position: relative;
}

.property-floorplan .floorplan-img {
  width: 100%;
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.property-floorplan .floorplan-logo {
  position: absolute;
  top: 10px;
  left: -34px;
  width: 190px;
  height: auto;
  opacity: 0.92;
  pointer-events: none;
}

@media (max-width: 900px) {
  .property-floorplan .floorplan-logo {
    left: 8px;
  }
}

@media (max-width: 640px) {
  .property-floorplan .floorplan-logo {
    width: 120px;
    top: 14px;
    left: 8px;
  }
}

.property-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.property-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.property-map {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
}

.property-map iframe {
  height: 100%;
}

/* Sticky enquiry sidebar */
.property-sidebar {
  position: sticky;
  top: 100px;
}

.property-agent-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.property-agent-head {
  padding: 28px 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.property-agent-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.property-agent-head strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

.property-agent-head span {
  font-size: 0.82rem;
  color: var(--green);
}

.property-agent-body {
  padding: 26px 28px 30px;
}

.property-agent-body .form-group {
  margin-bottom: 14px;
}

.property-agent-body .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.property-agent-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
}

.property-agent-phone a { color: var(--green); }

/* Stacked agents (one on top of the other) */
.property-agents {
  border-bottom: 1px solid var(--border);
}

.property-agent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
}

.property-agent-row + .property-agent-row {
  border-top: 1px solid var(--border);
}

.property-agent-row img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.property-agent-meta strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
}

.property-agent-meta span {
  display: block;
  font-size: 0.78rem;
  color: var(--green);
  margin-top: 2px;
}

.property-agent-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color var(--transition);
}

.property-agent-call:hover { color: var(--green); }
.property-agent-call svg { color: var(--green); }

.property-enquire-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 18px;
}

/* ─── Lightbox gallery viewer ──────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox .lb-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  user-select: none;
}

.lightbox .lb-close,
.lightbox .lb-arrow {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox .lb-close:hover,
.lightbox .lb-arrow:hover {
  background: rgba(255,255,255,0.28);
}

.lightbox .lb-close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox .lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2.2rem;
  line-height: 1;
}

.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }

.lightbox .lb-counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.4);
  padding: 6px 16px;
  border-radius: 50px;
}

@media (max-width: 640px) {
  .lightbox .lb-arrow { width: 44px; height: 44px; font-size: 1.8rem; }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .lightbox .lb-img { max-width: 94vw; }
}

/* ─── Steps / process (How it works, Selling) ─ */
.how-it-works {
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.steps-grid.steps-4 {
  grid-template-columns: repeat(4, 1fr);
}

.step-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
}

.step-num {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.step-icon {
  width: 58px;
  height: 58px;
  margin: 6px auto 18px;
  border-radius: 14px;
  background: #eef5ec;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .steps-grid, .steps-grid.steps-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps-grid, .steps-grid.steps-4 {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── Contact details ──────────────────────── */
.contact-detail-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 3px;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color var(--transition);
}

a.contact-detail-value:hover {
  color: var(--green);
}

.contact-map {
  margin-top: 28px;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ─── Suburb profiles ──────────────────────── */
.suburb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.suburb-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.suburb-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.suburb-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.suburb-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.suburb-card:hover .suburb-card-image img {
  transform: scale(1.06);
}

.suburb-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 60%);
}

.suburb-card-name {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.suburb-card-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

.suburb-card-body {
  padding: 24px 26px 28px;
}

.suburb-card-body p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 18px;
}

.suburb-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
}

@media (max-width: 900px) {
  .suburb-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* ─── Generic CTA ──────────────────────────── */
.simple-cta {
  text-align: center;
}

@media (max-width: 700px) {
  .filter-bar {
    gap: 16px;
  }
  .filter-group {
    flex: 1;
    min-width: 140px;
  }
  .filter-group select {
    min-width: 0;
    width: 100%;
  }
  .filter-result {
    margin-left: 0;
    width: 100%;
  }
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .page-hero {
    padding: 140px 0 64px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .profile-hero {
    padding: 120px 0 0;
  }

  .profile-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-hero-content {
    order: -1;
    padding-bottom: 48px;
    padding-top: 20px;
  }

  .profile-hero-image {
    max-width: 360px;
    margin: 0 auto;
  }

  .profile-story-inner,
  .profile-contact-inner,
  .profile-community-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-story-image,
  .profile-community-image {
    max-width: 440px;
    margin: 0 auto;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 0;
  }

  .profile-stats-item:nth-child(2)::after {
    display: none;
  }

  .profile-contact-image {
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 4/5;
    min-height: 0;
  }

  .profile-contact-form {
    padding: 36px 28px;
  }
}

@media (max-width: 900px) {
  .property-layout-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .property-sidebar {
    position: static;
  }
  .property-gallery-grid {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .property-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 320px;
  }
  .property-gallery-grid > div:not(.property-gallery-main) {
    display: none;
  }
  .property-gallery-main {
    grid-row: auto;
    border-radius: var(--radius);
  }
  .property-feature-list {
    grid-template-columns: 1fr;
  }

  .profile-hero-stats {
    gap: 28px;
  }

  .profile-hero-buttons {
    width: 100%;
  }

  .profile-hero-buttons .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ─── Read more (description / features) ─────── */
.readmore-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.readmore-btn::after { content: ' →'; white-space: pre; }
.readmore-btn:hover { text-decoration: underline; }

/* ─── Mobile gallery (swipe carousel, flush) ── */
.property-gallery-mobile-wrap { display: none; }
.property-gallery-mobile { display: none; }

@media (max-width: 760px) {
  .property-gallery { padding: 88px 0 0; }
  .property-gallery .container--wide { padding: 0; max-width: 100%; }
  .property-gallery-grid { display: none; }
  .property-gallery-mobile-wrap { display: block; position: relative; }
  .gallery-mobile-count {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    padding: 6px 10px; border-radius: 8px;
    background: rgba(0, 0, 0, .72); color: #fff;
    font-size: 13px; font-weight: 600; line-height: 1.4;
    font-variant-numeric: tabular-nums; pointer-events: none;
  }
  .property-gallery-mobile {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .property-gallery-mobile::-webkit-scrollbar { display: none; }
  .property-gallery-mobile img {
    flex: 0 0 100%;
    width: 100%;
    height: 300px;
    object-fit: cover;
    scroll-snap-align: start;
  }
}

/* ─── Agent profile — mobile ─────────────────── */
@media (max-width: 760px) {
  /* Only show the agent photo once (in the hero) — no repeats */
  .profile-story-image,
  .profile-contact-image { display: none; }
  .profile-story-inner { gap: 0; }

  .profile-hero { padding-top: 96px; }
  .profile-hero-image img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
  }
  .profile-hero-content { padding-bottom: 40px; }
}

/* ─── Services two-up grid (responsive) ──────── */
.why-grid--two { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .why-grid--two { grid-template-columns: 1fr; max-width: 420px !important; }
}
