/* 城市美學舊版成果前台顯示整理版 */
.mlcity-toolbar {
  margin: 20px auto 34px;
  padding: 26px 28px 30px;
  max-width: 1120px;
  background: #fff;
  border: 1px solid rgba(7, 70, 62, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(7, 70, 62, 0.06);
}
.mlcity-filter-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: start;
  margin-bottom: 14px;
}
.mlcity-filter-row:last-child {
  margin-bottom: 0;
}
.mlcity-filter-label {
  position: relative;
  padding-top: 11px;
  color: #315e55;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.mlcity-filter-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 22px;
  height: 2px;
  background: #f3aa44;
  border-radius: 99px;
}
.mlcity-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.mlcity-pill,
.mlcity-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 20px;
  color: #143f38 !important;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 63, 56, 0.16);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(7, 70, 62, 0.08);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.mlcity-pill:hover,
.mlcity-type-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(7, 70, 62, 0.12);
  border-color: rgba(243, 170, 68, 0.5);
  color: #0b443c !important;
}
.mlcity-pill.is-active,
.mlcity-type-pill.is-active {
  color: #fff !important;
  background: #f3aa44;
  border-color: #f3aa44;
  box-shadow: 0 10px 20px rgba(243, 170, 68, 0.28);
}
.mlcity-filter-type {
  align-items: stretch;
}
.mlcity-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px;
  background: #07463e;
  border-radius: 17px;
}
.mlcity-type-pill {
  color: #fff !important;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}
.mlcity-type-pill:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.11);
}
.mlcity-type-pill.is-active {
  color: #fff !important;
  background: #f3aa44;
  border-color: #f3aa44;
}
.mlcity-content-wrap {
  max-width: 1120px;
  margin: 26px auto 70px;
  padding: 0 10px;
}
.mlcity-content-wrap .introtext,
.mlcity-content-wrap .fulltext {
  color: #263b36;
  font-size: 17px;
  line-height: 1.9;
}
.mlcity-content-wrap img {
  max-width: 100%;
  height: auto;
}
.mlcity-section {
  margin-top: 46px;
}
.mlcity-section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 22px;
  padding-bottom: 10px;
  color: #184c42;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.mlcity-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 4px;
  background: #f3aa44;
  border-radius: 99px;
}
.mlcity-subtitle {
  margin: 0 0 8px;
  color: #184c42;
  font-size: 22px;
  font-weight: 850;
}
.mlcity-count {
  margin-bottom: 14px;
  color: #648079;
  font-size: 14px;
}
.mlcity-album,
.mlcity-file-group {
  margin-bottom: 34px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(7, 70, 62, 0.1);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(7, 70, 62, 0.06);
}
.mlcity-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.mlcity-photo-card {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #f8faf9;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 70, 62, 0.08);
}
.mlcity-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}
.mlcity-photo-card:hover img {
  transform: scale(1.04);
}
.mlcity-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 142px 24px 28px;
}
.mlcity-lightbox.is-open {
  display: flex;
}
.mlcity-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.78);
  border: 0;
  cursor: zoom-out;
}
.mlcity-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(1000px, 94vw);
  max-height: calc(100vh - 190px);
}
.mlcity-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 210px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.mlcity-lightbox-close {
  position: absolute;
  top: -8px;
  right: 4px;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #07463e;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mlcity-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 66px;
  color: #fff;
  background: rgba(7, 70, 62, 0.82);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.mlcity-lightbox-nav:hover {
  background: #f3aa44;
}
.mlcity-lightbox-prev { left: -62px; }
.mlcity-lightbox-next { right: -62px; }
.mlcity-lightbox-caption {
  margin-top: 10px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  letter-spacing: .04em;
}
.mlcity-content-wrap .introtext:empty,
.mlcity-content-wrap .fulltext:empty {
  display: none;
}

.mlcity-video-preview {
  max-width: 900px;
  margin-bottom: 18px;
}
.mlcity-video-preview iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(7, 70, 62, 0.11);
}
.preview-label {
  margin-top: 8px;
  color: #59736d;
  font-size: 14px;
}
.mlcity-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.mlcity-video-card {
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 70, 62, 0.08);
}
.mlcity-video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.mlcity-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.mlcity-file-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #184c42 !important;
  background: #f8fbfa;
  border: 1px solid rgba(7, 70, 62, 0.12);
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none !important;
}
.mlcity-file-link:hover {
  background: #fff7ed;
  border-color: rgba(243, 170, 68, 0.55);
}
.mlcity-file-icon {
  flex: 0 0 auto;
}
.mlcity-empty {
  max-width: 900px;
  margin: 30px auto;
  padding: 18px 22px;
  color: #315e55;
  background: #f3fbf9;
  border: 1px solid rgba(7, 70, 62, 0.14);
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
}
#loading {
  text-align: center;
}
.hide { display: none; }
.show { display: block; }

@media (max-width: 767px) {
  .mlcity-toolbar {
    margin: 14px 0 26px;
    padding: 20px 16px;
    border-radius: 18px;
  }
  .mlcity-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .mlcity-filter-label {
    padding-top: 0;
  }
  .mlcity-pill,
  .mlcity-type-pill {
    min-height: 36px;
    padding: 7px 15px;
    font-size: 15px;
  }
  .mlcity-type-options {
    padding: 10px;
  }
  .mlcity-content-wrap {
    margin-top: 18px;
  }
  .mlcity-section-title {
    font-size: 25px;
  }
  .mlcity-album,
  .mlcity-file-group {
    padding: 16px;
  }
  .mlcity-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mlcity-lightbox-nav {
    width: 40px;
    height: 52px;
    font-size: 34px;
  }
  .mlcity-lightbox {
    padding: 118px 10px 20px;
  }
  .mlcity-lightbox-panel {
    max-width: 100%;
    max-height: calc(100vh - 150px);
  }
  .mlcity-lightbox-img {
    max-height: calc(100vh - 170px);
  }
  .mlcity-lightbox-close {
    top: -6px;
    right: 4px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
  .mlcity-lightbox-prev { left: 8px; }
  .mlcity-lightbox-next { right: 8px; }
}
