/* SEO landing: org hero image + mobile sticky map CTA */

.seo-org-photo {
  margin: 0 0 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eaed;
  line-height: 0;
}

.seo-org-photo__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

/* Sticky map CTA: white bar + compact “Show map” button (mobile: fixed bottom) */
.seo-sticky-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1rem;
  box-sizing: border-box;
}

.seo-sticky-map-bar__text {
  flex: 1 1 140px;
  min-width: 0;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #374151;
}

@media (max-width: 768px) {
  .seo-sticky-map-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    margin: 0;
    align-items: center;
    background: #fff;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #e5e7eb;
  }

  .seo-sticky-map-bar__text {
    font-size: 0.875rem;
    line-height: 1.3;
  }

  body:has(.seo-sticky-map-bar) {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

/* Top “Find the perfect…” card: whole card is one link to the map */
a.search-cta.search-cta--map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.search-cta.search-cta--map-link:visited {
  color: inherit;
}
a.search-cta.search-cta--map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}
a.search-cta.search-cta--map-link:focus-visible {
  outline: 2px solid #fb8800;
  outline-offset: 3px;
}
a.search-cta.search-cta--map-link h2 {
  color: #111827;
  text-decoration: none;
}
a.search-cta.search-cta--map-link > p {
  color: #4b5563;
}

a.search-button.seo-sticky-map-bar__btn,
span.search-button.seo-sticky-map-bar__btn {
  flex: 0 0 auto;
  margin-top: 0 !important;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 102, 204, 0.35);
}

a.search-button.seo-sticky-map-bar__btn:hover,
a.search-cta.search-cta--map-link:hover span.search-button.seo-sticky-map-bar__btn {
  box-shadow: 0 4px 12px rgba(255, 102, 204, 0.45);
}

/* Screen-reader-only text (Bootstrap-compatible; safe when Bootstrap absent) */
.seo-map-footer-block .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bottom map CTA: explainer + Leaflet preview card + repeat Show map */
.seo-map-footer-block {
  margin-top: 2.5rem;
  margin-bottom: 0;
  padding: 0 1rem 1rem;
  box-sizing: border-box;
}

.seo-map-footer-block__inner {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 15px;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
}

.seo-map-footer-block__title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.seo-map-footer-block__body {
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.seo-map-footer-card {
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.seo-map-footer-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.seo-map-footer-card:focus-within {
  outline: 3px solid #ff66cc;
  outline-offset: 2px;
}

.seo-map-footer-card__map-wrap {
  position: relative;
  display: block;
  line-height: 0;
  background: #e8eaed;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
}

.seo-map-footer-leaflet {
  width: 100%;
  min-height: 220px;
  height: 220px !important;
  z-index: 0;
}

/* After Leaflet adds .leaflet-container, keep explicit height (avoids 0-height collapse on some mobile layouts). */
.seo-map-footer-leaflet.leaflet-container {
  min-height: 220px;
  height: 220px !important;
}

.seo-map-footer-leaflet .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.85);
}

/* Solid CampityCamp orange pin (divIcon) — no default Leaflet inner “dot” */
.seo-map-footer-leaflet .seo-map-footer-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.seo-map-footer-leaflet .seo-map-footer-marker-svg {
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
}

.seo-map-footer-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.65rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.seo-map-footer-card__full-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  text-decoration: none;
  background: transparent;
}

.seo-map-footer-block__cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.seo-map-footer-block__cta-row a.search-button.seo-sticky-map-bar__btn {
  margin-top: 0 !important;
}

@media (min-width: 769px) {
  .seo-map-footer-block__inner {
    padding: 1.75rem 1.5rem 2rem;
  }

  .seo-map-footer-leaflet,
  .seo-map-footer-leaflet.leaflet-container {
    min-height: 260px;
    height: 260px !important;
  }

  .seo-map-footer-card__map-wrap {
    min-height: 260px;
  }
}

/* SEO footer: parent intent form (below map preview) */
.seo-parent-search {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8eaed;
  text-align: left;
}

.seo-parent-search__title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.seo-parent-search__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.seo-parent-search__field--full {
  grid-column: 1 / -1;
}

.seo-parent-search__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.seo-parent-search__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.seo-parent-search__hint {
  margin: 0 0 0.25rem 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #6b7280;
  font-weight: 400;
}

.seo-parent-search__location-wrap {
  position: relative;
  display: block;
}

.seo-parent-search__location-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 1.75rem 0.55rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

.seo-parent-search__location-star {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc2626;
  pointer-events: none;
  line-height: 1;
}

.seo-parent-search__location-input:focus {
  outline: none;
  border-color: #fb8800;
  box-shadow: 0 0 0 2px rgba(251, 136, 0, 0.2);
}

.seo-parent-search__location-actions {
  margin: 0.35rem 0 0 0;
}

.seo-parent-search__use-location-btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  color: #ea580c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-parent-search__use-location-btn:hover {
  color: #c2410c;
}

.seo-parent-search__use-location-btn:focus-visible {
  outline: 2px solid #fb8800;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Exclude checkboxes (width:100% breaks them) and hidden fields */
.seo-parent-search__field
  input:not(.seo-parent-search__location-input):not(.form-check-input):not(.seo-parent-search__avail-checkbox):not([type="hidden"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

.seo-parent-search__text-below-pills {
  margin-top: 0.25rem;
}

.seo-parent-search__field
  input:not(.seo-parent-search__location-input):not(.form-check-input):not(.seo-parent-search__avail-checkbox):not([type="hidden"]):focus {
  outline: none;
  border-color: #fb8800;
  box-shadow: 0 0 0 2px rgba(251, 136, 0, 0.2);
}

.seo-parent-search__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.seo-parent-search__pills--ages {
  gap: 0.35rem;
}

.seo-parent-search__pill {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  line-height: 1.3;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.seo-parent-search__pill:hover {
  background: #fff;
  border-color: #fb8800;
  color: #111827;
}

.seo-parent-search__pill:focus-visible {
  outline: 2px solid #fb8800;
  outline-offset: 2px;
}

.seo-parent-search__pill.is-selected {
  background: linear-gradient(135deg, rgba(255, 102, 204, 0.15) 0%, rgba(251, 136, 0, 0.2) 100%);
  border-color: #fb8800;
  color: #9d174d;
  box-shadow: 0 1px 4px rgba(251, 136, 0, 0.25);
}

.seo-parent-search__pill--age {
  min-width: 2.35rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  text-align: center;
}

/* Disabled “include availability” + info control (button look: inline <style> in seo_parent_search_block.html) */
.seo-parent-search__avail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.seo-parent-search__avail-checkbox-wrap {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.72;
  cursor: not-allowed;
  user-select: none;
  margin: 0;
}
.seo-parent-search__avail-checkbox {
  width: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
  cursor: not-allowed;
  accent-color: #9ca3af;
  vertical-align: middle;
}
.seo-parent-search__avail-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.3;
}
.seo-parent-search__avail-info-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  vertical-align: middle;
}
.seo-parent-search__avail-info-body {
  /* Full-width row under checkbox + button so the panel never clips off-screen on narrow viewports */
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 5;
  margin-top: 0.5rem;
  padding: 0.55rem 2rem 0.65rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.seo-parent-search__avail-info-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-parent-search__avail-info-close:hover {
  background: #f3f4f6;
  color: #111827;
}
.seo-parent-search__avail-info-close:focus-visible {
  outline: 2px solid #fb8800;
  outline-offset: 1px;
}
.seo-parent-search__avail-info-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #374151;
}
.seo-parent-search__avail-info-body a {
  color: #fb8800;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-parent-search__avail-info-body a:hover {
  color: #ea580c;
}

/* Upgrade CTA after footer search results */
.seo-parent-search__upgrade {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, rgba(255, 102, 204, 0.06) 0%, rgba(251, 136, 0, 0.08) 100%);
}
.seo-parent-search__upgrade-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}
.seo-parent-search__upgrade-text {
  margin: 0 0 0.9rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4b5563;
}
.seo-parent-search__upgrade--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.seo-parent-search__upgrade--link:hover {
  border-color: rgba(251, 136, 0, 0.55);
  box-shadow: 0 4px 14px rgba(251, 136, 0, 0.18);
}
.seo-parent-search__upgrade--link .seo-parent-search__upgrade-text {
  color: #4b5563;
}
.seo-parent-search__upgrade-btn {
  display: inline-block;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #ff66cc 0%, #fb8800 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(251, 136, 0, 0.35);
}
.seo-parent-search__upgrade--link:hover .seo-parent-search__upgrade-btn {
  filter: brightness(1.05);
  color: #fff !important;
}

.seo-parent-search__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.seo-parent-search__submit {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #ff66cc 0%, #fb8800 100%);
  box-shadow: 0 2px 10px rgba(251, 136, 0, 0.35);
}

.seo-parent-search__submit:hover {
  filter: brightness(1.03);
}

.seo-parent-search__submit:focus-visible {
  outline: 2px solid #fb8800;
  outline-offset: 2px;
}

.seo-parent-search__status {
  margin: 0;
  font-size: 0.85rem;
  color: #b45309;
  min-height: 1.25em;
}

.seo-parent-search__results {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8eaed;
  /* Align with sticky SEO nav (~56px + padding) when scrolling into view */
  scroll-margin-top: 5rem;
}

.seo-parent-search__banner {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: #92400e;
  background: #fffbeb;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

.seo-parent-search__empty {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.seo-parent-search__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-parent-search__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  line-height: 1.4;
}

.seo-parent-search__overview {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.seo-parent-search__camp-name {
  display: block;
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.3;
}

.seo-parent-search__org-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.seo-parent-search__list li:last-child {
  border-bottom: none;
}

.seo-parent-search__meta {
  flex: 1 1 100%;
  font-size: 0.8rem;
  color: #64748b;
}

.seo-parent-search__link a {
  font-weight: 600;
  color: #be185d;
  text-decoration: none;
}

.seo-parent-search__link a:hover {
  text-decoration: underline;
}

.seo-parent-search__map-link {
  margin: 0.75rem 0 0 0;
  font-size: 0.875rem;
}

.seo-parent-search__map-link a {
  display: block;
  color: #be185d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.35rem;
  margin: -0.45rem -0.35rem;
  border-radius: 8px;
}

.seo-parent-search__map-link a:hover {
  text-decoration: underline;
  background: rgba(190, 24, 93, 0.07);
}

/* SEO camp cards: program name + organization (templates/macros/seo_camp_card_heading.html) */
.seo-camp-card__titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}
.seo-camp-card__camp-line {
  display: block;
  line-height: 1.25;
}
.seo-camp-card__org-line {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

/* Address line → Google Maps (directions / distance from home in native Maps app) */
a.seo-camp-address-link {
  text-decoration: none;
  color: inherit;
}
a.seo-camp-address-link:hover {
  text-decoration: underline;
  color: #fb8800 !important;
}

/* SEO camp cards: primary Book now + secondary map link */
.camp-book-now-button {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff66cc 0%, #fb8800 100%);
  box-shadow: 0 2px 8px rgba(251, 136, 0, 0.35);
  font-family: inherit;
}
.camp-book-now-button:hover {
  filter: brightness(1.05);
  color: #fff !important;
}
.camp-map-button.camp-map-button--secondary {
  background: #fff !important;
  color: #fb8800 !important;
  border: 2px solid #fb8800 !important;
  font-weight: 600;
}
.camp-map-button.camp-map-button--secondary:hover {
  background: #fff7ed !important;
  color: #e07700 !important;
}
