:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --primary: #214d8d;
  --primary-dark: #163968;
  --accent: #ebf2ff;
  --mint: #e9f9f2;
  --peach: #fff0e5;
  --gold: #fff4bf;
  --text: #1d2633;
  --muted: #5d6a7d;
  --border: #dfe7f5;
  --shadow: 0 18px 40px rgba(28, 46, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef5ff 100%);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-footer {
  margin-top: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer-links a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer-install {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
}

.install-communise-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 30px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--accent);
  color: var(--primary-dark);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.install-communise-button[hidden] {
  display: none;
}

.install-communise-button:hover {
  border-color: var(--primary);
  background: #dce8ff;
}

.install-communise-button:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 3px;
}

.install-device-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.install-device {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.48rem;
  font-weight: 600;
}

.install-platform-logo {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.install-communise-label {
  text-align: left;
}

.hero-install-row {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}

.hero-install-row .install-communise-button {
  min-width: min(100%, 260px);
  min-height: 28px;
}

.install-guide {
  width: min(390px, calc(100% - 2rem));
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.install-guide::backdrop {
  background: rgba(20, 30, 42, 0.45);
}

.install-guide h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.install-guide p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.install-guide-actions {
  display: flex;
  justify-content: end;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 56px;
  width: 320px;
  max-width: 320px;
  overflow: hidden;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand img {
  width: 280px;
  height: 280px;
  flex: 0 0 280px;
  object-fit: contain;
  border-radius: 9px;
  margin: -112px 0;
}

nav {
  display: flex;
  gap: 1.2rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.nav > .site-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav .about-nav-link {
  color: #15803d;
}

.hero {
  margin: 12px 0 14px;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, #edf5ff 0%, #fff8eb 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.2;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.76rem;
}

.subtitle {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-events-description {
  margin: 0.5rem 0 0;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-tagline {
  margin: 0.6rem 0 0;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.hero-search {
  flex: 0 1 285px;
  width: 285px;
  max-width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0.15rem 0.25rem 0.15rem 0.55rem;
}

.search-form.hero-search input {
  flex: 1 1 auto;
  height: 100%;
  min-width: 0;
  width: 0;
}

.hero-search .secondary-btn {
  flex: 0 0 auto;
}

.clear-search {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.clear-search:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 9px;
  background: #d97706;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.hero-cta:hover {
  background: #b45309;
}

.hero-event-cta {
  border: 1px solid #12694f;
  background: #167a5c;
}

.hero-event-cta:hover {
  background: #105a45;
}

.hero-event-action {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.primary-btn,
.secondary-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #4777c8 100%);
  color: #fff;
  border: none;
}

.secondary-link {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.primary-btn:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.directory-header {
  margin-top: 8px;
  margin-bottom: 22px;
}

.directory-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.directory-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  box-shadow: var(--shadow);
}

.search-form input {
  border: none;
  outline: none;
  min-width: min(100%, 300px);
  font: inherit;
}

.secondary-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.search-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
}

.summary-clear {
  margin-left: 0.65rem;
  color: var(--primary);
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  white-space: nowrap;
}

.summary-clear:hover {
  color: var(--primary-dark);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.community-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.filter-row-label {
  margin: 0 0 0.45rem;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.listing-mode-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.75rem;
}

.tab {
  display: inline-block;
  text-decoration: none;
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding-bottom: 50px;
}

#listings,
#events-list {
  padding-bottom: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 40px;
}

.listing-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin: -28px 0 0.75rem;
  text-align: center;
}

.pagination-status {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.listing-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.listing-top-pagination {
  margin-bottom: 0.75rem;
}

.listing-bottom-pagination {
  margin: 0.75rem 0 40px;
}

.listing-pagination-row .listing-count,
.listing-pagination-row .pagination {
  margin: 0;
}

.listing-pagination-row .listing-count {
  text-align: left;
}

@media (max-width: 420px) {
  .listing-pagination-row {
    flex-wrap: wrap;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.card-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(28, 46, 79, 0.12);
}

.card-clickable:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.24rem 0.44rem;
  font-size: 0.56rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.listing-location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.listing-location-tags .tag {
  margin: 0;
}

.featured-badge {
  display: inline-block;
  margin: 0 0 3px 0.2rem;
  padding: 0.24rem 0.44rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.56rem;
  font-weight: 700;
}

.listing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 50px;
  margin-bottom: 3px;
}

.listing-thumb {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.listing-logo-fallback {
  display: grid;
  place-items: center;
  background: var(--listing-fallback-color);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.listing-card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.card p {
  margin: 0.28rem 0;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.8rem;
}

.card ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  line-height: 1.45;
  font-size: 0.69rem;
  color: var(--text);
}

.card a {
  color: var(--primary);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
}

.hours-editor {
  display: grid;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  min-width: 0;
}

.hours-editor legend {
  padding: 0 0.3rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.hours-editor small {
  color: var(--muted);
}

.hours-row {
  display: grid;
  grid-template-columns: 75px minmax(75px, 1fr) auto minmax(75px, 1fr) minmax(75px, 1fr) auto minmax(75px, 1fr);
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.listing-form-card .hours-editor {
  gap: 0.25rem;
  padding: 0.6rem;
}

.listing-form-card .hours-helper {
  display: block;
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.listing-form-card .hours-row {
  grid-template-columns: 68px 95px auto 95px 95px auto 95px;
  gap: 0.15rem;
  font-size: 0.69rem;
}

.listing-form-card .hours-row input[type="time"] {
  width: 95px;
  padding: 0.45rem 0.5rem;
  font-size: 0.69rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.listing-form-card .hours-row input[type="time"]::-webkit-calendar-picker-indicator {
  width: 1rem;
  height: 1rem;
  opacity: 1;
  cursor: pointer;
}

.listing-form-card .hours-row span + input[type="time"] {
  margin-left: -0.15rem;
}

.hours-display {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.hours-display-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
  font-size: 0.69rem;
  line-height: 1.35;
}

.event-detail-dates .hours-display-row {
  justify-content: flex-start;
  gap: 0.4rem;
}

.details-cta {
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.contact-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.usage-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-page {
  padding: 40px 0 60px;
}

.form-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.form-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.form-card p {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 24px;
}

.listing-form-card {
  font-size: 0.69rem;
}

.listing-form-card h1 {
  font-size: clamp(1.12rem, 1.6vw, 1.6rem);
}

.listing-form-card > p {
  margin-bottom: 0.72rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.listing-form-card .field-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.66rem;
}

.field-marker {
  display: inline-block;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.35;
  vertical-align: middle;
}

.field-marker.required {
  color: var(--primary-dark);
  background: var(--accent);
}

.field-marker.optional {
  color: var(--muted);
  background: #f0f2f5;
}

.listing-form-card label {
  font-size: 0.69rem;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.field-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-icon use {
  pointer-events: none;
}

.field-icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.field-icon-dot {
  fill: currentColor;
  stroke: none;
}

#field-icon-facebook,
#field-icon-whatsapp {
  fill: currentColor;
  stroke: none;
}

.listing-form-card small {
  font-size: 0.66rem;
  line-height: 1.35;
}

.listing-form-card .category-guide-title {
  font-size: 0.69rem;
}

.listing-form-card .category-guide-grid strong {
  font-size: 0.66rem;
}

.listing-form-card .category-guide-grid span {
  font-size: 0.69rem;
}

.about-card h1 {
  font-size: 1rem;
}

.about-card h2 {
  margin: 1rem 0 0.35rem;
  color: var(--primary-dark);
  font-size: 1rem;
}

.about-card h3 {
  margin: 0 0 0.35rem;
  color: var(--primary-dark);
  font-size: 0.75rem;
}

.about-card p {
  margin-bottom: 0.8rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.about-contact a {
  color: var(--primary);
  font-weight: 700;
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.about-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.about-explore:hover {
  background: var(--primary-dark);
}

.form-review-note {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--primary);
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.82rem;
  line-height: 1.35;
}

form {
  display: grid;
  gap: 1rem;
}

.form-card form {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  min-width: 0;
}

.category-guide {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbf8;
}

.category-guide-title {
  margin: 0 0 0.8rem;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.category-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.category-guide-grid div {
  display: grid;
  gap: 0.2rem;
}

.category-guide-grid strong {
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.category-guide-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.listing-form-card textarea[name="description"] {
  min-height: 8rem;
  overflow-y: hidden;
  resize: none;
}

select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
}

.search-form.hero-search input {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.hero-search .secondary-btn {
  height: 24px;
  min-height: 24px;
  padding: 0 0.6rem;
  font-size: 0.72rem;
}

.error-banner {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: #fff4f4;
  border: 1px solid #f0c2c2;
  color: #9c2d2d;
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 40px 0 80px;
  color: var(--muted);
  font-size: 1.05rem;
}

.detail-page {
  padding: 13px 0 16px;
}

.detail-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 13px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.detail-header h1 {
  margin: 0 0 5px;
  font-size: clamp(1.12rem, 1.6vw, 1.6rem);
}

.detail-header {
  display: block;
}

.detail-heading {
  min-width: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.detail-meta .eyebrow {
  margin: 0;
}

.detail-category {
  flex-shrink: 0;
  margin: 0;
}

.detail-logo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1rem;
}

.detail-logo.listing-logo-fallback {
  display: grid;
  place-items: center;
  background: var(--listing-fallback-color);
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.detail-media {
  position: static;
  width: min(100%, 180px);
  justify-self: center;
  margin: 0 auto;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.detail-description {
  margin: 0 0 0.72rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.36rem;
  margin: 0.72rem 0;
}

.detail-item,
.detail-callout {
  min-width: 0;
}

.detail-item {
  border-bottom: 1px solid var(--border);
  padding: 0.28rem 0;
}

.detail-item strong,
.detail-callout strong {
  display: block;
  margin-bottom: 0.16rem;
  color: var(--primary-dark);
  font-size: 0.66rem;
}

.detail-item p,
.detail-callout p {
  margin: 0;
  line-height: 1.35;
  font-size: 0.69rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.detail-description,
.detail-callout .detail-additional-information {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.detail-additional-information {
  white-space: pre-wrap;
}

.detail-callout {
  display: inline-block;
  width: calc(50% - 0.75rem);
  margin-top: 0.48rem;
  margin-right: 0.28rem;
  vertical-align: top;
  background: #fff;
}

.detail-callout.accent {
  background: var(--gold);
}

.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.72rem;
}

.detail-actions > .primary-btn {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 0.8rem;
}

.listing-management-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-left: auto;
}

.edit-listing-button,
.delete-listing-button {
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.44rem 0.6rem;
  text-decoration: none;
}

.edit-listing-button {
  background: #d97706;
}

.edit-listing-button:hover {
  background: #b45309;
  color: #fff;
}

.delete-listing-button {
  background: #c2413b;
}

.delete-listing-button:hover {
  background: #a8322d;
}

.review-action {
  display: inline-block;
  border-radius: 7px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.45rem;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

.review-action-add {
  background: var(--primary);
}

.review-action-edit {
  background: #d97706;
}

.review-action-delete {
  background: #c2413b;
}

.review-note {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.69rem;
}

.change-summary {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border: 2px solid #d97706;
  border-radius: 10px;
  background: #fff7ed;
}

.change-summary h2 {
  margin: 0 0 0.6rem;
  color: #92400e;
  font-size: 0.8rem;
}

.change-row {
  padding: 0.45rem 0;
  border-top: 1px solid #fed7aa;
}

.change-row:first-of-type {
  border-top: 0;
}

.change-row strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.69rem;
}

.change-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.2rem;
  font-size: 0.69rem;
  overflow-wrap: anywhere;
}

.change-values span:first-child {
  color: var(--muted);
}

.change-values span:last-child {
  color: #92400e;
  font-weight: 700;
}

.admin-card {
  max-width: 900px;
  font-size: 0.69rem;
}

.events-page {
  padding: 22px 0 44px;
}

.event-add-action {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.events-heading {
  margin-bottom: 1rem;
}

.events-heading h1 {
  margin: 0;
  font-size: 1.08rem;
}

.events-search {
  margin: 0 auto 0.85rem;
}

.hero .events-search {
  margin: 0;
}

.events-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.event-card-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.event-card .event-card-when {
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  white-space: nowrap;
}

.event-card .event-card-actions {
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin-top: auto;
  overflow-x: auto;
}

.event-card .details-cta {
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}

.event-card-actions > .usage-badge {
  margin-left: auto;
}

.event-card-actions .usage-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.3rem;
  font-size: 0.62rem;
  white-space: nowrap;
}

.event-card-actions .event-attendance {
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
  gap: 0.2rem;
  margin: 0;
}

.event-attendance {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.event-attendance form {
  margin: 0;
}

.event-attendance-choice {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.3rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.62rem;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(28, 46, 79, 0.12);
  cursor: pointer;
}

.event-attendance-going {
  border: 1px solid #88c7a6;
  background: var(--mint);
  color: #16573b;
}

.event-attendance-not_going {
  border: 1px solid #e8b38d;
  background: var(--peach);
  color: #833f19;
}

.event-attendance-going:hover {
  background: #d9f2e6;
}

.event-attendance-not_going:hover {
  background: #ffe3cf;
}

.event-attendance-going[aria-pressed="true"] {
  border-color: #15803d;
  box-shadow: inset 0 0 0 1px #15803d;
}

.event-attendance-not_going[aria-pressed="true"] {
  border-color: #b45309;
  box-shadow: inset 0 0 0 1px #b45309;
}

.event-attendance-choice:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.event-card .listing-card-title h3,
.event-card > p,
.event-review-item h2,
.event-review-item h3 {
  overflow-wrap: anywhere;
}

.event-detail-dates {
  grid-column: 1 / -1;
}

.event-review-item p {
  margin: 0 0 0.5rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-notice {
  padding: 0.7rem;
  border-left: 3px solid #15803d;
  background: var(--mint);
}

.event-form form {
  display: grid;
  gap: 0.8rem;
}

.event-schedule-group {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.event-schedule-heading {
  margin: 0;
  color: var(--text);
  font-size: 0.69rem;
  font-weight: 700;
}

.event-schedule {
  min-width: 0;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.event-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.event-date-row label,
.event-date-row input {
  min-width: 0;
}

.event-date-row label {
  margin: 0;
}

.event-remove-date {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 0.25rem;
  min-height: 36px;
  min-width: 64px;
  border: 0;
  background: transparent;
  color: #a3342e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.event-schedule-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.72rem;
}

.event-add-date {
  padding: 0.35rem 0.6rem;
  min-height: 36px;
  font-size: 0.68rem;
}

.event-review-item h2,
.event-review-item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.admin-card > .admin-section > h1,
.admin-card > .admin-section > h2 {
  font-size: clamp(1.12rem, 1.6vw, 1.6rem);
}

.admin-card > .admin-section > p {
  margin-bottom: 0.72rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-search {
  width: 100%;
  max-width: 520px;
  margin: 1rem 0 1.25rem;
  box-sizing: border-box;
}

.admin-search .admin-search-input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  padding: 0.45rem 0.2rem;
  box-sizing: border-box;
}

.admin-search .secondary-btn {
  flex: 0 0 auto;
}

.admin-home-nav {
  flex: 1;
  justify-content: center;
}

.admin-search .secondary-btn,
.admin-actions button {
  font-size: 0.69rem;
}

.admin-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.small-btn {
  padding: 0.7rem 1rem;
}

.danger-btn {
  border: none;
  background: #d14f4f;
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 680px) {
  .event-date-row {
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .event-remove-date {
    grid-column: 1 / -1;
  }

  .hero {
    margin: 8px 0 12px;
    padding: 10px;
    border-radius: 10px;
  }

  .hero h1 {
    white-space: normal;
    font-size: 0.9rem;
  }

  .hero-events-description {
    margin-top: 0.45rem;
    font-size: 0.9rem;
  }

  .hero .subtitle {
    font-size: 0.75rem;
  }

  .hero-tagline {
    margin-top: 0.5rem;
    font-size: 0.86rem;
  }

  .hero-actions {
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
    width: 100%;
  }

  .hero-search {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: min(100%, 260px);
    max-width: 260px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0.1rem 0.2rem 0.1rem 0.6rem;
    border-radius: 6px;
    box-shadow: none;
  }

  .search-form.hero-search input {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .hero-search .secondary-btn {
    height: 28px;
    min-height: 28px;
    padding: 0 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
  }

  .hero-cta {
    height: 30px;
    min-height: 30px;
    padding: 0 0.7rem;
    font-size: 0.76rem;
  }

  .hero-cta {
    width: auto;
    min-width: 0;
  }

  .hero-install-row {
    width: 100%;
  }

  .hero-install-row > .install-communise-button {
    min-height: 36px;
  }

  .site-footer-install > .install-communise-button {
    width: 100%;
    max-width: 280px;
  }

  .about-actions .about-explore {
    width: auto;
    min-width: 190px;
    height: 30px;
    min-height: 30px;
    padding: 0 0.7rem;
    font-size: 0.76rem;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-media {
    position: static;
    width: 112px;
    justify-self: center;
    padding: 0.4rem;
  }

  .admin-item {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .admin-media {
    order: -1;
    justify-self: start;
    width: min(100%, 220px);
  }

  .detail-content > .detail-callout {
    display: block;
    width: auto;
    margin-right: 0;
  }

  .form-card .hours-editor {
    overflow-x: auto;
  }

  .listing-form-card .hours-row {
    grid-template-columns: 68px minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 0.2rem;
    row-gap: 0.35rem;
  }

  .listing-form-card .hours-row > strong {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .listing-form-card .hours-row input[type="time"] {
    width: 100%;
    max-width: 95px;
    margin-left: 0;
  }

  .listing-form-card .hours-row input[type="time"]:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .listing-form-card .hours-row > span:nth-of-type(2) {
    grid-column: 3;
    grid-row: 2;
  }

  .listing-form-card .hours-row input[type="time"]:nth-of-type(4) {
    grid-column: 4;
    grid-row: 2;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    width: 100%;
    align-items: stretch;
  }

  .admin-actions > form,
  .admin-actions > a {
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .admin-actions button,
  .admin-actions > a {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0.55rem 0.65rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .event-review-item > form button {
    width: 100%;
    min-height: 40px;
  }

  .admin-search {
    width: 100%;
    max-width: none;
    gap: 0.35rem;
    padding: 0.25rem 0.35rem 0.25rem 0.55rem;
  }

  .admin-search .secondary-btn {
    padding: 0.45rem 0.65rem;
  }

  .nav > .admin-home-nav {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    width: 100%;
  }

  .change-summary {
    padding: 0.6rem;
  }

  .change-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }

  .admin-card.form-card {
    padding: 0.85rem;
    border-radius: 12px;
  }

  .detail-actions,
  .listing-management-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-actions > .primary-btn {
    align-self: flex-start;
    justify-content: center;
    text-align: center;
    width: auto;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
    min-height: 72px;
  }

  .brand {
    width: 220px;
    max-width: 220px;
    height: 56px;
  }

  .brand img {
    width: 180px;
    height: 180px;
    flex-basis: 180px;
    margin: -62px 0;
  }

  .nav > nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .nav > nav a {
    text-align: center;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .nav > .site-navigation {
    display: flex;
    width: 100%;
  }

  .site-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    text-align: center;
  }

  nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .event-date-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .event-date-row label:first-child,
  .event-remove-date {
    grid-column: 1 / -1;
  }

  .event-date-row input[type="time"] {
    padding: 0.6rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  .event-form.form-card {
    padding: 0.75rem;
  }

  .event-schedule {
    padding: 0.4rem;
  }

}
