/* SDM Property Filters Pro v1.5.3 */

/* ── Grid layout ──────────────────────────────────────────────────── */
.sdm-pfp.property-filters {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  margin: 0 0 1rem 0;
}

.sdm-pfp[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sdm-pfp[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sdm-pfp[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sdm-pfp[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sdm-pfp[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sdm-pfp[data-cols="1"] { grid-template-columns: 1fr; }

.sdm-pfp.sdm-pfp--code {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}
.sdm-pfp.sdm-pfp--code .sdm-pfp__field { flex: 1; }

/* ── Labels ───────────────────────────────────────────────────────── */
.sdm-pfp__field label {
  display: block;
  font-weight: 500;
  margin-bottom: .25rem;
  font-size: 15px;
  color: #266778;
}

/* ── All inputs & selects ─────────────────────────────────────────── */
.sdm-pfp__field select,
.sdm-pfp__field .sdm-pfp__input {
  width: 100%;
  padding: .5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  background: #fff;
  box-sizing: border-box;
  color: #333;
  font-family: inherit;
}

.sdm-pfp__field .sdm-pfp__input:focus,
.sdm-pfp__field select:focus {
  outline: none;
  border-color: #92764f;
  box-shadow: 0 0 0 1px #92764f;
}

/* ── Native date inputs ───────────────────────────────────────────── */
.sdm-pfp__field input[type="date"].sdm-pfp__date {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

.sdm-pfp__field input[type="date"].sdm-pfp__date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}
.sdm-pfp__field input[type="date"].sdm-pfp__date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.sdm-pfp__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.sdm-pfp__btn {
  padding: .5rem 1.1rem;
  background: #266778;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.5;
}
.sdm-pfp__btn:hover { background: #1d4f5c; }

.sdm-pfp__reset {
  line-height: 2.15;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}
.sdm-pfp__reset:hover { color: #333; }

/* ── Availability notice ──────────────────────────────────────────── */
.sdm-pfp__notice {
  padding: .5rem 1rem;
  background: #f0f8fb;
  border: 1px solid #c5e0e8;
  border-radius: 4px;
  font-size: 14px;
  color: #266778;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sdm-pfp__spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid #c5e0e8;
  border-top-color: #266778;
  border-radius: 50%;
  animation: sdm-spin .7s linear infinite;
}
@keyframes sdm-spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sdm-pfp.property-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sdm-pfp__actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sdm-pfp.property-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .sdm-pfp.property-filters { grid-template-columns: 1fr; }
}

/* ── Availability checking overlay ───────────────────────────────── */
.sdm-pfp__checking {
  background: #fff;
  border: 1px solid #c5e0e8;
  border-radius: 8px;
  padding: 1.25rem 2rem;
  font-size: 16px;
  color: #266778;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.sdm-pfp__no-results {
  padding: 2rem;
  font-size: 16px;
  color: #555;
  text-align: center;
  width: 100%;
}
