/* ============================================================
   English Oak Care Homes — Enhancements CSS
   Search overlay + search trigger button + facilities grid
   Link in <head>:
   <link href="css/eo-enhancements.css?v=20260701a" rel="stylesheet"/>
   Falls back gracefully if --deep-purple / --gold are undefined.
   ============================================================ */

:root {
  --eo-purple: var(--deep-purple, #3E2371);
  --eo-gold: var(--gold, #D0A44C);
}

/* ---------- Nav search trigger button ---------- */
.eo-search-trigger {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.eo-search-trigger:hover,
.eo-search-trigger:focus-visible {
  color: var(--eo-gold);
  background: rgba(208, 164, 76, 0.12);
  outline: none;
}
.eo-search-trigger .eo-search-trigger-label { font-size: 0.95rem; font-weight: 600; }

/* ---------- Overlay ---------- */
.eo-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 2rem;
  background: rgba(28, 18, 48, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.eo-search-overlay.is-open { display: flex; animation: eoFade 0.18s ease; }
@keyframes eoFade { from { opacity: 0; } to { opacity: 1; } }

.eo-search-panel {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(34, 22, 56, 0.08);
  animation: eoRise 0.2s ease;
}
@keyframes eoRise { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.eo-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(34, 22, 56, 0.08);
}
.eo-search-icon { color: var(--eo-gold); font-size: 1.1rem; }
.eo-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: var(--eo-purple);
  background: transparent;
  font-family: inherit;
}
.eo-search-input::placeholder { color: #9a93aa; }
.eo-search-close {
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: #9a93aa;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color 0.2s ease;
}
.eo-search-close:hover { color: var(--eo-purple); }

.eo-search-results {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 52vh;
  overflow-y: auto;
}
.eo-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.eo-search-result:hover,
.eo-search-result.is-active {
  background: rgba(208, 164, 76, 0.14);
}
.eo-result-title { font-weight: 700; color: var(--eo-purple); font-size: 1.02rem; }
.eo-result-blurb { font-size: 0.9rem; color: #6a6478; }

.eo-search-hint {
  margin: 0;
  padding: 0.75rem 1.15rem 1rem;
  font-size: 0.85rem;
  color: #8a8397;
  border-top: 1px solid rgba(34, 22, 56, 0.06);
}

/* ---------- Facilities grid ---------- */
.eo-facilities {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.eo-facilities-head { text-align: center; max-width: 760px; margin: 0 auto 2.25rem; }
.eo-facilities-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eo-gold);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.eo-facilities-title { color: var(--eo-purple); font-size: 2rem; margin: 0 0 0.75rem; font-weight: 600; }
.eo-facilities-sub { color: #4a4458; font-size: 1.05rem; line-height: 1.7; margin: 0; }

.eo-facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}
.eo-facility {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(34, 22, 56, 0.08);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.eo-facility:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09);
  border-color: var(--eo-gold);
}
.eo-facility i {
  color: var(--eo-gold);
  font-size: 1.15rem;
  width: 1.5rem;
  text-align: center;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.eo-facility span { color: var(--eo-purple); font-weight: 600; line-height: 1.4; font-size: 0.98rem; }

@media (max-width: 480px) {
  .eo-search-overlay { padding-top: 8vh; }
  .eo-facilities-title { font-size: 1.6rem; }
}


/* Hunters Lodge manager profile */
@media (max-width: 800px) {
  .manager-profile-card { grid-template-columns: 1fr !important; }
  .manager-profile-photo-panel {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}
