/**
 * 設備・機器検索UI / お知らせ検索UI 共通スタイル。
 * 既存の style.css は変更せず、本ファイルで完結させる。
 */
[x-cloak] {
  display: none !important;
}

.eq-search {
  /* 既存の .contents__inner（他セクション）と幅を統一する */
  margin: 0 auto 60px;
  max-width: 1200px;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   タブ切り替え（設備・機器 / お知らせ・セミナー）
------------------------------------------------------------ */
.eq-search__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}
.eq-search__tabs button {
  border: 1px solid #D9D9D9;
  background: #fff;
  color: #4D5156;
  padding: 10px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}
.eq-search__tabs button.is-active {
  background: #56B5D1;
  border-color: #56B5D1;
  color: #fff;
}

/* ------------------------------------------------------------
   キーワード検索ボックス
------------------------------------------------------------ */
.eq-search__keyword-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto 15px;
}
.eq-search__keyword-wrap input[type="search"] {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid #D9D9D9;
  border-radius: 2px;
  font-size: 16px;
  margin: 0;
}

/* ------------------------------------------------------------
   選択中フィルタの要約バー（常時表示）
   ※ gap のみで行間を確保し、上下margin/paddingは最小限にする
------------------------------------------------------------ */
.eq-search__summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #f8fcfd;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}
.eq-search__summary-label {
  font-weight: bold;
  color: #56B5D1;
  margin-right: 2px;
}
.eq-search__summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #56B5D1;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  margin: 0;
}
.eq-search__summary-chip .x {
  font-size: 10px;
  opacity: .85;
}
.eq-search__clear-all-btn {
  border: none;
  background: none;
  color: #56B5D1;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  margin-left: auto;
}

/* ------------------------------------------------------------
   フィルタパネル（アコーディオン・コンパクト）
   ※ 各要素の個別margin/paddingは極力排し、
     gap（flexboxの行間・列間を自動調整するプロパティ）のみに委ねる。
     これにより、画面幅が狭まり折り返しが発生した場合のみ
     自動的に適切な行間が生まれ、通常時は無駄な余白が生じない。
------------------------------------------------------------ */
.eq-search__filters {
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 15px;
}
.eq-search__filter-group {
  margin-bottom: 10px;
}
.eq-search__filter-group:last-child {
  margin-bottom: 0;
}
.eq-search__filter-group h3 {
  font-size: 13px;
  font-weight: bold;
  margin: 0 0 6px;
  padding-left: 10px;
  border-left: 4px solid #56B5D1;
  line-height: 1.2;
}

.eq-search__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.eq-search__chip-row--children {
  margin: 6px 0 0;
  padding: 8px;
  background: #f8fcfd;
  border-radius: 4px;
}
.eq-search__chip-row--scroll {
  max-height: 160px;
  overflow-y: auto;
  padding: 2px;
}

.eq-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #D9D9D9;
  background: #fff;
  color: #4D5156;
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  margin: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.eq-search__chip .count {
  font-size: 11px;
  opacity: .75;
}
.eq-search__chip.is-selected {
  background: #56B5D1;
  border-color: #56B5D1;
  color: #fff;
  font-weight: bold;
}
.eq-search__chip.is-disabled {
  opacity: .35;
  cursor: default;
}

/* 大項目チップ（クリックで子項目を展開するトグル） */
.eq-search__chip--large {
  background: #fff;
  border-color: #56B5D1;
  color: #56B5D1;
  font-weight: bold;
  margin: 0;
}
.eq-search__chip--large .arrow {
  font-size: 10px;
  transition: transform .2s;
}
.eq-search__chip--large.is-expanded .arrow {
  transform: rotate(180deg);
}
/**
 * 中島修正：「展開状態（矢印の向き）」と「選択状態（背景色）」を分離した。
 * - is-selected：大項目を丸ごと選択中（配下の設備がすべて表示対象）
 * - is-partial：大項目配下の一部の小項目のみ選択中（絞り込み中）
 */
.eq-search__chip--large.is-selected {
  background: #56B5D1;
  border-color: #56B5D1;
  color: #fff;
}
.eq-search__chip--large.is-partial {
  background: #eaf6fb;
  border-color: #56B5D1;
  border-style: dashed;
  color: #2d7aa0;
}

/* 機関・部局：折りたたみトグルボタン */
.eq-search__toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #D9D9D9;
  background: #fff;
  color: #4D5156;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
}
.eq-search__toggle-btn .arrow {
  font-size: 10px;
  transition: transform .2s;
}
.eq-search__toggle-btn .arrow.is-open {
  transform: rotate(180deg);
}
.eq-search__dept-panel {
  margin-top: 6px;
}

.eq-search__dept-filter {
  width: 100%;
  max-width: 320px;
  padding: 5px 10px;
  border: 1px solid #D9D9D9;
  border-radius: 2px;
  font-size: 13px;
  margin: 0 0 6px;
}

/* 中島追記：機関・部局フィルタ（自由記述は常時表示、一覧は折りたたみ） */
.eq-search__dept-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.eq-search__dept-header h3 {
  margin: 0;
}
.eq-search__dept-header .eq-search__dept-filter {
  flex: 1 1 200px;
  max-width: 280px;
  margin: 0;
}
.eq-search__dept-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #D9D9D9;
  background: #fff;
  color: #56B5D1;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 30px;
  cursor: pointer;
}
.eq-search__dept-toggle .arrow {
  font-size: 9px;
  transition: transform .2s;
}
.eq-search__dept-toggle .arrow.is-open {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------
   検索結果
------------------------------------------------------------ */
.eq-search__result-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.eq-search__result-count {
  font-weight: bold;
  margin: 0;
}

.eq-search__view-toggle {
  display: flex;
  gap: 8px;
}
.eq-search__view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #56B5D1;
  background: #fff;
  color: #56B5D1;
  padding: 6px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  /**
   * 中島追記：ボタン自体の幅が縮んでラベル文字が内部で折り返る
   * （＝ボタンが異様に高くなる）ことを防ぐ。
   * 代わりに「ボタン群全体が収まらない」という状態になるが、
   * これはJS側（equipment-search.js の checkViewToggleOverflow）が
   * 検出し、ラベルを隠すコンパクト表示に切り替える。
   */
  flex-shrink: 0;
  white-space: nowrap;
}
.eq-search__view-toggle button.is-active {
  background: #56B5D1;
  color: #fff;
}

/**
 * 中島追記：画面幅の固定値ではなく、実際にボタン群が収まりきらない
 * 場合にのみ付与される .is-compact クラスに応じてラベルを隠す。
 * （クラスの付与判定は equipment-search.js 側で行う）
 */
.eq-search__view-toggle.is-compact .label-text {
  display: none;
}
.eq-search__view-toggle.is-compact button {
  padding: 8px 10px;
}

/* 中島修正：コンテナ幅拡大（1200px）に合わせ、12カラムグリッドで
   デスクトップは4枚/行（span-3）に変更 */
.eq-search__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.eq-search__card {
  grid-column: span 12;
}
@media screen and (min-width: 769px) {
  .eq-search__card {
    grid-column: span 3;
  }
}
.eq-search__card {
  display: block;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  overflow: hidden;
  color: #4D5156;
  transition: box-shadow 0.2s;
}
.eq-search__card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.eq-search__card-img {
  position: relative;
  padding-top: 65%;
  background: #f4f4f4;
  overflow: hidden;
}
.eq-search__card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eq-search__card-body {
  padding: 12px 14px;
}
.eq-search__card-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}
.eq-search__card-info {
  font-size: 12px;
  color: #777777;
  margin: 0;
}
.eq-search__card-info dt {
  float: left;
  clear: left;
  width: 3.5em;
  font-weight: bold;
  color: #56B5D1;
}
.eq-search__card-info dd {
  margin: 0 0 4px 4em;
}

/* 比較表（比較表で見る）：横スクロールさせず、必要に応じて折り返す */
.eq-search__table-wrap {
  width: 100%;
}
.eq-search__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.eq-search__table th,
.eq-search__table td {
  border-bottom: 1px solid #D9D9D9;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}
.eq-search__table th:nth-child(1), .eq-search__table td:nth-child(1) { width: 22%; }
.eq-search__table th:nth-child(2), .eq-search__table td:nth-child(2) { width: 16%; }
.eq-search__table th:nth-child(3), .eq-search__table td:nth-child(3) { width: 16%; }
.eq-search__table th:nth-child(4), .eq-search__table td:nth-child(4) { width: 16%; }
.eq-search__table th:nth-child(5), .eq-search__table td:nth-child(5) { width: 30%; }

.eq-search__table th {
  background: #f8fcfd;
  cursor: pointer;
  user-select: none;
}
.eq-search__table th.is-sorted::after {
  content: "▲";
  font-size: 9px;
  margin-left: 4px;
}
.eq-search__table th.is-sorted.desc::after {
  content: "▼";
}
.eq-search__table a {
  color: #56B5D1;
  font-weight: bold;
}
.eq-search__table tbody tr:hover {
  background: rgba(86, 181, 209, .06);
}

.eq-search__show-more {
  text-align: center;
  margin-top: 30px;
}
.eq-search__show-more button {
  border: 1px solid #56B5D1;
  background: #fff;
  color: #56B5D1;
  padding: 10px 40px;
  border-radius: 2px;
  cursor: pointer;
}

.eq-search__empty,
.eq-search__loading,
.eq-search__error {
  text-align: center;
  padding: 60px 0;
  color: #777777;
}

/* ------------------------------------------------------------
   お知らせ・セミナー検索UI
------------------------------------------------------------ */
/* 中島修正：設備・機器タブ（幅制限なし、全幅使用）と統一する */
.nt-search__layout {
  width: 100%;
}
.nt-search__list {
  border-top: 1px solid #D9D9D9;
}
.nt-search__item {
  border-bottom: 1px solid #D9D9D9;
}
.nt-search__item a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 6px;
  color: #4D5156;
}
.nt-search__date {
  font-size: 12px;
  color: #999999;
  min-width: 90px;
}
.nt-search__category {
  background: #56B5D1;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 4px;
}
.nt-search__title {
  font-size: 14px;
  flex: 1 1 auto;
}

/* ------------------------------------------------------------
   レスポンシブ対応：比較表は横スクロールさせず、
   スマホでは1行=1カードのブロック表示に変換する
------------------------------------------------------------ */
@media screen and (max-width: 768px) {
  /* 中島修正：カード自体（.eq-search__card）のgrid-column指定に統一したため、
     ここでの grid-template-columns 上書きは不要になった
  .eq-search__grid {
    grid-template-columns: repeat(2, 1fr);
  }
    */
  .eq-search__result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nt-search__date {
    min-width: auto;
  }

  .eq-search__table thead {
    display: none;
  }
  .eq-search__table,
  .eq-search__table tbody,
  .eq-search__table tr {
    display: block;
    width: 100% !important;
  }
  /**
   * 中島修正：td を display:block（1本の地続きテキスト）から
   * display:flex（ラベル列・内容列の2列構成）に変更する。
   * これにより、内容が長くて折り返る際、セル左端（ラベルの真下）
   * ではなく「内容列の内側」で折り返るようになる。
   */
  .eq-search__table td {
    display: flex;
    align-items: flex-start;
    width: 100% !important;
    border: none;
    padding: 3px 0;
  }
  .eq-search__table td.cell-title a {
    font-weight: bold;
  }
  .eq-search__table tr {
    border: none;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 0;
    padding: 14px 4px;
  }
  .eq-search__table tbody tr:first-child {
    border-top: 1px solid #D9D9D9;
  }
  .eq-search__table td::before {
    content: attr(data-label);
    /* ラベル列：固定幅（flexアイテムとしての幅指定） */
    flex: 0 0 76px;
    margin-right: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #56B5D1;
  }
  /**
   * 中島追記：内容列（<a> または <span class="cell-value">）。
   * flex:1 1 auto で残りの幅いっぱいに広がり、min-width:0 を
   * 指定することで、長い内容がこの列の内側だけで正しく折り返る
   * ようになる（min-width:0がないと、flexアイテムは内容の
   * 自然な幅を保とうとして折り返らず、はみ出してしまうため）。
   */
  .eq-search__table td > a,
  .eq-search__table td > .cell-value {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
  }
}
/* 中島修正：.eq-search__card が初期値(span 12)のため、
   480px以下でも自然に1列になる。このルールは不要になり削除した
@media screen and (max-width: 480px) {
  .eq-search__grid {
    grid-template-columns: 1fr;
  }
}
*/


/* 中島追記：fp-band--blue（薄青背景）の上に乗っても違和感のないよう、
   フィルタ・検索結果エリアを白いカードパネルとして浮かせる */
.eq-search__filters {
  background: #fff;
}
.eq-search__summary-bar {
  background: #fff;
}
.eq-search__main {
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  padding: 20px;
}

/* ------------------------------------------------------------
   中島追記：検索結果の地図表示モード
------------------------------------------------------------ */
.eq-search__map-wrap {
  width: 100%;
}
/**
 * 中島修正：ツールバーが地図上にオーバーレイ表示される操作性を維持するため、
 * この注意書きも通常のレイアウト（flow）から外し、地図コンテナ内で
 * ツールバーの直下に重ねて表示する絶対配置に変更した。
 * top位置はJS側（mapOverlayHeight）から動的に設定される。
 * 横方向の位置・最大幅はオーバーレイツールバー（.eq-search__toolbar--overlay）と
 * 揃える。
 */
.eq-search__map-note {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 550;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e6;
  color: #a67c00;
  border: 1px solid #f3dd9c;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

@media screen and (max-width: 768px) {
  .eq-search__map-note {
    left: 12px;
    right: 12px;
  }
}

/* 中島追記：地図コンテナ（情報パネルを絶対配置するための基準位置） */
.eq-search__map-container {
  position: relative;
}
.eq-search__map {
  height: 600px;
  width: 100%;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
}

/**
 * 中島修正：ツールバー（検索・フィルタ）を地図上部にオーバーレイ表示する
 * ようにしたため、建物情報パネルはそれと重ならないよう左下に配置する
 * （ズームボタンは右下のため、左下なら両方と干渉しない）。
 */
.eq-search__map-panel {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 280px;
  max-width: calc(100% - 32px);
  max-height: 45%;
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .2);
  padding: 16px;
  z-index: 500;
}
.eq-search__map-panel h4 {
  margin: 0 20px 10px 0;
  font-size: 14px;
}
.eq-search__map-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 14px;
  color: #999999;
  cursor: pointer;
  line-height: 1;
}
.eq-search__map-panel-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.eq-search__map-panel-list li {
  padding: 6px 0;
  border-bottom: 1px dashed #D9D9D9;
  font-size: 13px;
}
.eq-search__map-panel-list li:last-child {
  border-bottom: none;
}

/* 中島追記：ピンのアイコン（通常時は青、選択時は赤） */
.eq-map-pin-wrapper {
  background: none;
  border: none;
}
.eq-map-pin {
  font-size: 28px;
  color: #56B5D1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.eq-map-pin.is-selected {
  color: #E63946;
}

/* ------------------------------------------------------------
   中島追記：Leaflet内部要素（ズームボタン・コピーライト等）の
   重なり順を、ヘッダー（z-index:999, position:fixed）より
   必ず低くする。
   Leaflet自体がズームコントロールやAttributionに1000番台の
   z-indexを内部的に指定しているため、ヘッダーをスクロールで
   追い越してしまう不具合があった。
   .eq-search__map-container 自体にスタッキングコンテキストを
   新設することで、内部のLeaflet要素がどのような値を
   指定していても、このコンテナ内に重なり順が閉じ込められ、
   ページ全体のヘッダーの手前に出ることがなくなる。
------------------------------------------------------------ */
.eq-search__map-container {
  isolation: isolate;
}

@media screen and (max-width: 768px) {
  .eq-search__map {
    height: 400px;
  }
  .eq-search__map-panel {
    width: calc(100% - 32px);
  }

  /**
   * 中島追記：画面幅が狭い場合、ツールバー（検索・フィルタ）の
   * オーバーレイが地図を覆ってしまう問題への対応。
   * ① ボタンの文字ラベルを隠し、アイコンのみのコンパクト表示にする
   * ② オーバーレイ自体の最大高さを抑える（折りたたみパネルを
   *    開いたままにしても、地図の視認性を最低限確保する）
   */
  .eq-search__toolbar--overlay {
    max-height: 40%;
    padding: 10px 12px;
  }
  .eq-search__toolbar-top {
    gap: 8px;
  }
  .eq-search__view-toggle button span,
  .eq-search__filters-toggle {
    /* ラベル文字を隠し、アイコンのみにする（ボタン自体は維持） */
  }
  .eq-search__view-toggle button {
    padding: 8px 10px;
  }
  .eq-search__filters-toggle {
    padding: 8px 10px;
  }

  /* 情報パネルの最大高さも抑え、地図をより多く確保する */
  .eq-search__map-panel {
    max-height: 35%;
    padding: 12px;
  }
}

/**
 * 中島修正：「検索条件」ボタンのラベル非表示も、固定幅（768px）の
 * メディアクエリから、JS（checkToolbarOverflow）による動的判定に
 * 統一した。
 *
 * 【変更理由】
 * 固定幅での判定だと、「768px以下なら問答無用でラベルを隠す」
 * という挙動になり、本来は十分な余白がある画面幅でも不要に
 * ラベルが隠れてしまっていた。また、表示切替ボタン側だけが
 * 動的判定（.is-compact）になっていたため、行全体で見ると
 * 検索条件ボタンだけが画面右端で見切れる不整合が生じていた。
 * 両方を同じ基準（行全体が画面に収まるか）で判定するように
 * 統一し、「検索条件」は最も重要な操作のため最後まで文字を
 * 残す、という優先順位をJS側で保証する。
 */
.eq-search__filters-toggle.is-compact .label-text {
  display: none;
}
.eq-search__filters-toggle.is-compact {
  padding: 8px 10px;
}

/* ------------------------------------------------------------
   中島追記：フィルタと結果表示を1つの枠に統合する再設計
------------------------------------------------------------ */

/* 全体を包む1つの白いパネル */
.eq-search__panel {
  position: relative; /* 地図モード時のツールバーオーバーレイの基準位置 */
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  padding: 20px;
}

/* ツールバー：検索ボックス・表示切替・フィルタ・選択中チップをまとめる */
.eq-search__toolbar {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #D9D9D9;
}
.eq-search__toolbar .eq-search__filter-group {
  margin-bottom: 10px;
}
.eq-search__toolbar .eq-search__filter-group:last-child {
  margin-bottom: 0;
}

.eq-search__toolbar-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
/**
 * 中島修正：検索ボックスの右側に「検索条件」ボタンを並べるため、
 * .eq-search__keyword-wrap をflexコンテナ化する。
 */
.eq-search__toolbar-top .eq-search__keyword-wrap {
  margin: 0;
  max-width: 480px;
  flex: 1 1 320px;
  display: flex;
  gap: 8px;
}
.eq-search__toolbar-top .eq-search__keyword-wrap input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* 「検索条件」ボタン */
.eq-search__filters-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #56B5D1;
  background: #fff;
  color: #56B5D1;
  padding: 0 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.eq-search__filters-toggle .arrow {
  font-size: 10px;
  transition: transform .2s;
}
.eq-search__filters-toggle .arrow.is-open {
  transform: rotate(180deg);
}
.eq-search__filters-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: #56B5D1;
  color: #fff;
  font-size: 11px;
}

/* 折りたたみ対象のフィルタ群本体 */
.eq-search__filters-collapsible {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #D9D9D9;
}

/**
 * 地図表示モードのときのみ付与される、オーバーレイ用のスタイル。
 * .eq-search__panel（position:relative）を基準に地図の上に浮かせる。
 * 左下の建物情報パネル・右下のズームボタンとは重ならないよう、上部に固定する。
 */
.eq-search__toolbar--overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 600;
  margin: 0;
  padding: 14px 16px;
  max-height: 55%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}

/* 結果表示エリア（カード／リスト／地図の共通コンテナ） */
.eq-search__results {
  position: relative;
}
.eq-search__results .eq-search__result-count {
  font-weight: bold;
  margin: 0 0 15px;
}

@media screen and (max-width: 480px) {
  .eq-search__toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }
  .eq-search__toolbar-top .eq-search__keyword-wrap {
    max-width: none;
    /**
     * 中島追記：flex-direction を column に切り替えたことで、
     * 親から継承していた「flex: 1 1 320px」の 320px（flex-basis）が、
     * 「幅320px」ではなく「高さ320px」として解釈されてしまい、
     * 検索欄全体が異様に縦長になる不具合があった。
     * flex: 0 0 auto を明示し、コンテンツに応じた自然な高さに戻す。
     */
    flex: 0 0 auto;
  }
  .eq-search__filters-toggle {
    padding: 10px 14px;
  }
}