:root {
  /* This is needed to get apple system font sizing respected */
  /* font: -apple-system-body; */
}

html, body, modal-body, .maplibregl-popup-content, .profile-name {
  overscroll-behavior: none; /* Prevents bounce in modern browsers */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;  
}
html::-webkit-scrollbar, 
body::-webkit-scrollbar,
modal-body::-webkit-scrollbar,
.maplibregl-popup-content::-webkit-scrollbar,
.profile-name::-webkit-scrollbar {
  display: none;
}
html {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Catch EVERYTHING (useful when you have div/li/span onclick) */
* {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Prevent iOS long-press callout on links/images */
a, img {
  -webkit-touch-callout: none;
}

/* If your nav “buttons” are not real buttons, this prevents text highlight/selection */
button, a, [role="button"], [onclick], .btn, .nav-btn {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: auto;
    text-size-adjust: auto;
    line-height: 1.5;
}
body {
    font-size: 1rem;
    line-height: inherit;
}

main.loading {
    opacity: 0.7;
}
:root {
    --primary: #3f60a0;
    --background: #f1f5f9;
    --today: #fff;
    --tomorrow: #fff;
    --restricted-strong: #C59131;
    --restricted-light: #fff4e0;
    --community-strong: #5b2a86;
    --community-light: #f2e8ff;
    --rsvp-strong: #EC866A;
    --rsvp-light: #FFFAF8;
    --notification-error: rgb(220, 53, 69);
    --notification-warning: #fff4cc;
    --notification-success: rgb(40, 167, 69);
    --stripe-color: #635bff;
    --border-radius: 3px;
    --box-shadow: 1.5px 1.5px 2px #ccc;
    --standard-border: 2px solid black;
    --edit-input-border: 1.5px solid #ccc;
    /* --standard-border: 1px solid #ccc; */

    /* Dynamic header heights - will be set via JavaScript */
    --header-height: 74px;
    --calendar-header-height: 61px;
    --footer-height: 86px;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Opt into iOS dynamic type while keeping current baseline sizing */
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 100%;
    line-height: 1.5;
  }
  body, button, input, select, textarea {
    font: inherit;
    line-height: inherit;
  }
}
.three-dots-loader {
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin:0 auto;
  margin-top:50%;
  position: absolute;
  left: 50%;
  animation: l5 1s infinite linear alternate;
}
map-loader-container {
  display: block;
  height: 100vh;
  width: 100%;
  background-color: var(--background);
  opacity: 1;
  transition: opacity 0.5s ease;
}
@keyframes l5 {
    0%  {box-shadow: 40px 0 #000, -40px 0 #0002;background: #000 }
    33% {box-shadow: 40px 0 #000, -40px 0 #0002;background: #0002}
    66% {box-shadow: 40px 0 #0002,-40px 0 #000; background: #0002}
    100%{box-shadow: 40px 0 #0002,-40px 0 #000; background: #000 }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 100%;
}
a{
    all:unset;
    cursor: pointer;
}
input, textarea {
  font-size: inherit;
  font-weight: inherit;
  outline: 0;
  border: var(--edit-input-border);
  border-radius: 8px;
  padding: 0.35rem 0.625rem;
  background: white;
}
input[type="checkbox"] {
  all: revert;
}
select {
  border: 0;
  background: inherit;
  border: var(--edit-input-border);
  border-radius: 8px;
  padding: 0.35rem 0.625rem;
  background: white;
  color: inherit;
}
.edit-mode select {
  display: block;
  font-size: 1em;
  width: 100%;
}
dialog#event-modal select, dialog#event-modal input, .event-container select{
  display:none;
}
dialog#event-modal.edit-mode select, dialog#event-modal.edit-mode input {
  display:block;
  font-weight: 400;
}

button{
    all:unset;
    cursor: pointer;
}
notification-message {
    position: fixed;
    padding: 13px;
    top: 40px;
    left: 1rem;
    width: calc(100% - 2rem);
    z-index: 1003;
    border-radius: 8px;
    background-color: #fff;
}
section-title{
  font-weight: 700;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.5rem 0;
}
notification-message.success {
    background-color: var(--notification-success);
    color: white;
}
notification-message.warning {
    background-color: var(--notification-warning);
    color: black;
}
notification-message.error {
    background-color: var(--notification-error);
    color: #fff;
}

/* Currency display styles */

app-currency::before {
  position: relative;
  margin-right: 1px;
}
price-with-tax {
  display: none;
  position: absolute;
  bottom: -1.2em;
  left: 0;
}

input:focus + price-with-tax {
  display: block;
}
.turn-icon-white{
  filter: brightness(0) invert(1);
}
price-formatted{
  font-size: 0.75em;
  color: rgb(102, 102, 102);
  margin-left: 0.25rem;
}
price-formatted:not(:empty):before {
  content: "(";
}
price-formatted:not(:empty):after {
  content: ")";
}
app-currency[data-currency="USD"]::before {
  content: "$";
}
app-currency[data-currency="EUR"]::before {
  content: "€";
}
#schedule event-date {
    display:none;
}
.tax-button{
  background-color: teal;
  color: white;
}
.install-button{
    display: block;
    margin: 0 auto;
    border: var(--standard-border);
    padding: 12px;
    background-color: white;
    color: black;
    font-weight: bold;
  }
  flex-box{
    display: flex;
    align-items: end;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
  }
  .install-instructions p{
    text-align: center;
    margin: 0.5em 0;
    color:white;
  }
  .install-instructions{
    padding:1rem;
  }
  .install-instructions h3{
    margin-bottom:1em;
    text-align: center;
    color:white;
  }
  #loginPage {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .login-container {
    width: 400px;
    max-width: 100%;
  }

  .powered-by-footer {
    background-color: #f2d3af;
    padding: 10px;
    text-align: center;
  }

  .powered-by-footer img {
    height: 40px;
    width: auto;
  }

  .app-branding {
      text-align: center;
      margin-bottom: 40px;
  }

  .login-logo {
      width: 160px;
      height: 160px;
      background: white;
      border-radius: 12px;
      object-fit: contain;
  }
  .app-branding h1 {
      color: white;
      font-size: 32px;
      font-weight: 900;
      line-height: 1.2;
      margin-bottom: 10px;
  }

  .app-branding h2 {
      color: white;
      font-size: 18px;
      font-weight: normal;
  }

  .auth-form {
      width: 100%;
  }

  .auth-form .form-group {
      margin-bottom: 25px;
  }

  .auth-form label {
      display: block;
      color: white;
      margin-bottom: 8px;
      font-size: 12px;
  }

  .auth-form input, .auth-form select {
      width: 100%;
      padding: 15px;
      background: rgba(255, 255, 255, 0.9);
      border: none;
      color: #333;
  }
  .auth-form select {
    font-weight:bold;
    text-align: right;
    text-transform: uppercase;
    color: white;
    border: 3px solid white;
  }
  .auth-form input:focus {
      background: white;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .login-button {
      width: 100%;
      padding: 15px;
      text-align: center;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-top: 20px;
      text-transform: uppercase;
      background: black;
      border: 3px solid white;
      color: white;
  }

  .login-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .form-message {
      color: white;
      text-align: center;
      letter-spacing: -0.05em;
    }
  #claimList{
    margin-top:1em;
  }
  #backToClaimButton, #existingAccountButton{
    margin-top:1em;
    color:white;
    text-decoration:underline;
  }
  #existingAccountButton{
    margin-left:auto;
    margin-bottom:1em;
  }
  .flex{
    display:flex;
    align-items:center;
    gap:0.5em;
  }
  .form-message.error {
    font-weight:bold;
    background: #c62828;
    width: fit-content;
    margin: 0 auto;
    padding: 5px;
  }
pre{
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}
pre[placeholder]:empty::after{
    content: attr(placeholder);
    opacity: 0.7;
}
.icon-tabler img{
    width:30px;
    height:30px;
}
.content_editable{
    padding: 5px; 
    max-width: 100%;
    text-align: left;
    overflow: scroll;
    position: relative;
}

body {
    background-color: var(--background);
    margin-bottom:2em;
}
hr{
    border: none;
    height: 2px;
    background-color: var(--primary);
    /* margin: 10px 0;  */
}

profile-page input {
    text-align:left;
    width: 85%;
    padding: 4px 8px;
    border: var(--standard-border);
    border-radius: 8px;
    padding: 0.25rem;
    background: white;
}

input[type="file"] {
    display: none !important; /* Hide the default file input */
}
.upload-label {
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
    display: inline-block; /* Ensure the label is inline-block for proper styling */
}
.file-input-group label{
  border: var(--standard-border);
  border-radius: 8px;
  padding: 0.35rem 0.625rem;
  background: white;
  display:inherit;
}
@keyframes moveLeftRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(5px); }
}
@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(720deg);
    }
  }
.shake-animation {
    animation: shake 0.5s ease-in-out both;
}

main {
  padding: 8px;
  padding-bottom: 9em;
  position: relative;
  transition: opacity 0.2s ease-in-out;
  margin: 0 auto;
}
body.schedule-page main {
  padding: 0;
}
body.schedule-page .event-container {
  margin: 1rem 8px;
  margin-top: 8px;
}
main, dialog{
  max-width: 768px;
  overscroll-behavior: none;
}

/* Sticky header at top of all pages */
.fixed-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: var(--standard-border);
    padding: 12px 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.fixed-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.fixed-header .header-info {
  flex: 1;
  width: 100;
}

.fixed-header .logo-pill {
    width: 50px;
    height: 50px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.fixed-header .logo-pill img {
    max-width: 100%;
    object-fit: contain;
}

.fixed-header .header-right {
    text-align: right;
    margin-left: 8px;
}
.header-right img {
  width: 32px;
  height: 32px;
}

profile-name-header {
    font-weight: 600;
    display: block;
}

.profile-tagline-header {
    font-size: 0.875em;
    color: #555;
}

.profile-tagline-header pre {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hide empty tagline when not in edit mode */
body:not(:has(profile-page.edit-mode)) .profile-tagline-header[data-empty="true"] {
    display: none;
}

role-pill {
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 5px;
    background-color: white;
    border: 1.5px solid #808080;
    color: #808080;
    font-size: 0.65em;
    margin-left: auto;
    text-transform: uppercase;
}

/* Wallet bar - fixed to bottom */
wallet-bar {
    position: fixed;
    bottom: 84px; /* Height of bottom-nav */
    background: #e8f5e9;
    border-top: 1.5px solid #111;
    border-bottom: 1.5px solid #111;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s;
    width:100%;
    left:0;
}

wallet-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

wallet-qr-mini {
    width: 36px;
    height: 36px;
    border: var(--standard-border);
    border-radius: 4px;
    background: #fff;
    display: block;
}

wallet-qr-mini img {
    width: 100%;
    height: 100%;
    display: block;
}

wallet-info-compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    font-size: 0.875em;
}

wallet-ticket {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

edit-profile-btn {
    background: #000;
    color: #fff;
    border: var(--standard-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 0 #111;
    transition: transform 0.1s;
    display: inline-block;
}
profile-page {
    padding-bottom: 120px; /* Space for wallet bar + bottom nav */
}

/* Old header styles - keeping for non-profile pages temporarily */
header:not(.fixed-header) {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 30px;
    flex-direction: column;
    padding-left:90px;
    padding-right:3px;
}
wallet-container{
  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-20deg);
  cursor:pointer;
}
wallet-container:after{
  content: 'wallet';
  font-size: 0.8rem;
  line-height: 0.1rem;
}
wallet-container img {
  width:45px;
}
water-drop{
    position: absolute;
    mask: url('/assets/images/drop.svg') center/cover;
    -webkit-mask: url('/assets/images/drop.svg') center/cover;
    background-size: cover;
    background-position: center;
    width: 135px;
    height: 176px;
    z-index: 1;
    left: -3em;
    top: -3em;
}
location-title{
  display:inherit;
  margin-right: auto;
}

.event-container venue-name{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
#event-modal.edit-mode venue-name{
  display: none;
}
/* Logo within fixed header - styled above in .fixed-header .logo-pill img */

header h1 {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: normal;
    text-align:right;
}

tagline-input, header h2 {
    font-style: italic;
    text-align:right;
    margin-top: 0.2rem;
    font-weight: 400;
    font-size: 10px;
}
countdown-heading{
    font-style: italic;
    text-align: right;
    margin-top: 0.2rem;
    font-weight: 400;
    font-size: 10px;
    display: block;
}
push-button.disabled, 
.push-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
subscriber-count{
  font-weight: 300;
  color: skyblue;
  background: black;
  padding-right: 7px;
  padding-left: 7px;
  text-align: right;
  padding-top: 2px;
  width: fit-content;
  padding-bottom: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
  margin-left: auto;
}
#sendButton, #subscribeButton, #unsubscribeButton{
  display: block;
  margin:0 auto;
  background: rebeccapurple;
  padding: 10px;
  color: white;
  width:80px;
  text-align:center;
  cursor: pointer;
}
profile-document-text{
  word-wrap: anywhere;
}
profile-directory .profile-image,
#loginPage .profile-image{
    width: 56px;
    height: 56px;
}
#hub-nav-link {
  position: relative; /* Context for positioning the pseudo-element */
}
@keyframes badgePop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
#hub-nav-link[data-badge-visible="true"]::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background-color: orangered;
  border-radius: 50%;
  border: var(--standard-border);
  animation: badgePop 0.4s ease-out;
}
event-context{
  font-style: italic;
  padding: 4px 5px;
  font-size: 10px;
  background: black;
  color: white;
  padding: 2px 5px;
  cursor: pointer;
  margin-bottom: 0.25rem;
  margin-left: auto;
  display: block;
  width: fit-content;
}
.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 100%;
    margin-bottom: 1em;
}
.social-links a{
    display: flex;
    justify-content: center;
    align-items: center;
    color:black;
}
.social-links.edit > div{ 
    display: flex;
}
.social-links svg,
.download-link img{
    width:25px;
    height:25px;
}
section {
    background: white;
    padding: 8px 10px 10px;
    box-shadow: 1.5px 1.5px 2px #ccc;
    margin-top: 1rem;
}
section.profile_intro{
  background: #f4e38b;
}
section.profile_intro h3{
  display:flex; 
  align-items:center; 
  justify-content: space-between; 
  gap: 12px;
}
section.profile_intro h3 role-pill{
  font-size:0.875em;
}
.filter-sections-container .venue-section span,
.filter-sections-container .characteristics-section span {
    padding: 3px 6px;
    background: #eee;
}

.filter-sections-container .venue-section .filter-option[data-checked="true"] span,
.filter-sections-container .characteristics-section .filter-option[data-checked="true"] span {
    background: black;
    color: white;
}

section.download-link{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.edit-mode section.download-link > div{
    border: 2px dashed #ccc;
}
/* Style for download link when not in edit mode */
.download-link a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.download-link.edit{
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}


section h3 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.875em;
  margin: 0;
  margin-bottom: 7px;
}

section p {
    color: #333;
}

footer nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    padding-bottom: 22px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999; /* Highest z-index to always stay on top */
    opacity: 1;
    visibility: visible;
    transition: none; /* No transitions during page load */
    will-change: auto; /* Optimize for always being visible */
    border-top: var(--standard-border);
}
message-button img {
  border: var(--standard-border);
  border-radius: 6px;
  background: white;
  padding: 3px;
  box-shadow: 0 2px 0 #111;
}
footer nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    padding-bottom: 8px;
    color:black;
    position: relative;
    flex-shrink: 0;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    flex:1;
}
footer nav a.current-page::before {
  content: '';
  background: var(--theme-color);
  width: 25px;
  height: 2px;
  position: absolute;
  z-index: -1;
  bottom: 6.5px;
  right: 6px;
}
footer nav a.current-page::after{
  content: '';
  background: var(--theme-color);
  width: 15px;
  height: 2px;
  position: absolute;
  z-index: -1;
  bottom: 3px;
  opacity: 0.6;
  right: 6px;
  transition: all;
}
footer nav a:hover {
    animation: pulse 0.6s;
}

footer nav img {
    width: 30px;
    height: 30px;
}

footer nav .nav-label {
    font-size: 11px;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0.01em;
}

footer nav .active svg {
    border-bottom: 2px dashed black;
    margin-bottom: 5px;
}

.view-toggle-container {
  display: flex;
  gap: 6px;
  overflow-x: scroll;
  scrollbar-width: none;

}

.view-toggle {
  padding: 9px 7px;
  background: white;
  cursor: pointer;
  font-size:0.875rem;
  text-align:center;
  flex: 1;
  border: 0;
  border-radius:0;
}

.view-toggle img {
  width: 16px;
  height: 16px;
}

.view-toggle.active {
  background: black;
  color: white;
  box-shadow: none;
  outline: 1px solid black;
}


/* Profile Directory: show correct "Add" button based on current directory view */
body:has(.view-toggle-btn[data-view="people"].active) #add-sponsor-header-btn {
  display: none;
}

body:has(.view-toggle-btn[data-view="partners"].active) #add-profile-header-btn {
  display: none;
}
/* Progress bar styles */
.upload-progress {
    width: 100%;
    height: 10px;
    background-color: #eee;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

.upload-progress-bar {
    height: 100%;
    background-color: green;
    width: 0;
    transition: width 0.3s ease;
}

/* Search Container Styles */
.svg-container {
    cursor:pointer;
}
.filter-icon img{
    width:30px;
    height:30px;
}
.input-container{
    width: 100%;
    position: relative;
}
.input-container:after{
    content: '';
    mask: url('/assets/icons/search.svg') center/cover;
    -webkit-mask: url('/assets/icons/search.svg') center/cover;
    background-color: black;
    width: 24px;
    height: 24px;
    top: 6px;
    right: 6px;
    opacity: 0.5;
    position:absolute;
}
search-footer {
    display: flex;
    position: fixed;
    bottom: var(--footer-height);
    width: 100%;
    left: 0;
    background: white;
    z-index: 11;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    gap: 10px;
    justify-content: center;
}

.filter-sections-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
filter-header{
    display:flex;
    height:46.05px;
    align-items:center;
}
@media screen and (max-width: 1024px) {
  search-footer:has(input:focus) {
    top: 0;
    bottom: unset;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  }
}
@media screen and (min-width: 1025px) {
  .pac-container {
    z-index: 9999 !important;
    position: absolute !important;
    top: unset !important;
    bottom: 120px !important;
  }
}
search-container{
    display:flex;
}
search-container input {
    width: 100%;
    padding: 10px;
    border: var(--standard-border) !important;
    text-align: left;
}
.profile-directory-edit-button{
  position: absolute;
  right:0;
  bottom: -2px;
  z-index:2;
  border-left: 50px solid transparent;
  border-top: 50px solid transparent;
}
.profile-directory-edit-button img{
  width: 24px;
}
.filter-button {
    padding: 10px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.filter-button:hover {
    background-color: darken(var(--primary), 10%);
}

/* Attendee List Styles */
.profile-list {
    display: flex;
    flex-direction: column;
}

.profile-card {
    background: #fff;
    border: var(--standard-border);
    border-radius: 8px;
    box-shadow: 0 2px 0 #111;
    margin: 4px 0;
    display: flex;
    padding: 9px 8px 7px;
    gap: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s;
}


.profile-image-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-header {
    display: flex;
    gap: 6px;
    line-height:1.2;
    align-items:center;
}

.profile-name {
    font-weight: 550;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
    text-overflow: ellipsis;
}

.profile-tagline {
    color: #555;
    font-size:0.875em;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

comment-info > img {
    flex-shrink: 0;
}
comment-metadata{
    margin-left:auto;
}
comment-metadata h2{
    text-align:right;
}
summary {
  display: flex;
}
comment-section summary{
    margin-top:0.5rem;
    text-align:right;
}
toggle-comments {
    font-size: 10px;
    background: black;
    color: white;
    padding: 2px 5px;
    cursor: pointer;
    margin-top: 0.25rem;
    margin-left: auto;
    display: block;
    height: fit-content;
    width: fit-content;
}

.profile-info {
    flex-grow: 1;
    margin-left: 10px;
    margin-right: 5px;
    text-align: left;
    margin-bottom: auto;
}
.profile-info .text{
  font-weight: 550;
}

.profile-info p {
    font-size: 0.875em;
    color: #555;
}
sup{
    font-size:0.6rem;
}

calendar-header day-header{
    text-align: center;
    padding: 6px 0;
}
/* Ensure the container allows scrolling */
.schedule-container {
    position: relative;
    margin-bottom: 150px;
}
#directory-filter-expanded {
    background: inherit;
    margin: 4px;
    display:none;
}

.checkbox-icon {
    width: 24px;
    height: 24px;
}

.filter-divider {
    margin: 15px 0;
}

.filter-divider hr {
    border: none;
    height: 1px;
    background-color: #ddd;
}
.filter-section p{
    text-align: left;
    font-style: italic;   
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.toggle-details {
    display: none;
}
.schedule-selector{
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
}
.schedule-selector a{
    padding: 5px 15px;
    background-color: #27335b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-size:10px;
}
.day-group {
  position: relative;
  border-radius: 0;
  scroll-margin-top: calc(var(--header-height) + var(--calendar-header-height));
}

.day-group event-day-header {
  display: flex;
  top: calc(var(--header-height) + var(--calendar-header-height));
  font-weight: 450;
  background: #000;
  color: #fff;
  padding: 6px 8px;
  z-index: 2;
  position: sticky;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.day-group.past-day{
    opacity:0.65;
}
  event-host[data-id=""]{
    display: none;
  }
  .event-container .new-host{
    display:none;
  }
  edit-button{
    display: flex;
    right:0;
    bottom:0;
    border-radius: 25%;
    position: absolute;
  }
  edit-button img{
    width: 24px;
    background: var(--background);
    border-radius: 4px;
  }
  edit-button img.trash {
    border-radius: 4px;
  }
  event-capacity-public status-img{
    background-image: url('/assets/icons/heart.svg');
  }
  .event-container[data-access-restricted="true"] event-capacity-public status-img{
    background-image: url('/assets/icons/ticket.svg');
    transform: rotate(-15deg);
  }
  event-capacity-public[data-current-status="purchased_standalone"] status-img{
    background-image: url('/assets/icons/ticket-filled.svg');
    transform: rotate(-15deg);
  }
  event-capacity-public[data-current-status="hosting"] status-img{
    background-image: url('/assets/icons/heart-filled.svg');
  }
  event-capacity-public[data-current-status="liked"] status-img{
    background-image: url('/assets/icons/heart-filled.svg');
  }

  status-img{
    width:22px;
    height:22px;
    display:block;
    background-size: contain;
  }

  @keyframes rotate {
    0% {
      transform: scale(1) rotate(0deg);
    }
    50% {
      transform: scale(1.25) rotate(180deg);
    }
    100% {
      transform: scale(1) rotate(360deg);
    }
  }
  filter-options{
    max-height:10rem;
    display:block;
    overflow-y: scroll;
  }
  location-title-container option {
    overflow-x: clip;
  }
  
  /* Hide location-title-container if no venue URL */
  .event-container location-title-container[data-venue-url=""],
  .event-container location-title-container:not([data-venue-url]) {
    display: none;
  }
  
  /* Hide location-title-container in modal if no venue URL */
  .event-modal-content:not(.edit-mode) location-title-container[data-venue-url=""] {
    display: none !important;
  }

  .sheriff edit-button {
      display: inherit;
  }
  .event-container.edit-mode edit-button{
    min-width:64px;
  }
  .edit-mode reset-profile-attachment-button{
    display: block; 
    cursor: pointer;
    margin-left: auto;
    margin-bottom: auto;
    margin-top: auto;
  }
  [onclick] {
    cursor: pointer;
  }
  event-host.highlight {
    animation: highlight-pulse 0.7s ease-in-out;
  }
  
  
  @keyframes highlight-pulse {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(255, 147, 0, 0.54); }
  }
  .event-container.edit-mode event-host{
    display: flex !important; 
  }
  .event-container.edit-mode .ajax-link{
    pointer-events: none;
  }
  event-profile-name{
    position: relative;
  }
  profile-search-results{
    display: flex;
    flex-direction: column;
    /* position: absolute; */
    background: whitesmoke;
    width: 100%;
    left: 0;
    z-index:110;
  }
  
  /* Search loading and error states */
  .search-loading, .search-error {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
  }
  
  .search-loading {
    color: #666;
    font-style: italic;
  }
  
  .search-error {
    color: #d73027;
    background-color: #fdf2f2;
  }
  /* Event description display - use real elements */
  event-description-container {
    display: block;
    position: relative;
    margin: 8px 0;
  }
  
  event-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
  }
  
  event-description-text.expanded {
    -webkit-line-clamp: none;
  }
  pre:empty:before{
    color: rgba(0, 0, 0, 0.5);
  }
  .edit-mode event-title pre:empty:before{
    content: 'Event Title';
  }
  .edit-mode location-title pre:empty:before{
    content: 'Location';
  }
  .edit-mode event-description pre:empty:before{
    content: 'Event Description';
  }
  .event-container event-title-container{
    margin-bottom: 6px;
    border-bottom: 1.5px solid #111;
    padding-bottom: 6px;
    margin-top: 3px;
  }
  event-title-container{
    display:flex;
    flex-direction: column;
    font-weight:bold;
    text-align:left;
  }
  event-info{
    display: flex;
    justify-content:space-between;
    gap: 1em;
  }
  .today event-day-header::before {
    content: 'Today - ';
    margin-right: 5px;
  }
  .today + div event-day-header::before {
    content: 'Tomorrow - ';
    margin-right: 5px;
  }
  .day-group.today event-day-header {
    color: var(--today);
    font-weight: 600;
  }
  .day-group.today + div event-day-header {
    color: var(--tomorrow);
    font-weight: 600;
  }
  section.event-container.happening-soon,
  section.event-container.happening-soon[data-event-class="community"] {
    background-color: #DDEAF8 !important;
    margin-top: 1.5rem !important;
  }
  section.event-container.happening-now,
  section.event-container.happening-now[data-event-class="community"] {
    background-color: #d9f0dd !important;
    margin-top: 1.5rem !important;
  }
  /* for Safari's hardcore User Agent */
  input[type="time"]:disabled{
    color: black !important;
    opacity: 1 !important;
    -webkit-text-fill-color: black !important;
    -webkit-opacity: 1 !important;
    filter: none !important;
  }
  .happening-soon:not(.edit-mode):before,
  .happening-now:not(.edit-mode):before,
  section.event-container[data-access-restricted="true"]:before {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    position: absolute;
    top: -14px;
    text-transform: uppercase;
    width: fit-content;
    right: 8px;
    font-weight: 600;
  }
  section.event-container[data-access-restricted="true"]:before {
    content: 'Included in ' attr(data-ticket-name);
    background: var(--restricted-light);
    color: var(--restricted-strong) !important;
    border: 2px solid var(--restricted-strong);
    left: 8px;
    font-weight: 650;
    letter-spacing: 0.15px;
    z-index: 1;
    background-image: url(/assets/icons/ticket-restricted.svg);
    background-repeat: no-repeat;
    padding-left: 25px;
    background-position: center left;
  }
  section.event-container[data-access-restricted="true"][data-ticket-name=""]::before {
    content: 'Purchase Required';
  }
  .happening-now:not(.edit-mode):before {
    content: 'Happening Now !';
    background: #F0F8F2;
    color: #2F7A44 !important;
    border: 1.5px solid #2F7A44;
  }
  .happening-soon:not(.edit-mode):before {
    content: 'Up Next !';
    color: #1E5AA8;
    background: #F2F8FF;
    border: 1.5px solid #1E5AA8;
  }
  event-time{
    display:flex;
    align-items: center;
    gap: 0.25rem;
  }
  event-time start-time, event-time end-time {
    /* font-size:1.17em; */
    font-weight: 500;
  }
  
  event-date {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: black;
    color: white;
    font-weight: 450;
    letter-spacing: 0.7px;
    padding: 6px 8px;
    text-transform: uppercase;
  }
  .event-container {
    position: relative;
    border: var(--standard-border);
    border-radius: 8px;
    /* margin: 10px 0; */
  }
  section[data-empty="true"]:not(.edit-mode section) {
    display: none;
  }
  profile-page .interests-flex interest-option:not(profile-page.edit-mode .interests-flex interest-option) {
    pointer-events: none;
  }
   /* Hide edit-only elements by default */
   /* profile-edit-container[data-is-user-profile="true"] {
    display: block !important;
  }  */
  .transaction-table-container{
    overflow-x: scroll;
  }
  profile-page header h1{
    display:flex;
    align-items:end;
  }
  profile-page header h1 span{
    margin-left:auto;
  }

  .edit-only {
    display: none !important;
  }

  /* Show edit-only elements when edit-mode is active */
  profile-page.edit-mode .edit-only {
    display: flex !important;
    align-items: center;
  }

  /* Hide display values when in edit mode */
  profile-page.edit-mode .display-value {
    display: none !important;
  }

  profile-page.edit-mode .social-links {
    grid-template-columns: 1fr !important;
  }

  /* Hide empty sections in non-edit mode */
  profile-page:not(.edit-mode) .icebreaker[data-empty="true"],
  profile-page:not(.edit-mode) pre[data-content=""],
  profile-page:not(.edit-mode) .social-network-container:not(:has(a[href])),
  profile-page:not(.edit-mode) .download-link[data-has-document=""] {
    display: none;
  }
  .download-link > div{
    width:100%;
    justify-content: space-between;
    align-items: center;
  }

  /* Show all social networks in edit mode */
  profile-page.edit-mode .social-network-container {
    display: flex !important;
  }

  /* Add progress bar styles */
  .upload-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 9999;
  }

  .upload-progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0;
    transition: width 0.3s ease;
  }
  /* Remove content_editable specific styles */
  profile-page.edit-mode pre[contenteditable="true"]:not(.event-container pre):not(sponsor-card pre) {
    padding: 5px;
    min-height: 20px;
    cursor:text;
  }

  /* Toggle profile-edit-toggle CSS from codepen */

  input#profile-edit-toggle[type=checkbox]{
    height: 0;
    width: 0;
    padding:0;
    display: none;
  }

  #profile-edit-toggle-label {
    cursor: pointer;
    text-indent: -9999px;
    width: 30px;
    height: 20px;
    background: grey;
    display: block;
    position: relative;
  }

  #profile-edit-toggle-label:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 4px;
    transition: 0.3s;
  }

  input#profile-edit-toggle:checked + #profile-edit-toggle-label {
    background: var(--primary);
  }

  input#profile-edit-toggle:checked + #profile-edit-toggle-label:after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
  }

  #profile-edit-toggle-label:active:after {
    width: 15px;
  }

  /* Update social network container styles */
  profile-page:not(.edit-mode) social-network-container:not(:has(a[href])) {
    display: none;
  }

  profile-page.edit-mode social-network-container {
    display: flex !important;
  }

  /* Social network container styles */
  social-network-container {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Hide standalone icon in non-edit mode */
  profile-page:not(.edit-mode) social-network-container > img {
    display: none;
  }

  /* Show standalone icon in edit mode */
  profile-page.edit-mode social-network-container > img {
    display: block;
  }

  profile-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    align-items:center;
    margin-top: 10px;
    margin-bottom: 20px;
    height:220px;
  }
  .ajax-link{
    position: relative;
    flex-shrink: 0;
  }
  image-wrapper {
    position: relative;
    padding: 4px;
    border: var(--standard-border);
    border-radius: 10px;
    display:inline-block;
  }

  image-wrapper img.profile-image {
    width: 220px;
    height: 220px;
  }
  .profile-image{
    object-fit: cover;
    border: var(--standard-border);
    border-radius: 6px;
  }
  /* Edit mode overlay styles */
  profile-page.edit-mode image-overlay {
    cursor: pointer;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%; 
    background: linear-gradient(to top, 
      rgba(0, 0, 0, 0.5) 10%,
      rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    align-items: end;
    padding-bottom: 15px;
    justify-content: center;
  }

  image-overlay .upload-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes the icon white */
  }

  /* Hide the old upload form in edit mode */
  profile-page.edit-mode .edit-only.upload-form {
    display: none !important;
  }
  event-description-text:empty + toggle-comments {
    display: none;
  }

  .box-shadow{
    box-shadow: 3px 3px 0px #000;
  }
  .box-shadow-white {
    box-shadow: 3px 3px 0px #f5f5f5;
  }
  .box-shadow-orange {
    box-shadow: 3px 3px 0px #ffa500;
  }
  .push-down, button {
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    position: relative; /* Important for consistent shadow behavior */
  }
  .push-down:active, button:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #000 !important;
  }
  sheriff-button-container{
    margin-right: auto;
  }
  profile-edit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
    margin-bottom: 2em;
  }
  .offline-section{
    text-align: center; 
    height: 90%;
    max-height:100%;
    background-color: #f4ddb6;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
  }
  .offline-icon{
    width:150px;
  }
  #sheriff-button img {
    border-radius: 8px;
    border: 3px solid black;
  }

  tagline-input {
    display: block;
    width: 100%;
  }
  .share-api{
    margin-left: 8px; 
    padding: 4px 8px; 
    border-radius: 4px; 
    background: #0077b5;
    text-wrap: nowrap;
    font-size: 12px;
    color: white; 
    border: none; 
    cursor: pointer;
  }

  tagline-input pre {
    background: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    width: 100%;
    text-align: right; 
    width: 100%;
    min-height: 1em;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
  }
  .event-container[data-id="new"]{
    /* Counteracts some other filtering logic that hides the new event container */
    display: block !important;
  }

  .event-container[data-id="new"] event-date{
    background: black !important;
  }

  .event-container:not(.edit-mode)[data-user-status="liked"],
  .event-container:not(.edit-mode)[data-user-status="hosting"],
  .event-container:not(.edit-mode)[data-user-status="purchased_standalone"] {
    background-color:#f5f5dc;
  }
  .event-container.past-event {
    background-color: #f0f0f0;
    opacity: 0.65;
  }
  .event-container.edit-mode.past-event{
    opacity: 1;
  }
  /* Remove past-event styling after conference has ended */
  .conference-ended .past-day,
  .conference-ended .event-container.past-event{
    /* background-color: inherit; */
    opacity: 1;
  }
  .conference-ended day-header.highlight.past-day a {
    opacity: 1;
  }
  calendar-header {
    width: 100%;
    overflow-x: scroll;
    scrollbar-width: none;
    overflow-y: hidden;
    border-collapse: collapse;
    background-color: white;
    position: sticky;
    top: var(--header-height);
    left: 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    z-index: 3; /* Ensure it appears above other elements */
    gap: 6px;
    justify-content: space-between;
    box-shadow: -13px 0px 0px 0px var(--background), 13px 0px 0px 0px var(--background);
    padding: 0 3px;
    overscroll-behavior: none;
  }
  calendar-header .past-day {
    color: #aaa;
  }
  day-header a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 9px;
    border-radius: 7px;
    border: var(--standard-border);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
  }
  day-name{
    font-size: 0.875rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
  }
  day-header.highlight day-name{
    color: #bbb;
  }
  day-header.highlight day-date{
    color: white;
  }
  day-date{
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05px;
    color: #555;
  }
  day-header.highlight a {
    background-color: black;
    color: white;
  }
  day-header.highlight.past-day a {
    opacity: 0.6;
  }
  day-header.highlight.current-day a {
    /* color: white; */
  }
  day-header.current-day a day-name, day-header.current-day a day-date{
    /* color: var(--today); */
  }
  calendar-header .current-day + day-header.highlight day-name, calendar-header .current-day + day-header.highlight day-date{
    /* color: var(--tomorrow); */
  }
  calendar-header .current-day + day-header.highlight a {
    /* color: white; */
  }
  section event-top{
    display: flex;
    justify-content: space-between;
    position:relative;
  }
  event-top details{
    width: 100%;
  }
  event-top details summary{
    width:fit-content;
  }
  .event-description {
    display: block;
    cursor: pointer;
    text-align:left;
  }
  event-expanded {
    display:block;
    margin-top: 0.5rem;
    text-align:left;
  }
  event-capacity-private{
    display:none;
  }
  /* Modal shows capacity in edit mode */
  .event-modal-content.edit-mode event-capacity-private{
    display: flex;
  }
  event-comments-button, event-capacity-public{
    flex-shrink: 0;
  }
  location-title-container {
    display:flex;
    align-items: center;
  }
  event-capacity-public, event-comments-button, .event-container location-title-container{
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 7px;
    border: 1.5px solid #000;
    background: #fff;
  }
  event-capacity-public img, event-comments-button img, location-title-container img{
    width:22px;
  }
  .event-container location-title-container{
    margin-left: auto;
  }
  event-info-badges{
    display: flex;
    align-items: center;
    gap: 7px;
  }
  count-loading-span{
    font-size: 10px;
  }
  .maplibregl-map{
    font: unset !important;
  }
  .event-container.edit-mode{
    position: relative;
  }
  delete-event-button, save-event-button{
    display: none;
  }
  save-event-button{
    right: 13px;
  }
  save-event-button:after{
    content: 'SAVE';
    font-size: 0.5rem;
    color: green;
    font-weight: bold;
  }
  .event-container.edit-mode edit-button{
    display: none;
  }
  
  dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
  }
  
  /* Remove popover-specific styles */
  button[popovertarget="add-event-popover"] {
    cursor: pointer;
    margin-left: auto;
  }
  .user button[popovertarget="add-event-popover"]{
    display:none;
  } 
  
  /* Update button attributes */
  .sheriff button[onclick*="addEvent"] {
    display: inherit;
    min-width: 24px;
    max-height: 24px;
  }
  .flip-clock-container {
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    margin-top:10px;
    margin-bottom:-30px;
    font-family: 'Arial', sans-serif;
  }

  .flip-clock-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .flip-card {
    background: #333;
    border-radius: 4px;
    width: 24px;
    height: 30px;
    position: relative;
    perspective: 1000px;
  }

  .flip-card.flip {
    animation: flip-complete 0.3s ease-out;
    transform-origin: center;
  }
  .label {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight:bold;
  }

  search-container {
    display: flex;
  }

  .input-container {
    flex: 1;
  }

  .input-container input {
    width: 100%;
    padding: 7px;
    border: 1px solid var(--primary);
  }
  .view-toggle.active img {
    filter: brightness(0) invert(1);
  }

/* Interest Selection Styles */
.interests {
  margin: 20px 0;
}

.interests-flex {
  display: flex;
  flex-wrap: wrap;
}

/* Remove duplicate interest styles and consolidate into one section */
interest-option {
  background: var(--background);
  padding: 0;
  border: 2px dashed black;
  cursor: pointer;
  transition: all 0.2s ease;
  width: fit-content;
  position: relative;
  font-weight:bold;
  margin: 5px auto;
}

interest-option label {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  cursor: pointer;
  text-align: left;
  position: relative;
  font-weight: 400 !important;
}
interest-option input[type="checkbox"] {
  display: none;
}

interest-option input[type="checkbox"]:checked + label {
  font-weight: bold;
  color: white;
}

interest-option:has(input[type="checkbox"]:checked) {
  background: black;
  border-color: black;
}

interest-option input[type="checkbox"]:checked + label:before {
  color: white;
}

/* Profile-specific interest visibility rules */
profile-page:not(.edit-mode) interest-option {
  display: none;
}

profile-page:not(.edit-mode) interest-option:has(input[type="checkbox"]:checked) {
  display: block;
}
profile-page section.interests {
    background: none;
    border:none;
    box-shadow:none;
    padding:0;
    margin: 1em;
}

profile-page.edit-mode interest-option {
  display: block;
}
.filter-section.interests-section,
.filter-section.profile-type-section{
    flex-wrap: wrap;
    gap:0 3px;
}
.filter-section.profile-type-section .text{
  cursor: pointer;
  width: fit-content;
  position: relative;
  font-size: 12px;
  font-weight: bold;
  margin: 5px;
  transform: rotate(-5deg);
}
/* When shown, use flex instead of block */
.filter-section.interests-section[style*="display: block"],
.filter-section.profile-type-section[style*="display: block"] {
  display: flex !important;
}

/* Interest Selection Styles */
.interests-select {
  display: none;
  position: absolute;
  background: white;
  z-index: 2;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  width: fit-content;
  min-width: 150px;
  right:0;
}
/* Hide the select element but keep it functional */
.interests-select select {
  opacity: 0;
  position: absolute;
}

/* Style the native select dropdown options (works in most modern browsers) */
.interests-select select option {
  opacity: 1;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
}

/* Update interest-option styles */
event-interests {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

event-interests interest-option {
  cursor: default;
}

/* Hide empty interest options completely */
interest-option:has(label:empty) {
  display: none !important;
}
comment-info {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
/* Latest comment preview - only shown on hub discussions */
latest-comment-preview {
    display: none; /* Hidden by default */
}
latest-comment-preview comment-pretext{
  text-align: left;
  font-size: 0.75em;
  margin-bottom: 0.5rem;
  display: block;
  font-style: italic;
}
#discussions .event-container.edit-mode latest-comment-preview {
  display: none;
}
#discussions latest-comment-preview {
    display: block;
}
#discussions latest-comment-preview .ajax-link,
#event-modal-add-comment-section .ajax-link {
  pointer-events: none;
}
section#announcements,
section#discussions,
section#sponsors{
  padding: 0;
  border: 0;
  box-shadow: none;
  background: inherit;
}

latest-comment-preview comment-info {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    width: 100%;
}

latest-comment-preview .profile-info {
    flex: 1;
    margin-left: 10px;
    text-align: left;
}

comment-metadata span,
comment-metadata comment-date{
  display:block;
}

name-cont{
  display: flex;
}
comment-date {
  font-size: 0.8em;
  font-style: italic;
  color: #666;
}
comment-post{
  display:block;
  width:100%;
  position:relative;
  margin: 8px 0;
  padding: 10px;
  background: #fff;
  border: var(--standard-border);
  border-radius: 8px;
  box-shadow: 0 2px 0 #111;
}
#add-comment-popover:has(comment-post.edit-mode){
    border:none;
    background:transparent;
}

latest-comment-preview comment-content {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}
comment-content {
    display:block;
    text-align: left;
    padding:8px;
    max-width: 600px;
    margin: 0 auto;
    color: black;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

hub-header {
    display: flex;
    background-color: black;
    color: white;
    z-index: 1;
    padding: 0.5rem 13px;
    margin-bottom: 1rem;
    font-weight: 500;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

hub-header h3 {
  margin: 0;
  color: white;
  display: flex;
  place-items:center;
}
hub-header img {
  margin-right: 0.5rem;
}   

add-announcement-button {
  cursor: pointer;
  margin-left: auto;
  display: none;  /* Hide by default */
}

.sheriff-only{
  display: none;
}

.sheriff .sheriff-only{
  display: block;
}

/* Show button only for sheriff role */
.sheriff add-announcement-button {
  display: flex;
  align-items: center;
}

add-announcement-button svg {
  width: 24px;
  height: 24px;
}

comment-content pre {
  width: 100%;
  text-align: left;
  word-wrap:anywhere;
}

/* Common profile type styles */
.processedLink{
  display: inline-flex;
  font-weight: 400;
  border: var(--standard-border);
  border-radius: 4px;
  padding: 0px 2px;
  background: black;
  color: white;
  align-items:center;
}
.processedLink:after{
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6' /%3E%3Cpath d='M11 13l9 -9' /%3E%3Cpath d='M15 4h5v5' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
#add-comment-popover comment-content pre:empty:before {
  content: 'Make an Announcement';
  color: rgba(0,0,0,0.5);
}
comment-content pre:empty:before{
  content: 'Share your thoughts...';
}
#add-event-comment-section comment-date{
  display:none;
}
comment-content pre[contenteditable="true"] {
  cursor: text;
  display: inline-block;
}

post-comment-button {
  display: none;
}

push-button, .push-button {
  cursor: pointer;
  user-select: none;
  border: var(--standard-border);
}
comment-post blockquote {
  display: flex;
  gap: 5px;
}
comment-post.edit-mode post-comment-button {
  display: flex;
  flex-shrink: 0;
}
.edit-mode character-count {
    display: block;
}
character-count {
  display: none;
  font-size: 0.875em;
  text-align: right;
  margin-top: 4px;
  padding-right: 8px;
}

/* Privacy checkbox styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 4px;
  appearance: none;
  width: 20px;
  height: 20px;
  padding:9px;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
  background: black;
  border-color: white;
}

.checkbox-group input[type="checkbox"]:checked:after {
  content: '✓';
  position: absolute;
  color: white;
  left: 4px;
  top: 0px;
}

.checkbox-group label {
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}
event-image img{
  max-width: 100%;
  object-fit: cover;
  max-height:300px; 
  margin:0 auto;
  display:block;
}
/* Sponsor Card Styles - matching mockup */
sponsor-card {
  background: #fff;
  border: var(--standard-border);
  border-radius: 8px;
  box-shadow: 0 2px 0 #111;
  margin: 6px 0;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.1s;
  display: block;
}
sponsor-card sponsor-message {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


sponsor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

sponsor-logo {
  flex-shrink: 0;
}

sponsor-logo .partner-logo {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: contain;
  border: var(--standard-border);
  background: white;
  padding: 4px;
}

sponsor-info {
  flex: 1;
}
event-preview-image img {
  max-height: 300px;
  margin: 0.5rem auto;
  display: block;
}
event-preview-image[data-has-image="false"] {
  display: none;
}
sponsor-name {
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
  font-size: 1.17em;
}

sponsor-tier, sponsor-tier-select select {
  appearance: none;
  display: inline-block;
  font-size: 0.75em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid #000;
  text-transform: uppercase;
  background: white;
  margin-top: 5px;
}

sponsor-message {
  color: #333;
  display: block;
}

sponsor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

sponsor-people {
  display: flex;
  align-items: center;
  gap: 4px;
}

sponsor-people .profile-image {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  border: var(--standard-border);
  background-color: var(--profile-color);
}

sponsor-card .partner-website {
  padding: 4px 10px;
  border-radius: 7px;
  border: var(--standard-border);
  background: #fff;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
}

/* Hide partner-website on cards when no URL is set */
sponsor-card[data-website-url=""] .partner-website,
sponsor-card:not([data-website-url]) .partner-website {
  display: none;
}


hub-page .event-container:not(.edit-mode) event-date,
hub-page .event-container:not(.edit-mode) ticket-access-container,
hub-page .event-container:not(.edit-mode) event-info,
hub-page .event-container:not(.edit-mode) event-host,
hub-page .event-container:not(.edit-mode) event-image,
hub-page .event-container:not(.edit-mode) event-expanded,
hub-page .event-container event-preview-image,
hub-page .event-container event-info-badges event-capacity-public {
  display:none;
}
hub-page event-info-badges {
  display: none;
}
.no-select {
  -webkit-user-select: none;  /* Safari */
  -ms-user-select: none;      /* IE 10+ and Edge */
  user-select: none;          /* Standard syntax */
}
#main-content:has(map-page:not([style*="display: none"])) {
  padding: 0;
  max-width: 100vw;
}
#mapTiler {
  height: calc(100vh - var(--header-height) - var(--footer-height));
}
/* --- Claim Flow Styles --- */

/* Hide standard fields and toggle button initially in claim flow */
.claim-flow-active #standardFields {
  display: none;
}

/* Show claim section initially in claim flow */
.claim-section {
  display: none; /* Hidden by default */
  margin-bottom: 20px;
}
.claim-flow-active .claim-section {
  display: block; 
}
#claimList .profile-card{
  cursor:pointer;
 }
#claimList .profile-card:hover{
  background: rgba(255,255,255,0.7);
  color: white;
}

.claim-register-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Adjust wrapper display if needed, default is block */
.form-group-wrapper {
  display: block; /* Or flex, grid */
}

/* Style for the selected profile card */
.claim-profile-item.selected {
  background: rgba(255,255,255,0.7);
  outline: 4px solid black;
  border:0;
  box-shadow: 3px 5px 7px #000;
}

/* If you want to style the selected card */
.claim-profile-item.selected {
  outline: 3px solid black;
  background: white;
}
ticket-access{
  display:flex;
  width:100%;
}
selector-wrapper label {
  margin-bottom: 0.5rem;
}
ticket-access select {
  cursor: default !important;
  text-align:left !important;
}
section.event-container[data-event-class="community"]{
  /* // nice super light purple #f1f4ff */
  background-color: var(--community-light);
  margin-top: 1.5rem;
}
section.event-container[data-event-class="community"] community-event-badge{
  display:block;
}
section.event-container event-hosts-container {
  pointer-events: none;
}
community-event-badge{
  display:none;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f2e8ff;
  border: 1.5px solid #5b2a86;
  color: #5b2a86;
  font-weight: 600;
  position: absolute;
  top: -14px;
  text-transform: uppercase;
  width: fit-content;
}
.event-container[data-access-restricted="true"] {
  border: 2px solid var(--restricted-strong);
  box-shadow: inset 0 0 0 1000px rgba(245, 158, 11, 0.05);
  margin-top: 1.5rem !important;
  background-color: var(--restricted-light);
}
#checkout-modal{
  flex-direction:column;
}

#checkout-modal modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.event-container[data-capacity="false"] event-capacity-limit{
  display:none;
}
event-capacity-limit:after{
  content: attr(data-capacity);
  font-size:0.85em;
}
standalone-price-container app-currency{
  margin-left:auto;
  margin-right: 5px;
}
purchase-button {
  display: none;
  width: fit-content;
  margin-left:auto;
}
/* Prevent body scrolling when dialogs are open */
body:has(dialog[open]) {
  overflow: hidden;
}

/* Show purchase button ONLY if purchase is required */
/* Uses the data-requires-purchase attribute set by PHP/JS */
.event-container[data-requires-purchase="true"] purchase-button {
  display: block; 
}

/* Always hide in edit mode regardless of other conditions */
.event-container.edit-mode purchase-button,
.event-container.past-event purchase-button {
  display: none !important;
}

/* Approach 2: Use a wrapper with a pseudo-element */
.time-input-wrapper {
  position: relative;
}

.time-input-wrapper input[type="time"]:disabled {
  opacity: 0;
}

.time-input-wrapper::after {
  content: attr(data-value);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: black;
  pointer-events: none;
}

/* Approach 3: Use readonly instead of disabled */
input[type="time"][readonly] {
  background-color: #f8f8f8;
  color: black;
}
.pac-container, #venue-autocomplete-details {
  /* background: antiquewhite !important; */
}

/* Highlight event-date if today */
.event-container[data-is-today="true"] event-date {
  /* background: var(--today); */
}
.event-container[data-is-today="true"] event-date-formatted:before {
  content: 'Today - ';
}

/* Highlight event-date if tomorrow */
.event-container[data-is-tomorrow="true"] event-date {
  /* background: var(--tomorrow); */
}
.event-container[data-is-tomorrow="true"] event-date-formatted:before {
  content: 'Tomorrow - ';
}
#transaction-table{
  width:100%;
}
#transaction-table td, #transaction-table th{
  font-size:12px;
  padding: 0.1rem 0.35rem;
  border-bottom: 1px solid black;
}
#transaction-table th{
  text-align:center;
  background: black;
  color: white;
  padding: 0.25rem;
}
#transaction-table th.col-description{
  text-align:left;
}
transaction-ledger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:0.5rem;
}
.transaction-total{
  width: fit-content;
  white-space: nowrap;
}
#transaction-table .transaction-manual_ticket_update{
  /* background-color : #ffff00; */
}
#transaction-table .transaction-payment{
  background-color : #d9f0dd;
}
#transaction-table .transaction-manual_credit_add{
  background-color : orange;
}
#transaction-table .transaction-manual_credit_reduce{
  background-color : orangered;
}
#transaction-table .transaction-credit_usage{
  background-color : navajowhite;
}
wallet-credits-section[data-credits-balance="0.00"]{
  display:none;
}

wallet-credits-section {
  text-align: center;
  margin-bottom: 16px;
}
wallet-credits-balance {
  font-size: 2em;
  font-weight: bold;
  text-align:center;
  display:block;
  margin-bottom: 1rem;
}
#wallet-ticket-section {
  text-align: center;
  margin-bottom: 1em;
}
wallet-ticket-info {
  font-size: 2em;
  font-weight: bold;
}

/* Styles for the QR Code Section */
wallet-qr-section {
  display: block; /* Custom elements are inline by default */
  text-align: center;
  margin: 18px 0; /* Adjust spacing */
}

#wallet-qr-img {
    width: 276px;
    height: 276px;
    display: block; /* Make it a block element */
    margin: 0 auto; /* Center the image */
}

wallet-qr-section div {
    font-size: 0.9em;
    color: #888;
    margin-top: 8px;
}

/* Styles for Purchased Events Section */
wallet-events-section {
  margin-bottom: 18px;
  max-width: calc(100% - 26px);
  display: block;
  margin: 0 auto;
}
wallet-events-section .event-container edit-button,
wallet-events-section .event-container event-top {
  display: none;
}
wallet-events-section .event-container event-info{
  margin:0;
}
wallet-events-section .event-container {
  padding:0;
}

wallet-events-section h5 {
  text-align: center;
  margin-bottom: 12px;
}

/* Make event containers in wallet more compact */
wallet-events-list event-container {
  margin-bottom: 10px;
}
.checkbox[data-checked="true"]{
  background-color: lightgreen;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.checkbox[data-checked="false"]{
  background-color: lightcoral;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.checkbox{
  border: var(--standard-border);
  padding: 2px 8px !important;
  border-radius: 8px;
  color:black;
}
.checkbox .checkbox-checked, .checkbox .checkbox-unchecked{
  display:none;
}
.checkbox[data-checked="true"] .checkbox-checked{
  display:block;
}
.checkbox[data-checked="false"] .checkbox-unchecked{
  display:block;
}

.profile-attached {
  display: flex;
  align-items: center;
  margin: 6px 0;
  padding-left: 8px;
  gap: 8px;
  position: relative;
  width: fit-content;
}
.profile-attached .text{
  font-weight: 550;
}
comment-info > .ajax-link {
  display: flex;
  align-items: center;
  /* padding-left: 8px; */
  gap: 8px;
  position: relative;
  width: fit-content;
}
 .profile-attached:before {
  content: "";
  position: absolute;
  left: 0;
  width: 4.5px;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: var(--profile-color, #808080);
}

.profile-attached img.profile-image {
  width: 45px;
  height: 45px;
  min-width: 45px;
  max-height: 45px;
}
.event-container .profile-attached img.profile-image{
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-height: 36px;
}
event-host{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom:0.35rem;
}

profile-item.profile-attached{
  width: 100%;
  cursor: pointer;
}
comment-info name-cont h2{
  font-size: 1em;
  font-weight: 550;
  color: #111;
}

/* Make view-toggle buttons work like checkboxes when they have data-checked */
.view-toggle-container .view-toggle[data-checked="true"] {
  background: #000;
  color: #fff;
}
