/* ============================================================
   南さつま市 空き家バンク 検索機能 追加スタイル
   南さつま市公式サイトのフレームワークに追加して使う
   ============================================================ */

/* ---- TOP ページ：ヒーロー + 検索ボックス ---- */
.akiya-hero {
  background: linear-gradient(135deg, #2c5f7d 0%, #4a8aa8 100%);
  color: #fff;
  padding: 32px 0;
  margin-bottom: 20px;
}

.akiya-hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.akiya-hero-lead {
  letter-spacing: 0.2em;
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 8px;
}

.akiya-hero-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}

.akiya-hero-text {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
  opacity: 0.95;
}

.akiya-hero-search {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.akiya-hero-search-inner {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.akiya-hero-search-inner input[type="search"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

.akiya-hero-search-inner input[type="search"]:focus {
  outline: 2px solid #2c5f7d;
  outline-offset: -1px;
}

.akiya-hero-search-inner button {
  padding: 12px 22px;
  background: #006ebc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.akiya-hero-search-inner button:hover {
  background: #005a9c;
}

.akiya-hero-search-inner button .icon-loupe {
  margin-right: 4px;
}

.akiya-hero-search-link {
  margin: 12px 0 0;
  font-size: 13px;
  color: #4a3728;
  text-align: center;
}

.akiya-hero-search-link a {
  color: #2c5f7d;
}

@media (max-width: 767px) {
  .akiya-hero-title {
    font-size: 22px;
  }
  .akiya-hero-search-inner {
    flex-direction: column;
  }
  .akiya-hero-search-link {
    font-size: 12px;
  }
}

/* ---- TOP：新着 / ピックアップ カードのモバイル横スクロール（CSSのみ・縦長回避） ---- */
@media (max-width: 767px) {
  #newProperties {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 12px;
    padding-bottom: 10px;
  }
  #newProperties > div {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }
}

/* ---- TOP：新着 / ピックアップ カードの中身（タイトル・価格・特徴アイコン） ---- */
.akiya-top-card-meta {
  font-size: 12px;
  color: #888;
  margin: 0 0 4px;
}
.akiya-top-card-meta .fa {
  margin-right: 4px;
  color: #2c5f7d;
}
.akiya-top-card-title {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0 0 6px;
  color: #2c1810;
}
.akiya-top-price {
  font-size: 14px;
  color: #2c1810;
  margin: 0 0 8px;
}
.akiya-top-price-item {
  margin-right: 12px;
  white-space: nowrap;
}
.akiya-top-price .fa {
  margin-right: 2px;
  color: #2c1810;
}
.akiya-top-price-num {
  color: #c8102e;
  font-weight: bold;
  font-size: 1.25em;
}
.akiya-top-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.akiya-top-tags li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  color: #fff;
  background: #006ebc;
  border-radius: 4px;
  padding: 4px 12px;
}
.akiya-top-tags .fa {
  color: #fff;
}

/* ---- 検索ページ専用パネル ---- */
.search-filter-panel {
  background: #f8f6f1;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.search-filter-group {
  margin-bottom: 18px;
}

.search-filter-group:last-child {
  margin-bottom: 0;
}

.search-filter-group legend,
.search-filter-group > label {
  display: block;
  font-weight: bold;
  color: #2c1810;
  font-size: 14px;
  margin-bottom: 8px;
}

.search-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-filter-options label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  background: #fff;
  transition: all 0.15s;
}

.search-filter-options label:hover {
  border-color: #2c5f7d;
}

.search-filter-options label:has(input:checked) {
  background: #2c5f7d;
  color: #fff;
  border-color: #2c5f7d;
}

.search-filter-options input {
  margin: 0;
}

.search-filter-options .feature-count {
  color: #888;
  font-size: 11px;
  margin-left: 2px;
}

.search-filter-options label:has(input:checked) .feature-count {
  color: rgba(255, 255, 255, 0.85);
}

.search-keyword-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.search-reset-btn {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}

.search-reset-btn:hover {
  background: #f5f5f5;
}

/* ---- 検索結果 ---- */
.search-result-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 14px;
  border-bottom: 2px solid #c23616;
  padding-bottom: 8px;
}

.search-result-count {
  font-weight: bold;
  color: #c23616;
  font-size: 15px;
}

.akiya-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .akiya-card-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .akiya-card-list { grid-template-columns: repeat(3, 1fr); }
}

.akiya-card {
  background: #fff;
  border: 1px solid #e0d5c8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
}

.akiya-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.akiya-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.akiya-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f0eb;
}

.akiya-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.akiya-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  border-radius: 3px;
}

/* バッジは南さつま市メインカラーのブルー系で統一（種別は濃淡で区別） */
.akiya-card-badge-sale { background: #006ebc; }
.akiya-card-badge-rent { background: #3f8fd0; }
.akiya-card-badge-both { background: #004e87; }

.akiya-card-body {
  padding: 12px 14px 14px;
}

.akiya-card-area {
  margin: 0 0 4px;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.5px;
}

.akiya-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #2c1810;
  font-weight: bold;
}

.akiya-card-price {
  margin: 0 0 6px;
  font-size: 14px;
  color: #2c1810;
}

.akiya-card-price strong { font-weight: bold; }

/* TOPカードと統一：¥アイコン＋数字のみ赤＋万円 */
.akiya-card-price-item {
  margin-right: 12px;
  white-space: nowrap;
}
.akiya-card-price .fa {
  margin-right: 2px;
  color: #2c1810;
}
.akiya-card-price-num {
  color: #c8102e;
  font-weight: bold;
  font-size: 1.25em;
}

.akiya-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  font-size: 11px;
  color: #666;
}

.akiya-card-tags {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.akiya-card-tags li {
  background: #f0ebe3;
  color: #5a4a3a;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 3px;
}

.search-no-result {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  background: #fff;
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
}

/* ---- カテゴリ一覧ページ専用 ---- */
.category-block {
  margin: 24px 0;
}

.category-heading {
  font-size: 18px;
  color: #2c1810;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #c23616;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .category-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .category-list { grid-template-columns: repeat(4, 1fr); }
}

.category-list li.all { grid-column: 1 / -1; }

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e0d5c8;
  border-radius: 4px;
  color: #2c1810;
  text-decoration: none;
  transition: all 0.15s;
  font-size: 14px;
}

.category-list a:hover {
  background: #2c5f7d;
  color: #fff;
  border-color: #2c5f7d;
}

.category-list .cat-label { font-weight: bold; }

.category-list .cat-count { color: #888; font-size: 12px; }

.category-list a:hover .cat-count { color: rgba(255, 255, 255, 0.85); }
