/* ============================================================
   Mahoning Valley Directory — Public stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #c0392b;
  --red-light:  #fdecea;
  --red-dark:   #962d22;
  --navy:       #1a2332;
  --navy-mid:   #253044;
  --navy-text:  #9baabf;
  --white:      #ffffff;
  --gray-bg:    #f5f5f3;
  --gray-light: #eeede9;
  --gray-mid:   #d0cfc9;
  --gray-text:  #6b6b68;
  --text:       #1a1a18;
  --text-soft:  #4a4a47;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  14px;
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Nav ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1100px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none;
}
.nav-logo:hover { text-decoration: none; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-soft); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 60px 24px;
  text-align: center;
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 32px; font-weight: 600; color: var(--white); margin-bottom: 8px; line-height: 1.25; }
.hero p  { font-size: 15px; color: var(--navy-text); margin-bottom: 28px; }

.search-form {
  display: flex; max-width: 620px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.search-form input,
.search-form select {
  padding: 13px 16px; font-size: 14px;
  border: none; outline: none; color: var(--text); background: var(--white);
}
.search-form input  { flex: 1; min-width: 0; }
.search-form select { border-left: 1px solid var(--gray-light); cursor: pointer; }
.search-form button {
  padding: 13px 22px; background: var(--red); color: var(--white);
  font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.search-form button:hover { background: var(--red-dark); }

/* ── Ad banner slots ── */
.ad-slot {
  background: var(--white);
  border: 1.5px dashed var(--gray-mid);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--gray-text); font-size: 13px;
}
.ad-slot.top-banner { height: 90px; margin: 20px auto; max-width: 728px; }
.ad-slot img { display: block; max-width: 100%; border-radius: var(--radius); }
.ad-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  background: #e8f0fe; color: #1a56db;
  padding: 2px 7px; border-radius: 4px;
}

/* ── Section headings ── */
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 22px; font-weight: 600; color: var(--text); }
.section-head p  { font-size: 14px; color: var(--gray-text); margin-top: 2px; }

/* ── Category grid (3×2) ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--gray-mid); text-decoration: none; }
.cat-card i    { font-size: 30px; color: var(--red); display: block; margin-bottom: 10px; }
.cat-card span { font-size: 14px; font-weight: 500; display: block; }
.cat-card small{ font-size: 12px; color: var(--gray-text); margin-top: 3px; display: block; }

/* ── Listing grid (3 cols) ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.listing-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.listing-card-img {
  height: 120px; background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.listing-card-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-card-img i   { font-size: 34px; color: var(--gray-mid); }
.listing-card-body    { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.listing-pill {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: var(--red-light); color: var(--red);
  padding: 2px 8px; border-radius: 4px;
}
.listing-card-body h3 { font-size: 14px; font-weight: 600; margin-top: 2px; }
.listing-card-meta    { font-size: 12px; color: var(--gray-text); display: flex; align-items: center; gap: 5px; }
.listing-card-meta i  { font-size: 13px; }

/* ── Two-column layout (content + sidebar) ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 28px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.ad-slot.sidebar-banner { width: 100%; height: 250px; }
.ad-slot.sidebar-banner-sm { width: 100%; height: 130px; }

/* ── Results page ── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  margin-bottom: 20px;
}
.filter-bar label { font-size: 12px; color: var(--gray-text); display: block; margin-bottom: 4px; }
.filter-bar select,
.filter-bar input {
  padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--gray-mid); border-radius: var(--radius-sm);
  color: var(--text); background: var(--white); outline: none;
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--red); }
.filter-bar button {
  padding: 8px 18px; background: var(--red); color: var(--white);
  border: none; border-radius: var(--radius-sm); font-size: 13px;
  cursor: pointer; font-weight: 500;
}
.result-count { font-size: 13px; color: var(--gray-text); margin-bottom: 14px; }

/* ── Listing detail page ── */
.listing-detail-header {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.listing-detail-photo {
  height: 260px; background: var(--gray-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.listing-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-detail-photo i   { font-size: 60px; color: var(--gray-mid); }
.listing-detail-body { padding: 24px 28px; }
.listing-detail-body h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.listing-detail-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.listing-detail-pill {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: var(--red-light); color: var(--red);
}
.listing-detail-pill.city { background: var(--gray-light); color: var(--text-soft); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 20px;
}
.detail-item { display: flex; align-items: flex-start; gap: 9px; }
.detail-item i { font-size: 16px; color: var(--red); margin-top: 2px; flex-shrink: 0; }
.detail-item span { font-size: 14px; color: var(--text-soft); }
.detail-item a { font-size: 14px; }
.listing-description { font-size: 15px; line-height: 1.7; color: var(--text-soft); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 5px 0; }
.hours-table td:first-child { color: var(--text-soft); width: 110px; }
.hours-table td:last-child  { font-weight: 500; }
.hours-closed { color: var(--gray-text) !important; font-weight: 400 !important; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-light); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: none; }

.card-box {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.card-box h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-light); }

/* ── Blog list ── */
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card {
  background: var(--white); border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s;
}
.article-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.article-card-img {
  height: 160px; background: var(--gray-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img i   { font-size: 40px; color: var(--gray-mid); }
.article-card-body { padding: 16px 18px; }
.article-card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.article-card-body p  { font-size: 13px; color: var(--gray-text); line-height: 1.5; }
.article-meta { font-size: 12px; color: var(--gray-text); margin-top: 10px; }

/* ── Static / article content ── */
.page-content { font-size: 15px; line-height: 1.8; color: var(--text-soft); }
.page-content h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 24px 0 10px; }
.page-content h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.page-content p  { margin-bottom: 14px; }
.page-content ul,
.page-content ol { margin: 0 0 14px 22px; }
.page-content li { margin-bottom: 6px; }
.page-content a  { color: var(--red); }

/* ── Footer ── */
.footer { background: var(--navy); color: var(--navy-text); margin-top: 48px; }
.footer-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 36px 24px; max-width: 1100px; margin: 0 auto;
}
.footer-col h4 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: #e0e6f0; margin-bottom: 12px;
}
.footer-col a {
  display: block; font-size: 13px; color: var(--navy-text);
  text-decoration: none; margin-bottom: 7px;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  background: #111a27; text-align: center;
  padding: 14px 24px; font-size: 12px; color: #4a5f78;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 14px; border: 1px solid var(--gray-mid);
  background: var(--white); color: var(--text); text-decoration: none;
}
.pagination a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination .active { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── Breadcrumb ── */
.breadcrumb { font-size: 13px; color: var(--gray-text); margin-bottom: 16px; display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--gray-text); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb i { font-size: 12px; }

/* ── Misc ── */
.page-header { padding: 32px 0 20px; }
.page-header h1 { font-size: 26px; font-weight: 700; }
.page-header p   { font-size: 15px; color: var(--gray-text); margin-top: 4px; }
.empty-state { text-align: center; padding: 48px 0; color: var(--gray-text); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 12px; }
.section-pad { padding: 36px 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .search-form { flex-direction: column; border-radius: var(--radius); }
  .search-form input, .search-form select, .search-form button { border-radius: 0; border-left: none; border-top: 1px solid var(--gray-light); }
  .search-form input { border-top: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; }
}
@media (max-width: 480px) {
  .cat-grid, .listing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links a:not(:first-child):not(:last-child) { display: none; }
}
