/* --- 1. THEME & GLOBAL STYLES --- */
:root {
    --primary-color: #002d5a; --accent-color: #52c5ea; --donate-color: #0073e6;
    --background-color: #ffffff; --light-gray: #e9eaec; --text-color: #333333;
    --white: #ffffff; --shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
body {
    font-family: 'Lato', sans-serif; line-height: 1.6; margin: 0;
    background-color: #f7f9fc; color: var(--text-color);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- 2. HEADER STYLES --- */
.site-header { background-color: var(--primary-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.header-logo img { height: 50px; }
.main-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 30px; }
.main-navigation a { color: var(--white); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; }
.header-actions { display: flex; gap: 15px; }
.cta-button { padding: 10px 20px; border-radius: 5px; color: var(--white); text-decoration: none; font-weight: 700; border: none; }
.donate-button { background-color: var(--donate-color); }
.appointment-button { background-color: var(--accent-color); color: var(--primary-color); }
.mobile-menu-toggle { display: none; background: none; border: 1px solid var(--white); color: var(--white); font-size: 1.5rem; border-radius: 5px; cursor: pointer; }

/* --- 3. CHURCH FINDER STYLES --- */
.page-header { text-align: center; padding: 40px 0 20px 0; }
.page-header h1 { color: var(--primary-color); font-weight: 900; }
.page-header p { font-size: 1.1rem; color: #555; }
.filter-controls { background-color: var(--white); padding: 25px; border-radius: 8px; border: 1px solid var(--light-gray); margin-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: end; }
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-weight: 700; margin-bottom: 8px; color: var(--primary-color); }
.filter-group input[type="text"], .filter-group select { 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    background-color: var(--white);
}
.filter-buttons button { padding: 12px 15px; border: 1px solid #ccc; background-color: var(--white); color: #444; cursor: pointer; border-radius: 5px; font-size: 0.9rem; font-weight: 700; }
.filter-buttons button.active { background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
#results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
#no-results { text-align: center; padding: 50px; font-size: 1.2rem; color: #777; }
.church-card { background-color: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--light-gray); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.church-card img { width: 100%; height: 200px; object-fit: cover; }
.card-content h3 { margin: 0 0 10px 0; color: var(--primary-color); font-weight: 900; }
.services-tags { margin-bottom: 20px; }
.tag { display: inline-block; background-color: #eaf8fd; color: #005a87; padding: 4px 10px; border-radius: 15px; font-size: 0.8rem; font-weight: 700; margin: 2px; }
.card-footer { margin-top: auto; }
.website-button { display: block; background-color: var(--accent-color); color: var(--primary-color); text-align: center; padding: 12px; text-decoration: none; border-radius: 5px; font-weight: 700; }
.address-container { position: relative; cursor: help; }
.address-container .address { margin-bottom: 15px; color: #555; }
.map-preview { display: none; position: absolute; bottom: 100%; left: 0; width: 300px; height: 200px; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); background-color: #f0f0f0; z-index: 10; margin-bottom: 10px; overflow: hidden; }
.address-container:hover .map-preview { display: block; }
.map-preview iframe { width: 100%; height: 100%; border: 0; }

/* --- 4. FOOTER STYLES --- */
.site-footer { background-color: var(--primary-color); color: var(--white); padding: 60px 0 20px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-column .logo { max-width: 200px; margin-bottom: 15px; }
.footer-column h4 { font-size: 1rem; text-transform: uppercase; color: var(--accent-color); }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 20px; text-align: center; font-size: 0.9rem; }
.social-icons a { color: var(--white); font-size: 1.5rem; margin: 0 10px; }

/* --- 5. RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .main-navigation, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }

/* Hero map below the page title */
#hero-map {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 40px;
}