/* MP Suite — Nursery Finder. Card-based design handoff (no map).
   Search pills, featured nursery card, inline enquiry, grid of others. Mobile-first. */

.mp-nf {
  --teal: #3d8e9f; --teal-dark: #2f7c8c; --ink: #2f4047;
  --purple: #7d4199; --gold: #d8a64e; --green: #8cc04f; --review: #7bbf3f;
  --body: #3f4d56; --muted: #6d7a82; --muted2: #8a979d;
  --card-mint: #e6f1f3; --note: #eef5f3;
  --bd: #e7efed; --bd-pill: #cfe3e2; --bd-input: #d8e6e4;
  --prefill-bg: #f2fbf7; --prefill-bd: #cdeadf;
  --q: 'Filson Pro', 'filson-pro', 'Filson Soft', 'filson-soft', 'Segoe UI', system-ui, sans-serif;
  --o: 'Filson Pro', 'filson-pro', 'Filson Soft', 'filson-soft', system-ui, sans-serif;
  font-family: var(--o); font-weight: 500; color: var(--body); max-width: 1040px; margin: 0 auto; line-height: 1.45;
}
.mp-nf * { box-sizing: border-box; }
.mp-nf h2, .mp-nf h3 { font-family: var(--q); margin: 0; }
.mp-nf__title { font-family: var(--q); font-weight: 700; font-size: 30px; color: var(--ink); margin: 0 0 14px; }

/* Search pills */
.mp-nf__search { position: relative; display: flex; gap: 11px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.mp-nf__pill { flex: 1; min-width: 170px; display: flex; align-items: center; gap: 9px; height: 52px;
  border: 1.5px solid var(--bd-pill); border-radius: 30px; padding: 0 17px; background: #fff; }
.mp-nf__pill-icon { display: inline-flex; align-items: center; color: var(--teal); line-height: 0; }
.mp-nf__pill input { border: 0; outline: 0; background: transparent; width: 100%; font-family: var(--o); font-size: 15px; color: var(--ink); }
.mp-nf__pill input[type=date] { color: var(--muted); }
.mp-nf__pill input[type=date]:valid { color: var(--ink); }
.mp-nf__search-btn { height: 52px; border: 0; border-radius: 30px; background: var(--purple); color: #fff;
  font-family: var(--q); font-weight: 700; font-size: 15px; padding: 0 26px; cursor: pointer; white-space: nowrap; box-shadow: 0 8px 18px rgba(125,65,153,.28); }
/* status shows as a floating tip so it never pushes the layout */
.mp-nf__tip { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; background: var(--ink); color: #fff;
  font-size: 13px; padding: 7px 12px; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.18); max-width: 340px; }
.mp-nf__tip::before { content: ''; position: absolute; top: -5px; left: 18px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--ink); }

/* Card base — matches the quiz results cards (no border, soft shadow) */
.mp-card { background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(20,60,66,.08); }

/* Featured nursery card */
.mp-nf__card { display: grid; grid-template-columns: 1fr; overflow: hidden; margin-bottom: 16px; border-radius: 26px; }
.mp-nf__card-illus { position: relative; min-height: 180px; background-image: repeating-linear-gradient(45deg, #e6f1f3 0 10px, #f1f7f6 10px 20px); display: flex; align-items: center; justify-content: center; }
.mp-nf__card-roundel { width: 60px; height: 60px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mp-nf__badge { position: absolute; top: 12px; left: 12px; background: var(--purple); color: #fff; font-family: var(--q); font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 30px; }
.mp-nf__card-body { padding: 22px 24px; }
.mp-nf__eyebrow { font-family: var(--q); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase; }
/* Reserve space so the eyebrow clears the absolute review-score badge */
.mp-nf__card-body .mp-nf__eyebrow { padding-right: 76px; }
/* Nursery name in brand teal (matches the quiz), forced past the theme's heading colour */
/* Bold + teal, forced past the theme (matches the quiz, which uses the same !important) */
#mp-finder .mp-nf__name, #mp-nl .mp-nf__name { font-family: var(--q); font-weight: 700 !important; font-size: 22px !important; color: #4896a8 !important; margin: 4px 0 8px; }
#mp-finder .mp-nf__card-body .mp-nf__name, #mp-nl .mp-nf__card-body .mp-nf__name { font-size: 32px !important; line-height: 1.12; margin: 2px 0 20px; padding-right: 70px; }
.mp-nf__review { display: inline-flex; align-items: center; gap: 6px; background: var(--review); color: #fff; font-family: var(--q); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.mp-nf__desc { font-size: 14px; color: var(--body); margin: 0 0 12px; }
.mp-nf__meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; display: flex; gap: 8px; align-items: baseline; }
.mp-nf__meta b { color: var(--teal-dark); font-weight: 600; font-family: var(--q); }
.mp-nf__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.mp-nf__btn { font-family: var(--q); font-weight: 700; font-size: 15px; border-radius: 30px; padding: 13px 22px; cursor: pointer; border: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mp-nf__btn--primary { background: var(--purple); color: #fff; box-shadow: 0 8px 18px rgba(125,65,153,.28); }
.mp-nf__btn--ghost { background: #fff; color: var(--teal-dark); border: 2px solid var(--bd-pill); }

/* Inline enquiry */
.mp-nf__enquiry { position: relative; padding: 22px 24px; margin-bottom: 16px; }
.mp-nf__enq-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.mp-nf__enq-eyebrow { font-family: var(--q); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--muted2); text-transform: uppercase; margin: 0; }
.mp-nf__enq-title { font-family: var(--q); font-weight: 700; font-size: clamp(20px,2.6vw,26px); color: #4896a8; margin: 4px 0 14px; }
#mp-finder .mp-nf__enq-title, #mp-nl .mp-nf__enq-title { color: #4896a8 !important; font-weight: 700 !important; }
.mp-nf__notice { color: #c0392b; font-weight: 600; }
/* prefilled (carried over) fields */
.mp-nf__enq-form .mp-prefilled input { background: var(--prefill-bg); border-color: var(--prefill-bd); }

/* Others heading + subtitle, matching the quiz results "Other nurseries near you" block */
.mp-nf__others-head { margin: clamp(24px,3.4vw,34px) 0 clamp(14px,2vw,20px); }
.mp-nf__others-title { font-family: var(--q); font-weight: 700; font-size: clamp(20px,2.8vw,26px); color: #4896a8; margin: 0 0 2px; }
#mp-finder .mp-nf__others-title { color: #4896a8 !important; }
.mp-nf__others-sub { font-size: 13px; color: var(--muted); margin: 0; }
.mp-nf__others { display: grid; gap: 12px; }
.mp-nf__list-card { background: #fff; border: 1px solid var(--bd); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.mp-nf__list-card .mp-nf__name { font-size: 18px; margin: 0; }
.mp-nf__list-card .mp-nf__addr { font-size: 13px; color: var(--muted); }
.mp-nf__list-card .mp-nf__btn { align-self: flex-start; margin-top: 8px; padding: 10px 20px; font-size: 14px; }

/* Gravity form inside enquiry, styled to match */
.mp-nf__enq-form .gform_fields { display: grid; gap: 12px; }
.mp-nf__enq-form .gfield_label { font-family: var(--q); font-weight: 600; font-size: 12px; color: #7a878d; }
.mp-nf__enq-form input[type=text], .mp-nf__enq-form input[type=email], .mp-nf__enq-form input[type=tel], .mp-nf__enq-form textarea, .mp-nf__enq-form select {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--bd-input); padding: 0 14px; font-family: var(--o); font-size: 15px; }
.mp-nf__enq-form textarea { height: auto; padding: 12px 14px; }
.mp-nf__enq-form .gform_footer input[type=submit], .mp-nf__enq-form .gform_footer button {
  background: var(--purple); color: #fff; border: 0; border-radius: 30px; padding: 14px 24px; font-family: var(--q); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 8px 18px rgba(125,65,153,.28); }

/* Desktop */
@media (min-width: 900px) {
  .mp-nf__card { grid-template-columns: 320px 1fr; }
  .mp-nf__card-illus { min-height: 100%; }
  .mp-nf__others { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .mp-nf__enq-form .gform_fields { grid-template-columns: 1fr 1fr; }
  .mp-nf__enq-form .gfield--width-full, .mp-nf__enq-form .gfield_textarea_wrapper { grid-column: 1 / -1; }
}

/* ---- Mobile refinements ---- */
@media (max-width: 700px) {
  .mp-nf { overflow-x: clip; }
  /* Featured title fits without wrapping word-per-line */
  #mp-finder .mp-nf__card-body .mp-nf__name, #mp-nl .mp-nf__card-body .mp-nf__name { font-size: 25px !important; }
  /* Search stacks: each pill and the button full-width */
  .mp-nf__pill { flex: 1 0 100%; min-width: 0; }
  .mp-nf__search-btn { flex: 1 0 100%; width: 100%; }
  /* Action buttons stack full-width for thumb-friendly targets */
  .mp-nf__actions { flex-direction: column; }
  .mp-nf__actions .mp-nf__btn { width: 100%; justify-content: center; }
}

/* Pre-search browse list (links only, no maps) */
.mp-nf__browse { margin-top: 20px; }
.mp-nf__browse-title { font-family: var(--q); font-weight: 700; font-size: 14px; color: var(--teal-dark); margin: 0 0 8px; }
.mp-nf__browse-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.mp-nf__browse-list li { margin: 0 0 6px; break-inside: avoid; }
.mp-nf__browse-list a { color: var(--body); text-decoration: none; font-size: 14px; }
.mp-nf__browse-list a:hover { color: var(--teal-dark); text-decoration: underline; }
@media (min-width: 700px) { .mp-nf__browse-list { columns: 3; } }

/* flatpickr, themed to brand */
.flatpickr-calendar { border-radius: 14px; box-shadow: 0 12px 30px rgba(47,124,140,.18); font-family: var(--o); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--purple); border-color: var(--purple); }
.flatpickr-day.selected:hover { background: #6c3585; }
.flatpickr-day:hover { background: var(--note); }
.flatpickr-day.today { border-color: var(--teal); }
.flatpickr-day.today:hover { background: var(--teal); border-color: var(--teal); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month, .flatpickr-weekday { color: var(--ink); font-family: var(--q); }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--teal-dark); }

/* Featured native image slider */
.mp-nf__slider { position: relative; overflow: hidden; height: 100%; min-height: 240px; padding: 0; display: block; }
.mp-nf__slides { display: flex; height: 100%; min-height: 240px; transition: transform .35s ease; }
.mp-nf__slide { flex: 0 0 100%; height: 100%; min-height: 240px; background-size: cover; background-position: center; }
.mp-nf__sl-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--teal-dark); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2; }
.mp-nf__sl-prev { left: 10px; } .mp-nf__sl-next { right: 10px; }
.mp-nf__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.mp-nf__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.mp-nf__dot.is-on { background: #fff; }

/* Icon meta rows */
.mp-nf__meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 0 0 5px; }
.mp-nf__meta-ic { display: inline-flex; align-items: center; color: var(--teal); flex: 0 0 auto; }
.mp-nf__meta a { color: inherit; text-decoration: none; }
.mp-nf__meta a:hover { text-decoration: underline; }

/* Review score badge (top-right on featured, inline on list cards) */
.mp-nf__card-body { position: relative; }
.mp-nf__score-wrap { position: absolute; top: 20px; right: 22px; text-align: center; }
.mp-nf__score { display: inline-block; background: var(--review); color: #fff; font-family: var(--q); font-weight: 700; font-size: 12px; line-height: 1.2; padding: 3px 8px; border-radius: 6px; flex: none; }
.mp-nf__score-label { font-family: var(--o); font-size: 10px; color: #9aa7ac; margin-top: 4px; }

/* List cards: image on top, score badge, full-width View button */
.mp-nf__list-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.mp-nf__list-illus { position: relative; height: 130px; background-size: cover; background-position: center; }
.mp-nf__list-illus--ph { background-image: repeating-linear-gradient(45deg, #e6f1f3 0 10px, #f1f7f6 10px 20px); display: flex; align-items: center; justify-content: center; }
.mp-nf__list-illus--ph .mp-nf__card-roundel { width: 44px; height: 44px; font-size: 22px; }
/* Purple distance badge, matching the quiz "other nurseries" cards */
.mp-nf__list-dist { position: absolute; top: 12px; left: 14px; background: var(--purple); color: #fff; font-family: var(--q); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mp-nf__list-body { display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; }
.mp-nf__list-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
#mp-finder .mp-nf__list-body .mp-nf__name { font-size: 20px !important; margin: 2px 0 12px; line-height: 1.1; }
/* Two-button actions (Enquire now / View nursery), like the quiz cards */
.mp-nf__list-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mp-nf__list-actions .mp-nf__btn { padding: 11px 20px; font-size: 14px; }
@media (max-width: 700px) {
  .mp-nf__list-actions { flex-direction: column; }
  .mp-nf__list-actions .mp-nf__btn { width: 100%; justify-content: center; }
}
