.button .icon,
.icon-button .icon,
.mobile-menu .icon { pointer-events: none; }

.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}

.nav-icon .icon { width: 19px; height: 19px; }
.stat-icon .icon { width: 21px; height: 21px; }
.shield .icon { width: 21px; height: 21px; }
.record-copy + .verified { justify-self: center; }
.data-table strong { display: block; }
.data-table strong small { display: block; margin-top: 2px; color: #8b8492; font-size: 9px; font-weight: 500; }
.data-table select { min-height: 35px; padding: 0 10px; border: 1px solid #ddd8e2; border-radius: 8px; background: #fff; color: #514b57; }
.panel-head > input { width: min(280px, 45%); min-height: 40px; padding: 0 12px; border: 1px solid #ded9e5; border-radius: 9px; outline: 0; }
.panel-head > input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px #8b5cf620; }
.records .actions { justify-content: flex-end; }
.action { cursor: pointer; }
.action:not(.success):not(.warning):not(.danger) { color: #5b21b6; background: #eee8ff; }
.event-card .event-art { cursor: pointer; }
.venue-map-link { width: fit-content; color: inherit; text-decoration: none; }
.venue-map-link:hover { color: #6d28d9; text-decoration: underline; text-underline-offset: 3px; }
.venue-map-link .icon { flex: 0 0 auto; }
.event-card:nth-child(3n+1) .event-art { background-image: linear-gradient(145deg, #22133570, #6d28d990), url("images/venue-rooftop.jpg"); }
.event-card:nth-child(3n+2) .event-art { background-image: linear-gradient(145deg, #111b3870, #2458a890), url("images/venue-city.jpg"); }
.event-card:nth-child(3n) .event-art { background-image: linear-gradient(145deg, #2e162e60, #a61c6990), url("images/venue-people.jpg"); }
.modal-image { background-image: linear-gradient(#20122b40, #20122b70), url("images/venue-rooftop.jpg"); }
.venue-public-gallery { padding: 10px 14px; display: flex; gap: 8px; overflow-x: auto; border-bottom: 1px solid #ebe7ef; background: #fff; }
.venue-public-gallery button { width: 76px; height: 53px; flex: 0 0 76px; overflow: hidden; padding: 2px; border: 2px solid transparent; border-radius: 9px; background: #eeeaf1; }
.venue-public-gallery button.active { border-color: #6d28d9; }
.venue-public-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 5px; }
.rsvp { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.owner-cta .button { flex: 0 0 auto; }
.modal-content > p { color: #696270; line-height: 1.7; }
.form-grid textarea { resize: vertical; }
.bars .bar i { box-shadow: 0 4px 12px #6d28d930; }
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) and (min-width: 761px) {
  .dashboard-shell { grid-template-columns: 225px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .dashboard-main { padding-inline: 24px; }
  .records article { grid-template-columns: 42px minmax(140px, 1fr) auto; }
  .records article .actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 760px) {
  body:has(.dashboard-shell) { overflow-x: hidden; }
  .dashboard-main { min-width: 0; overflow-x: hidden; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 55; border: 0; background: #18101f80; }
  .sidebar { z-index: 60; }
  .dash-header { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .dash-header > div:nth-child(2) { min-width: 0; }
  .dash-header h1 { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .head-actions { gap: 6px; }
  .head-actions .button { width: 42px; padding: 0; }
  .panel-head { min-height: 0; align-items: flex-start; flex-wrap: wrap; }
  .panel-head > input { width: 100%; }
  .panel-head > .actions { width: 100%; }
  .panel-head > .actions .button { flex: 1; min-width: 135px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 720px; }
  .records article { padding-inline: 14px; }
  .records article .actions { justify-content: flex-start; }
  .owner-cta { padding: 25px; }
  .owner-cta .button { width: 100%; }
  .event-foot { align-items: center; }
  .modal-backdrop { padding: 10px; }
  .modal { width: 100%; max-height: 94vh; border-radius: 16px; }
  .modal-content { padding: 19px; }
  .form-grid { padding: 18px; }
}

@media (max-width: 430px) {
  .topbar { gap: 12px; }
  .brand { font-size: 20px; }
  .brand-mark { width: 35px; height: 35px; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 14px; }
  .event-body h3 { font-size: 18px; }
  .event-foot { gap: 5px; }
  .event-foot > span { max-width: 48%; }
  .rsvp { max-width: 52%; }
  .stat b { font-size: 20px; }
}

.auth-modal { width: min(520px, 95vw); }
.auth-tabs {
  display: flex; gap: 6px; margin: 12px 0 18px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  border: 0; background: transparent; padding: 10px 14px;
  font-weight: 700; color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent;
}
.auth-tabs button.active { color: var(--purple); border-color: var(--purple); }
.auth-modal .form-grid { padding: 0; }
.auth-modal .terms-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px; margin-top: 10px;
}
.photo-item {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4/3;
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #ffffffdd; color: #b42318; cursor: pointer;
  display: grid; place-items: center;
}
.photo-cover {
  position: absolute; bottom: 6px; left: 6px;
  background: var(--purple); color: #fff;
  padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 800;
}
.single-cover-preview > span { display: block; font-weight: 700; margin-bottom: 6px; }

.menus-section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.menu-upload-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.menu-upload-row:last-child { border-bottom: 0; }
.menu-upload-info b { display: block; font-size: 13px; }
.menu-upload-info small { color: var(--muted); font-size: 11px; }

.service-check-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-top: 6px;
}
.service-check {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 9px; font-weight: 600; font-size: 12px;
  cursor: pointer;
}
.service-check input { width: auto; }


/* Map preview */
.map-preview {
  margin-top: 12px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f1f6;
}

.map-preview iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.map-preview-loading,
.map-preview-error {
  padding: 22px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.map-preview-error {
  color: #b42318;
  background: #fee4e2;
}

.location-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.location-status {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.location-open-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.location-open-link:hover {
  text-decoration: underline;
}

.location-open-link .icon {
  width: 13px;
  height: 13px;
}


.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}


