/* ============================================================
   男鹿市空き家バンク（あき活Lab）向け追加スタイル
   akiya-functions.php から自動で読み込まれます
   ============================================================ */

/* --- サイドバー：地区から探す --- */
.side-chiku-list {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 10px;
    margin: 0;
    list-style: none;
}

.side-chiku-list li {
    width: 50%;
    box-sizing: border-box;
    padding: 4px 2px;
    font-size: 14px;
}

.side-chiku-list li a {
    display: block;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    background: #fff;
    transition: background 0.2s;
}

.side-chiku-list li a:hover {
    background: #f2f8f8;
}

.side-chiku-list li.current-chiku a {
    font-weight: bold;
    border-width: 2px;
}

.side-chiku-list li.no-bukken span {
    display: block;
    padding: 6px 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #bbb;
    background: #fafafa;
}

.side-chiku-list .chiku-cnt {
    font-size: 12px;
}

.chiku-clear {
    padding: 0 12px 8px;
    font-size: 13px;
    text-align: right;
}

.current-eki a {
    font-weight: bold;
}

/* --- TOP・一覧サムネ：地区バッジ --- */
.akiya-chiku-badge {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 6px;
    border-radius: 3px;
    background: #5a8f7b;
    color: #fff;
    font-size: 12px;
    vertical-align: middle;
}

/* --- 物件詳細：主要施設への距離 --- */
.akiya-kyori table th {
    white-space: nowrap;
}

/* --- 物件詳細：仲介事業者 --- */
.akiya-chukai-note {
    margin: 10px 0 20px;
    font-size: 14px;
}

/* --- 物件詳細：空き家バンク注意書き --- */
.akiya-bank-note {
    margin: 30px 0;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f8f5;
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.akiya-bank-note p {
    margin: 0;
}

/* ============================================================
   追加改修（2026-07 第2弾）
   ============================================================ */

/* --- TOP・一覧カード：地区名ラベル（コメントラベルの代替） --- */
.icon_chiku {
    text-decoration: none;
    cursor: default;
}

/* --- 物件詳細：追加ブロック見出しの上マージン --- */
.akiya-block-ttl {
    margin-top: 36px;
}

/* --- 検索結果：カード表示⇔一覧表示の切り替え --- */
.akiya-view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
}

.akiya-view-count {
    margin-right: auto;
    font-size: 14px;
    color: #666;
}

.akiya-view-toggle a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.akiya-view-toggle a i {
    margin-right: 5px;
}

.akiya-view-toggle a.active {
    background: #555;
    border-color: #555;
    color: #fff;
    pointer-events: none;
}

/* --- 検索結果：一覧表示（テーブル） --- */
.akiya-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.akiya-bukken-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 860px; /* スマホでは横スクロール */
}

.akiya-bukken-table th {
    background: #f0f0eb;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
}

.akiya-bukken-table th.akiya-sortable {
    cursor: pointer;
    user-select: none;
}

.akiya-bukken-table th.akiya-sortable:hover {
    background: #e6e6df;
}

.akiya-bukken-table th .sort-mark {
    display: inline-block;
    width: 1em;
    margin-left: 2px;
    font-size: 10px;
}

.akiya-bukken-table td {
    border: 1px solid #e4e4e0;
    padding: 6px 10px;
    vertical-align: middle;
}

.akiya-bukken-table tbody tr:nth-child(even) {
    background: #fafaf7;
}

.akiya-bukken-table tbody tr:hover {
    background: #f2f8f5;
}

.akiya-bukken-table .col-photo {
    width: 76px;
    padding: 4px;
    text-align: center;
}

.akiya-bukken-table .col-photo img {
    width: 68px;
    height: 51px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
}

.akiya-bukken-table .col-name {
    min-width: 200px;
}

.akiya-bukken-table .col-kakaku {
    white-space: nowrap;
    font-weight: 700;
    text-align: right;
}

.akiya-bukken-table .col-btn {
    white-space: nowrap;
    text-align: center;
}

.akiya-tbl-detail {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid #ccc;
    color: #555; /* 文字色はテーマ設定のメインカラーで上書きされます（akiya-functions.php） */
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.akiya-tbl-detail:hover {
    opacity: 0.75;
}

.akiya-tbl-detail i {
    margin-right: 4px;
}

.akiya-bukken-table .favorite-btn {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}

.akiya-bukken-table .favorite-btn i {
    margin-right: 4px;
    color: #e0a800;
}
