/*
 * house-card.css
 * Self-contained house card component — three sizes.
 * All styles namespaced under .am-house-card / .am-hc-*
 */

.am-house-card,
.am-house-card *{
  box-sizing:border-box;
  font-family:'DM Sans',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.am-house-card{
  background:#fff;
  border:.5px solid #E2E8F0;
  border-radius:12px;
  overflow:hidden;
  width:100%;
  position:relative;
}

/* ── Accent bar — 3px flag stripe ── */
.am-hc-accent{
  display:block;
}

/* ── Open/external icon ── */
.am-hc-open{
  position:absolute;
  width:22px;height:22px;
  border-radius:6px;
  border:.5px solid #E2E8F0;
  background:#fff;
  color:#94A3B8;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity .15s ease,color .12s ease;
  text-decoration:none;
}
.am-house-card:hover .am-hc-open{ opacity:1 }
.am-hc-open:hover{ color:#0D1B2A }
.am-hc-open.always-visible{ opacity:1 }
.am-hc-open.hidden{ display:none }

/* External link SVG (used throughout) */
.am-hc-ext-svg{ display:block; width:10px; height:10px }


/* ════════════════════════════════════════
   LARGE CARD
   ════════════════════════════════════════ */
.am-hc-large{ display:flex; flex-direction:column }

.am-hc-section-hdr{
  display:flex;align-items:center;justify-content:space-between;
  padding:.6rem .85rem .5rem;
  border-bottom:.5px solid #E2E8F0;
  flex:0 0 auto;
}
.am-hc-section-hdr h3{
  font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.09em;color:#94A3B8;margin:0;
}
.am-hc-count{
  background:#F1F5F9;border-radius:4px;
  font-size:9px;font-weight:700;color:#64748B;
  padding:.1rem .4rem;
}

/* Featured hero */
.am-hc-featured{
  padding:.85rem .85rem .75rem;
  border-bottom:.5px solid #E2E8F0;
  position:relative;
  flex:0 0 auto;
}
.am-hc-featured>.am-hc-accent{
  position:absolute;top:0;left:0;right:0;height:3px;
}
.am-hc-featured-inner{ margin-top:.4rem }
.am-hc-featured-tag{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:8.5px;font-weight:700;text-transform:uppercase;letter-spacing:.09em;
  color:#F5A623;margin-bottom:.45rem;line-height:1;
}
.am-hc-feat-name{
  font-family:'DM Serif Display',Georgia,serif;
  font-size:20px;font-weight:700;color:#0D1B2A;line-height:1.2;margin-bottom:.18rem;
}
.am-hc-feat-hashtag{
  font-size:9px;font-weight:700;color:#00A880;
  letter-spacing:.03em;margin-bottom:.35rem;
}
.am-hc-feat-desc{
  font-size:11.5px;color:#64748B;line-height:1.55;
  margin-bottom:.5rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.am-hc-feat-meta{
  display:flex;align-items:center;gap:.45rem;
  font-size:10px;color:#94A3B8;flex-wrap:wrap;
}
.am-hc-feat-meta .am-hc-dot{
  width:3px;height:3px;border-radius:50%;background:#E2E8F0;flex:0 0 3px;
}
.am-hc-feat-date{
  display:inline-flex;align-items:center;gap:.25rem;
  font-size:10px;font-weight:600;color:#0D1B2A;
}
.am-hc-feat-events{
  font-size:10px;font-weight:600;color:#00A880;
}
.am-hc-feat-cta{
  margin-top:.6rem;display:flex;gap:.4rem;
}
.am-hc-btn-primary{
  background:#0D1B2A;color:#fff !important;border:none;border-radius:6px;
  padding:.4rem .7rem;font-size:10.5px;font-weight:700;cursor:pointer;
  font-family:'DM Sans',inherit;white-space:nowrap;
  transition:background .12s ease;text-decoration:none;
  display:inline-flex;align-items:center;gap:.3rem;
}
.am-hc-btn-primary:hover{ background:#1A2E42 }
.am-hc-btn-ghost{
  background:#fff;color:#0D1B2A !important;border:.5px solid #E2E8F0;border-radius:6px;
  padding:.4rem .7rem;font-size:10.5px;font-weight:600;cursor:pointer;
  font-family:'DM Sans',inherit;white-space:nowrap;
  transition:background .12s ease;text-decoration:none;
  display:inline-flex;align-items:center;gap:.3rem;
}
.am-hc-btn-ghost:hover{ background:#F1F5F9 }

/* 2-column grid of remaining houses */
.am-hc-grid{
  display:grid;grid-template-columns:1fr 1fr;
}
.am-hc-grid-item{
  padding:.6rem .7rem;
  border-right:.5px solid #E2E8F0;
  border-bottom:.5px solid #E2E8F0;
  position:relative;
  transition:background .12s ease;cursor:pointer;
}
.am-hc-grid-item:nth-child(even){ border-right:none }
.am-hc-grid-item:nth-last-child(-n+2){ border-bottom:none }
.am-hc-grid-item:hover{ background:#F8FAFC }
.am-hc-grid-accent{
  width:18px;height:2.5px;border-radius:2px;margin-bottom:.35rem;
}
.am-hc-grid-name{
  font-size:11.5px;font-weight:700;color:#0D1B2A;line-height:1.3;margin-bottom:.12rem;
}
.am-hc-grid-date{ font-size:9.5px;color:#94A3B8;font-weight:500 }
.am-hc-grid-open{
  position:absolute;top:.5rem;right:.55rem;
  width:18px;height:18px;border-radius:4px;
  border:.5px solid #E2E8F0;background:#fff;
  color:#94A3B8;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .12s ease;cursor:pointer;text-decoration:none;
}
.am-hc-grid-item:hover .am-hc-grid-open{ opacity:1 }
.am-hc-grid-open:hover{ color:#0D1B2A }
.am-hc-grid-open-svg{ display:block;width:8px;height:8px }


/* ════════════════════════════════════════
   MEDIUM CARD
   ════════════════════════════════════════ */
.am-hc-medium{ display:flex }
.am-hc-medium>.am-hc-accent{
  width:3px;flex:0 0 3px;border-radius:0;
}
.am-hc-medium-body{
  flex:1;padding:.7rem .8rem;position:relative;
}
.am-hc-medium-name{
  font-size:13px;font-weight:700;color:#0D1B2A;
  line-height:1.25;margin-bottom:.15rem;padding-right:24px;
}
.am-hc-medium-hashtag{
  font-size:9px;font-weight:700;color:#00A880;margin-bottom:.28rem;
}
.am-hc-medium-desc{
  font-size:11px;color:#64748B;line-height:1.5;
  margin-bottom:.38rem;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
.am-hc-medium-foot{
  display:flex;align-items:center;gap:.4rem;font-size:10px;color:#94A3B8;flex-wrap:wrap;
}
.am-hc-medium-foot .am-hc-dot{
  width:3px;height:3px;border-radius:50%;background:#E2E8F0;flex:0 0 3px;
}
.am-hc-medium .am-hc-open{ top:.6rem;right:.65rem }


/* ════════════════════════════════════════
   SMALL CARD
   ════════════════════════════════════════ */
.am-hc-small{ display:flex;align-items:stretch }
.am-hc-small>.am-hc-accent{
  width:3px;flex:0 0 3px;border-radius:0;
}
.am-hc-small-body{
  flex:1;display:flex;align-items:center;justify-content:space-between;
  padding:.48rem .65rem;position:relative;gap:.5rem;
}
.am-hc-small-name{
  font-size:12px;font-weight:700;color:#0D1B2A;
  flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding-right:26px;
}
.am-hc-small-date{
  font-size:10px;color:#94A3B8;font-weight:500;white-space:nowrap;flex:0 0 auto;
}
.am-hc-small .am-hc-open{ top:50%;right:.55rem;transform:translateY(-50%) }


/* ════════════════════════════════════════
   ACCENT COLOUR PRESETS
   ════════════════════════════════════════ */
.acc-uk     { background:linear-gradient(90deg,#C8102E 33%,#fff 33% 66%,#012169 66%) }
.acc-nordic { background:linear-gradient(90deg,#003F87 40%,#D2AA3C 40%) }
.acc-belgium{ background:linear-gradient(90deg,#000 33%,#FDDA24 33% 66%,#EF3340 66%) }
.acc-france { background:linear-gradient(90deg,#0055A4 33%,#fff 33% 66%,#EF4135 66%) }
.acc-india  { background:linear-gradient(90deg,#FF9933 33%,#fff 33% 66%,#138808 66%) }
.acc-texas  { background:linear-gradient(90deg,#BF0A30 33%,#fff 33% 66%,#002868 66%) }
.acc-germany{ background:linear-gradient(90deg,#000 33%,#D00 33% 66%,#FFCE00 66%) }
.acc-creative{ background:linear-gradient(90deg,#00C49A,#7C3AED) }
.acc-founders{ background:linear-gradient(90deg,#F5A623,#0D1B2A) }
