/* ============================================================================
   "No results found" card - _NoResultsFound.cshtml, shared by every search results page
   (holidays/hotels/golf, flights, car hire, transfers) and the site 404 page (PageNotFound.cshtml).

   Same visual language as the search waiting card (HotelSearchResultLoading.css / .cph-wait):
   Kyrenia hero photo, white rounded card, teal primary, Montserrat headings over Lato body.
   Sits inline in the results column rather than as an overlay. Everything is scoped under
   .cph-nores, with the colour/font tokens re-declared on .cph-nores itself (not :root), so it
   can't affect or be affected by the rest of the site's CSS.
   ============================================================================ */

.cph-nores {
  --cph-primary: #02aaa9;
  --cph-primary-dark: #218887;
  --cph-primary-deep: #104443;
  --cph-primary-mist: #def6f5;
  --cph-text: #3c4e5a;
  --cph-text-muted: #707070;
  --cph-border: #d8e0e0;
  --cph-font: "Lato", "Segoe UI", sans-serif;
  --cph-font-display: "Montserrat", "Lato", sans-serif;

  position: relative;
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid var(--cph-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(60, 78, 90, 0.1);
  font-family: var(--cph-font);
  color: var(--cph-text);
  text-align: center;
  animation: cph-nores-in 0.35s ease-out;
}

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

/* ---- Hero ---------------------------------------------------------------------------- */
.cph-nores__hero {
  position: relative;
  height: 150px;
  background: #7aa8c4;
}

.cph-nores__hero > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.cph-nores__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 68, 67, 0) 35%, rgba(16, 68, 67, 0.45) 100%);
}

.cph-nores__badge {
  position: absolute;
  left: 50%;
  bottom: -36px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--cph-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(2, 170, 169, 0.35);
  transform: translateX(-50%);
}

.cph-nores__badge svg {
  width: 32px;
  height: 32px;
}

/* ---- Body ---------------------------------------------------------------------------- */
.cph-nores__body {
  max-width: 560px;
  margin: 0 auto;
  padding: 52px 24px 28px;
}

.cph-nores__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cph-primary-dark);
}

.cph-nores__title {
  margin: 0 0 12px;
  font-family: var(--cph-font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cph-primary-deep);
}

.cph-nores__text p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cph-text);
}

.cph-nores__text p + p {
  color: var(--cph-text-muted);
}

.cph-nores__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.cph-nores__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid var(--cph-primary);
  border-radius: 999px;
  font-family: var(--cph-font);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cph-nores__btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.cph-nores__btn--primary {
  background: var(--cph-primary);
  color: #fff;
}

.cph-nores__btn--primary:hover,
.cph-nores__btn--primary:focus-visible {
  border-color: var(--cph-primary-dark);
  background: var(--cph-primary-dark);
  color: #fff;
}

.cph-nores__btn--ghost {
  background: #fff;
  color: var(--cph-primary-dark);
}

.cph-nores__btn--ghost:hover,
.cph-nores__btn--ghost:focus-visible {
  background: var(--cph-primary-mist);
  color: var(--cph-primary-deep);
}

.cph-nores__btn:focus-visible {
  outline: 3px solid rgba(2, 170, 169, 0.35);
  outline-offset: 2px;
}

/* ---- Footer band (heading / text / logos - all optional) ----------------------------- */
.cph-nores__foot {
  padding: 22px 24px 24px;
  border-top: 1px solid var(--cph-border);
  background: var(--cph-primary-mist);
}

.cph-nores__foot-title {
  margin: 0 0 6px;
  font-family: var(--cph-font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--cph-primary-deep);
}

.cph-nores__foot-text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cph-text);
}

.cph-nores__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cph-nores__logos img {
  display: block;
  width: auto;
  max-width: 120px;
  height: 40px;
  object-fit: contain;
}

/* ---- Small "filters hid everything" variant (flightSearchResult.cshtml) -------------- */
.cph-nores--compact .cph-nores__body {
  padding: 28px 20px 24px;
}

/* ---- 404 page (PageNotFound.cshtml) - card centred on its own, not in a results column -- */
.cph-nores-page {
  padding: 32px 0 48px;
  background: #f4f8f8;
}

.cph-nores-page .cph-nores {
  max-width: 760px;
  margin: 0 auto;
}

.cph-nores-page .cph-nores__hero {
  height: 200px;
}

/* ---- Phones ---------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .cph-nores__hero,
  .cph-nores-page .cph-nores__hero {
    height: 110px;
  }

  .cph-nores-page {
    padding: 16px 0 32px;
  }

  .cph-nores__body {
    padding: 48px 16px 22px;
  }

  .cph-nores__title {
    font-size: 20px;
  }

  .cph-nores__actions {
    flex-direction: column;
  }

  .cph-nores__btn {
    width: 100%;
  }

  .cph-nores__foot {
    padding: 18px 16px 20px;
  }
}

@keyframes cph-nores-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cph-nores {
    animation: none;
  }
}
