/* Agency NA Homes — builds on agencyna.com includes/style.css (variables, header, footer, buttons, forms). */

.hm-wrap { background: var(--light); padding: 40px 0 80px; }

.hm-sample-banner {
  background: #fff4d6; border: 1px solid #e8c766; color: #6b5200;
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 1.25rem;
}

/* state tabs */
.hm-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hm-tabs a {
  padding: .45rem 1rem; border-radius: 100px; border: 1px solid #d0d5dd; background: var(--white);
  color: var(--navy); font-weight: 600; font-size: .9rem;
}
.hm-tabs a.on { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* filters */
.hm-filters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem;
  background: var(--white); padding: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  align-items: end;
}
.hm-filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--gray); }
.hm-filters select, .hm-filters input {
  height: 40px; padding: 0 .6rem; border: 1px solid #d0d5dd; border-radius: var(--radius-sm);
  font: inherit; font-size: .92rem; color: var(--dark); background: var(--white); width: 100%;
}
.hm-filter-actions { display: flex; align-items: center; gap: .9rem; }
.hm-reset { font-size: .88rem; color: var(--gray); text-decoration: underline; }
.hm-count { margin: 1.25rem 0 .75rem; color: var(--gray); font-size: .95rem; }

/* cards */
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.hm-card {
  display: block; background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); color: inherit;
}
.hm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hm-card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--navy-mid); overflow: hidden; }
.hm-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-photo-empty {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: rgba(255,255,255,.55); background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
}
.hm-photo-big { aspect-ratio: 16 / 9; border-radius: var(--radius-md); font-size: .95rem; }
.hm-badge {
  position: absolute; top: .6rem; left: .6rem; background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 100px;
}
.hm-badge-rent { background: #1f7a4d; }
.hm-badge-sample { left: auto; right: .6rem; background: #b8860b; }
.hm-card-body { padding: .9rem 1rem 1.1rem; }
.hm-price { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.hm-price small, .hm-title small { font-size: .55em; font-weight: 400; color: var(--gray); margin-left: .15em; }
.hm-stats { display: flex; gap: .9rem; margin: .3rem 0 .5rem; font-size: .9rem; color: var(--gray); }
.hm-stats strong { color: var(--dark); }
.hm-addr { font-weight: 600; color: var(--dark); }
.hm-city { font-size: .88rem; color: var(--gray); }

.hm-empty { text-align: center; padding: 3rem 1rem; background: var(--white); border-radius: var(--radius-md); }
.hm-pager { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.hm-pager-btn { padding: .5rem 1.1rem; border: 1px solid #d0d5dd; border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-weight: 600; }
.hm-pager-btn.off { opacity: .4; }
.hm-pager-info { color: var(--gray); font-size: .92rem; }

/* detail */
.hm-crumb { margin-bottom: 1rem; font-size: .92rem; }
.hm-crumb a { color: var(--navy); font-weight: 600; }
.hm-detail { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) { .hm-detail { grid-template-columns: 1fr 340px; align-items: start; } }
.hm-gallery img#hm-main-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); display: block; }
.hm-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; }
.hm-thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; }
.hm-title { font-family: var(--font-heading); font-size: 2.2rem; color: var(--navy); margin: 1.25rem 0 .1rem; }
.hm-subtitle { font-size: 1.1rem; color: var(--gray); margin-bottom: .75rem; }
.hm-status { display: inline-block; background: var(--navy); color: #fff; padding: .2rem .7rem; border-radius: 100px; font-size: .8rem; font-weight: 700; }
.hm-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.25rem 0; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.hm-facts div { flex: 1 1 90px; text-align: center; padding: .9rem .5rem; border-right: 1px solid var(--light-2); }
.hm-facts div:last-child { border-right: 0; }
.hm-facts strong { display: block; font-size: 1.3rem; color: var(--navy); }
.hm-facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.hm-h2 { font-size: 1.25rem; margin: 1.75rem 0 .6rem; color: var(--navy); }
.hm-remarks { line-height: 1.75; }
.hm-details { display: grid; grid-template-columns: 130px 1fr; gap: .4rem 1rem; }
.hm-details dt { color: var(--gray); }
.hm-details dd { margin: 0; font-weight: 600; }
.hm-attrib { font-size: .85rem; color: var(--gray); margin-top: .6rem; }
.hm-disclaimer { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid #d0d5dd; font-size: .78rem; color: var(--gray); line-height: 1.6; }

.hm-inquiry { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 1.25rem; }
.hm-inquiry h3 { margin-bottom: 1rem; }
.hm-fineprint { font-size: .75rem; color: var(--gray); margin-top: .75rem; }
.hm-phone { text-align: center; margin-top: 1rem; font-size: .92rem; color: var(--gray); }
.hm-phone a { color: var(--navy); font-weight: 700; }
@media (min-width: 960px) { .hm-detail-side { position: sticky; top: calc(var(--header-h) + 20px); } }

/* ── Agency NA promotion: showcase strip, ribbons, agent chips ─────────────────── */
.hm-promo {
  background: radial-gradient(1100px 380px at 88% -10%, rgba(231,76,60,.25), transparent 60%),
              linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 48px 0 60px; border-bottom: 4px solid #E74C3C;
}
.hm-promo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hm-promo-kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ff8a7c; }
.hm-promo h2 { color: #fff; font-family: var(--font-heading); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .3rem 0 .4rem; }
.hm-promo p { color: rgba(255,255,255,.78); max-width: 560px; margin: 0; }
.hm-promo-cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.hm-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
@media (min-width: 1000px) {
  .hm-feature-grid { grid-template-columns: repeat(3, 1fr); }
  /* lead card: two columns wide and two rows tall, photo grows to fill the height */
  .hm-feature-lead { grid-column: span 2; grid-row: span 2; }
  .hm-feature-lead .hm-feature-photo { aspect-ratio: auto; flex: 1; min-height: 380px; }
  .hm-feature-lead .hm-feature-photo img { position: absolute; inset: 0; }
  .hm-feature-lead .hm-feature-body { flex: 0 0 auto; }
  .hm-feature-lead .hm-feature-price { font-size: 2.1rem; }
}
.hm-feature {
  background: #fff; color: var(--dark); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; transition: transform var(--transition);
}
.hm-feature:hover { transform: translateY(-4px); }
.hm-feature-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--navy-mid); overflow: hidden; }
.hm-feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hm-feature:hover .hm-feature-photo img { transform: scale(1.04); }
.hm-feature-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(10,22,40,.85)); pointer-events: none; }
.hm-feature-price {
  position: absolute; left: 1rem; bottom: .8rem; z-index: 2; color: #fff; font-family: var(--font-heading);
  font-size: 1.7rem; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hm-feature-price small { font-size: .55em; font-weight: 400; opacity: .8; }
.hm-feature-price em {
  font-style: normal; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(255,255,255,.22); padding: .15rem .55rem; border-radius: 100px; margin-left: .5rem; vertical-align: middle;
}
.hm-feature-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.hm-feature-body h3 { font-size: 1.08rem; margin: 0; }
.hm-feature-body h3 a { color: var(--navy); }

.hm-ribbon {
  position: absolute; top: .8rem; left: 0; z-index: 3; background: #E74C3C; color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: .34rem 1.1rem .34rem .75rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
}
.hm-ribbon-inline { position: static; display: inline-block; margin: 1.1rem 0 .2rem; }

.hm-agent-row { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--light-2); }
.hm-agent-name { flex: 1; font-weight: 700; color: var(--navy); line-height: 1.2; }
.hm-agent-name small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.hm-chip { background: #E74C3C; color: #fff; font-weight: 700; font-size: .8rem; padding: .45rem .9rem; border-radius: 100px; white-space: nowrap; }
.hm-chip:hover { background: #cf3f30; }

.hm-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 2px #E74C3C; }
.hm-avatar.sm { width: 26px; height: 26px; border-width: 1px; box-shadow: 0 0 0 1px #E74C3C; font-size: .7rem; }
.hm-avatar.lg { width: 72px; height: 72px; border-width: 3px; font-size: 1.6rem; }
.hm-avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-weight: 800; }

.hm-card.is-ours { box-shadow: 0 0 0 2px #E74C3C, var(--shadow-sm); }
.hm-card.is-ours:hover { box-shadow: 0 0 0 2px #E74C3C, var(--shadow-md); }
.hm-card-agent { display: flex; align-items: center; gap: .45rem; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--light-2); font-size: .82rem; font-weight: 600; color: var(--navy); }
.hm-state { font-style: normal; font-family: var(--font-body); font-size: .68rem; font-weight: 700; text-transform: uppercase; background: var(--light-2); color: var(--navy); padding: .12rem .5rem; border-radius: 100px; margin-left: .4rem; vertical-align: middle; letter-spacing: .05em; }
.hm-count-note { color: #E74C3C; font-weight: 600; }
.hm-more { margin: 1.5rem 0 .75rem; }

.hm-agent-banner { display: flex; align-items: center; gap: 1.1rem; background: #fff; border-left: 5px solid #E74C3C; border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.hm-agent-banner h2 { margin: .1rem 0; font-size: 1.3rem; color: var(--navy); }
.hm-agent-banner .hm-promo-kicker { color: #E74C3C; }
.hm-agent-banner p { margin: 0; color: var(--gray); }

.hm-agent-card { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin-bottom: 1rem; border-top: 4px solid #E74C3C; box-shadow: var(--shadow-md); }
.hm-agent-card-row { display: flex; align-items: center; gap: .9rem; margin: .7rem 0 .9rem; }
.hm-agent-card-row strong { display: block; font-size: 1.1rem; }
.hm-agent-card-row small { display: block; color: rgba(255,255,255,.7); }
.hm-agent-card-row a { color: #ff8a7c; font-size: .88rem; font-weight: 600; }

/* ── Visitor accounts: hearts, auth forms, account area ────────────────────────── */
.hm-card-wrap { position: relative; }
.hm-feature { position: relative; }
.hm-heart {
  position: absolute; top: .7rem; right: .7rem; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer;
  background: rgba(10,22,40,.55); border: 1px solid rgba(255,255,255,.55); color: #fff; padding: 0;
  backdrop-filter: blur(4px); transition: transform .15s, background .2s;
}
.hm-heart:hover { transform: scale(1.08); background: rgba(10,22,40,.8); }
.hm-heart svg { fill: transparent; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.hm-heart.on { background: #fff; border-color: #fff; }
.hm-heart.on svg { fill: #E74C3C; stroke: #E74C3C; }
.hm-heart-form { margin: 0; }
.hm-card-photo .hm-badge-sample, .hm-feature-photo .hm-badge-sample { right: 3.6rem; }

.hm-detail-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 0; }
.hm-heart.hm-heart-wide { position: static; width: auto; height: auto; border-radius: 100px; padding: .5rem 1.1rem; background: #fff; color: var(--navy); border: 1px solid #d0d5dd; font-weight: 700; backdrop-filter: none; }
.hm-heart.hm-heart-wide svg { stroke: var(--navy); }
.hm-heart.hm-heart-wide.on svg { fill: #E74C3C; stroke: #E74C3C; }
.hm-action { display: inline-flex; align-items: center; padding: .5rem 1.1rem; border-radius: 100px; border: 1px solid var(--navy); color: var(--navy); font-weight: 700; }
.hm-action:hover { background: var(--navy); color: #fff; }

.hm-notice { background: #e8f1fb; border: 1px solid #b6d0ee; color: #1a2e4a; padding: .75rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; font-size: .95rem; }
.hm-hint { font-size: .85rem; color: var(--gray); margin: .25rem 0 1rem; }
.hm-opt { font-weight: 400; color: var(--gray-light); font-size: .8rem; }

.hm-auth { display: flex; justify-content: center; }
.hm-auth-card { width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2rem 2rem 1.75rem; margin: 0 auto; }
.hm-auth-card h1 { font-size: 1.7rem; color: var(--navy); margin: 0 0 .5rem; }
.hm-auth-sub { color: var(--gray); margin-bottom: 1.25rem; }
.hm-auth-alt { text-align: center; margin: 1rem 0 0; font-size: .92rem; }
.hm-auth-alt a { color: var(--navy); font-weight: 700; }

.hm-choice { border: 1px solid #d0d5dd; border-radius: var(--radius-md); padding: .9rem 1rem 1rem; margin: 1rem 0; }
.hm-choice legend { padding: 0 .4rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.hm-choice label { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; cursor: pointer; font-size: .9rem; line-height: 1.5; }
.hm-choice input[type=radio] { margin-top: .3rem; flex: none; width: auto; }
.hm-check { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 1.25rem; font-size: .9rem; }
.hm-check input { margin-top: .25rem; flex: none; width: auto; }

.hm-acct-nav { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.hm-acct-nav a, .hm-acct-nav button { padding: .45rem 1rem; border-radius: 100px; background: #fff; border: 1px solid #d0d5dd; color: var(--navy); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.hm-acct-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.hm-acct-nav form { margin: 0 0 0 auto; }
.hm-dot { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 100px; background: #E74C3C; color: #fff; font-size: .72rem; font-weight: 800; font-style: normal; text-align: center; margin-left: .25rem; }

.hm-two { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .hm-two { grid-template-columns: 1fr 1fr; align-items: start; } }
.hm-panel { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.25rem 1.4rem; }
.hm-panel h2 { font-size: 1.15rem; color: var(--navy); margin: 0 0 1rem; }

.hm-threads { display: grid; gap: .6rem; }
.hm-thread { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: #fff; border-radius: var(--radius-md); padding: .9rem 1.1rem; box-shadow: var(--shadow-sm); color: inherit; }
.hm-thread span { color: var(--gray); font-size: .85rem; }
.hm-thread.unread { border-left: 4px solid #E74C3C; }
.hm-convo { display: grid; gap: .75rem; margin: 1.25rem 0; }
.hm-msg { max-width: 85%; padding: .7rem 1rem; border-radius: 14px; background: #eef1f6; }
.hm-msg p { margin: .25rem 0 0; white-space: pre-wrap; }
.hm-msg small { color: var(--gray); }
.hm-msg.me { justify-self: end; background: #e8f1fb; }
.hm-msg.them { justify-self: start; background: #f5f5f0; border: 1px solid #e3e3da; }
.hm-unavail { display: flex; gap: 1rem; align-items: center; padding: .4rem 0; margin: 0; }

/* ── FMLS Rule 13 disclosures ──────────────────────────────────────────────────── */
.hm-mlsline { margin-top: .55rem; font-size: .9rem; line-height: 1.45; color: var(--dark); }
.hm-mlsline strong { display: block; color: var(--navy); }
.hm-mlsline span { display: block; color: var(--gray); }
.hm-mls { margin: 0 0 .15rem; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.hm-courtesy { margin: 0 0 .75rem; font-size: 1.02rem; color: var(--dark); }
.hm-courtesy a { color: var(--navy); font-weight: 700; }
.hm-disclaimer { font-size: .85rem; color: var(--gray); }
.hm-brokerage { border-top: 1px solid rgba(255,255,255,.12); margin-top: .75rem; padding-top: .75rem; }
.hm-legal { max-width: 820px; line-height: 1.75; }
.hm-legal h2 { font-size: 1.2rem; margin: 1.75rem 0 .5rem; color: var(--navy); }
.hm-legal ol { margin: .5rem 0 1rem 1.25rem; list-style: decimal; }
