:root{
  --acatia-blue:#1f4f95;
  --acatia-blue-2:#3d78c2;
  --acatia-blue-3:#dceafe;
  --acatia-dark:#162235;
  --acatia-muted:#66758d;
  --acatia-bg:#eef3f8;
  --acatia-surface:#ffffff;
  --acatia-surface-soft:rgba(255,255,255,.74);
  --acatia-border:rgba(17,31,52,.10);
  --acatia-border-strong:rgba(17,31,52,.16);
  --acatia-shadow:0 18px 40px rgba(15,23,42,.08);
  --acatia-shadow-strong:0 28px 60px rgba(15,23,42,.12);
  --acatia-radius:1.35rem;
  --acatia-radius-lg:1.85rem;
}
html{scroll-behavior:smooth}
body{
  position:relative;
  font-family:"Segoe UI Variable","Aptos","Inter","Segoe UI",system-ui,sans-serif;
  background:
    radial-gradient(circle at top left, rgba(61,120,194,.16), transparent 24%),
    radial-gradient(circle at top right, rgba(22,34,53,.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, var(--acatia-bg) 44%, #edf2f7 100%);
  color:var(--acatia-dark);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px);
  background-size:40px 40px;
  mask-image:radial-gradient(circle at center, rgba(0,0,0,.34), transparent 76%);
  opacity:.32;
}
a{color:var(--acatia-blue);text-decoration:none;transition:color .18s ease, opacity .18s ease}
a:hover{color:#153c74}
.hero,.detail-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--acatia-radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(244,249,255,.96) 58%, rgba(229,238,250,.96) 100%);
  box-shadow:var(--acatia-shadow-strong);
}
.hero::before,.detail-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(255,255,255,.08), transparent 35%, rgba(31,79,149,.04) 100%);
  pointer-events:none;
}
.hero::after,.detail-hero::after{
  content:"";
  position:absolute;
  inset:auto -70px -70px auto;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(31,79,149,.18), rgba(31,79,149,0) 70%);
  pointer-events:none;
}
.search-card,.category-card,.member-card,.stats-card,.detail-card,.contacts-panel,.contacts-stat-card,.events-hero,.event-card,.event-detail-card{
  border:1px solid var(--acatia-border);
  border-radius:var(--acatia-radius);
  background:var(--acatia-surface-soft);
  box-shadow:var(--acatia-shadow);
  backdrop-filter:blur(14px);
}
.search-card,.detail-card,.contacts-panel,.contacts-stat-card,.event-detail-card{background:rgba(255,255,255,.88)}
.stats-card,.detail-card{padding:1.1rem 1.2rem;height:100%}
.stats-value{
  font-size:clamp(1.9rem,4vw,2.4rem);
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--acatia-dark);
  line-height:1;
}
.stats-label{color:var(--acatia-muted);font-size:.95rem;margin-top:.45rem}
.section-title{
  font-size:clamp(1.6rem,4vw,2.35rem);
  font-weight:800;
  letter-spacing:-.035em;
  margin-bottom:0;
}
.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color:var(--acatia-blue);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
  font-size:.74rem;
}
.section-kicker::before{
  content:"";
  width:28px;
  height:1px;
  background:currentColor;
  opacity:.5;
}
.category-card{
  position:relative;
  padding:1.25rem;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  cursor:pointer;
  height:100%;
}
.category-card:hover,.category-card.active{
  transform:translateY(-4px);
  box-shadow:0 24px 42px rgba(15,23,42,.12);
  border-color:rgba(31,79,149,.18);
}
.category-card.active{
  background:linear-gradient(135deg, rgba(220,234,254,.88), rgba(255,255,255,.98));
}
.member-card{
  padding:1.15rem;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height:100%;
}
.member-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 42px rgba(15,23,42,.12);
  border-color:rgba(31,79,149,.18);
}
.member-name{font-size:1.08rem;font-weight:800;line-height:1.2;margin-bottom:.25rem}
.member-activity{color:var(--acatia-muted);min-height:2.8rem}
.info-chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .78rem;
  border-radius:999px;
  background:#f5f8fc;
  color:#27476e;
  font-size:.88rem;
  margin:.22rem .22rem 0 0;
  border:1px solid rgba(31,79,149,.10);
  text-decoration:none;
  word-break:break-word;
}
.info-chip:hover{
  background:#ebf2fb;
  color:#153c74;
  border-color:rgba(31,79,149,.18);
}
.filter-pill{
  border:1px solid rgba(17,31,52,.08);
  background:rgba(255,255,255,.92);
  color:#21324d;
  padding:.48rem .86rem;
  font-size:.84rem;
  font-weight:700;
  line-height:1.15;
  border-radius:999px;
  transition:all .2s ease;
}
.filter-pill:hover,.filter-pill.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--acatia-blue-2), var(--acatia-blue));
  box-shadow:0 12px 24px rgba(31,79,149,.20);
}
.sticky-tools{position:sticky;top:1rem;z-index:10}
.result-count{color:var(--acatia-muted);font-weight:700}
.badge-soft{
  background:rgba(31,79,149,.08);
  color:var(--acatia-blue);
  border:1px solid rgba(31,79,149,.10);
  font-weight:700;
}
.footer-brand{
  border-top:1px solid rgba(17,31,52,.08);
  color:var(--acatia-muted);
  background:rgba(248,251,255,.88);
  backdrop-filter:blur(14px);
}
.village-badge{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  border-radius:999px;
  padding:.55rem .95rem;
  background:#fff;
  border:1px solid rgba(167,35,48,.14);
  color:#9f2430;
  font-weight:700;
}
.empty-state{
  text-align:center;
  padding:3rem 1rem;
  border:1px dashed rgba(17,31,52,.18);
  border-radius:1.25rem;
  color:var(--acatia-muted);
  background:rgba(255,255,255,.66);
}
.footer-credit{font-weight:700;color:#294a7b}
.nav-link.active{font-weight:700;color:var(--acatia-blue)!important}
.breadcrumb-wrap{color:var(--acatia-muted);font-size:.95rem}
.contact-line{display:flex;align-items:flex-start;gap:.75rem;padding:.9rem 0;border-bottom:1px solid rgba(17,31,52,.07)}
.contact-line:last-child{border-bottom:none}
.card-actions,.action-grid{display:flex;flex-wrap:wrap;gap:.6rem}
.card-actions .btn,.action-grid .btn{border-radius:999px}
.small-muted{color:var(--acatia-muted);font-size:.92rem}
#detailMap{height:360px;border-radius:1rem;border:1px solid rgba(18,34,56,.08)}
.table-actions{white-space:nowrap}
.btn{
  --bs-btn-font-weight:700;
  --bs-btn-border-radius:999px;
  --bs-btn-padding-y:.72rem;
  --bs-btn-padding-x:1.05rem;
}
.btn-primary{
  --bs-btn-bg:var(--acatia-blue);
  --bs-btn-border-color:var(--acatia-blue);
  --bs-btn-hover-bg:#153c74;
  --bs-btn-hover-border-color:#153c74;
  --bs-btn-active-bg:#153c74;
  --bs-btn-active-border-color:#153c74;
  box-shadow:0 12px 24px rgba(31,79,149,.18);
}
.btn-outline-primary{
  --bs-btn-color:var(--acatia-blue);
  --bs-btn-border-color:rgba(31,79,149,.22);
  --bs-btn-hover-bg:var(--acatia-blue);
  --bs-btn-hover-border-color:var(--acatia-blue);
  --bs-btn-hover-color:#fff;
}
.btn-outline-secondary,.btn-outline-dark{
  --bs-btn-border-color:rgba(17,31,52,.14);
}
.form-control,.form-select{
  min-height:50px;
  border-radius:1rem;
  border-color:rgba(17,31,52,.10);
  background:rgba(255,255,255,.88);
  box-shadow:none;
}
.form-control:focus,.form-select:focus{
  border-color:rgba(31,79,149,.32);
  box-shadow:0 0 0 .28rem rgba(31,79,149,.12);
}
.input-group-text{
  border-radius:1rem;
  border-color:rgba(17,31,52,.10);
  background:rgba(255,255,255,.88);
}
@media (max-width:991.98px){.sticky-tools{position:static}}
.page-full-bleed {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: clamp(1rem, 2.5vw, 2rem);
    padding-right: clamp(1rem, 2.5vw, 2rem);
}

.section-shell {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.hero-panel {
    width: 100%;
}

@media (min-width: 1400px) {
    .page-full-bleed {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.layout-with-fixed-footer {
    padding-bottom: 150px;
    background: #f4f7fb;
}

.footer-fixed {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1030;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(247,250,253,.82);
    border-bottom: 1px solid rgba(17,31,52,.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

.site-topbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.site-brand img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(15,23,42,.08));
}

.site-menu-toggle {
    width: 56px;
    height: 56px;
    border: 1px solid rgba(17,31,52,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    color: #2c3b52;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    flex: 0 0 auto;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: #0f172a;
}

.site-menu-toggle i {
    font-size: 1.9rem;
    line-height: 1;
}

.site-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.82rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-nav-pill-primary {
    background: rgba(255,255,255,.92);
    color: #233550;
    border: 1px solid rgba(17,31,52,.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.site-nav-pill-primary:hover,
.site-nav-pill-primary:focus {
    background: #ffffff;
    color: #10233f;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.site-nav-pill-primary.is-active {
    background: linear-gradient(135deg, var(--acatia-blue-2), var(--acatia-blue));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(31, 79, 149, 0.22);
}

.site-nav-pill-secondary {
    background: rgba(22,34,53,.96);
    color: #ffffff;
    border: 1px solid rgba(22,34,53,.96);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

.site-nav-pill-secondary:hover,
.site-nav-pill-secondary:focus {
    background: #0f1b2c;
    color: #ffffff;
    transform: translateY(-1px);
}

.site-nav-pill-secondary.is-active {
    background: #0f1b2c;
    color: #ffffff;
    border-color: #0f1b2c;
}

.site-offcanvas {
    width: min(88vw, 360px);
    background: rgba(247,250,253,.98);
    border-left: 1px solid rgba(17,31,52,.08);
    backdrop-filter: blur(16px);
}

.site-offcanvas .offcanvas-header {
    padding: 1rem 1rem 0.75rem;
    align-items: center;
}

.site-offcanvas-brand {
    display: flex;
    align-items: center;
}

.site-offcanvas-brand img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 0.35rem;
}

.site-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 58px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-mobile-link-primary {
    background: rgba(255,255,255,.92);
    color: #243653;
    border: 1px solid rgba(17,31,52,.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.site-mobile-link-primary:hover,
.site-mobile-link-primary:focus {
    background: #ffffff;
    color: #10233f;
    transform: translateY(-1px);
}

.site-mobile-link-primary.is-active {
    background: linear-gradient(135deg, var(--acatia-blue-2), var(--acatia-blue));
    color: #ffffff;
    border-color: transparent;
}

.site-mobile-link-secondary {
    background: rgba(22,34,53,.96);
    color: #ffffff;
    border: 1px solid rgba(22,34,53,.96);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

.site-mobile-link-secondary:hover,
.site-mobile-link-secondary:focus {
    background: #0f1b2c;
    color: #ffffff;
    transform: translateY(-1px);
}

.site-mobile-link-secondary.is-active {
    background: #0f1b2c;
    color: #ffffff;
}

.site-mobile-link i {
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.site-mobile-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
    margin: 0.2rem 0;
}

.admin-header {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header .site-menu-toggle {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    box-shadow: none;
}

.admin-header .site-menu-toggle:hover,
.admin-header .site-menu-toggle:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-header .site-desktop-nav .site-nav-pill-primary {
    background: #2563eb;
}

.admin-header .site-desktop-nav .site-nav-pill-primary:hover,
.admin-header .site-desktop-nav .site-nav-pill-primary:focus {
    background: #1d4ed8;
}

.admin-header .site-desktop-nav .site-nav-pill-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.admin-header .site-desktop-nav .site-nav-pill-secondary:hover,
.admin-header .site-desktop-nav .site-nav-pill-secondary:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.admin-offcanvas {
    width: min(90vw, 370px);
    background: #0f172a;
    color: #ffffff;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-offcanvas .btn-close {
    filter: invert(1) grayscale(100%);
}

.admin-offcanvas .site-mobile-divider {
    background: rgba(255, 255, 255, 0.10);
}

.admin-offcanvas .site-mobile-link-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: none;
}

.admin-offcanvas .site-mobile-link-primary:hover,
.admin-offcanvas .site-mobile-link-primary:focus {
    background: #1d4ed8;
    color: #ffffff;
}

.admin-offcanvas .site-mobile-link-secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.admin-offcanvas .site-mobile-link-secondary:hover,
.admin-offcanvas .site-mobile-link-secondary:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-full-bleed .hero-inner,
.events-shell {
    width: 100%;
    max-width: none;
}

#membersGrid,
#categoryGrid,
#eventsGrid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#membersGrid > [class*="col-"],
#categoryGrid > [class*="col-"],
#eventsGrid > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
}

.is-hidden {
    display: none !important;
}

.contacts-hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.85rem;
    background:
        radial-gradient(circle at top right, rgba(31,79,149,.14), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,.96) 0%, rgba(239,246,255,.96) 100%);
    border: 1px solid rgba(255,255,255,.72);
    padding: 2rem;
    box-shadow: var(--acatia-shadow-strong);
}

.contacts-panel,
.contacts-stat-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.contacts-panel {
    height: 100%;
}

.contacts-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-weight: 600;
}

.contacts-step {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.contacts-step + .contacts-step {
    margin-top: 1rem;
}

.contacts-step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 2rem;
}

.contacts-action-group .btn {
    min-width: 240px;
}

.contacts-stat-icon {
    font-size: 2.5rem;
}

.detail-hero-panel {
    width: 100%;
}

.merchant-visual-box {
    width: 196px;
    height: 196px;
    flex: 0 0 196px;
    padding: .7rem !important;
    border: 1px solid rgba(17,31,52,.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,248,252,.92)),
      linear-gradient(45deg, rgba(17,31,52,.02) 25%, transparent 25%, transparent 75%, rgba(17,31,52,.02) 75%),
      linear-gradient(45deg, rgba(17,31,52,.02) 25%, transparent 25%, transparent 75%, rgba(17,31,52,.02) 75%);
    background-position: 0 0, 0 0, 10px 10px;
    background-size: auto, 20px 20px, 20px 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 28px rgba(15,23,42,.06);
}

.merchant-visual-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 1;
}

.merchant-category-fallback {
    font-size: 5rem;
    line-height: 1;
}

.hero-about {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bs-secondary-color, #5f6d84);
    margin-bottom: 0;
}

.legal-divider {
    margin: 1.5rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
}

.legal-list {
    display: grid;
    gap: 0.9rem;
}

.legal-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.legal-item i {
    font-size: 1.1rem;
    color: var(--bs-primary);
    margin-top: 0.1rem;
}

.legal-label {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.legal-value {
    color: var(--bs-secondary-color, #6c757d);
    word-break: break-word;
}

.event-not-found {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
}

.event-detail-hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: end;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(13,110,253,.95), rgba(13,110,253,.70));
}

.event-detail-hero-content {
    position: relative;
    width: 100%;
    padding: 4rem 0;
}

.event-badge-line {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.event-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
}

.event-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1rem;
    max-width: 980px;
}

.event-submeta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 1.05rem;
}

.event-submeta-item {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.92);
}

.event-detail-section {
    padding: 3rem 0 4rem;
}

.event-detail-card,
.event-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(0,0,0,.06);
}

.event-detail-card {
    border: 0;
}

.event-detail-description {
    white-space: pre-line;
    font-size: 1.08rem;
    line-height: 1.8;
}

.event-detail-side {
    position: sticky;
    top: 1.5rem;
}

.event-info-line {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.event-info-line + .event-info-line {
    margin-top: 1.2rem;
}

.event-image-card + .event-description-card {
    margin-top: 1.5rem;
}

.event-detail-image-wrap {
    position: relative;
    background: #f8f9fa;
    padding: 0;
}

.event-detail-image {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
    background: #f8f9fa;
    cursor: zoom-in;
}

.event-zoom-btn {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    border-radius: 999px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.event-image-modal .modal-content {
    background: #111;
    border: 0;
}

.event-image-modal .btn-close {
    filter: invert(1);
}

.event-modal-image {
    display: block;
    width: 100%;
    max-height: 88vh;
    object-fit: contain;
    margin: 0 auto;
    background: #111;
}

.events-hero {
    border-radius: 1.85rem;
    background:
        radial-gradient(circle at top right, rgba(31,79,149,.14), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,.97), rgba(243,248,255,.95));
    border: 1px solid rgba(255,255,255,.72);
    box-shadow: var(--acatia-shadow-strong);
    overflow: hidden;
}

.events-hero .hero-content {
    padding: 2.2rem;
}

.event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 0;
    transition: transform .2s ease, box-shadow .2s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 46px rgba(15,23,42,.12);
}

.event-card-image-wrap {
    position: relative;
    background: #f8f9fa;
}

.event-card-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f8f9fa;
}

.event-card-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(13,110,253,.02));
    color: var(--bs-primary);
    font-size: 2.2rem;
}

.event-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.35rem;
}

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    background: rgba(13,110,253,.08);
    color: var(--bs-primary);
}

.event-card-title {
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: .85rem;
    color: #212529;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .95rem;
}

.event-meta-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #6c757d;
    font-size: .95rem;
}

.event-description {
    color: #495057;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.event-actions {
    margin-top: auto;
}

.admin-error-shell {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.admin-logo-preview {
    max-height: 90px;
    max-width: 180px;
    border: 1px solid rgba(18,34,56,.12);
    border-radius: .75rem;
    padding: .5rem;
    background: #fff;
}

.admin-map {
    height: 420px;
    border-radius: 1rem;
    border: 1px solid rgba(18,34,56,.08);
}

.admin-event-image-preview {
    max-height: 220px;
    object-fit: cover;
}

.icon-preview-box-lg {
    width: 64px;
    height: 64px;
}

.icon-preview-box-md {
    width: 56px;
    height: 56px;
}

.icon-preview-sm {
    font-size: 1.4rem;
}

.icon-preview-md {
    font-size: 1.6rem;
}

.icon-preview-lg {
    font-size: 2rem;
}

.icon-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .75rem;
}

.search-card{
    position:relative;
    overflow:hidden;
}

.search-card::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg, var(--acatia-blue-2), rgba(31,79,149,.14));
}

.detail-card,
.stats-card,
.contacts-panel,
.contacts-stat-card{
    box-shadow:0 16px 32px rgba(15,23,42,.07);
}

.stats-card{
    background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,253,.92));
}

.badge.rounded-pill{
    padding:.5rem .75rem;
}

.member-card .badge-soft,
.detail-card .badge-soft{
    background:rgba(31,79,149,.09);
}

.event-detail-hero{
    border-radius:0;
    background:
      linear-gradient(135deg, rgba(17,33,56,.92), rgba(31,79,149,.82)),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}

.event-detail-card{
    background:rgba(255,255,255,.93);
}

.site-topbar,
.hero-panel,
.events-hero .hero-content,
.contacts-hero-card{
    position:relative;
    z-index:1;
}

@media (max-width: 991.98px) {
    .contacts-hero-card {
        padding: 1.5rem;
    }

    .event-card-image,
    .event-card-placeholder {
        height: 210px;
    }

    .event-detail-hero {
        min-height: 38vh;
    }

    .event-detail-image {
        max-height: 460px;
    }

    .site-topbar {
        min-height: 82px;
        padding: 0.75rem 0;
    }

    .site-brand img {
        height: 50px;
        max-width: 180px;
    }
}

@media (min-width: 1400px) {
    .events-hero .hero-content {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .layout-with-fixed-footer {
        padding-bottom: 190px;
    }
}

@media (max-width: 575.98px) {
    .merchant-visual-box {
        width: 132px;
        height: 132px;
        flex-basis: 132px;
    }

    .merchant-category-fallback {
        font-size: 3.5rem;
    }

    .site-brand img {
        height: 46px;
        max-width: 165px;
    }

    .site-menu-toggle {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }
}

