/* =========================================
ANNE ARUNDEL HOMELESS RESOURCE GUIDE (FINAL CLEAN)
========================================= */
.resourceActions {
  display: flex;
  flex-direction: column;   /* mobile default */
  gap: 10px;
  margin-top: 12px;
}

.resourceActions a {
  width: 100%;
  text-align: center;
}
@media (min-width: 600px) {
  .resourceActions {
    flex-direction: row;
  }

  .resourceActions a {
    flex: 1;
    width: auto;   /* 🔑 removes full width on desktop */
  }
}

/* ===== MODAL BUTTON IMPROVEMENTS ===== */

.modalBox .btnPrimary {
  color: #fff; /* fix gold contrast */
}

/* ===== INTERNAL TEXT LINKS (SEO + UX BOOST) ===== */
.categoryIntro a {
  color: #2d1e78; /* your primary color */
  text-decoration: underline;
  font-weight: 600;
}

.categoryIntro a:hover {
  color: #9E7C0C; /* your gold accent */
}
@media (max-width: 480px) {
  .rowActions a,
  .rowActions button {
    flex: 1 1 100%;   /* stack vertically on real phones */
  }
}

.homeQuickActions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}


footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.85;
}


.homeQuickActions a {
  max-width: 220px;
  width: 100%;
  text-align: center;
}


.startSteps {
  display: grid;
  gap: 16px;
}

.stepCard {
  background: white;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.accessTypeBadge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 10px;
}

/* COLORS */
.accessTypeBadge.walk_in { background:#d4edda; color:#155724; }
.accessTypeBadge.mixed { background:#fff3cd; color:#856404; }
.accessTypeBadge.appointment,
.accessTypeBadge.referral { background:#ffe5b4; color:#8a4b00; }
.accessTypeBadge.hotline { background:#d1ecf1; color:#0c5460; }
.accessTypeBadge.mobile { background:#e2d9f3; color:#4b2e83; }





.modalBox .btnSecondary {
  background: var(--purple);
  color: #fff;
}

/* spacing + layout */
.modalBox .modalActions,
.modalBox .rowActions {
  gap: 14px;
  margin-top: 20px;
}

.rowActions {
  margin-top: auto;
  display: flex;
flex-wrap: wrap;
gap: 8px;
}

.rowActions a,
.rowActions button {
  width: 100%;
}



/* make Close less dominant */
.modalBox button:last-child {
  opacity: 0.85;
}

/* subtle hover polish */
.modalBox a,
.modalBox button {
  transition: 0.15s ease;
}

.modalBox a:hover,
.modalBox button:hover {
  transform: translateY(-1px);
}

/* ===== POPUP CONTENT ENHANCEMENTS ===== */

.popupContent h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.popupSection {
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.popupSection strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* scrollable modal content */
.modalBox {
  max-height: 80vh;
  overflow-y: auto;
}

/* better spacing for long text */
.popupSection p {
  margin: 0;
}

/* optional link styling */
.popupSection a {
  color: var(--purple);
  font-weight: 600;
}


:root {
--purple: #241773;
--purple-dark: #1a104d;
--gold: #9E7C0C;
--gold-light: #C8A83C;
--bg: #eef1f7;
--card: #ffffff;
}

.filterBar {
  display:flex;
  gap:10px;
  margin:15px 0;
}

.filterBtn {
  padding:6px 12px;
  border-radius:20px;
  background:#eee;
  text-decoration:none;
  color:#333;
  font-size:14px;
}

.filterBtn.active {
  background:#333;
  color:#fff;
}

/* LOCATION BADGE */
.locationBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  color: #fff;
  z-index: 3;
}

/* ✅ PURPLE */
.locationBadge.city {
  background: var(--purple);
}

/* ✅ GOLD */
.locationBadge.county {
  background: var(--gold);
  color:#000;
}

/* ===== BIG ACTION BUTTONS ===== */

.bigAction {
flex: 1;
padding: 16px;
font-size: 1rem;
border-radius: 14px;
}

.stickyActions {
height: 70px;
}

/* ===== SEARCH PAGE ===== */

.searchForm {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

.searchForm input {
flex: 1;
padding: 12px;
border-radius: 10px;
border: 1px solid #ddd;
font-size: 0.95rem;
}

.sectionSub {
margin-bottom: 10px;
}

/* ===== MAP EMBED ===== */

iframe {
margin-top: 8px;
}

/* ===== STICKY ACTION BAR ===== */

.stickyActions {
display: none;
}

@media(max-width: 768px){

.stickyActions {
display: flex;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-top: 1px solid #ddd;
z-index: 9999;
height: 70px;
}

.stickyActions a {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0;
font-weight: 700;
text-decoration: none;
height: 70px;
}

.stickyActions a:first-child {
background: var(--purple);
color: #fff;
}

.stickyActions a:last-child {
background: var(--gold);
color: #000;
}

.pageWrap {
padding-bottom: 80px;
}

}

.categoryIntro {
max-width: 700px;
margin: 8px auto 20px;
text-align: center;
font-size: 0.95rem;
color: #555;
line-height: 1.5;
}

/* ===== RELATED RESOURCES ===== */

.relatedSection {
margin-top: 30px;
}

.relatedSection h3 {
margin-bottom: 10px;
}

.relatedGrid {
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 10px;
}

.relatedCard {
background: #fff;
padding: 12px;
border-radius: 10px;
font-size: 0.9rem;
text-decoration: none;
color: #111;
box-shadow: 0 6px 14px rgba(0,0,0,.05);
transition: 0.15s;
}

.relatedCard:hover {
transform: translateY(-2px);
}

@media(max-width:600px){
.relatedGrid {
grid-template-columns: 1fr;
}
}

.pagination {
display: flex;
justify-content: center;
margin: 30px 0;
gap: 6px;
flex-wrap: wrap;
}

.pageBtn {
padding: 8px 12px;
background: #eee;
border-radius: 8px;
text-decoration: none;
color: #111;
font-weight: 600;
}

.pageBtn.active {
background: var(--purple);
color: #fff;
}

.contactNote {
margin-top: 20px;
font-size: 0.9rem;
color: #555;
text-align: center;
}

/* ===== CONTACT PAGE ===== */

.contactCard {
max-width: 600px;
margin: 0 auto;
padding: 30px 24px;
}

.contactIntro {
font-size: 0.95rem;
color: #555;
margin-bottom: 20px;
line-height: 1.5;
}

/* FORM */

.contactForm {
display: flex;
flex-direction: column;
gap: 14px;
}

.formRow {
display: flex;
flex-direction: column;
}

.formRow label {
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 4px;
color: #444;
}

.formRow input,
.formRow textarea {
padding: 12px;
border-radius: 10px;
border: 1px solid #ddd;
font-size: 0.95rem;
background: #fff;
transition: border 0.2s, box-shadow 0.2s;
}

.formRow input:focus,
.formRow textarea:focus {
outline: none;
border-color: var(--purple);
box-shadow: 0 0 0 2px rgba(36,23,115,0.1);
}

/* ===== RESOURCE CARD ===== */
/* =========================================
ANNE ARUNDEL HOMELESS RESOURCE GUIDE (FINAL CLEAN)
========================================= */

:root {
--purple: #241773;
--purple-dark: #1a104d;
--gold: #9E7C0C;
--gold-light: #C8A83C;
--bg: #eef1f7;
--card: #ffffff;
}





.filterBar {
  display:flex;
  gap:10px;
  margin:15px 0;
}

.filterBtn {
  padding:6px 12px;
  border-radius:20px;
  background:#eee;
  text-decoration:none;
  color:#333;
  font-size:14px;
}

.filterBtn.active {
  background:#333;
  color:#fff;
}

/* LOCATION BADGE */
.locationBadge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  color: #fff;
  z-index: 3;

}

.locationBadge.city {
  background:#007bff;
}

.locationBadge.county {
  background:#28a745;
}




/* ===== BIG ACTION BUTTONS ===== */

.bigAction {
flex: 1;
padding: 16px;
font-size: 1rem;
border-radius: 14px;
}

.stickyActions {
height: 70px;
}

/* ===== SEARCH PAGE ===== */

.searchForm {
display: flex;
gap: 10px;
margin-bottom: 20px;
}

.searchForm input {
flex: 1;
padding: 12px;
border-radius: 10px;
border: 1px solid #ddd;
font-size: 0.95rem;
}

.sectionSub {
margin-bottom: 10px;
}

/* ===== MAP EMBED ===== */

iframe {
margin-top: 8px;
}

/* ===== STICKY ACTION BAR ===== */

.stickyActions {
display: none;
}

@media(max-width: 768px){

.stickyActions {
display: flex;
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #fff;
border-top: 1px solid #ddd;
z-index: 9999;
height: 70px;
}

.stickyActions a {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 0;
font-weight: 700;
text-decoration: none;
height: 70px;
}

.stickyActions a:first-child {
background: var(--purple);
color: #fff;
}

.stickyActions a:last-child {
background: var(--gold);
color: #000;
}

/* prevent content being hidden behind bar */
.pageWrap {
padding-bottom: 80px;
}

}

.categoryIntro {
max-width: 700px;
margin: 8px auto 20px;
text-align: center;
font-size: 0.95rem;
color: #555;
line-height: 1.5;
}

/* ===== RELATED RESOURCES ===== */

.relatedSection {
margin-top: 30px;
}

.relatedSection h3 {
margin-bottom: 10px;
}

.relatedGrid {
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 10px;
}

.relatedCard {
background: #fff;
padding: 12px;
border-radius: 10px;
font-size: 0.9rem;
text-decoration: none;
color: #111;
box-shadow: 0 6px 14px rgba(0,0,0,.05);
transition: 0.15s;
}

.relatedCard:hover {
transform: translateY(-2px);
}

/* mobile */
@media(max-width:600px){
.relatedGrid {
grid-template-columns: 1fr;
}
}

.pagination {
display: flex;
justify-content: center;
margin: 30px 0;
gap: 6px;
flex-wrap: wrap;
}

.pageBtn {
padding: 8px 12px;
background: #eee;
border-radius: 8px;
text-decoration: none;
color: #111;
font-weight: 600;
}

.pageBtn.active {
background: var(--purple);
color: #fff;
}

.contactNote {
margin-top: 20px;
font-size: 0.9rem;
color: #555;
text-align: center;
}

/* ===== CONTACT PAGE ===== */

.contactCard {
max-width: 600px;
margin: 0 auto;
padding: 30px 24px;
}

.contactIntro {
font-size: 0.95rem;
color: #555;
margin-bottom: 20px;
line-height: 1.5;
}

/* FORM */

.contactForm {
display: flex;
flex-direction: column;
gap: 14px;
}

.formRow {
display: flex;
flex-direction: column;
}

.formRow label {
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 4px;
color: #444;
}

.formRow input,
.formRow textarea {
padding: 12px;
border-radius: 10px;
border: 1px solid #ddd;
font-size: 0.95rem;
background: #fff;
transition: border 0.2s, box-shadow 0.2s;
}

.formRow input:focus,
.formRow textarea:focus {
outline: none;
border-color: var(--purple);
box-shadow: 0 0 0 2px rgba(36,23,115,0.1);
}

/* CAPTCHA */

.captchaRow {
background: #f7f7f9;
padding: 12px;
border-radius: 10px;
}

/* BUTTON */

.btnPrimary.fullWidth {
width: 100%;
margin-top: 10px;
}

/* SUCCESS / ERROR */

.successMsg {
background: #d4f4dd;
color: #1c7c3a;
padding: 10px;
border-radius: 10px;
margin-bottom: 12px;
font-weight: 600;
}

.errorMsg {
background: #f8d7da;
color: #842029;
padding: 10px;
border-radius: 10px;
margin-bottom: 12px;
font-weight: 600;
}

/* Remove default bullets */
.checkList {
list-style: none;
padding: 0;
margin: 16px auto;
max-width: 500px;
text-align: left;
}

.checkList li {
position: relative;
padding-left: 28px;
margin-bottom: 10px;
font-size: 0.95rem;
line-height: 1.4;
}

.checkList li::before {
content: "✔";
position: absolute;
left: 0;
top: 2px;
color: #9E7C0C;
font-weight: bold;
}

/* ===== DONATION BOX (APP STYLE) ===== */

.donateBox {
margin: 40px auto;
padding: 30px 20px 24px;
max-width: 600px;
background: #f3ecd2;
border: 2px dashed #e2c66d;
border-radius: 20px;
text-align: center;
position: relative;
box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.donateIcon {
width: 60px;
height: 60px;
background: var(--gold);
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
margin: -50px auto 10px;
box-shadow: 0 8px 18px rgba(0,0,0,.15);
}

.donateTitle {
font-size: 1.2rem;
font-weight: 800;
margin-bottom: 10px;
color: #1f2937;
}

.donateText {
font-size: 0.95rem;
color: #4b5563;
line-height: 1.5;
margin-bottom: 18px;
}

.donateCTA {
background: var(--purple);
color: #fff;
padding: 14px;
border-radius: 12px;
font-weight: 700;
font-size: 1rem;
}

.donateCTA span {
color: #ffd700;
}

/* ===== BASE ===== */

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

html, body {
margin: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto;
background: var(--bg);
color: #111;
}

/* ===== PAGE WRAP ===== */

.pageWrap {
max-width: 1200px;
margin: 0 auto;
padding: 32px 20px;
}

/* ===== HOTLINE BAR ===== */

.hotlineBar {
background: #000;
color: #fff;
text-align: center;
padding: 8px;
font-weight: 600;
}

.hotlineBar a {
color: #ffd700;
text-decoration: none;
}

/* ===== HEADER ===== */

.siteHeader {
background: var(--purple);
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 18px;
position: relative;
}

.logoArea a {
color: #fff !important;
text-decoration: none;
}

/* ===== NAV BASE ===== */

.mainNav {
display: flex;
}

/* ===== DESKTOP NAV ===== */

@media (min-width: 769px){

.mainNav {
display: flex !important;
position: static;
flex-direction: row;
background: transparent;
padding: 0;
}

.mainNav a {
margin-left: 20px;
padding: 0;
background: none;
font-size: 0.95rem;
color: #fff;
}

.hamburger-menu {
display: none !important;
}

}

/* ===== MOBILE NAV ===== */

@media (max-width: 768px){

.hamburger-menu {
display: flex;
font-size: 24px;
cursor: pointer;
color: #fff;
}

.mainNav {
display: none;
position: absolute;
top: 64px;
left: 10px;
right: 10px;
flex-direction: column;
background: #111;
padding: 12px;
border-radius: 14px;
gap: 8px;
z-index: 999;
}

.mainNav.open {
display: flex;
}

.mainNav a {
padding: 14px;
border-radius: 10px;
background: rgba(255,255,255,0.05);
margin: 0;
font-size: 1rem;
color: #fff;
}

}

/* ===== HERO ===== */

.heroBubble {
background: var(--card);
padding: 40px;
border-radius: 20px;
text-align: center;
margin-bottom: 30px;
}

/* ===== CATEGORY TILES ===== */

.categoryGrid {
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 16px;
margin-bottom: 24px;
}

@media(min-width:900px){
.categoryGrid {
grid-template-columns: repeat(4,1fr);
}
}

.categoryTile {
background: white;
padding: 18px;
border-radius: 16px;
text-align: center;
text-decoration: none;
color: inherit;
box-shadow: 0 8px 22px rgba(0,0,0,.07);
transition: 0.15s;
}

.categoryTile:hover {
transform: translateY(-2px);
}

.emojiIcon {
font-size: 32px;
margin-bottom: 6px;
}

/* ===== RESOURCE GRID ===== */

.featuredGrid {
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 16px;
}

@media(min-width:900px){
.featuredGrid {
grid-template-columns: repeat(4,1fr);
}
}

/* ===== RESOURCE CARD ===== */

.resourceCard {
background: white;
padding: 16px;
border-radius: 18px;
border-left: 5px solid var(--purple);
display: flex;
flex-direction: column;
box-shadow: 0 10px 26px rgba(0,0,0,.07);
transition: 0.15s;
  position: relative;

}

.resourceCard:hover {
transform: translateY(-3px);
}

.badge {
background: #eee;
font-size: 0.7rem;
padding: 4px 10px;
border-radius: 20px;
margin-bottom: 8px;
}

.rowTitle {
font-weight: 700;
margin-bottom: 6px;
}

.rowDesc {
font-size: 0.9rem;
color: #555;
margin-bottom: 8px;
min-height: 42px;
}

.rowTags {
margin-bottom: 8px;
}

.tag {
display: inline-block;
background: #f1f1f1;
padding: 4px 8px;
margin: 2px;
border-radius: 6px;
font-size: 0.75rem;
}

.rowAddr,
.rowPhone,
.rowHours {
font-size: 0.85rem;
margin-bottom: 4px;
}

.rowActions {
margin-top: auto;
display: flex;
gap: 8px;
padding-top: 10px;
border-top: 1px solid #eee;
}

.btnPrimary,
.btnSecondary {
flex: 1;
padding: 10px;
border-radius: 10px;
text-align: center;
font-weight: 600;
}

.btnPrimary {
background: var(--gold);
color: #fff;
}

.modalActions .btnSecondary:last-child {
  opacity: 0.85;
}

.btnPrimary:hover {
background: var(--gold-light);
}

.btnSecondary {
background: var(--purple);
color: #fff;
}

/* ===== MODAL ===== */

.modal {
position: fixed;
inset: 0;
background: rgba(0,0,0,.55);
display: none;
align-items: flex-end;
justify-content: center;
z-index: 9999;
}

.modal.open {
display: flex;
}

.modalBox {
background: white;
width: 100%;
max-width: 420px;
border-radius: 20px 20px 0 0;
padding: 20px;
}

/* ===== FOOTER ===== */

.siteFooter {
background: #111;
color: white;
text-align: center;
padding: 20px;
}

/* ===== NAV FIX ===== */

.mainNav {
display: none;
}

.hamburger {
display: none;
}

@media (min-width: 769px){
.mainNav {
display: flex !important;
}
.hamburger {
display: none !important;
}
}

@media (max-width: 768px){
.hamburger {
display: block !important;
}
.mainNav.open {
display: flex !important;
}
}

/* ===== STATUS ===== */

.status {
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 6px;
}

.status.open {
color: #1c7c3a;
}

.status.closed {
color: #b02a2a;
}

/* ===== CARD ALIGNMENT ===== */

.resourceCard {
display: flex;
flex-direction: column;
height: 100%;
}

.rowDesc {
min-height: 42px;
}

.rowTags {
min-height: 32px;
}

.infoBlock {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #eee;
min-height: 80px;
}

@media(max-width:768px){
  .hasStickyActions .siteFooter {
    padding-bottom: 90px;
  }
}
.infoRow {
min-height: 18px;
}

.status {
margin-top: 8px;
}

.rowActions {
margin-top: auto;
}

/* ===== LINKS ===== */

a {
text-decoration: none;
}

.rowTitle a {
text-decoration: underline;
}

/* ===== MOBILE FIXES ===== */

@media (max-width: 600px){
.featuredGrid {
grid-template-columns: 1fr;
}
}

@media (max-width: 480px){
.hotlineBar {
font-size: 0.85rem;
}
}

.resourceCard {
background: white;
padding: 16px;
border-radius: 18px;
border-left: 5px solid var(--purple);
display: flex;
flex-direction: column;
box-shadow: 0 10px 26px rgba(0,0,0,.07);
transition: 0.15s;
position: relative;
}

.resourceCard:hover {
transform: translateY(-3px);
}

/* ✅ FIXED WIDTH */
.badge {
background: #eee;
font-size: 0.7rem;
padding: 4px 10px;
border-radius: 20px;
margin-bottom: 8px;
display: inline-block;
width: fit-content;
}