/* Coastal Properties of Cabo: property search (omni bar + quick filters + advanced). */
.ocs-ps {
  --ps-blue: #1a74bd;
  --ps-blue-dark: #165ba0;
  --ps-blue-tint: #e9f2fa;
  --ps-ink: #1a1a1a;
  --ps-muted: #5b6470;
  --ps-line: #d9dee4;
  --ps-line-strong: #b9c1ca;
  --ps-bg: #ffffff;
  --ps-sand: #f7f4ef;
  --ps-radius: 14px;
  --ps-shadow: 0 18px 50px rgba(13, 30, 48, .12), 0 2px 6px rgba(13, 30, 48, .06);
  font-family: Poppins, system-ui, sans-serif;
  color: var(--ps-ink);
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
  max-width: 1080px;
  margin: 0 auto;
}
.ocs-ps *, .ocs-ps *::before, .ocs-ps *::after { box-sizing: inherit; }
.ocs-ps button, .ocs-ps input { font: inherit; color: inherit; }
.ocs-ps :focus-visible { outline: 3px solid rgba(26, 116, 189, .45); outline-offset: 2px; }

.ocs-ps__card {
  background: var(--ps-bg);
  border-radius: 22px;
  box-shadow: var(--ps-shadow);
  padding: 22px 24px 18px;
}

/* Row 1: type tabs + sort */
.ocs-ps__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ocs-ps__tabs { display: flex; gap: 4px; background: var(--ps-sand); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.ocs-ps__tabs::-webkit-scrollbar { display: none; }
.ocs-ps__tab {
  border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; min-height: 40px;
  font-weight: 500; font-size: 14px; color: var(--ps-muted); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ocs-ps__tab:hover { color: var(--ps-ink); }
.ocs-ps__tab[aria-selected="true"] { background: var(--ps-ink); color: #fff; }
.ocs-ps__sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ps-muted); white-space: nowrap; }
.ocs-ps__sort select {
  border: 1px solid var(--ps-line); border-radius: 999px; padding: 8px 32px 8px 14px; min-height: 40px;
  font: inherit; font-size: 14px; color: var(--ps-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6470' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 13px center;
  appearance: none; cursor: pointer;
}

/* Row 2: omni bar */
.ocs-ps__omni { position: relative; }
.ocs-ps__bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 60px; padding: 8px 8px 8px 20px;
  border: 1.5px solid var(--ps-line-strong); border-radius: 999px; background: #fff;
  cursor: text; transition: border-color .15s, box-shadow .15s;
}
.ocs-ps__bar:focus-within { border-color: var(--ps-blue); box-shadow: 0 0 0 4px rgba(26, 116, 189, .14); }
.ocs-ps__bar-icon { flex: none; color: var(--ps-muted); display: flex; }
.ocs-ps__chips { display: contents; }
.ocs-ps__chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 260px;
  background: var(--ps-blue-tint); color: var(--ps-blue-dark); border-radius: 999px;
  padding: 5px 6px 5px 12px; font-size: 13px; font-weight: 500;
}
.ocs-ps__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocs-ps__chip small { font-weight: 400; opacity: .75; }
.ocs-ps__chip button {
  border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: inherit; flex: none;
}
.ocs-ps__chip button:hover { background: rgba(22, 91, 160, .14); }
.ocs-ps__input { flex: 1 1 180px; min-width: 140px; border: 0; outline: 0; font-size: 16px; padding: 8px 0; background: transparent; }
.ocs-ps .ocs-ps__input:focus-visible { outline: none; }
/* The theme styles every text input (border, padding, focus box); the bar itself is the field here. */
.ocs-ps .ocs-ps__bar .ocs-ps__input, .ocs-ps .ocs-ps__bar .ocs-ps__input:focus {
  border: 0 !important; box-shadow: none !important; background: transparent !important; outline: none !important;
  padding: 8px 0 !important; height: auto !important; min-height: 0 !important; border-radius: 0 !important;
}
.ocs-ps__input::placeholder { color: #8a929c; }
.ocs-ps__go {
  flex: none; margin-left: auto; border: 0; border-radius: 999px; background: var(--ps-blue); color: #fff;
  font-weight: 600; font-size: 15px; padding: 0 26px; height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
.ocs-ps__go:hover { background: var(--ps-blue-dark); }

/* Suggestions */
.ocs-ps__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: #fff; border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); border: 1px solid var(--ps-line);
  max-height: 380px; overflow-y: auto; padding: 6px 0; margin: 0; list-style: none;
}
.ocs-ps__suggest[hidden] { display: none; }
.ocs-ps__group { padding: 10px 18px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); }
.ocs-ps__opt { padding: 10px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ocs-ps__opt mark { background: none; color: var(--ps-blue-dark); font-weight: 600; }
.ocs-ps__opt small { color: var(--ps-muted); white-space: nowrap; }
.ocs-ps__opt[aria-selected="true"], .ocs-ps__opt:hover { background: var(--ps-blue-tint); }
.ocs-ps__empty { padding: 14px 18px; color: var(--ps-muted); }

/* Row 3: quick filters */
.ocs-ps__quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; margin-top: 14px; align-items: end; }
.ocs-ps__quick[data-type="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
.ocs-ps__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ocs-ps__field > label, .ocs-ps__label { font-size: 12px; font-weight: 500; color: var(--ps-muted); letter-spacing: .02em; }
.ocs-ps__field select, .ocs-ps__ms-btn, .ocs-ps__num input {
  width: 100%; min-height: 46px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff;
  padding: 10px 34px 10px 14px; font-size: 15px; color: var(--ps-ink); text-align: left; cursor: pointer;
  appearance: none; transition: border-color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b6470' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ocs-ps__field select:hover, .ocs-ps__ms-btn:hover { border-color: var(--ps-line-strong); }
.ocs-ps__ms-btn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocs-ps__ms-btn.is-set, .ocs-ps__field select.is-set { border-color: var(--ps-blue); color: var(--ps-blue-dark); }
.ocs-ps__more {
  min-height: 46px; border: 1px solid var(--ps-ink); border-radius: 999px; background: #fff; padding: 0 20px;
  font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.ocs-ps__more:hover { background: var(--ps-ink); color: #fff; }
.ocs-ps__more svg { transition: transform .2s; }
.ocs-ps__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.ocs-ps__count { background: var(--ps-blue); color: #fff; border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.ocs-ps__count[hidden] { display: none; }

/* Advanced panel */
.ocs-ps__adv { overflow: hidden; }
.ocs-ps__adv[hidden] { display: none; }
.ocs-ps__adv-inner { border-top: 1px solid var(--ps-line); margin-top: 18px; padding-top: 18px; }
.ocs-ps__section { margin-bottom: 18px; }
.ocs-ps__section h3 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 19px; margin: 0 0 12px; color: var(--ps-ink);
}
.ocs-ps__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.ocs-ps__num { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.ocs-ps__num input { background-image: none; padding-right: 14px; cursor: text; }
.ocs-ps__num span { color: var(--ps-muted); font-size: 13px; }
.ocs-ps__seg { display: flex; gap: 6px; flex-wrap: wrap; }
.ocs-ps__seg label { position: relative; }
.ocs-ps__seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ocs-ps__seg span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--ps-line);
  border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .15s;
}
.ocs-ps__seg input:checked + span { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }
.ocs-ps__seg input:focus-visible + span { outline: 3px solid rgba(26, 116, 189, .45); outline-offset: 2px; }
.ocs-ps__hint { font-size: 12px; color: var(--ps-muted); margin-top: 2px; }
.ocs-ps__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.ocs-ps__reset { border: 0; background: none; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; }
.ocs-ps__foot .ocs-ps__go { height: 48px; }

/* Multi-select popover */
.ocs-ps__ms { position: relative; }
.ocs-ps__pop {
  position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: max(100%, 280px); max-width: min(420px, 92vw);
  background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); box-shadow: var(--ps-shadow); padding: 8px;
}
.ocs-ps__pop[hidden] { display: none; }
.ocs-ps__pop-search { width: 100%; min-height: 42px; border: 1px solid var(--ps-line); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 15px; }
.ocs-ps__pop ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.ocs-ps__pop li label { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.ocs-ps__pop li label:hover { background: var(--ps-blue-tint); }
.ocs-ps__pop input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ps-blue); flex: none; }
.ocs-ps__pop-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--ps-line); margin-top: 6px; padding: 8px 4px 2px; }
.ocs-ps__pop-foot button { border: 0; background: none; cursor: pointer; font-weight: 500; padding: 6px 8px; }
.ocs-ps__pop-foot .is-primary { color: var(--ps-blue); }
.ocs-ps__note { font-size: 13px; color: var(--ps-muted); padding: 10px 0 0; text-align: center; }
.ocs-ps__note[hidden] { display: none; }

/* Page hero + overlap (shortcode output) */
.ocs-ps-hero {
  background: linear-gradient(160deg, #0f3a5c, #1a74bd);
  color: #fff; text-align: center; padding: 64px 16px 116px;
}
.ocs-ps-hero h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15; margin: 0 0 8px; color: #fff;
}
.ocs-ps-hero p { margin: 0; font-family: Poppins, sans-serif; font-weight: 300; font-size: 18px; color: #fff; }
.ocs-ps-wrap { padding: 0 16px 64px; margin-top: -84px; position: relative; }
/* Astra's page-builder layout sets max-width:none on content children; keep the card at 1080px. */
.ocs-ps-wrap > .ocs-ps { max-width: 1080px !important; margin-left: auto !important; margin-right: auto !important; }

/* AI mode */
.ocs-ps__top-right { display: flex; align-items: center; gap: 10px; }
.ocs-ps__ai-toggle {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ps-blue); background: var(--ps-blue-tint); color: var(--ps-blue-dark);
  font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.ocs-ps__ai-toggle:hover { background: var(--ps-blue); color: #fff; }
.ocs-ps__ai-toggle[hidden] { display: none; }
.ocs-ps__ai-label { display: none; align-items: center; gap: 8px; color: var(--ps-blue-dark); font-weight: 500; }
.ocs-ps.is-ai .ocs-ps__ai-label { display: inline-flex; }
.ocs-ps.is-ai .ocs-ps__tabs, .ocs-ps.is-ai .ocs-ps__sort, .ocs-ps.is-ai .ocs-ps__chips,
.ocs-ps.is-ai .ocs-ps__quick, .ocs-ps.is-ai .ocs-ps__adv { display: none !important; }
.ocs-ps.is-ai .ocs-ps__ai-toggle { background: #fff; border-color: var(--ps-line-strong); color: var(--ps-ink); }
.ocs-ps.is-ai .ocs-ps__ai-toggle:hover { background: var(--ps-ink); color: #fff; }
.ocs-ps.is-ai .ocs-ps__bar { border-color: var(--ps-blue); }
.ocs-ps__go:disabled { opacity: .75; cursor: progress; }
.ocs-ps__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ocs-ps-spin .8s linear infinite; }
@keyframes ocs-ps-spin { to { transform: rotate(360deg); } }
.ocs-ps__note-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; border: 0; background: none;
  color: var(--ps-blue); font-weight: 600; cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .ocs-ps__quick, .ocs-ps__quick[data-type="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ocs-ps__more { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 600px) {
  .ocs-ps__card { padding: 16px 14px 14px; border-radius: 18px; }
  .ocs-ps__top { flex-direction: column; align-items: stretch; }
  .ocs-ps__tabs { display: grid; grid-template-columns: repeat(4, auto); }
  .ocs-ps__tab { padding: 9px 4px; font-size: 12.5px; min-width: 0; }
  .ocs-ps__sort { justify-content: space-between; }
  .ocs-ps__top-right { justify-content: space-between; }
  .ocs-ps__ai-label { font-size: 14px; }
  .ocs-ps__bar { border-radius: 18px; padding: 8px 8px 8px 14px; }
  .ocs-ps__go { width: 100%; justify-content: center; margin-left: 0; }
  .ocs-ps__bar .ocs-ps__go { order: 10; }
  .ocs-ps__grid { grid-template-columns: 1fr; }
  .ocs-ps__foot { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .ocs-ps * { transition: none !important; }
}

/* The theme's button styles darken text on hover/focus; keep the blue search buttons' text white. */
.ocs-ps .ocs-ps__go, .ocs-ps .ocs-ps__go:hover, .ocs-ps .ocs-ps__go:focus, .ocs-ps .ocs-ps__go:active { color: #fff !important; }
.ocs-ps .ocs-ps__go:hover, .ocs-ps .ocs-ps__go:focus { background: var(--ps-blue-dark) !important; }
.ocs-ps .ocs-ps__go svg { color: inherit; }
