/*
Theme Name: GoGayArizona Responsive Child
Template: gogayarizona-responsive
Version: 0.2.26.16
*/

/* Global EDS Search tab (top-right, sitewide) */
.eds-global-search-wrap{
  position: fixed !important;
  right: 12px !important;
  top: 0 !important;
  z-index: 9999999 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* If WP admin bar is visible, bump below it */
body.admin-bar .eds-global-search-wrap{ top: 32px !important; }
@media (max-width: 782px){
  body.admin-bar .eds-global-search-wrap{ top: 46px !important; }
}

/* Prevent theme spacing from pushing the injected block down */
.eds-global-search-wrap .eds-search{ margin: 0 !important; }

/* Ensure the panel uses readable, consistent styling */
.eds-global-search-wrap .eds-search-panel{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 12px;
  width: min(92vw, 420px);
  position: absolute;
  right: 0;
  top: 100%;
}

/* Respect the [hidden] attribute */
.eds-global-search-wrap .eds-search-panel[hidden]{
  display: none !important;
}

/* Mobile button visibility fix: force text + layout */
.eds-global-search-wrap .eds-search-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Search Results page: ensure action row layout is consistent */
body.eds-search-results-page .eds-search-block .eds-search-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Buttons: apply to global floating search AND the search page block */
.eds-global-search-wrap .eds-search-submit,
.eds-global-search-wrap .eds-search-clear,
body.eds-search-results-page .eds-search-block .eds-search-submit,
body.eds-search-results-page .eds-search-block .eds-search-clear{
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.2;
  text-indent: 0 !important;
  overflow: visible !important;
  white-space: nowrap;
  background-image: none !important;
}

.eds-global-search-wrap .eds-search-submit,
body.eds-search-results-page .eds-search-block .eds-search-submit{
  background: #ff0000;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #ff0000;
  font-weight: 700;
}

.eds-global-search-wrap .eds-search-clear,
body.eds-search-results-page .eds-search-block .eds-search-clear{
  background: #f6f7f7;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1px solid rgba(0,0,0,.2);
  font-weight: 600;
}

@media (max-width: 520px){
  .eds-global-search-wrap .eds-search-actions{
    flex-direction: column;
  }

  body.eds-search-results-page .eds-search-block .eds-search-actions{
    flex-direction: column;
  }
}

/* Hide the embedded (in-feed) search UI on directory/event feed pages
   (you only want the global search tab now). */
.eds-directory .eds-search,
.eds-events .eds-search,
.eds-directory .eds-search-tab,
.eds-events .eds-search-tab,
.eds-directory .eds-search-toggle,
.eds-events .eds-search-toggle,
.eds-directory .eds-search-panel,
.eds-events .eds-search-panel,
.eds-directory .eds-search-actions,
.eds-events .eds-search-actions{
  display: none !important;
}

/* Search results page polish */
.eds-search-results{
  text-align: left !important;
}
.eds-search-results *{
  text-align: left !important;
}

/* Make the "Listings" and "Events" headers match feed category headers */
.eds-search-group-title{
  margin-top: 28px;
  color: #ff0000 !important;
  font-weight: 700;
}

/* Ensure results title isn't centered by theme rules */
.eds-search-results-title{
  text-align: left !important;
}

/* ===== Search Results Page: show the form OPEN (no toggle tab) ===== */
body.eds-search-results-page .eds-search-block .eds-search-tab{
  display: none !important;
}
body.eds-search-results-page .eds-search-block .eds-search-panel,
body.eds-search-results-page .eds-search-block .eds-search-panel[hidden]{
  display: block !important;
}
body.eds-search-results-page .eds-search-block .eds-search-panel{
  border-radius: 12px;
}

body.eds-search-results-page .eds-search-block{
  margin: 16px auto;
  max-width: 970px;
  width: 100%;
}

/* ===== Search Results layout =====
   Desktop: 2 balanced columns (like feeds)
   Mobile: 1 column
   Even with 1 result, it stays in the left column on desktop.

   NOTE: We intentionally use flexbox (not CSS columns) because some themes
   apply desktop-only display rules that can disable multi-column layout.
*/
body.eds-search-results-page .eds-search-results .eds-search-group{
  display: block !important; /* mobile + baseline */
}

body.eds-search-results-page .eds-search-results .eds-search-group > .eds-search-group-title{
  display: block;
  margin: 18px 0 10px 0;
}

body.eds-search-results-page .eds-search-results .eds-search-group > .eds-item{
  width: 100% !important;
  margin: 0 0 18px 0 !important;
}

@media (min-width: 783px){
  body.eds-search-results-page .eds-search-results .eds-search-group{
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    align-items: stretch !important;
  }

  body.eds-search-results-page .eds-search-results .eds-search-group > .eds-search-group-title{
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 18px 0 0 0 !important;
  }

  body.eds-search-results-page .eds-search-results .eds-search-group > .eds-item{
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
    margin: 0 !important;
  }
}

/* Prevent any oversized images from blowing out the column */
body.eds-search-results-page .eds-search-results img,
body.eds-search-results-page .eds-search-results .eds-logo,
body.eds-search-results-page .eds-search-results .eds-logo--placeholder{
  max-width: 100% !important;
  height: auto !important;
}

/* Mobile: make the floating Search look intentional (pill/FAB), not like a detached tab */
@media (max-width: 782px){
  .eds-global-search-wrap{
    right: 10px !important;
    top: calc(env(safe-area-inset-top, 0px) + 10px) !important;
  }
  body.admin-bar .eds-global-search-wrap{
    top: calc(env(safe-area-inset-top, 0px) + 56px) !important; /* admin bar spacing */
  }

  .eds-global-search-wrap .eds-search-tab,
  .eds-global-search-wrap .eds-search-toggle{
    border-top: 1px solid rgba(0,0,0,.15) !important; /* undo the “tab” look */
    border-radius: 999px !important;                  /* full pill */
    padding: 10px 14px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.20) !important;
  }
}
@media (max-width: 782px){
  .eds-global-search-wrap .eds-search-tab,
  .eds-global-search-wrap .eds-search-toggle{
    background: #ffffff !important;
    font-weight: 600 !important;
  }
}

/* Anchor jump spacing (keeps the top of the highlight ring visible) */
@media (min-width: 783px){
  [id^="listing-"],
  [id^="event-"]{
    scroll-margin-top: 180px;
  }
}
@media (max-width: 782px){
  [id^="listing-"],
  [id^="event-"]{
    scroll-margin-top: 120px;
  }
}


/* ===== Smooth anchor highlight (professional Pride accent) =====
   Subtle Pride-gradient ring + soft shadow that fades out.
   The gradient does NOT animate; it only fades.
*/
.eds-anchor-highlight{
  position: relative;
  border-radius: 12px;
  animation: edsAnchorBgFade 1.8s ease-out 0s 1;
}

.eds-anchor-highlight::after{
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(
    90deg,
    rgba(228, 3, 3, 0.75),
    rgba(255, 140, 0, 0.75),
    rgba(255, 237, 0, 0.70),
    rgba(0, 128, 38, 0.70),
    rgba(0, 77, 255, 0.70),
    rgba(117, 7, 135, 0.70)
  );

  /* Create a ring using a mask */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;

  pointer-events: none;
  opacity: 0;
  filter: none;
  animation: edsAnchorRingFade 1.8s ease-out 0s 1;
}

@keyframes edsAnchorRingFade{
  0%{ opacity: 1; }
  65%{ opacity: 0.55; }
  100%{ opacity: 0; }
}

@keyframes edsAnchorBgFade{
  0%{
    box-shadow: 0 0 0 6px rgba(255, 0, 0, 0.10), 0 12px 30px rgba(0,0,0,0.16);
    background: rgba(255, 255, 255, 0.10);
  }
  55%{
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.06), 0 10px 24px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.06);
  }
  100%{
    box-shadow: none;
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce){
  .eds-anchor-highlight,
  .eds-anchor-highlight::after{
    animation: none !important;
  }
}
