/* ============================================================
   directory.css — Public directory pages (NEW UI)
   Load after core.css on: directory-home, directory-details,
   directory-regions, directory-item-details.
   Gallery component: gallery-viewer.css (where applicable).
   Admin pages use directory-admin.css instead.
   ============================================================ */

/* Toast notifications (dirforge-utils.js) */
.df-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.df-toast-container .df-toast {
  pointer-events: auto;
}

.df-toast {
  background: #192333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
  animation: dfToastIn .25s cubic-bezier(.4, 0, .2, 1);
  min-width: 220px;
}

.df-toast.df-toast-success {
  background: #4338e0;
}

.df-toast.df-toast-error {
  background: #e53e3e;
}

@keyframes dfToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Directory.html scoped styles
   Moved from directory.html inline <style> block.
   ========================================================= */
.page-directory {
  --page: #f6f7f9;
  --card: #fff;
  --ink: #172033;
  --ink-soft: #303b4a;
  --muted: #657082;
  --muted-2: #97a1af;
  --border: #e3e8ef;
  --border-2: #edf1f5;
  --green: #6aa68e;
  --green-dark: #4d8b72;
  --green-soft: #dff3ea;
  --blue-soft: #e9f2ff;
  --blue: #1f66b1;
  --shadow-sm: 0 3px 10px rgba(21, 31, 43, .05), 0 1px 2px rgba(21, 31, 43, .04);
  --shadow-md: 0 12px 28px rgba(21, 31, 43, .10), 0 2px 8px rgba(21, 31, 43, .06);
  --serif: system-ui, "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.page-directory,
.page-directory * {
  box-sizing: border-box;
}

.page-directory {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-directory a {
  color: inherit;
  text-decoration: none;
}

.page-directory .wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-directory .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-directory input,
.page-directory button,
.page-directory select {
  font-family: inherit;
}


/* breadcrumb + page intro copied from requested screenshot */
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #486078;
  padding: 10px 6px 0;
  margin-bottom: 16px;
}

.page-directory .crumb a:hover {
  color: #4338e0;
}

.page-directory .crumb .cur {
  color: #101828;
  font-weight: 800;
}

.page-directory .crumb span {
  color: #97a1af;
}

.page-directory .hero {
  background: #fff;
  border: 1px solid #dce3ed;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(22, 31, 43, .06);
  padding: 30px 32px;
  margin: 0 6px 18px;
  min-height: 246px;
  display: flex;
  align-items: center;
}

.page-directory .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  min-width: 0; /* allow children to shrink without forcing horizontal overflow */
}

.page-directory .hero-top > div {
  /* The right text/form block is a flex item; avoid min-width:auto overflow issues */
  flex: 1;
  min-width: 0;
}

.page-directory .hicon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7b2ba0);
  box-shadow: 0 12px 24px rgba(79, 70, 229, .28);
  color: #fff;
}

.page-directory .hicon .ico {
  width: 28px;
  height: 28px;
}

.page-directory .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #4338e0;
  background: #ecebff;
  border: 1px solid #dcd9fb;
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 10px;
}

.page-directory .hero h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #16233c;
  margin: 0;
}

.page-directory .hero .sub {
  font-size: 15px;
  color: #59687d;
  margin: 10px 0 0;
  max-width: 620px;
  line-height: 1.55;
}

.page-directory .hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f5f8;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  padding: 0 17px;
  margin-top: 20px;
  max-width: 560px;
  width: 100%;
  min-width: 0;
  height: 47px;
  box-shadow: none;
  overflow: hidden;
}

.page-directory .hero-search svg {
  width: 18px;
  height: 18px;
  color: #8b98aa;
  flex: none;
  margin: 0;
}

.page-directory .hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #192333;
  min-width: 0;
}

.page-directory .hero-search input::placeholder {
  color: #98a2b3;
}

.page-directory .hero-search button {
  display: none;
}

.page-directory .stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 6px 26px;
}

.page-directory .stat {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 13px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(22, 31, 43, .06);
  min-height: 84px;
}

.page-directory .stat .st-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #ecebff;
  color: #5b50f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.page-directory .stat .st-ico .ico {
  width: 21px;
  height: 21px;
}

.page-directory .stat .st-num {
  font-size: 25px;
  font-weight: 800;
  color: #07172e;
  line-height: 1;
  letter-spacing: -.01em;
}

.page-directory .stat .st-lbl {
  font-size: 12.5px;
  color: #526174;
  margin-top: 5px;
}


/* listing toolbar like screenshot */
.list-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 12px 0 26px;
}

.page-directory .result-count {
  font-size: 13px;
  color: #5c6676;
  white-space: nowrap;
}

.page-directory .result-count strong {
  color: #1d2b3f;
  font-weight: 800;
}

.page-directory .section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #758092;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-directory .section-title:before,
.page-directory .section-title:after {
  content: "";
  height: 1px;
  width: 260px;
  background: var(--border);
  display: block;
}

.page-directory .toolbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-directory .tb-select {
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  color: #243044;
  background: #fff;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  padding: 0 38px 0 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position: calc(100% - 18px) 15px, calc(100% - 13px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-sm);
}

.page-directory .tb-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(106, 166, 142, .16);
}

.page-directory .tb-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-directory .tb-view button {
  width: 38px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: #6f7a89;
  border-radius: 9px;
  cursor: pointer;
}

.page-directory .tb-view button.on {
  background: #fff;
  color: #0f172a;
  border-color: #dfe5ee;
  box-shadow: var(--shadow-sm);
}

.page-directory .tb-view .ico {
  width: 17px;
  height: 17px;
}


/* directory cards */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.page-directory .dir-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(20, 30, 42, .08);
  display: flex;
  flex-direction: column;
  min-height: 366px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.page-directory .dir-card:hover {
  border-color: #cbd5df;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-directory .thumb-wrap {
  position: relative;
  height: 156px;
  background: #dbe1e8;
  overflow: hidden;
}

.page-directory .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}

.page-directory .dir-card:hover .thumb-wrap img {
  transform: scale(1.035);
}

.page-directory .map-float {
  position: absolute;
  right: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(26, 32, 44, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.page-directory .pin {
  font-size: 12px;
  line-height: 1;
  filter: saturate(1.1);
}

.page-directory .dir-body {
  padding: 18px 20px 13px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.page-directory .dir-card h3 {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #121b2d;
  margin: 0 0 3px;
  letter-spacing: -.02em;
}

.page-directory .slug {
  font-size: 12px;
  color: #6f7a8a;
  margin-bottom: 12px;
}

.page-directory .dir-card p {
  font-size: 13px;
  color: #374151;
  line-height: 1.55;
  margin: 0 0 13px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-directory .chips {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
}

.page-directory .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  padding: 0 10px;
  white-space: nowrap;
}

.page-directory .chip-items {
  color: #14715c;
  background: #dff3ea;
}

.page-directory .chip-map {
  color: #1f66b1;
  background: var(--blue-soft);
}

.page-directory .card-footer {
  border-top: 1px solid var(--border);
  padding: 10px 20px 12px;
  margin-top: 13px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 54px;
}

.page-directory .browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 17px;
  border-radius: 999px;
  background: #cde9dd;
  color: #216953;
  font-size: 12px;
  font-weight: 800;
  transition: background .15s, color .15s;
}

.page-directory .browse-btn:hover {
  background: var(--green);
  color: #fff;
}

.page-directory .dir-empty {
  display: none;
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}


/* list view */
.dir-grid.list {
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-directory .dir-grid.list .dir-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  border-radius: 18px;
}

.page-directory .dir-grid.list .thumb-wrap {
  height: 100%;
  min-height: 172px;
}

.page-directory .dir-grid.list .dir-body {
  padding: 18px 20px;
}

.page-directory .dir-grid.list .dir-card p {
  -webkit-line-clamp: 3;
}

.page-directory .dir-grid.list .card-footer {
  margin-top: 15px;
}


@media(max-width:1040px) {
  .page-directory .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-directory .section-title:before,
  .page-directory .section-title:after {
    width: 120px;
  }

  .page-directory .nav-links {
    display: none;
  }
}

@media(max-width:760px) {
  .page-directory .list-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .page-directory .section-title {
    order: -1
  }

  .page-directory .section-title:before {
    display: none
  }

  .page-directory .section-title:after {
    width: 100%;
  }

  .page-directory .toolbar-actions {
    justify-self: start
  }

  .page-directory .dir-grid {
    grid-template-columns: 1fr;
    gap: 18px
  }

  .page-directory .dir-grid.list .dir-card {
    grid-template-columns: 1fr
  }

  .page-directory .dir-grid.list .thumb-wrap {
    height: 180px
  }
}

@media(max-width:480px) {
  .page-directory .wrap {
    padding: 0 12px
  }

  .page-directory .dir-hero {
    margin: 16px 0 36px;
    padding: 44px 14px 38px;
    border-radius: 22px
  }

  .page-directory .dir-hero h1 {
    font-size: 36px
  }

  .page-directory .hero-sub {
    font-size: 14px
  }

  .page-directory .hero-search {
    height: auto;
    min-height: 50px
  }

  .page-directory .hero-search button {
    padding: 0 14px
  }

  .page-directory .hero-stats {
    gap: 18px
  }

  .page-directory .thumb-wrap {
    height: 145px
  }

  .page-directory .dir-body {
    padding: 16px
  }

  .page-directory .card-footer {
    padding: 10px 16px 12px
  }

  .page-directory .tb-view {
    display: none
  }

  .page-directory .tb-select {
    width: 100%;
  }

  .page-directory .toolbar-actions {
    width: 100%;
  }
}

@media(max-width:900px) {
  .page-directory .hero {
    padding: 26px 24px
  }

  .page-directory .stats {
    grid-template-columns: 1fr
  }

  .page-directory .list-toolbar {
    grid-template-columns: 1fr
  }

  .page-directory .section-title {
    justify-content: center
  }

  .page-directory .section-title:before,
  .page-directory .section-title:after {
    width: 80px
  }

  .page-directory .toolbar-actions {
    justify-self: start
  }

  .page-directory .dir-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:560px) {
  .page-directory .hero {
    padding: 24px 18px;
    align-items: flex-start
  }

  .page-directory .hero-top {
    gap: 14px
  }

  .page-directory .hicon {
    width: 48px;
    height: 48px
  }

  .page-directory .hero h1 {
    font-size: 31px
  }

  .page-directory .hero-search {
    max-width: 100%
  }

  .page-directory .list-toolbar {
    gap: 12px
  }

  .page-directory .dir-grid {
    grid-template-columns: 1fr;
  }
}

/* Directory home — pagination (dynamic page only) */
.page-directory .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e8edf3, #dbe1e8);
}

.page-directory .dir-pagination-wrap {
  margin: 10px 0 36px;
  text-align: center;
}

.page-directory .dir-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.page-directory .page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0ea;
  border-radius: 10px;
  background: #fff;
  color: #243044;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, color .15s;
}

.page-directory .page-btn:hover:not(:disabled) {
  border-color: #cbd5df;
  background: #f8fafc;
}

.page-directory .page-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.page-directory .page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.page-directory .page-btn-ellipsis {
  min-width: 28px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #97a1af;
  font-size: 13px;
  pointer-events: none;
}

.page-directory .pagination-info {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
  color: #657082;
}

.page-directory .page-directory-footer-spacer {
  margin-top: 46px;
}


/* ---- Ancient Archaeological Sites directory page (page-arch-sites) ---- */
.page-arch-sites {
  --page: #f3f5f8;
  --card: #fff;
  --ink: #192333;
  --ink-soft: #303b4a;
  --muted: #657082;
  --muted-2: #9aa4b4;
  --border: #e4e8ef;
  --border-2: #eef0f5;
  --indigo: #4338e0;
  --indigo-h: #372cc9;
  --soft: #ecebff;
  --purple: #7b2ba0;
  --blue: #0a74c4;
  --green: #4e8c00;
  --orange: #c2620a;
  --teal: #0d7d72;
  --gold: #dca00f;
  --serif: system-ui, "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 3px 9px rgba(22, 31, 43, .06), 0 1px 2px rgba(22, 31, 43, .04);
  --shadow-md: 0 10px 26px rgba(22, 31, 43, .09), 0 2px 6px rgba(22, 31, 43, .05);
}

.page-arch-sites,
.page-arch-sites * {
  box-sizing: border-box;
}

.page-arch-sites {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-arch-sites a {
  color: inherit;
  text-decoration: none;
}

.page-arch-sites .wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-arch-sites .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-arch-sites input,
.page-arch-sites button,
.page-arch-sites select {
  font-family: inherit;
}


/* hero */

.page-arch-sites .crumb,
.page-blog-listing .page-arch-sites .crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 22px 0 0;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0;
}

.page-arch-sites .crumb a:hover {
  color: var(--indigo);
}

.page-arch-sites .crumb .cur {
  color: var(--ink);
  font-weight: 600;
}

.page-arch-sites .crumb span {
  color: var(--muted-2);
}

.page-arch-sites .back,
.page-blog-listing .page-arch-sites .back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  margin: 16px 0 0;
  width: fit-content;
}

.page-arch-sites .back:hover {
  text-decoration: underline;
}

.page-arch-sites .back .ico {
  width: 16px;
  height: 16px;
}

.page-arch-sites .hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  margin: 12px 0 18px;
}

.page-arch-sites .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.page-arch-sites .hicon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  box-shadow: 0 10px 22px rgba(67, 56, 224, .30);
}

.page-arch-sites .hicon .ico {
  width: 28px;
  height: 28px;
  color: #fff;
}

.page-arch-sites .hero-txt {
  flex: 1;
  min-width: 240px;
}

.page-arch-sites .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--soft);
  border: 1px solid #dcd9fb;
  border-radius: 30px;
  padding: 6px 14px;
}

.page-arch-sites .hero h1 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1b2440;
  margin: 14px 0 0;
}

.page-arch-sites .hero .sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 9px 0 0;
  max-width: 620px;
  line-height: 1.55;
}

.page-arch-sites .hero-stats {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.page-arch-sites .hs {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.page-arch-sites .hs b {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.page-arch-sites .hs span {
  font-size: 12.5px;
  color: var(--muted);
}

.page-arch-sites .hs .star {
  color: var(--gold);
}

.page-arch-sites .hero-search {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 16px;
  margin-top: 18px;
  max-width: 560px;
}

.page-arch-sites .hero-search svg {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
  flex: none;
}

.page-arch-sites .hero-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}

.page-arch-sites .hero-search input::placeholder {
  color: var(--muted-2);
}

/* toolbar */

.page-arch-sites .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.page-arch-sites .toolbar h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}

.page-arch-sites .toolbar h2 small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 8px;
}

.page-arch-sites .tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-arch-sites .tb-select {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  outline: none;
}

.page-arch-sites .tb-select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--soft);
}

.page-arch-sites .tb-view {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.page-arch-sites .tb-view button {
  width: 34px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
}

.page-arch-sites .tb-view button.on {
  background: var(--soft);
  color: var(--indigo);
}

.page-arch-sites .tb-view .ico {
  width: 18px;
  height: 18px;
}

/* layout: listings + map */

.page-arch-sites .lay {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.page-arch-sites .lst-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.page-arch-sites .lst-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}

.page-arch-sites .lst-card:hover,
.page-arch-sites .lst-card.hot {
  border-color: #c6cbf3;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.page-arch-sites .lst-banner {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.page-arch-sites .lst-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-arch-sites .lst-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  border-radius: 30px;
  padding: 4px 9px;
}

.page-arch-sites .lst-rating .star {
  color: var(--gold);
}

.page-arch-sites .lst-body {
  padding: 15px 17px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-arch-sites .lst-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -.01em;
}

.page-arch-sites .lst-loc {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.page-arch-sites .lst-body p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.page-arch-sites .lst-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-arch-sites .lst-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 11px;
}

.page-arch-sites .lst-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
}

.page-arch-sites .lst-empty {
  display: none;
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 30px 0;
}

/* list view */

.page-arch-sites .lst-grid.list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-arch-sites .lst-grid.list .lst-card {
  flex-direction: row;
  align-items: stretch;
}

.page-arch-sites .lst-grid.list .lst-banner {
  width: 120px;
  height: auto;
  flex: none;
  font-size: 34px;
}

.page-arch-sites .lst-grid.list .lst-rating,
.page-arch-sites .lst-grid.list .lst-rank {
  display: none;
}

.page-arch-sites .lst-grid.list .lst-body {
  padding: 14px 18px;
}

.page-arch-sites .lst-grid.list .lst-body h3 {
  display: inline-block;
  margin-right: 10px;
}

.page-arch-sites .lst-grid.list .lst-inlinerate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.page-arch-sites .lst-grid.list .lst-inlinerate .star {
  color: var(--gold);
}

.page-arch-sites .lst-grid:not(.list) .lst-inlinerate {
  display: none;
}

/* map panel */

.page-arch-sites .mappanel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.page-arch-sites .map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-2);
}

.page-arch-sites .map-head .mh-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

.page-arch-sites .map-head .mh-l .ico {
  width: 18px;
  height: 18px;
  color: var(--indigo);
}

.page-arch-sites .map-pins {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 11px;
}

.page-arch-sites .map-wrap {
  position: relative;
  aspect-ratio: 2/1;
  background: linear-gradient(180deg, #eaf2fb, #e2edf8);
}


@media(max-width:980px) {
  .page-arch-sites .lay {
    grid-template-columns: 1fr;
  }

  .page-arch-sites .mappanel {
    position: static;
    order: -1;
  }
}

@media(max-width:560px) {
  .page-arch-sites .hero h1 {
    font-size: 28px;
  }

  .page-arch-sites .lst-grid {
    grid-template-columns: 1fr;
  }

  .page-arch-sites .lst-grid.list .lst-banner {
    width: 84px;
  }
}


/* ---- Ancient Greek temples detail page (page-arch-temples) ---- */
.page-arch-temples {
  --page: #f3f5f8;
  --card: #fff;
  --ink: #192333;
  --ink-soft: #303b4a;
  --muted: #657082;
  --muted-2: #9aa4b4;
  --border: #e4e8ef;
  --border-2: #eef0f5;
  --indigo: #4338e0;
  --indigo-h: #372cc9;
  --soft: #ecebff;
  --purple: #7b2ba0;
  --blue: #0a74c4;
  --green: #4e8c00;
  --orange: #c2620a;
  --gold: #dca00f;
  --serif: system-ui, "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 3px 9px rgba(22, 31, 43, .06), 0 1px 2px rgba(22, 31, 43, .04);
  --shadow-md: 0 10px 26px rgba(22, 31, 43, .09), 0 2px 6px rgba(22, 31, 43, .05);
}

.page-arch-temples,
.page-arch-temples * {
  box-sizing: border-box;
}

.page-arch-temples {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page-arch-temples a {
  color: inherit;
  text-decoration: none;
}

.page-arch-temples .wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-arch-temples .ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-arch-temples input,
.page-arch-temples button,
.page-arch-temples select {
  font-family: inherit;
}


/* top */

.page-arch-temples .crumb,
.page-blog-listing .page-arch-temples .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0;
}

.page-arch-temples .crumb a:hover {
  color: var(--indigo);
}

.page-arch-temples .crumb .cur {
  color: var(--ink);
  font-weight: 600;
}

.page-arch-temples .crumb span {
  color: var(--muted-2);
}

.page-arch-temples .back,
.page-blog-listing .page-arch-temples .back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--indigo);
  margin: 14px 0 16px;
  width: fit-content;
}

.page-arch-temples .back:hover {
  text-decoration: underline;
}

.page-arch-temples .back .ico {
  width: 16px;
  height: 16px;
}

/* layout */

.page-arch-temples .dl-lay {
  display: grid;
  grid-template-columns: 250px 1fr 332px;
  gap: 22px;
  align-items: start;
  padding-bottom: 10px;
}

.page-arch-temples .dl-col {
  min-width: 0;
}

.page-arch-temples .place {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-arch-temples .place-banner {
  position: relative;
  height: auto;
  min-height: 0;
  display: block;
  padding: 0;
  font-size: inherit;
}

.page-arch-temples .place-rate {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .95);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  border-radius: 30px;
  padding: 6px 13px;
  box-shadow: var(--shadow-sm);
}

.page-arch-temples .place-rate .star {
  color: var(--gold);
}

.page-arch-temples .place-body {
  padding: 22px 24px 24px;
}

.page-arch-temples .place-body h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 0;
  color: #1b2440;
}

.page-arch-temples .place-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 7px;
}

.page-arch-temples .place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.page-arch-temples .ptag {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 30px;
  padding: 5px 12px;
  background: var(--page);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

.page-arch-temples .ptag.unesco {
  background: #eef7e6;
  border-color: #d6ebc4;
  color: var(--green);
}

.page-arch-temples .place-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.page-arch-temples .pbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 11px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  text-decoration: none;
}

.page-arch-temples .pbtn .ico {
  width: 16px;
  height: 16px;
}

.page-arch-temples .pbtn:hover {
  border-color: #c9cdfa;
}

.page-arch-temples .pbtn.primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.page-arch-temples .pbtn.primary:hover {
  background: var(--indigo-h);
}

.page-arch-temples .place-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 20px;
}

.page-arch-temples .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--border-2);
  padding-top: 20px;
}

.page-arch-temples .fact .fl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-arch-temples .fact .fv {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
}

.page-arch-temples .more {
  margin-top: 24px;
}

.page-arch-temples .more h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 14px;
}

.page-arch-temples .more-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-arch-temples .more-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}

.page-arch-temples .more-item:hover,
.page-arch-temples .more-item:focus {
  border-color: #c9cdfa;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.page-arch-temples .mi-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex: none;
}

.page-arch-temples .mi-body {
  flex: 1;
  min-width: 0;
}

.page-arch-temples .mi-body h3 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 3px;
  letter-spacing: -.01em;
}

.page-arch-temples .mi-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-arch-temples .mi-rate {
  font-weight: 700;
  color: var(--ink-soft);
}

.page-arch-temples .mi-rate .star {
  color: var(--gold);
}


/* right map */

.page-arch-temples .mappanel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: 88px;
}

.page-arch-temples .dl-map .sidebar-ad-slot {
  width: 100%;
  margin-top: 16px;
  min-height: 0;
}

.page-arch-temples .dl-map .sidebar-ad-slot .ad-wrapper {
  margin: 0 !important;
}

.page-arch-temples .map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border-bottom: 1px solid var(--border-2);
}

.page-arch-temples .map-head .mh-l {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}

.page-arch-temples .map-head .mh-l .ico {
  width: 18px;
  height: 18px;
  color: var(--indigo);
}

.page-arch-temples .map-pins {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 11px;
}

.page-arch-temples .map-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, #eef4ec 0%, #e7f0ef 55%, #dceaf2 100%);
  overflow: hidden;
}


.page-arch-temples .map-addr {
  padding: 14px 17px;
  border-top: 1px solid var(--border-2);
  font-size: 12.5px;
  color: var(--muted);
}

.page-arch-temples .map-addr b {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.page-arch-temples .map-addr .coord {
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.page-arch-temples .map-addr a {
  color: var(--indigo);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.page-arch-temples .map-addr a .ico {
  width: 14px;
  height: 14px;
}


@media(max-width:1080px) {
  .page-arch-temples .dl-lay {
    grid-template-columns: 1fr 320px;
  }
}

@media(max-width:820px) {
  .page-arch-temples .dl-lay {
    grid-template-columns: 1fr;
  }

  .page-arch-temples .mappanel {
    position: static;
  }

  .page-arch-temples .facts {
    grid-template-columns: 1fr 1fr;
  }

}

@media(max-width:560px) {
  .page-arch-temples .place-body h1 {
    font-size: 23px;
  }
}

.page-arch-sites .hub-panel {
  display: none;
  margin: 0 0 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.page-arch-sites .hub-panel.is-visible {
  display: block;
}

.page-arch-sites .hub-panel h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.page-arch-sites .hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.page-arch-sites .hub-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}

.page-arch-sites .hub-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
}

.page-arch-sites .hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-arch-sites .hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.page-arch-sites .hub-card:hover {
  border-color: #c6cbf3;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-arch-sites .hub-card-cover {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: linear-gradient(135deg, #4f46e5, #7b2ba0);
  background-size: cover;
  background-position: center;
  position: relative;
}

.page-arch-sites .hub-card-cover.has-cover-photo .hub-card-emoji {
  display: none;
}

.page-arch-sites .hub-card-body {
  padding: 14px 16px 16px;
}

.page-arch-sites .hub-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.page-arch-sites .hub-card-count {
  font-size: 12px;
  color: var(--muted);
}

.page-arch-sites .pbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 11px;
  padding: 9px 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
}

.page-arch-sites .pbtn:hover {
  border-color: #c9cdfa;
}

.page-arch-sites .flt-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  z-index: 80;
}

.page-arch-sites .flt-drawer-backdrop.is-visible {
  display: block;
}

.page-arch-sites .flt-grp h4,
.page-arch-sites .flt-grp-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.page-arch-sites .dl-lay--listing {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 332px;
  gap: 22px;
  align-items: start;
  padding-bottom: 10px;
}

.page-arch-sites .dl-lay--listing.no-map {
  grid-template-columns: 250px minmax(0, 1fr);
}

.page-arch-sites .dl-col {
  min-width: 0;
}

.page-arch-sites .dl-map .mappanel {
  position: sticky;
  top: 88px;
}

.page-arch-sites .dl-filters.flt-drawer {
  position: static;
  width: auto;
  transform: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  z-index: auto;
}

.page-arch-sites .flt {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 110px);
  overflow: hidden;
}

.page-arch-sites .flt-head {
  flex: none;
}

.page-arch-sites .flt-grp--sort {
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.page-arch-sites .flt-grp--sort .flt-sel {
  width: 100%;
}

.page-arch-sites .flt-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 14px;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.page-arch-sites .flt-body::-webkit-scrollbar {
  width: 6px;
}

.page-arch-sites .flt-body::-webkit-scrollbar-thumb {
  background: #cfd5df;
  border-radius: 99px;
}

.page-arch-sites .flt-body::-webkit-scrollbar-thumb:hover {
  background: #b8c0cc;
}

.page-arch-sites .dl-filters .sidebar-ad-slot {
  width: 100%;
  margin-top: 16px;
  min-height: 0;
}

.page-arch-sites .dl-filters .sidebar-ad-slot .ad-wrapper {
  margin: 0 !important;
}

.page-arch-sites .flt-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.page-arch-sites .flt-h h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-arch-sites .flt-h h3 .ico {
  width: 17px;
  height: 17px;
  color: var(--indigo);
}

.page-arch-sites .flt-clear {
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.page-arch-sites .flt-close-mobile {
  display: none;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.page-arch-sites .flt-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 18px;
}

.page-arch-sites .flt-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  flex: none;
}

.page-arch-sites .flt-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
}

.page-arch-sites .flt-grp {
  margin-bottom: 18px;
}

.page-arch-sites .flt-grp:last-child {
  margin-bottom: 0;
}

.page-arch-sites .flt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.page-arch-sites .flt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.page-arch-sites .flt-chip.on {
  background: var(--soft);
  border-color: #cdc9f7;
  color: var(--indigo);
}

.page-arch-sites .flt-radio {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.page-arch-sites .flt-r {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.page-arch-sites .flt-r:hover {
  background: var(--page);
}

.page-arch-sites .flt-r .rb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: none;
}

.page-arch-sites .flt-r.on {
  color: var(--ink);
  font-weight: 600;
}

.page-arch-sites .flt-r.on .rb {
  border-color: var(--indigo);
  background: radial-gradient(circle, var(--indigo) 0 3.5px, #fff 4px);
}

.page-arch-sites .flt-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.page-arch-sites .flt-sel {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 11px;
  background: var(--card);
  cursor: pointer;
  outline: none;
}

.page-arch-sites .flt-sel:focus {
  border-color: var(--indigo);
}

.page-arch-sites .flt-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.page-arch-sites #directoryListingMap {
  min-height: 280px;
  width: 100%;
}

.page-arch-sites .map-empty {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
}

.page-arch-sites .arch-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.page-arch-sites .arch-empty .arch-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 10px 0 6px;
}

.page-arch-temples .dl-lay--two {
  grid-template-columns: 1fr 332px;
}

.page-arch-temples .place-banner {
  overflow: hidden;
}

/* Legacy single <img> banner only — gallery uses .gv-hero-img */
.page-arch-temples .place-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-arch-temples #detailMap {
  min-height: 260px;
  width: 100%;
}

.page-arch-temples .arch-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.page-arch-temples .arch-empty .arch-empty-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0 8px;
}

.page-arch-temples .item-rate-star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #d1d5db;
  transition: color .15s, transform .15s;
}

.page-arch-temples .item-rate-star.is-selected,
.page-arch-temples .item-rate-star.is-hover {
  color: #dca00f;
}

.page-arch-temples .item-rate-stars {
  display: inline-flex;
  gap: 4px;
}

@media(max-width:1080px) {
  .page-arch-sites .dl-lay--listing {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }
}

@media(max-width:900px) {
  .page-arch-sites .dl-lay--listing {
    grid-template-columns: 1fr;
  }

  .page-arch-sites .dl-filters.flt-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    padding: 18px;
    background: var(--card);
    border-right: 1px solid var(--border);
    z-index: 90;
    overflow: hidden;
    transform: translateX(-105%);
    transition: transform .2s;
    box-shadow: 8px 0 30px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
  }

  .page-arch-sites .dl-filters.flt-drawer.is-open {
    transform: translateX(0);
  }

  .page-arch-sites .dl-filters .flt {
    position: static;
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  .page-arch-sites .flt-close-mobile {
    display: inline-flex;
  }

  .page-arch-sites .flt-toggle {
    display: inline-flex;
  }

  .page-arch-sites .dl-map .mappanel {
    position: static;
  }
}

@media(max-width:980px) {
  .page-arch-sites .hub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:760px) {
  .page-arch-sites .hub-grid {
    grid-template-columns: 1fr;
  }

  .page-arch-temples .dl-lay--two {
    grid-template-columns: 1fr;
  }
}


/* Gallery viewer — page integration (component styles in gallery-viewer.css) */
.page-arch-sites .hero-gallery {
  width: 100%;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-arch-sites .hero-gallery .gv-wrap {
  width: 100%;
}

.page-arch-sites .hero-gallery .gv-stage {
  width: 100%;
}

.page-arch-sites .hero-gallery .gv-hero {
  aspect-ratio: 21 / 9;
  min-height: 180px;
  max-height: 280px;
  width: 100%;
}

.page-arch-sites .hero-gallery .gv-thumbs-rail {
  border-radius: 0 0 14px 14px;
}

.page-arch-temples .place-banner #itemGalleryViewer {
  display: block;
  width: 100%;
}

.page-arch-temples .place-banner .gv-wrap {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  --gv-radius: 0;
}

.page-arch-temples .place-banner .gv-stage {
  width: 100%;
  border-radius: 0;
}

.page-arch-temples .place-banner .gv-hero {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  max-height: 420px;
  height: auto;
  border-radius: 0;
}

.page-arch-temples .place-banner .gv-hero-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-arch-temples .place-banner .gv-thumbs-rail {
  display: flex;
  border-radius: 0;
}

.page-arch-temples .place-banner .gv-dots {
  display: none;
}

@media (max-width: 768px) {
  .page-arch-sites .hero-gallery .gv-hero {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .page-arch-temples .place-banner .gv-hero {
    aspect-ratio: 4 / 3;
    min-height: 200px;
    max-height: none;
  }

  .page-arch-temples .place-banner .gv-dots {
    display: flex;
  }
}

