/* schoolnet.php 列表 */

/* 校網頁唔用全站大理石／頂欄背景相，統一白底 */
html,
body {
  background: #fff !important;
  background-image: none !important;
}
.main {
  background-color: #fff;
}
.topbanner {
  background-image: none !important;
  background-color: #fff !important;
}

/* 詳情頁還原頂欄 bottom shadow（列表頁唔使；oneestate_list.css 關咗） */
body:has(.sn-detail) .mtopmenu.mtopmenuflow {
  -webkit-box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.4) !important;
}

/* 手機：四個篩選 tab（蓋過一手新盤三欄 33%） */
#oel-mobile-search .searchtag li {
  width: 25%;
}
#oel-mobile-search .searchtag .tagitem.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.sn-list {
  width: 100%;
  min-height: 400px;
  margin-bottom: 10px;
}

.sn-list-head,
.sn-list-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid #e8e8e8;
  box-sizing: border-box;
}

.sn-list-head {
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #d3c8a1;
}

.sn-list-row:hover {
  background-color: #fafafa;
}

.sn-col {
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  font-size: 14px;
  color: #333;
}

.sn-list-head .sn-col {
  font-size: 14px;
}

.sn-list-row .sn-col {
  font-size: 15px;
}

.sn-name {
  flex: 0 0 26%;
  width: 26%;
}

.sn-dist {
  flex: 0 0 10%;
  width: 10%;
}

.sn-gender {
  flex: 0 0 8%;
  width: 8%;
}

.sn-finance {
  flex: 0 0 12%;
  width: 12%;
}

.sn-addr {
  flex: 1 1 auto;
  min-width: 0;
}

.oel-pager nav {
  margin-top: 20px;
}

.oel-distitle .oel-filter-label,
.oel-subdist .oel-filter-label {
  flex: 0 0 90px;
  width: 90px;
}

.oel-subdist .oel-filter-label {
  padding-top: 3px;
}

.oel-no-results {
  min-height: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  box-sizing: border-box;
}

/* 列表可撳 */
a.sn-list-row {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.sn-list-row:hover,
a.sn-list-row:focus {
  background-color: #fafafa;
  text-decoration: none;
  color: inherit;
}

/* 手機：垂直列表（校名 → 地區·性別·資助 → 地址） */
@media (max-width: 767px) {
  .sn-list-head {
    display: none;
  }
  .sn-list-row,
  a.sn-list-row {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 12px 8px;
  }
  .sn-list-row .sn-name {
    flex: 0 0 100%;
    width: 100%;
    font-size: 17px;
    font-weight: bold;
    color: #000;
    line-height: 1.35;
  }
  .sn-list-row .sn-dist,
  .sn-list-row .sn-gender,
  .sn-list-row .sn-finance {
    flex: 0 0 auto;
    width: auto;
    font-size: 15px;
    color: #666;
    line-height: 1.4;
  }
  .sn-list-row .sn-dist::after,
  .sn-list-row .sn-gender::after {
    content: "·";
    margin-left: 8px;
    color: #bbb;
  }
  .sn-list-row .sn-addr {
    flex: 0 0 100%;
    width: 100%;
    font-size: 15px;
    color: #888;
    line-height: 1.4;
  }
}

/* 詳情頁 */
.sn-detail {
  margin: 24px 0 60px;
  max-width: 800px;
}
.sn-detail-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: bold;
  color: #000;
  line-height: 1.3;
}
.sn-detail-dl {
  margin: 0;
  padding: 0;
  border-top: 1px solid #d3c8a1;
}
.sn-detail-row {
  display: flex;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #e8e8e8;
  box-sizing: border-box;
}
.sn-detail-row dt {
  flex: 0 0 88px;
  width: 88px;
  margin: 0;
  font-size: 14px;
  color: #666;
  font-weight: normal;
}
.sn-detail-row dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.sn-detail-row dd a {
  color: #337ab7;
  text-decoration: none;
}
.sn-detail-row dd a:hover {
  text-decoration: underline;
}
