/* ==========================================================================
   RecTherapyAZ - High-Density Directory & Filter Stylesheet
   File: directory-styles.css
   Palette:
     - Primary Accent: #00bcd4 (Sky Blue / Teal)
     - Primary Text / Headings: #457b9d (Muted Steel Blue)
     - Body Text / Secondary: #668a78 (Soft Sage Green)
     - Canvas Background: #faf9f6 (Soft Warm Cream)
     - Card / Surface White: #ffffff
     - Border Tones: #dce8e4 / #cbdcd6
   ========================================================================== */

/* =========================================
   1. PAGE HEADER & ACCESSIBILITY STRIP
   ========================================= */

.directory-header {
  padding: 2.5rem 0 1rem;
}

.directory-header h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin: 0 0 0.75rem 0;
  color: #457b9d;
}

.directory-header p {
  max-width: 820px;
  font-size: 1.05rem;
  color: #668a78;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

/* Three-pillar baseline accommodation strip */
.accommodations-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.accommodation-badge {
  background-color: #ffffff;
  border: 1px solid #dce8e4;
  border-left: 4px solid #00bcd4;
  padding: 0.85rem 1rem;
  border-radius: 4px;
}

.accommodation-badge strong {
  display: block;
  font-size: 0.95rem;
  color: #457b9d;
  margin-bottom: 0.2rem;
}

.accommodation-badge span {
  font-size: 0.85rem;
  color: #668a78;
  line-height: 1.4;
  display: block;
}

/* =========================================
   2. FILTER & SORTING CONTROLS BAR
   ========================================= */

.directory-controls {
  background: #ffffff;
  border: 1px solid #dce8e4;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.filter-control {
  display: flex;
  flex-direction: column;
}

.filter-control label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #457b9d;
  margin-bottom: 0.4rem;
}

.filter-control select {
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbdcd6;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #457b9d;
  background-color: #faf9f6;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-control select:hover {
  border-color: #00bcd4;
}

.filter-control select:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

/* Metadata summary count line */
.directory-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #457b9d;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
}

/* =========================================
   3. HIGH-DENSITY EVENT ROWS & ACCORDIONS
   ========================================= */

.directory-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.event-row {
  background: #ffffff;
  border: 1px solid #dce8e4;
  border-left: 5px solid #00bcd4;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.event-row:hover {
  border-color: #00bcd4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* When the details drawer is toggled open */
.event-row[open] {
  border-color: #457b9d;
  border-left-color: #457b9d;
}

.row-summary {
  display: grid;
  grid-template-columns: 140px 140px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.row-summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 900px) {
  .row-summary {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.row-date {
  font-weight: 700;
  color: #457b9d;
  font-size: 0.92rem;
  line-height: 1.3;
}

.row-date small {
  font-weight: 400;
  color: #668a78;
  display: block;
}

.row-location {
  font-size: 0.9rem;
  font-weight: 600;
  color: #668a78;
}

.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.row-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #457b9d;
  margin-right: 0.25rem;
}

.row-expand-hint {
  font-size: 0.85rem;
  color: #00bcd4;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.event-row[open] .row-expand-hint {
  color: #457b9d;
}

/* =========================================
   4. PILLS & STATUS BADGES
   ========================================= */

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pill-sensory {
  background-color: #e0f7fa;
  color: #00838f;
}

.pill-veteran {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.pill-tbi {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.pill-free {
  background-color: #fff3e0;
  color: #e65100;
}

.pill-ptsd {
  background-color: #f3e5f5;
  color: #6a1b9a;
}

/* =========================================
   5. EXPANDED DRAWER CONTENT
   ========================================= */

.row-expanded-details {
  border-top: 1px solid #eef3f1;
  background-color: #fafcfb;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .row-expanded-details {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.detail-narrative p {
  margin: 0 0 0.75rem 0;
  color: #668a78;
}

.detail-narrative strong {
  color: #457b9d;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-left: 2px solid #dce8e4;
  padding-left: 1.25rem;
}

@media (max-width: 800px) {
  .detail-specs {
    border-left: none;
    padding-left: 0;
    border-top: 1px dashed #cbdcd6;
    padding-top: 1rem;
  }
}

.detail-specs div {
  font-size: 0.9rem;
  color: #668a78;
}

.detail-specs strong {
  color: #457b9d;
}

.btn-sm-action {
  display: inline-block;
  background-color: #457b9d;
  color: #ffffff;
  padding: 0.6rem 1.15rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease;
}

.btn-sm-action:hover {
  background-color: #00bcd4;
  color: #ffffff;
}

/* =========================================
   6. PAGINATION & FOOTER GET INVOLVED
   ========================================= */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2.5rem 0 3.5rem;
}

.page-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbdcd6;
  border-radius: 4px;
  background: #ffffff;
  color: #457b9d;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: #00bcd4;
  color: #00bcd4;
}

.page-btn.active {
  background: #457b9d;
  color: #ffffff;
  border-color: #457b9d;
}
/* =========================================
   TWO-CARD GET INVOLVED GRID
   ========================================= */

.get-involved-section {
  background-color: #ffffff;
  border-top: 1px solid #dce8e4;
  border-bottom: 1px solid #dce8e4;
  padding: 3rem 0;
  margin-top: 3rem;
}

.get-involved-section h2 {
  font-size: 1.75rem;
  color: #457b9d;
  margin: 0 0 0.5rem;
  text-align: center;
}

.get-involved-section > .container > p {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
  color: #668a78;
}

.get-involved-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .get-involved-grid-two {
    grid-template-columns: 1fr;
  }
}

.involve-card {
  background-color: #faf9f6;
  border: 1px solid #dce8e4;
  border-top: 4px solid #00bcd4;
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.involve-card h3 {
  font-size: 1.25rem;
  color: #457b9d;
  margin: 0 0 0.75rem;
}

.involve-card p {
  color: #668a78;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.involve-card .btn-primary {
  display: inline-block;
  background-color: #457b9d;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: background-color 0.2s ease;
}

.involve-card .btn-primary:hover {
  background-color: #00bcd4;
  color: #ffffff;
}