body.as-event-single {
  --as-event-ink:#111827;
  --as-event-muted:#6B7280;
  --as-event-line:#E5EAF2;
  --as-event-bg:#F7F9FB;
  --as-event-blue:#2563EB;
  --as-event-blue-dark:#1D4ED8;
  --as-event-blue-soft:#EEF4FF;
}

/* Native MyListing content blocks */
body.as-event-single .profile-body .element,
body.as-event-single .single-job-listing .element {
  border:1px solid var(--as-event-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 22px rgba(17,24,39,.04);
  overflow:hidden;
}

body.as-event-single .profile-body .pf-head,
body.as-event-single .single-job-listing .pf-head {
  padding:16px 18px;
  border-bottom:1px solid var(--as-event-line);
  background:#fff;
}

body.as-event-single .profile-body .pf-head h5,
body.as-event-single .single-job-listing .pf-head h5 {
  color:var(--as-event-ink);
  font-weight:700;
}

body.as-event-single .profile-body .pf-body,
body.as-event-single .single-job-listing .pf-body {
  padding:16px 18px;
}

/* Structured event facts */
body.as-event-single .table-block .extra-details {
  margin:0;
}

body.as-event-single .table-block .extra-details li {
  display:grid;
  grid-template-columns:minmax(108px,.9fr) minmax(0,1.1fr);
  gap:14px;
  align-items:start;
  padding:11px 0;
  border-bottom:1px solid var(--as-event-line);
}

body.as-event-single .table-block .extra-details li:last-child {
  border-bottom:0;
}

body.as-event-single .table-block .item-attr {
  color:var(--as-event-muted);
  font-size:12px;
  font-weight:600;
  line-height:1.55;
}

body.as-event-single .table-block .item-property {
  color:var(--as-event-ink);
  font-size:13px;
  font-weight:650;
  line-height:1.55;
  text-align:right;
  overflow-wrap:anywhere;
}

/* Cover detail area: clear information -> action hierarchy */
body.as-event-single .listing-main-buttons > ul {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:stretch;
}

body.as-event-single .listing-main-buttons > ul > li.price-or-date {
  flex:1 1 100%;
  box-sizing:border-box;
  padding:14px 16px !important;
  border:1px solid var(--as-event-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(17,24,39,.045);
}

body.as-event-single .listing-main-buttons .price-or-date .lmb-label {
  display:block;
  margin-bottom:4px;
  color:var(--as-event-muted);
  font-size:11px;
  font-weight:600;
  line-height:1.35;
}

body.as-event-single .listing-main-buttons .price-or-date .value {
  color:var(--as-event-ink);
  font-size:16px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:-.01em;
}

body.as-event-single .listing-main-buttons > ul > li.lmb-calltoaction {
  flex:1 1 calc(50% - 6px);
  min-width:145px;
}

/* Shared CTA base */
body.as-event-single .listing-main-buttons .lmb-calltoaction > a {
  min-height:52px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-sizing:border-box;
  padding:0 18px !important;
  border-radius:14px !important;
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2;
  opacity:1 !important;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease, filter .16s ease;
}

/* Secondary call action */
body.as-event-single .listing-main-buttons li.as-event-call-action > a {
  border:1px solid #D6DEEA !important;
  background:#fff !important;
  color:#253047 !important;
  box-shadow:0 4px 12px rgba(17,24,39,.035);
}

body.as-event-single .listing-main-buttons li.as-event-call-action > a i {
  color:#506079 !important;
}

body.as-event-single .listing-main-buttons li.as-event-call-action > a:hover {
  border-color:#B7C6E3 !important;
  background:#F8FAFD !important;
  color:var(--as-event-blue) !important;
  transform:translateY(-1px);
}

/* Primary ticket action */
body.as-event-single .listing-main-buttons li.as-event-ticket-action > a {
  position:relative;
  border:1px solid var(--as-event-blue) !important;
  background:linear-gradient(135deg,var(--as-event-blue) 0%,var(--as-event-blue-dark) 100%) !important;
  color:#fff !important;
  box-shadow:0 10px 24px rgba(37,99,235,.25) !important;
}

body.as-event-single .listing-main-buttons li.as-event-ticket-action > a span {
  color:#fff !important;
  opacity:1 !important;
}

body.as-event-single .listing-main-buttons li.as-event-ticket-action > a i {
  width:28px;
  height:28px;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  margin:0 !important;
  border-radius:8px;
  background:rgba(255,255,255,.15);
  color:#fff !important;
  font-size:13px;
  line-height:1;
  opacity:1 !important;
}

body.as-event-single .listing-main-buttons li.as-event-ticket-action > a::after {
  content:"→";
  margin-left:2px;
  color:#fff;
  font-size:16px;
  font-weight:700;
  line-height:1;
  opacity:.92;
}

body.as-event-single .listing-main-buttons li.as-event-ticket-action > a:hover {
  transform:translateY(-1px);
  filter:brightness(1.035);
  box-shadow:0 14px 30px rgba(37,99,235,.30) !important;
}

body.as-event-single .listing-main-buttons li.as-event-ticket-action > a:focus-visible {
  outline:3px solid rgba(37,99,235,.24);
  outline-offset:3px;
}

/* Editorial text */
body.as-event-single .wp-editor-content,
body.as-event-single .text-block .pf-body {
  color:#40465A;
  font-size:14px;
  line-height:1.8;
}

/* Sidebar rhythm */
body.as-event-single .profile-body .col-md-4 .element,
body.as-event-single .single-job-listing .col-md-4 .element {
  margin-bottom:16px;
}

/* Related venue */
body.as-event-single .related-listing-block .listing-preview,
body.as-event-single .related-listing-block .lf-item-container {
  border-radius:12px;
  overflow:hidden;
}

@media (max-width:767px) {
  body.as-event-single .table-block .extra-details li {
    grid-template-columns:1fr;
    gap:4px;
  }

  body.as-event-single .table-block .item-property {
    text-align:left;
  }

  body.as-event-single .listing-main-buttons > ul > li.lmb-calltoaction {
    flex-basis:100%;
    min-width:0;
  }

  body.as-event-single .listing-main-buttons .lmb-calltoaction > a {
    min-height:50px !important;
  }

  body.as-event-single .profile-body .pf-head,
  body.as-event-single .profile-body .pf-body,
  body.as-event-single .single-job-listing .pf-head,
  body.as-event-single .single-job-listing .pf-body {
    padding-left:15px;
    padding-right:15px;
  }
}

@media (prefers-reduced-motion:reduce) {
  body.as-event-single .listing-main-buttons .lmb-calltoaction > a {
    transition:none !important;
  }
}


/* Final MyListing CTA override: remove theme white overlay that washes out the ticket button. */
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action {
  opacity:1 !important;
  filter:none !important;
  background:transparent !important;
}

body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a,
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a:link,
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a:visited,
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a:focus {
  position:relative !important;
  z-index:1 !important;
  opacity:1 !important;
  filter:none !important;
  border:1px solid #1D4ED8 !important;
  background-color:#2563EB !important;
  background-image:linear-gradient(135deg,#2563EB 0%,#1D4ED8 100%) !important;
  color:#FFFFFF !important;
  text-shadow:none !important;
  box-shadow:0 10px 24px rgba(37,99,235,.28) !important;
}

body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a::before,
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a::after {
  content:none !important;
  display:none !important;
  opacity:0 !important;
  background:transparent !important;
}

body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a > span,
body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a > i {
  position:relative !important;
  z-index:2 !important;
  opacity:1 !important;
  color:#FFFFFF !important;
  filter:none !important;
}

body.as-event-single #c27-single-listing .listing-main-buttons li.as-event-ticket-action > a:hover {
  border-color:#1E40AF !important;
  background-color:#1D4ED8 !important;
  background-image:linear-gradient(135deg,#2F6FEB 0%,#1E40AF 100%) !important;
  color:#FFFFFF !important;
  opacity:1 !important;
  filter:none !important;
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(37,99,235,.34) !important;
}
