@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700,900");

:root {
  --bg: #dddddd;
  --surface: #ffffff;
  --ink: #585858;
  --muted: rgba(88, 88, 88, 0.68);
  --line: #c9c9c9;
  --brand: #aa4e36;
  --brand-dark: #7f3927;
  --accent: #f2849e;
  --danger: #b42318;
  --radius: 4px;
  --shadow: 0 1.5rem 3rem rgba(88, 88, 88, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-text-size-adjust: none;
}

a {
  color: inherit;
  border-bottom: dotted 1px rgba(88, 88, 88, 0.5);
  text-decoration: none;
  transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

a:hover {
  border-bottom-color: transparent;
  color: #000000;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(221, 221, 221, 0.94);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  border-bottom: 0;
  color: #000000;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  border-bottom: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5em;
  padding: 0 1.35em;
  border: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
  color: #ffffff;
}

.button.secondary:hover {
  background: transparent;
  color: var(--accent);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-inner,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  min-height: 430px;
  display: grid;
  align-content: center;
  padding: 64px 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 78px);
  color: #000000;
  font-weight: 700;
  line-height: 1.1;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.home-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.home-intro {
  padding: 56px 0 36px;
  text-align: center;
}

.home-intro h1 {
  max-width: 940px;
  margin: 0 auto 28px;
  color: #000000;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-intro > img {
  width: min(820px, 100%);
  max-height: 430px;
  margin: 0 auto 28px;
  object-fit: cover;
}

.home-intro p {
  max-width: 820px;
  margin: 16px auto;
  text-align: left;
}

.home-intro .home-highlight {
  color: var(--brand);
}

.recommendation-section {
  padding: 28px 0 64px;
}

.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2,
.page-title h1,
.detail-header h1 {
  margin: 0;
  color: #000000;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.page-title {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.page-title p {
  max-width: 680px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2rem 4rem rgba(88, 88, 88, 0.16);
}

.business-card h3 {
  margin: 0 0 8px;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.business-card h3 a {
  border-bottom: 0;
}

.business-card p {
  margin: 0 0 10px;
}

.business-logo {
  width: 100%;
  height: 128px;
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border-bottom: 0;
  background: #cddfde;
  color: var(--brand-dark);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
}

.business-logo img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}

.business-logo-large {
  width: 128px;
  height: 128px;
  font-size: 48px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px;
  margin-bottom: 22px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3em;
  padding: 0 1em;
  border: 0;
  border-bottom: solid 1px var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border-bottom-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: inset 0 -1px 0 0 var(--accent);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.field-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(144, 144, 144, 0.075);
  color: var(--ink);
}

.check-option input {
  width: 18px;
  min-height: 18px;
}

.form-panel,
.detail-panel {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto 56px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow-x: auto;
}

.admin-panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.admin-panel.is-collapsed > .section-header {
  margin-bottom: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #000000;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-button {
  min-height: 2.5em;
  padding: 0 0.9em;
  font-size: 0.72rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.field-hint {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.event-image-preview-wrap {
  margin-top: 8px;
}

.event-preview-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-muted);
  display: block;
}

.message {
  margin-top: 16px;
  font-weight: 800;
}


.message[data-type="error"] {
  color: var(--danger);
}

.message[data-type="success"] {
  color: var(--brand-dark);
}

.detail-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 24px;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
  align-items: center;
}

.detail-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-grid section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hours-list {
  margin: 0;
}

.map-preview {
  margin: 18px 0 20px;
}

.map-preview iframe {
  width: 100%;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f4f4f4;
}

.map-preview a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.hours-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hours-list div:last-child {
  border-bottom: 0;
}

.hours-list dt {
  font-weight: 800;
}

.hours-list dd {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-login {
  margin-left: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-login:hover,
.footer-login:focus-visible {
  opacity: 1;
}

@media (max-width: 760px) {
  .nav,
  .section-header,
  .nav-links,
  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters,
  .form-grid,
  .admin-layout,
  .detail-grid,
  .detail-header {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 761px) and (max-width: 1100px) {
  .business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .business-grid {
    grid-template-columns: 1fr;
  }

}
[hidden] {
  display: none !important;
}
