:root {
  --primary: #6d3df2;
  --primary-dark: #4f28cf;
  --gold: #f59e0b;
  --green: #16a34a;
  --navy: #07152f;
  --text: #10162f;
  --muted: #667085;
  --border: #e9eaf2;
  --bg: #fbfbff;
  --card: #ffffff;
  --soft: #f3efff;
  --shadow: 0 14px 35px rgba(16, 24, 40, 0.08);
  --soft-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body.hit-faith-page { font-family: var(--font-ui); background: var(--bg); color: var(--text); line-height: 1.45; }
a { color: inherit; text-decoration: none; }

.page {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 10%, rgba(109, 61, 242, 0.11), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
}

.top-header {
  min-height: 84px;
  height: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 38px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, var(--gold) 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 10px 22px rgba(109, 61, 242, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.04);
}

.brand-name {
  min-width: 0;
}

.brand-name strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.brand-name strong span {
  color: var(--primary);
}

.brand-name small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 150px 150px;
  gap: 10px;
  min-width: 0;
}

.search-box, .select-box {
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--muted);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-box:focus-within, .select-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 61, 242, 0.12);
}

.search-box {
  padding-right: 6px;
}

.search-box-icon, .select-box-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
}

.search-box input, .select-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
}

.search-submit-btn {
  flex-shrink: 0;
  height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.search-submit-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  transition: all 0.18s ease;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.login-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--soft);
}

.login-link.hidden {
  display: none;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.user-menu.hidden {
  display: none;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--soft);
  border: 1px solid rgba(109, 61, 242, 0.2);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.user-menu-btn:hover {
  background: rgba(109, 61, 242, 0.12);
}

.user-menu-avatar {
  font-size: 14px;
}

.user-menu-caret {
  font-size: 10px;
  opacity: 0.7;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
  padding: 6px;
  list-style: none;
  z-index: 60;
}

.user-dropdown-link,
.user-dropdown-logout {
  display: block;
  padding: 9px 12px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-link:hover,
.user-dropdown-logout:hover {
  background: var(--soft);
  color: var(--primary);
}

.user-dropdown-logout {
  color: #dc2626;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}

.user-dropdown-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(109, 61, 242, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(109, 61, 242, 0.32);
  opacity: 0.96;
}

.nav-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-wrap::-webkit-scrollbar {
  display: none;
}

.nav {
  min-height: 50px;
  background: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  color: #475467;
  font-size: 13.5px;
  font-weight: 800;
  padding: 0 20px;
  width: max-content;
  min-width: 100%;
}

.nav a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(109, 61, 242, 0.04);
}

.nav .nav-ico {
  font-size: 14px;
  line-height: 1;
}

.nav .nav-label {
  line-height: 1.1;
}

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  padding: 62px 54px 38px;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--primary);
  border: 1px solid rgba(109, 61, 242, 0.14); padding: 9px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 900; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -2.6px; max-width: 720px; margin-bottom: 22px; }
.hero h1 span { color: var(--primary); }
.hero p { color: #4b5563; font-size: 19px; max-width: 680px; margin-bottom: 28px; }
.hero-search { display: grid; grid-template-columns: 1fr 1fr 1fr 155px; gap: 10px; max-width: 820px; margin-bottom: 24px; }
.hero-search select, .hero-search input {
  height: 54px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff;
  padding: 0 14px; outline: none; color: #344054; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}
.hero-search button { border: 0; border-radius: 12px; background: var(--primary); color: #ffffff; font-weight: 900; cursor: pointer; }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 810px; }
.trust-item { display: flex; gap: 10px; align-items: center; padding: 12px; background: rgba(255,255,255,0.82); border-radius: 14px; }
.trust-icon { width: 40px; height: 40px; border-radius: 14px; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.trust-item strong { display: block; font-size: 12px; }
.trust-item span { display: block; color: var(--muted); font-size: 10px; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  width: 100%;
  min-height: 505px;
  overflow: visible;
}

.visual-stage {
  position: relative;
  width: 500px;
  height: 505px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-orbit {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orbit--outer {
  bottom: 0;
  width: 500px;
  height: 500px;
  border: 2px dashed rgba(109, 61, 242, 0.18);
}

.hero-orbit--inner {
  bottom: 60px;
  width: 380px;
  height: 380px;
  border: 2px dashed rgba(245, 158, 11, 0.22);
}

.faith-hero {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  height: auto;
  max-height: 505px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}
.float-card {
  position: absolute;
  min-width: 175px;
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  z-index: 4;
}
.float-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--soft), #ffffff);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}
.float-card strong { display: block; font-size: 11px; line-height: 1.25; }
.float-card span { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.status { display: inline-block; margin-top: 3px; background: #dcfce7; color: #15803d; border-radius: 5px; padding: 1px 5px; font-size: 8px; font-weight: 900; font-style: normal; }
.status.official { background: #dbeafe; color: #1d4ed8; }
.f1 { left: 5px; top: 58px; } .f2 { left: 0; top: 198px; } .f3 { right: 0; top: 88px; } .f4 { right: 0; top: 248px; }

.section { margin: 0 38px 24px; padding: 30px; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: 24px; letter-spacing: -0.4px; }
.view-link { color: var(--primary); font-weight: 900; font-size: 14px; }

.section-hero { margin: 0 38px 24px; padding: 42px 38px; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.section-hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -1px; margin: 14px 0; }
.section-hero h1 span { color: var(--primary); }
.section-hero p { color: #4b5563; font-size: 17px; max-width: 720px; }
.section-back { display: inline-block; margin-bottom: 12px; color: var(--primary); font-weight: 800; font-size: 14px; }
.section-empty { color: var(--muted); font-size: 15px; font-weight: 600; }
.section-empty a { color: var(--primary); font-weight: 800; }

.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hub-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: #ffffff;
  display: flex; flex-direction: column; gap: 8px; transition: 0.2s ease;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow); }
.hub-icon { font-size: 28px; }
.hub-card strong { font-size: 15px; }
.hub-card span:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }

.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.category-grid--section { grid-template-columns: repeat(4, 1fr); }
.cat-card { border: 1px solid var(--border); border-radius: 16px; background: #ffffff; padding: 22px 10px; text-align: center; transition: 0.2s ease; }
.cat-card:hover, .place-card:hover, .rated-card:hover { transform: translateY(-3px); box-shadow: var(--soft-shadow); }
.cat-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 18px; background: var(--soft); font-size: 18px; font-weight: 900; color: var(--primary); }
.cat-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.cat-card span { color: var(--muted); font-size: 11px; }

.three-col { display: grid; grid-template-columns: 1.25fr 0.9fr 0.95fr; gap: 24px; margin: 0 38px 24px; align-items: stretch; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 38px 24px;
  align-items: stretch;
}
.panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--soft-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.panel > h2 { font-size: 24px; letter-spacing: -0.4px; margin-bottom: 16px; }
.panel .section-head { margin-bottom: 16px; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pages-section .places-grid--home {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.places-grid--section { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.place-card { border: 1px solid var(--border); border-radius: 16px; background: #ffffff; overflow: hidden; transition: 0.2s ease; position: relative; display: flex; flex-direction: column; min-width: 0; }
.place-img { height: 110px; display: grid; place-items: center; font-size: 28px; font-weight: 900; color: var(--primary); background: linear-gradient(135deg, rgba(109,61,242,0.12), rgba(245,158,11,0.10)), #ffffff; position: relative; overflow: hidden; line-height: 1; }
.place-img > :not(.badge) { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { position: absolute; top: 10px; left: 10px; color: #ffffff; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.badge.official { background: var(--primary); } .badge.verified { background: var(--green); } .badge.event { background: var(--gold); }
.place-body { padding: 14px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.place-body h3 a { color: inherit; text-decoration: none; }
.place-body h3 a:hover { color: var(--primary); }

.faith-detail-hero {
  margin: 24px 38px 0;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, var(--soft));
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}
.faith-detail-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}
.faith-detail-visual {
  position: relative;
  min-height: 160px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--soft), #fff8ed);
  display: grid;
  place-items: center;
}
.faith-detail-icon { font-size: 64px; line-height: 1; }
.faith-detail-visual .badge { position: absolute; top: 14px; left: 14px; }
.faith-detail-intro h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.8px;
  margin: 10px 0 8px;
  line-height: 1.15;
}
.faith-detail-location,
.faith-detail-rating {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.faith-detail-rating { color: var(--gold); }
.faith-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.faith-detail-actions .outline-btn,
.faith-detail-actions .fill-btn {
  min-width: 120px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
}
.faith-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  margin: 24px 38px;
}
.faith-detail-panel h2 { font-size: 20px; margin-bottom: 12px; }
.faith-detail-about {
  color: #344054;
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.faith-detail-meta { list-style: none; display: grid; gap: 0; }
.faith-detail-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.faith-detail-meta li:last-child { border-bottom: 0; }
.faith-detail-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.faith-detail-meta strong,
.faith-detail-meta a {
  font-size: 14px;
  text-align: right;
  word-break: break-word;
}
.faith-detail-meta a { color: var(--primary); }

@media (max-width: 900px) {
  .faith-detail-hero,
  .faith-detail-grid { margin-left: 14px; margin-right: 14px; }
  .faith-detail-head,
  .faith-detail-grid { grid-template-columns: 1fr; }
}
.place-body p { color: var(--muted); font-size: 12px; margin-bottom: 8px; line-height: 1.45; word-break: break-word; }
.place-body .status { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.place-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.outline-btn, .fill-btn { height: 34px; border-radius: 9px; font-size: 12px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.outline-btn { background: #ffffff; border: 1px solid var(--primary); color: var(--primary); }
.outline-btn.is-following { background: var(--soft); }
.fill-btn { background: var(--primary); border: 1px solid var(--primary); color: #ffffff; }

.why-list { list-style: none; display: grid; gap: 14px; margin-top: 0; color: #344054; font-weight: 700; font-size: 15px; line-height: 1.45; flex: 1; align-content: start; }
.why-list li:before { content: "✓"; width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--primary); color: white; border-radius: 50%; margin-right: 12px; font-size: 13px; }
.panel-fill {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.panel-fill p { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.panel-fill-btn { width: 100%; text-align: center; padding: 12px 16px; font-size: 13px; }
.rated-list { display: flex; flex-direction: column; gap: 10px; margin-top: 0; flex: 1; align-content: start; }
.rated-card { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; transition: 0.2s ease; }
.place-logo { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--soft), #ffffff); color: var(--primary); font-size: 15px; font-weight: 900; }
.rated-card strong { display: block; font-size: 13px; }
.rated-card span { display: block; color: var(--muted); font-size: 11px; }
.rating { color: var(--gold); font-weight: 900; font-size: 12px; }

.how-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 24px; margin: 0 38px 24px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.step-icon { width: 82px; height: 82px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; font-size: 18px; font-weight: 900; }
.step-no { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #ffffff; display: grid; place-items: center; font-weight: 900; font-size: 12px; margin: 0 auto -8px; position: relative; z-index: 2; }
.step strong { display: block; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 12px; }
.list-cta { background: linear-gradient(135deg, #fff8ed, #ffffff); border-color: rgba(245, 158, 11, 0.2); }
.list-cta h2 { font-size: 26px; margin-bottom: 14px; }
.list-cta ul { list-style: none; display: grid; gap: 8px; color: #344054; font-weight: 700; margin-bottom: 18px; }
.list-cta li:before { content: "✓"; color: var(--green); margin-right: 8px; }

.browse { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.browse--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.country-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #ffffff; }
.country-card strong { display: block; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; color: #344054; text-decoration: none; display: inline-flex; align-items: center; }
.chip.active, .chip:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.chip-more { background: var(--primary); border-color: var(--primary); color: #ffffff; cursor: pointer; font-family: inherit; }
.chip-more:hover { background: #5b32d9; border-color: #5b32d9; color: #ffffff; }
.chip-extra[hidden] { display: none; }
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.city-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #ffffff; transition: 0.2s ease; text-decoration: none; color: inherit; }
.city-card:hover, .city-card.is-active { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 18px rgba(16, 24, 40, 0.06); }
.city-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.city-card span { color: var(--muted); font-size: 12px; }

.notice { margin: 0 38px 24px; padding: 16px 20px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 14px; font-weight: 700; }
.cta { margin: 0 38px 32px; padding: 34px 44px; border-radius: 18px; background: radial-gradient(circle at 95% 10%, rgba(255,255,255,0.16), transparent 26%), linear-gradient(135deg, #07152f, #6d3df2); color: #ffffff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; box-shadow: 0 18px 40px rgba(109, 61, 242, 0.18); }
.cta h2 { font-size: 32px; margin-bottom: 6px; }
.cta p { opacity: 0.9; }
.cta button { border: 0; background: var(--gold); color: #ffffff; padding: 16px 26px; border-radius: 12px; font-weight: 900; cursor: pointer; }

footer { padding: 0 38px 34px; }
.footer-inner { border-top: 1px solid var(--border); background: #ffffff; padding-top: 28px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 34px; }
.footer-col h3 { font-size: 15px; margin-bottom: 14px; }
.footer-col p, .footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.newsletter { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 48px; margin-top: 12px; }
.newsletter input { flex: 1; border: 0; outline: none; padding: 0 14px; }
.newsletter button { border: 0; background: var(--primary); color: #ffffff; font-weight: 900; padding: 0 18px; cursor: pointer; }
.copyright { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 26px; color: var(--muted); font-size: 13px; }
.copy-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-links a { color: var(--muted); }

@media (max-width: 1200px) {
  .top-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px 20px;
    gap: 14px;
  }
  .brand {
    justify-content: flex-start;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .header-search {
    grid-template-columns: 1fr 140px 140px;
  }
  .hero, .three-col, .two-col, .how-grid { grid-template-columns: 1fr; }
  .brand-name small { white-space: normal; }
  .nav { justify-content: flex-start; padding: 0 16px; gap: 4px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .category-grid--section { grid-template-columns: repeat(4, 1fr); }
  .places-grid, .places-grid--section, .pages-section .places-grid--home { grid-template-columns: repeat(3, 1fr); }
  .browse { grid-template-columns: repeat(2, 1fr); }
  .browse--wide, .city-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .top-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .header-search {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .primary-btn {
    flex: 1;
    font-size: 12px;
    padding: 10px 14px;
  }
  .login-link {
    font-size: 12px;
    padding: 8px 12px;
  }
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 42px; }
  .hero-search, .trust-row, .steps, .cta { grid-template-columns: 1fr; }
  .section, .three-col, .two-col, .how-grid, .notice, .cta, .section-hero { margin-left: 14px; margin-right: 14px; }
  .category-grid, .category-grid--section, .places-grid, .places-grid--section, .pages-section .places-grid--home, .browse, .browse--wide, .city-grid, .footer-inner, .hub-grid { grid-template-columns: 1fr; }
  .float-card { position: static; margin: 10px 0; }
  .hero-visual { display: block; min-height: auto; }
  .visual-stage { width: 100%; height: auto; min-height: auto; }
  .hero-orbit { display: none; }
  .faith-hero { width: 100%; max-width: 320px; margin: 0 auto 16px; }
}

.hit-faith-list-page .faith-list-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 42px 56px;
}

.faith-list-head { margin: 18px 0 28px; }
.faith-list-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 12px 0; }
.faith-list-head p { color: var(--muted); max-width: 720px; }

.faith-list-alert { border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.faith-list-alert.hidden { display: none; }
.faith-list-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.faith-list-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.faith-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faith-list-field { display: grid; gap: 8px; }
.faith-list-field-wide { grid-column: 1 / -1; }
.faith-list-field span,
.faith-list-sections legend { font-weight: 700; font-size: 0.95rem; }
.faith-list-field em { color: var(--gold); font-style: normal; }
.faith-list-field input,
.faith-list-field textarea,
.faith-list-field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}
.faith-list-field textarea { resize: vertical; min-height: 96px; }
.faith-list-sections { border: 0; padding: 0; margin: 0; }
.faith-list-hint { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.faith-list-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.faith-list-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.faith-list-chip input { accent-color: var(--primary); }
.faith-list-chip:has(input:checked) { background: var(--soft); border-color: var(--primary); color: var(--primary); }
.faith-list-actions { margin-top: 24px; display: grid; gap: 10px; }
.faith-list-note { color: var(--muted); font-size: 13px; }

.hf-swal-popup.swal2-popup {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 28px 24px;
  border-radius: 18px;
  text-align: center;
}
.hf-swal-icon.swal2-icon { margin: 0 auto 18px; width: 64px; height: 64px; border-width: 3px; }
.hf-swal-icon-custom.swal2-icon { border-color: #86efac; color: #16a34a; }
.hf-swal-check { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px; font-weight: 900; }
.hf-swal-title.swal2-title { padding: 0; margin: 0 0 10px; font-size: 22px; font-weight: 800; color: #10162f; }
.hf-swal-text.swal2-html-container { margin: 0 0 22px; padding: 0; font-size: 14px; color: #667085; }
.hf-swal-confirm.swal2-confirm {
  border: 0;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(109, 61, 242, 0.22);
}

@media (max-width: 720px) {
  .hit-faith-list-page .faith-list-shell { padding: 20px 14px 40px; }
  .faith-list-grid { grid-template-columns: 1fr; }
}
