/* ===================================================== */
/*                 FILTER BAR LAYOUT                     */
/* ===================================================== */

.filter-bar {
  margin: 1.5rem 0 2rem 0;
}

.filter-row {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-title {
  font-weight: bold;
  margin-right: 10px;
}

.town-select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Horizontal checkboxes with pill styling */
.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 10px;
  border: 2px solid #e33c3c;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-pill input {
  display: none;
}

/* Show checkmark when selected */
.checkbox-pill input:checked + .pill-label::before {
  content: "✓ ";
  font-weight: bold;
}

.checkbox-pill input:checked + .pill-label {
  color: #e33c3c;
  font-weight: bold;
}

.pill-label {
  font-size: 0.9rem;
  color: #333;
}

/* Clear button */
.clear-btn {
  background: transparent;
  border: 2px solid #e33c3c;
  padding: 6px 12px;
  border-radius: 8px;
  color: #e33c3c;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
}

.clear-btn:hover {
  background: #e33c3c;
  color: white;
}

/* ===================================================== */
/*                    LOCATION CARDS                     */
/* ===================================================== */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.location-card {
  background: #fff;
  padding: 1.6rem;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.location-title a {
  text-decoration: none;
  color: #111;
}

.location-title a:hover {
  text-decoration: underline;
}

/* TAG PILLS */
.tag {
  display: inline-block;
  background: #e33c3c;
  color: white;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  margin-right: 6px;
}

.location-tags {
  margin-bottom: 12px;
}

.location-details {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Remove bullet points */
.location-card ul,
.location-card li {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
/* Clear All button – match filter pills */
.clear-btn {
    background: #fff;
    border: 2px solid var(--accent-color, #e74c3c);
    color: var(--accent-color, #e74c3c);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600; /* same as pills */
    text-transform: none; /* remove ALL CAPS */
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 10px; /* keep spacing */
}

.clear-btn:hover {
    background: var(--accent-color, #e74c3c);
    color: #fff;
}
/* ============================
   Fix "Clear All" button
   ============================ */
#clearFilters.clear-btn {
    background: #fff !important;
    border: 2px solid var(--accent-color, #e74c3c) !important;
    color: var(--accent-color, #e74c3c) !important;

    padding: 6px 14px !important;
    border-radius: 6px !important;

    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: none !important;  /* ← remove caps */

    letter-spacing: 0 !important;

    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

#clearFilters.clear-btn:hover {
    background: var(--accent-color, #e74c3c) !important;
    color: #fff !important;
}
/* Footer inside each location card */
.location-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.details-link {
  font-size: 0.95rem;
  color: #c53230; /* your red accent */
  text-decoration: none;
  font-weight: 600;
}

.details-link:hover {
  text-decoration: underline;
}
/* === HOMEPAGE CARD GRID === */
.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* === INDIVIDUAL CARD === */
.home-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px 28px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0,0,0,0.10);
}

/* === CARD LINKS === */
.card-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid #e53935;
  border-radius: 8px;
  text-decoration: none;
  color: #e53935;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.card-link:hover {
  background: #e53935;
  color: white;
}
/* ====== FIX HOMEPAGE CARD GRID (works with both spellings) ====== */

.home-card-grid,
.home-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 24px !important;
    margin: 30px 0 !important;
}

/* Force cards to be block-level inside */
.home-card-grid > *,
.home-cards-grid > * {
    display: block;
}