/* ============================================
   AVAILABILITY BOARD STYLES
   Food Truck & Venue Matching Board
   ============================================ */

/* --- Hero --- */
.board-hero {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--coastal-blue) 100%);
  color: #fff;
  padding: var(--space-lg) 0 var(--space-md);
}
.board-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.board-hero h1 i {
  opacity: 0.7;
  margin-right: 0.3rem;
}
.board-hero__sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
}
.board-hero .dir-breadcrumbs {
  margin-bottom: 1rem;
}
.board-hero .dir-breadcrumbs a,
.board-hero .dir-breadcrumbs span,
.board-hero .dir-breadcrumbs i {
  color: rgba(255,255,255,0.7);
}

/* --- Tabs --- */
.board-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.5rem;
}
.board-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.board-tab:hover {
  color: var(--text-dark);
  background: var(--sand);
}
.board-tab--active {
  color: var(--coastal-blue);
  border-bottom-color: var(--coastal-blue);
}
.board-tab__count {
  background: #e2e8f0;
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.board-tab--active .board-tab__count {
  background: var(--coastal-blue);
  color: #fff;
}

/* --- Filters --- */
.board-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.board-select, .board-input {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark);
  min-width: 160px;
}
.board-select:focus, .board-input:focus {
  outline: none;
  border-color: var(--coastal-blue);
  box-shadow: 0 0 0 3px rgba(46,125,150,0.1);
}

/* --- Section --- */
.board-section {
  padding: var(--space-md) 0 var(--space-lg);
}

/* --- Card List --- */
.board-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.board-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition);
}
.board-card:hover {
  border-color: var(--coastal-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.board-card__photo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--sand);
}
.board-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--driftwood);
}

.board-card__body {
  flex: 1;
  min-width: 0;
}

.board-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.board-card__title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

.board-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}
.board-card__badge--looking {
  background: #dbeafe;
  color: #1e40af;
}
.board-card__badge--available {
  background: #d1fae5;
  color: #065f46;
}
.board-card__badge--filled {
  background: #fef3c7;
  color: #92400e;
}

.board-card__biz {
  font-size: 0.8rem;
  color: var(--coastal-blue);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.board-card__biz a {
  color: inherit;
  text-decoration: none;
}
.board-card__biz a:hover {
  text-decoration: underline;
}

.board-card__desc {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.board-card__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-light);
}
.board-card__meta i {
  margin-right: 0.2rem;
  opacity: 0.7;
}

/* --- Loading / Empty --- */
.board-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1rem;
}
.board-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}
.board-empty i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}
.board-empty h3 {
  font-family: var(--font-display);
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.board-empty a {
  color: var(--coastal-blue);
}

/* --- Load More --- */
.board-load-more {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.7rem 2rem;
  background: none;
  border: 2px solid var(--coastal-blue);
  border-radius: var(--radius-full);
  color: var(--coastal-blue);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.board-load-more:hover {
  background: var(--coastal-blue);
  color: #fff;
}

/* --- CTA Section --- */
.board-cta {
  background: var(--sand);
  padding: var(--space-md) 0;
}
.board-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.board-cta__text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.board-cta__text p {
  color: var(--text-body);
  font-size: 0.95rem;
}
.board-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--coral);
  color: #fff;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.board-cta__btn:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

/* --- FAQ --- */
.board-faq {
  padding: var(--space-md) 0 var(--space-lg);
}
.board-faq h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}
.board-faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  max-width: 800px;
  margin: 0 auto;
}
.board-faq__item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}
.board-faq__item summary {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.board-faq__item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--text-light);
  transition: transform 0.2s;
}
.board-faq__item[open] summary::after {
  transform: rotate(180deg);
}
.board-faq__item p {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- Modal --- */
.board-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.board-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.board-modal__content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}
.board-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.3rem;
}
.board-modal__close:hover {
  color: var(--text-dark);
}

/* Modal detail content */
.post-detail__type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.post-detail__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.post-detail__biz {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.post-detail__biz-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.post-detail__biz-name {
  font-weight: 600;
  color: var(--coastal-blue);
}
.post-detail__biz-name a {
  color: inherit;
  text-decoration: none;
}
.post-detail__biz-name a:hover {
  text-decoration: underline;
}
.post-detail__biz-town {
  font-size: 0.8rem;
  color: var(--text-light);
}
.post-detail__desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.post-detail__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.post-detail__label {
  font-weight: 600;
  color: var(--text-dark);
}
.post-detail__value {
  color: var(--text-body);
}
.post-detail__contact {
  background: var(--sand);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}
.post-detail__contact a {
  color: var(--coastal-blue);
  font-weight: 600;
  text-decoration: none;
}
.post-detail__contact a:hover {
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .board-tabs {
    flex-direction: column;
    gap: 0;
  }
  .board-tab {
    border-bottom: 1px solid #e2e8f0;
    justify-content: flex-start;
  }
  .board-tab--active {
    border-bottom-color: var(--coastal-blue);
  }
  .board-card {
    flex-direction: column;
  }
  .board-card__photo {
    width: 100%;
    height: 120px;
  }
  .board-filters {
    flex-direction: column;
  }
  .board-select, .board-input {
    min-width: auto;
    width: 100%;
  }
  .board-cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .board-watch-btn {
    width: 100%;
  }
}

/* --- Watch Button --- */
.board-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--coastal-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.board-watch-btn:hover {
  background: var(--midnight);
}
.board-watch-btn i {
  font-size: 0.85rem;
}

/* --- Watch Modal --- */
.board-modal__content--sm {
  max-width: 440px;
}
.board-modal__content--sm h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--midnight);
  margin-bottom: 0.25rem;
}
.board-modal__content--sm h2 i {
  color: var(--coastal-blue);
  margin-right: 0.3rem;
}
.board-modal__desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.board-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}
.board-label__opt {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}
.board-select--full {
  width: 100%;
  min-width: auto;
}
.board-cta__btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 1.2rem;
}

/* --- Watch Message --- */
.board-watch-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2em;
}
.board-watch-msg--ok {
  color: var(--success, #065f46);
}
.board-watch-msg--error {
  color: var(--danger, #b91c1c);
}

/* --- Watch List --- */
#watchList h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  padding-top: 1rem;
}
.watch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-light, #f9fafb);
  margin-bottom: 0.4rem;
}
.watch-item__desc {
  font-size: 0.85rem;
  color: var(--text);
}
.watch-item__desc i {
  color: var(--coastal-blue);
  margin-right: 0.3rem;
}
.watch-item__remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: color 0.2s, background 0.2s;
}
.watch-item__remove:hover {
  color: var(--danger, #b91c1c);
  background: rgba(185, 28, 28, 0.08);
}
