/* Base UI similar to the screenshot; customize in Oxygen as needed */
.phx-search {
  --phx-panel: #f7f3ef;
  --phx-muted: #6d7f88;

  color: #fff;
  padding: 14px;
}

.phx-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.phx-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 200;
}
.phx-tab.is-active { border-color: #fff; }

.phx-row { display: grid; gap: 12px; }
.phx-row--main{
  grid-template-columns: 1fr 220px; /* bar grows, type is fixed */
  align-items: stretch;
}
.phx-row--filters { grid-template-columns: 1fr 1fr 1fr auto; margin-top: 12px; }
/* The shared bar */
.phx-group--bar{
  display: grid;
  grid-template-columns: 180px 1fr; /* Buy/Rent width + Location expands */
  gap: 0;                            /* no gap; we’ll draw our own divider */
  background: var(--phx-panel);
  padding: 0;                         /* children have full height */
  overflow: hidden;
  height: 48px;
}

/* Make inner fields look seamless inside the bar */
.phx-group--bar .phx-select--buyrent select,
.phx-group--bar .phx-input--location input{
  background: transparent;
  border: none;
  height: 48px;
  padding: 0 14px;
  font-weight: 200;
}

/* Vertical divider between Buy/Rent and Location */
.phx-group--bar .phx-select--buyrent{
  position: relative;
}
.phx-group--bar .phx-select--buyrent::after{
  content: "";
  position: absolute;
  top: 10px; bottom: 10px;
  right: -5px;
  width: 1px;
  background: rgba(0,0,0,0.08);
}

/* Keep the standalone Type box matching the old look */
.phx-select--type select{
  background: var(--phx-panel);
  border: none;
  height: 48px;
  width: 100%;
  padding: 0 14px;
  font-weight: 200;
}

/* Focus states (keyboard users) */
.phx-group--bar:focus-within{
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 0 0 4px rgba(13,58,74,0.35);
}
.phx-select--type select:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 0 0 4px rgba(13,58,74,0.35);
  border-radius: 6px;
}

/* Responsive: stack bar & type on small screens */
@media (max-width: 1024px){
  .phx-row--main{
    grid-template-columns: 1fr;     /* stack */
  }
  .phx-select--type{ margin-top: 12px; }
}
.phx-select select,
.phx-input input {
  width: 100%;
  height: 48px;
  background: var(--phx-panel);
  color: #222;
  border: none;
  padding: 0 14px;
  font-weight: 200;
}
.phx-input input::placeholder { color: var(--phx-muted); font-weight: 500; }

.phx-submit .phx-btn {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.8);
  color: #0d3a4a;
  font-weight: 700;
  border: none;
  border-radius: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.phx-submit .phx-btn::after {
  content: none; /* remove arrow */
}
@media (max-width: 1024px) {
  .phx-row--main { grid-template-columns: 1fr; }
  .phx-row--filters { grid-template-columns: 1fr 1fr; }
  .phx-submit { grid-column: 1 / -1; }
}



/* Grid */
ul.phx-props {
  --gap: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}
ul.phx-props.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
ul.phx-props.cols-1 { grid-template-columns: 1fr; }

@media (max-width: 1200px) { ul.phx-props { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 767px)  { ul.phx-props { grid-template-columns: 1fr; } }


/* ===== Card ===== */
.phx-card {
  display: flex;
  flex-direction: column;
  border: 0 !important; /* PH adds a bottom border; remove it */
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.phx-card__media {
  position: relative;
  display: block;
  line-height: 0;
  overflow: hidden;
}
.phx-card__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.phx-card__media:hover .phx-card__img {
  transform: scale(1.03);
}

/* optional small corner badge container */
.phx-card__badge-area {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

/* ===== Stronger image overlay + white title/address ===== */
.phx-card__overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(13,58,74,0.88) 0%,
    rgba(13,58,74,0.55) 40%,
    rgba(13,58,74,0.0) 75%
  );
  padding: 18px 20px;
}
.phx-card__title{
  color:#fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  font-weight: 800;
  letter-spacing:.1px;
}
.phx-card__address{
  color:#e8f0f2;
  opacity: 1; /* was 0.95; bump for readability */
}

/* facts row */
.phx-card__meta {
  display: flex;
  gap: 18px;
  padding: 14px 18px 2px;
  color: #2a3b46;
  font-size: 14px;
}
.phx-card__meta span {
  position: relative;
}
.phx-card__meta span + span::before {
  content: "•";
  margin-right: 18px;
  color: #9db0ba;
}

/* ===== CTA: outline pill that fits the design ===== */
.phx-card__cta{ 
  padding: 12px 18px 20px; 
  display: flex;
  align-items: center;
  gap: 50px;
}

.phx-card__price{
  margin-left: auto;
  font-weight: 800;
  color: #0d3a4a;
  font-size: 18px;
  white-space: nowrap;
}

.phx-btn{
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color:#0d3a4a;
  border:2px solid #0d3a4a;
   border-radius: 9999px; 
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  box-shadow: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}

.phx-btn::after{
  content: "→";
  margin-left: 8px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(0);
  transition: transform .15s ease;
}

.phx-btn:hover{
  background:#0d3a4a;
  color:#fff;
  border-color:#0d3a4a;
}
.phx-btn:hover::after{ transform: translateX(2px); }

/* (optional) keep the card shadow soft and consistent */
.phx-card{
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13,58,74,.08);
}
.phx-card__img{ border-radius: 16px 16px 0 0; }


/* ===== Property count above grid ===== */
.phx-props__count {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
  font-weight: 700;
  color: #0d3a4a;
}

/* ===== Pagination (reset + layout) ===== */
.phx-pagination { 
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.phx-pagination ul.page-numbers {
  display: inline-flex;           /* horizontal */
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;               /* kill bullets */
}
.phx-pagination ul.page-numbers li {
  list-style: none;               /* extra safety */
}
.phx-pagination ul.page-numbers li::marker { 
  content: none;                  /* Safari bullet quirk */
}

/* ===== Pagination (pills) ===== */
.phx-pagination .page-numbers a,
.phx-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8e2e7;
  border-radius: 10px;
  text-decoration: none;
  color: #0d3a4a;
  background: #fff;
  font-weight: 700;
  line-height: 1;
}

.phx-pagination .page-numbers a:hover {
  background: #eef5f7;
  border-color: #cddae0;
}

.phx-pagination .page-numbers .current {
  background: #0d3a4a;
  color: #fff;
  border-color: #0d3a4a;
}

.phx-pagination .page-numbers .prev,
.phx-pagination .page-numbers .next {
  min-width: 40px;
  font-weight: 700;
}
