/* ============================================================
   OUR AGENTS — CHUNK 3 CSS v1.1
   Property listings, single property, calculator
   Mobile-first responsive overhaul
   ============================================================ */

/* ── FILTER BAR ───────────────────────────────────────────── */
.oa-prop-filters {
  background: var(--oa-off-white);
  border-radius: var(--oa-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--oa-border);
}
.oa-prop-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.oa-prop-filters__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  flex: 1;
}
.oa-prop-filters__field .oa-label { margin-bottom: 0; font-size: 0.8rem; }
.oa-prop-filters__row .oa-btn { flex-shrink: 0; min-height: 48px; }

@media (max-width: 767px) {
  .oa-prop-filters { padding: 16px; }
  .oa-prop-filters__row { flex-direction: column; gap: 10px; }
  .oa-prop-filters__field { min-width: 100%; }
  .oa-prop-filters__row .oa-btn { width: 100%; }
}

/* ── REGISTER BAR ────────────────────────────────────────── */
.oa-prop-register-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--oa-green-light);
  border-radius: var(--oa-radius-md);
  margin-bottom: 28px;
  flex-wrap: wrap;
  border: 1px solid rgba(17,118,112,0.15);
}
.oa-prop-register-bar svg { width: 18px; height: 18px; color: var(--oa-orange); flex-shrink: 0; }
.oa-prop-register-bar span { font-size: 0.88rem; font-weight: 500; color: var(--oa-dark-grey); flex: 1; min-width: 160px; }

@media (max-width: 560px) {
  .oa-prop-register-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .oa-prop-register-bar .oa-btn { width: 100%; justify-content: center; }
}

/* ── NO PHOTO PLACEHOLDER ────────────────────────────────── */
.oa-property-card__no-photo {
  width: 100%; height: 100%;
  background: var(--oa-green-light);
  display: flex; align-items: center; justify-content: center;
}
.oa-property-card__no-photo svg { width: 44px; height: 44px; color: var(--oa-green); opacity: 0.4; }

/* ── NO PROPERTIES FOUND ─────────────────────────────────── */
.oa-no-properties {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 40px);
  background: var(--oa-off-white);
  border-radius: var(--oa-radius-lg);
}
.oa-no-properties__icon { margin: 0 auto 18px; }
.oa-no-properties__icon svg { width: 44px; height: 44px; color: var(--oa-mid-grey); opacity: 0.5; margin: 0 auto; }
.oa-no-properties h3 { margin-bottom: 12px; }
.oa-no-properties p { color: var(--oa-mid-grey); max-width: 440px; margin: 0 auto; font-size: 0.95rem; }

/* ── SINGLE PROPERTY PAGE ────────────────────────────────── */
.oa-prop-single__header {
  background: var(--oa-off-white);
  border-bottom: 1px solid var(--oa-border);
  padding: clamp(84px, 10vw, 140px) 0 clamp(24px, 4vw, 40px);
}
.oa-prop-single__header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Breadcrumb */
.oa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--oa-mid-grey);
  margin-bottom: 14px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.oa-breadcrumb a { color: var(--oa-mid-grey); transition: color 0.2s; }
.oa-breadcrumb a:hover { color: var(--oa-green); }

/* Address & price */
.oa-prop-single__address {
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 8px;
  line-height: 1.2;
}
.oa-prop-single__price {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--oa-green);
  margin-bottom: 14px;
}
.oa-prop-single__specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.oa-prop-single__specs span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.87rem;
  color: var(--oa-dark-grey);
  font-weight: 500;
}
.oa-prop-single__specs svg { width: 15px; height: 15px; color: var(--oa-green); }

/* ── PROPERTY TWO-COLUMN LAYOUT ──────────────────────────── */
.oa-prop-single__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  padding: 36px 0 48px;
  align-items: start;
}

@media (max-width: 1000px) {
  .oa-prop-single__layout { grid-template-columns: 1fr; gap: 28px; }
  .oa-prop-single__sidebar { order: -1; }
  .oa-prop-single__sidebar { position: static !important; }
}

/* ── PHOTO GALLERY ───────────────────────────────────────── */
.oa-prop-gallery { margin-bottom: 28px; }
.oa-prop-gallery__main {
  position: relative;
  border-radius: var(--oa-radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--oa-light-grey);
  margin-bottom: 8px;
}
.oa-prop-gallery__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.oa-prop-gallery__video-btn {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,0.68);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--oa-font);
}
.oa-prop-gallery__video-btn:hover { background: var(--oa-green); }
.oa-prop-gallery__video-btn svg { width: 15px; height: 15px; }
.oa-prop-gallery__thumbs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.oa-prop-gallery__thumb {
  width: 76px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.oa-prop-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.oa-prop-gallery__thumb.active,
.oa-prop-gallery__thumb:hover { border-color: var(--oa-green); }

@media (max-width: 480px) {
  .oa-prop-gallery__thumb { width: 64px; height: 48px; }
}

/* ── DESCRIPTION & FLOORPLAN ─────────────────────────────── */
.oa-prop-single__description,
.oa-prop-single__floorplan { margin-bottom: 28px; }
.oa-prop-single__description h2,
.oa-prop-single__floorplan h2 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oa-border);
}
.oa-prop-single__desc-text {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--oa-dark-grey);
}
.oa-prop-single__desc-text p { margin-bottom: 14px; }
.oa-prop-single__desc-text p:last-child { margin-bottom: 0; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.oa-prop-single__sidebar { position: sticky; top: 84px; }
.oa-prop-single__ctas { margin-bottom: 14px; }
.oa-prop-single__ctas .oa-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.oa-prop-sidebar-card {
  background: var(--oa-white);
  border-radius: var(--oa-radius-md);
  padding: 22px;
  border: 1px solid var(--oa-border);
  box-shadow: var(--oa-shadow-sm);
}
.oa-prop-sidebar-card h3 {
  font-size: 0.97rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--oa-border);
}

/* Key details list */
.oa-prop-detail-list { display: flex; flex-direction: column; }
.oa-prop-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--oa-border);
  font-size: 0.86rem;
  gap: 12px;
}
.oa-prop-detail-item:last-child { border-bottom: none; }
.oa-prop-detail-item span { color: var(--oa-mid-grey); flex-shrink: 0; }
.oa-prop-detail-item strong { color: var(--oa-black); font-weight: 600; text-align: right; }

/* Share buttons */
.oa-prop-share { display: flex; flex-direction: column; gap: 8px; }
.oa-prop-share__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--oa-radius-sm);
  border: 1px solid var(--oa-border);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--oa-dark-grey);
  background: var(--oa-white);
  cursor: pointer;
  transition: var(--oa-transition);
  text-decoration: none;
  font-family: var(--oa-font);
  min-height: 44px;
}
.oa-prop-share__btn:hover { border-color: var(--oa-green); color: var(--oa-green); }
.oa-prop-share__btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Mobile sidebar stacking */
@media (max-width: 600px) {
  .oa-prop-single__ctas .oa-btn { font-size: 0.9rem; }
  .oa-prop-sidebar-card { padding: 18px; }
}

/* ── OPEN HOUSE BADGE ────────────────────────────────────── */
.oa-open-house-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--oa-green);
  color: white;
  padding: 14px 18px;
  border-radius: var(--oa-radius-md);
}
.oa-open-house-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.oa-open-house-badge strong { display: block; font-size: 0.83rem; font-weight: 700; }
.oa-open-house-badge span { font-size: 0.76rem; opacity: 0.85; }

/* ── COST CALCULATOR ─────────────────────────────────────── */
.oa-calculator { max-width: 760px; margin: 0 auto; }

.oa-calc-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-radius: var(--oa-radius-md);
  overflow: hidden;
  border: 1px solid var(--oa-border);
}
.oa-calc-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--oa-off-white);
  font-size: 0.83rem;
  color: var(--oa-mid-grey);
  border-right: 1px solid var(--oa-border);
  transition: background 0.2s;
}
.oa-calc-step:last-child { border-right: none; }
.oa-calc-step.active { background: var(--oa-green); color: white; }
.oa-calc-step__num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0;
}
.oa-calc-step:not(.active) .oa-calc-step__num { background: rgba(0,0,0,0.08); }

.oa-calc-panel { display: none; }
.oa-calc-panel.active { display: block; }
.oa-calc-panel__inner {
  background: var(--oa-white);
  border-radius: var(--oa-radius-lg);
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--oa-border);
  box-shadow: var(--oa-shadow-sm);
}
.oa-calc-panel__inner h2 { margin-bottom: 10px; }
.oa-calc-panel__inner > p { color: var(--oa-mid-grey); margin-bottom: 24px; font-size: 0.95rem; }

.oa-calc-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
@media (max-width: 560px) { .oa-calc-choice-grid { grid-template-columns: 1fr; } }

.oa-calc-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 18px;
  border-radius: var(--oa-radius-md);
  border: 2px solid var(--oa-border);
  background: var(--oa-white);
  cursor: pointer;
  transition: var(--oa-transition);
  text-align: left;
  font-family: var(--oa-font);
  min-height: 48px;
}
.oa-calc-choice:hover { border-color: var(--oa-green); transform: translateY(-3px); box-shadow: var(--oa-shadow-md); }
.oa-calc-choice__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--oa-green-light);
  display: flex; align-items: center; justify-content: center;
}
.oa-calc-choice__icon svg { width: 20px; height: 20px; color: var(--oa-green); }
.oa-calc-choice strong { font-size: 0.93rem; color: var(--oa-black); }
.oa-calc-choice span { font-size: 0.8rem; color: var(--oa-mid-grey); }

.oa-calc-costs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (max-width: 560px) { .oa-calc-costs { grid-template-columns: 1fr; } }

.oa-calc-cost-card {
  background: var(--oa-off-white);
  border-radius: var(--oa-radius-sm);
  padding: 14px 16px;
  border: 1px solid var(--oa-border);
}
.oa-calc-cost-card--total { grid-column: 1 / -1; background: var(--oa-green-light); border-color: var(--oa-green); }
.oa-calc-cost-card__label { font-size: 0.78rem; color: var(--oa-mid-grey); margin-bottom: 4px; font-weight: 500; }
.oa-calc-cost-card__amount { font-size: 1.18rem; font-weight: 800; color: var(--oa-black); margin-bottom: 4px; }
.oa-calc-cost-card--total .oa-calc-cost-card__amount { color: var(--oa-green); font-size: 1.35rem; }
.oa-calc-cost-card__note { font-size: 0.73rem; color: var(--oa-mid-grey); line-height: 1.4; }

/* ── CALC STEPS MOBILE ───────────────────────────────────── */
@media (max-width: 560px) {
  .oa-calc-steps { flex-direction: column; border-radius: var(--oa-radius-sm); }
  .oa-calc-step { border-right: none; border-bottom: 1px solid var(--oa-border); }
  .oa-calc-step:last-child { border-bottom: none; }
}

/* ── BOOK VIEWING / MAKE OFFER FORMS ─────────────────────── */
.oa-conversion-page { max-width: 680px; margin: 0 auto; }
.oa-conversion-page .oa-prop-sidebar-card { margin-bottom: 24px; }

/* ── GRID RESPONSIVE (property listings) ─────────────────── */
@media (max-width: 900px) {
  .oa-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .oa-grid-3 { grid-template-columns: 1fr !important; }
}

/* ── PROPERTY CARD MEDIA POSITION FIX ───────────────────── */
.oa-property-card__media { position: relative; }

/* ── MISC MOBILE SPACING ─────────────────────────────────── */
@media (max-width: 767px) {
  .oa-prop-single__header { padding-top: clamp(76px,12vw,100px); }
  .oa-prop-single__layout { padding-top: 24px; padding-bottom: 36px; gap: 20px; }
  .oa-prop-gallery__main { aspect-ratio: 4/3; }
  .oa-prop-single__description,
  .oa-prop-single__floorplan { margin-bottom: 22px; }
}
