@charset "utf-8";

/* =========================================================
   history.css
   役割：history.html 専用スタイル
   ※ 既存HTML内の style を外出しした版
   ========================================================= */

@import url(../components.css);

    .container{ max-width:1100px; margin:0 auto; padding:24px 16px; }

    .header-row{
      display:flex;
      justify-content:space-between;
      align-items:flex-start;
      gap:12px;
      flex-wrap:wrap;
    }

    .page-title{
      margin:0;
      font-size:22px;
      font-weight:900;
      color:#0f172a;
      line-height:1.2;
    }

    /* 仕様表示（最新10件） */
    .note{
      margin-top:6px;
      color:#64748b;
      font-weight:700;
      font-size:13px;
    }

    /* ---------------------------------------------------------
       ボタン（共通）
       ---------------------------------------------------------
       ・outline: 物件一覧/詳細などの導線
       ・pink:    お気に入りトグル
       ・danger:  削除系
       ・small:   カード内のボタンは小さめ
    --------------------------------------------------------- */
    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:10px 14px;
      border-radius:12px;
      border:1px solid #cdd6e4;
      background:#fff;
      color:#1f2a44;
      font-weight:700;
      cursor:pointer;
      text-decoration:none;
      line-height:1;
      white-space:nowrap;
      gap:6px;
    }
    .btn.outline{ background:#e0f2fe; border-color:#7dd3fc; color:#075985; }
    .btn.pink{ background:#fce7f3; border-color:#f9a8d4; color:#9d174d; }
    .btn.danger{ background:#fee2e2; border-color:#fca5a5; color:#991b1b; }
    .btn.small{ padding:8px 10px; border-radius:10px; font-size:13px; }

    .empty{
      margin-top:16px;
      padding:14px;
      border:1px solid #e5e7eb;
      border-radius:12px;
      background:#fff;
      color:#334155;
      font-weight:700;
    }

    /* ---------------------------------------------------------
       グリッド/カード
       ---------------------------------------------------------
       ★ favorites.html と整合性を持たせるため、
       画像は <a class="thumb" href="/properties/{id}"> で包む
    --------------------------------------------------------- */
    .grid{
      margin-top:16px;
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:14px;
    }
    .card{
      background:#fff;
      border:1px solid #e5e7eb;
      border-radius:14px;
      overflow:hidden;
      display:flex;
      flex-direction:column;
      min-height:100%;
    }

    .thumb{
      display:block;
      background:#f1f5f9;
    }
    .thumb img{
      width:100%;
      height:160px;
      object-fit:cover;
      display:block;
    }

    .body{
      padding:12px;
      display:flex;
      flex-direction:column;
      gap:8px;
      flex:1;
    }
    .title{ font-weight:900; color:#0f172a; line-height:1.3; }
    .price{ font-weight:900; color:#0f172a; }
    .meta{ color:#64748b; font-weight:700; font-size:13px; }

    .actions{
      display:flex;
      gap:10px;
      flex-wrap:wrap;
      margin-top:6px;
    }

    @media (max-width: 860px){
      .grid{ grid-template-columns:1fr; }
      .thumb img{ height:180px; }
    }
  


.header-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.empty-box{
  display:none;
}
