/* style.css */
/* Base reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #f7fafc;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
nav {
  background: #2b6cb0;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
nav ul li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  transition: color 0.2s;
}
nav ul li a:hover, nav ul li a:focus {
  color: #bee3f8;
}

/* Main layout */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.filters label {
  margin-right: 0.5rem;
  font-weight: bold;
}
.filters select {
  padding: 0.5rem 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 1rem;
}

/* Listings grid */
.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Hide listings until JS is loaded to prevent flicker */
#listings { visibility: hidden; }
body.js-loaded #listings { visibility: visible; }

/* Additional Tailwind-like classes */
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: bold; }
.font-extrabold { font-weight: 800; }
.text-blue-700 { color: #2b6cb0; }
.text-blue-800 { color: #2c5282; }
.text-blue-400 { color: #63b3ed; }
.text-gray-700 { color: #4a5568; }
.text-blue-200 { color: #bee3f8; }
.text-blue-100 { color: #ebf8ff; }
.underline { text-decoration: underline; }
.w-full { width: 100%; }
.h-64 { height: 16rem; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.h-16 { height: 4rem; }
.w-16 { width: 4rem; }
.rounded-xl { border-radius: 0.75rem; }
.object-cover { object-fit: cover; }
.border { border: 1px solid #e2e8f0; }
.mr-2 { margin-right: 0.5rem; }

/* Community card */
.community-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Fix for hero and footer sections */
header {
  background: #ebf8ff;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  border-radius: 0 0 1rem 1rem;
}

footer {
  background: #2b6cb0;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  border-radius: 1rem 1rem 0 0;
}

footer a {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  transition: color 0.2s;
  text-decoration: underline;
  margin: 0 0.5rem;
}

footer a:hover, footer a:focus {
  color: #bee3f8;
}

/* Footer specific classes */
.footer-link {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  margin: 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  transition: color 0.2s;
}

.footer-link:hover, .footer-link:focus {
  color: #bee3f8;
}

.footer-divider {
  color: #fff;
  margin: 0 0.5rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #ebf8ff;
  margin-top: 0.5rem;
}

.footer-brand {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.footer-brand:hover, .footer-brand:focus {
  color: #bee3f8;
}

/* Fix for list styles */
ul.list-disc {
  list-style-type: disc;
  padding-left: 2rem;
}

/* Fix for links */
a.text-blue-700 {
  color: #2b6cb0;
}

/* Fix for iframe */
iframe {
  border: 0;
  border-radius: 0.5rem;
  width: 100%;
}
.community-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.community-card .card-content {
  padding: 1rem;
  flex-grow: 1;
}
.community-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c5282;
}
.community-card p {
  margin-bottom: 0.75rem;
  color: #4a5568;
}
.community-card a {
  display: block;
  padding: 0.75rem;
  background: #2b6cb0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-top: 1px solid #2c5282;
}
