/* ── OHP Advanced Property Search Styles ──────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --ohp-green:       #1A6B3C;
  --ohp-green-light: #2EAE63;
  --ohp-lime:        #4ADE80;
  --ohp-gold:        #D4A843;
  --ohp-dark:        #0A1A0F;
  --ohp-white:       #FFFFFF;
  --ohp-muted:       #6B7280;
  --ohp-border:      #E5E7EB;
  --ohp-font:        'DM Sans', sans-serif;
}

.ohp-search-widget {
  font-family: var(--ohp-font);
  width: 100%;
}

/* ── Hero Style ── */
.ohp-search-hero {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(46,174,99,0.2);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* ── Tabs ── */
.ohp-search-tabs {
  display: flex;
  border-bottom: 1px solid rgba(46,174,99,0.15);
}

.ohp-tab {
  flex: 1;
  padding: 14px 8px;
  border: none;
  background: transparent;
  color: #8A9E8F;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--ohp-font);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.ohp-tab:hover { color: var(--ohp-white); }

.ohp-tab--active {
  color: var(--ohp-lime) !important;
  background: rgba(74,222,128,0.08);
  border-bottom-color: var(--ohp-lime);
}

/* ── Form ── */
.ohp-search-form { padding: 20px; }

.ohp-search-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.ohp-field { display: flex; flex-direction: column; gap: 6px; }
.ohp-field--location  { flex: 2 1 200px; }
.ohp-field--type      { flex: 1 1 160px; }
.ohp-field--beds      { flex: 1 1 120px; }
.ohp-field--price     { flex: 1 1 160px; }
.ohp-field--submit    { flex: 0 0 auto; }

.ohp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8A9E8F;
}

.ohp-input-wrap { position: relative; }

.ohp-input-wrap--select select { padding-right: 32px !important; }

.ohp-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8A9E8F;
  font-size: 11px;
}

.ohp-icon--pin {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8A9E8F;
  display: flex;
}

.ohp-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(46,174,99,0.25);
  border-radius: 10px;
  padding: 11px 12px;
  color: #fff;
  font-size: 14px;
  font-family: var(--ohp-font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.ohp-input:focus {
  border-color: var(--ohp-lime);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1);
}

.ohp-input[type="text"] { padding-left: 38px; }

.ohp-select { appearance: none; cursor: pointer; }

/* Light background context */
.ohp-search-compact .ohp-input,
.ohp-search-sidebar .ohp-input {
  background: #fff;
  border-color: var(--ohp-border);
  color: var(--ohp-dark);
}

.ohp-search-compact .ohp-label,
.ohp-search-sidebar .ohp-label { color: var(--ohp-muted); }

/* ── Search Button ── */
.ohp-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ohp-green-light), var(--ohp-green));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--ohp-font);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(26,107,60,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ohp-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,107,60,0.5);
}

/* ── Quick Searches ── */
.ohp-quick-searches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(46,174,99,0.1);
}

.ohp-quick-label {
  color: #8A9E8F;
  font-size: 12px;
  font-weight: 600;
}

.ohp-quick-btn {
  background: transparent;
  border: 1px solid rgba(46,174,99,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  color: #8A9E8F;
  font-size: 12px;
  font-family: var(--ohp-font);
  cursor: pointer;
  transition: all 0.2s;
}

.ohp-quick-btn:hover {
  border-color: var(--ohp-lime);
  color: var(--ohp-lime);
}

/* ── Compact Style ── */
.ohp-search-compact .ohp-search-form { padding: 0; }
.ohp-search-compact .ohp-search-fields { gap: 8px; }
.ohp-search-compact .ohp-field--beds { display: none; }

/* ── Sidebar Style ── */
.ohp-search-sidebar .ohp-search-fields { flex-direction: column; }
.ohp-search-sidebar .ohp-field { flex: 1 1 auto; }
.ohp-search-sidebar .ohp-search-form { padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.ohp-search-sidebar .ohp-search-btn { width: 100%; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ohp-search-fields { flex-direction: column; }
  .ohp-field { flex: 1 1 auto !important; width: 100%; }
  .ohp-search-btn { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
  .ohp-tab { font-size: 11px; padding: 12px 4px; }
}
