/* 🏡 บ้านใหม่ (js/house-ui.js): the houses in the shop's 🏡 tab, the 🧭 ห้อง button of a big house */

/* ---------- the catalogue: one wide card per house (the shop grid's other cards are narrow) ---------- */
.house-intro { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.house-card {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 6px 12px; align-items: start;
  background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 10px;
}
.house-card.here { border-color: var(--accent); background: #fff8f2; }
.house-card.locked .hc-plan, .house-card.locked .hc-body { opacity: .55; } /* 🔒 a later step */
.hc-plan { grid-row: span 2; background: var(--card-2); border-radius: 14px; padding: 6px; }
.hp-svg { display: block; width: 100%; height: auto; max-height: 190px; }
.hp-garden { fill: #b9e59a; }
.hp-tree { font-size: 1.6px; dominant-baseline: central; text-anchor: middle; }
.hp-room { stroke: #fff; stroke-width: 0.18; }
.hp-e { dominant-baseline: central; text-anchor: middle; }
.hp-wall { fill: none; stroke: #b98a6a; stroke-width: 0.45; stroke-linecap: round; stroke-linejoin: round; }
.hp-door { fill: #c98a55; }
.hp-gap { fill: #fff; opacity: .9; }
.hc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hc-title b { font-size: 15px; }
.hc-size { background: var(--ink); color: #fff; border-radius: 8px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.hc-tag { background: var(--accent); color: #fff; border-radius: 8px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.hc-tag.own { background: #e6f6dd; color: #3d7a24; }
.hc-rooms { display: flex; flex-wrap: wrap; gap: 3px; }
.hc-rooms i { font-style: normal; font-size: 11.5px; background: var(--card-2); border-radius: 8px; padding: 1px 6px; }
.hc-body small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.hc-body small.hc-new { color: #3d7a24; }
.hc-body small.hc-warn { color: #b3541e; }
.hc-buy { grid-column: 2; align-self: end; }
.hc-buy.sure { background: #3d9a4f; border-color: #2f7a3d; }
/* 🎁 a house for a friend: "sure?" with the plan (index.html #house-gift-modal) */
.hc-plan.hg-plan { max-width: 220px; margin: 4px auto 8px; }
#hg-text { line-height: 1.5; }
@media (max-width: 420px) {
  .house-card { grid-template-columns: 1fr; }
  .hc-plan { grid-row: auto; max-width: 240px; justify-self: center; width: 100%; }
  .hc-buy { grid-column: 1; }
}

