:root {
  --gold: #d9b14c;
  --black: #0b0b0b;
  --dark: #111;
  --gray: #b8b8b8;
}

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--black); color: #f5f5f5; }
.navbar { background: #000; }
.nav-link { color: #dcdcdc !important; }
.nav-link:hover, .nav-link.active { color: var(--gold) !important; }
.nowrap-link { white-space: nowrap; }
.logo-gap { margin-right: 0.9rem; }

.btn-warning { background-color: var(--gold); border-color: var(--gold); color: #000; }
.btn-outline-warning { border-color: var(--gold); color: var(--gold); }
.btn-outline-warning:hover { background-color: var(--gold); color: #000; }

.property-card img { object-fit: cover; height: 200px; }
.property-card { transition: transform .15s ease, box-shadow .15s ease; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

.bg-gradient-dark {
  background: radial-gradient(circle at 20% 20%, rgba(217,177,76,0.12), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(217,177,76,0.08), transparent 30%),
              #0c0c0c;
}
.form-control, .form-select { border-width: 1px; }

/* NAVBAR buscador estilo institucional compacto */
.navbar-search { min-width: 0; }

.search-group {
  gap: 0;
  flex-wrap: nowrap;
}

.search-group > .form-select,
.search-group > .form-control,
.search-group > .btn {
  min-height: 34px;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
}

.search-group .fake-select {
  position: relative;
  flex: 0 0 auto;
}

.search-group .fake-toggle {
  min-height: 34px;
  height: 34px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 0;
  border: 1px solid rgba(217,177,76,0.45);
  background: #141a22;
  color: #f3d06a;
  font-size: 0.74rem;
  padding: 0.35rem 0.65rem;
}

.search-group .fake-toggle:focus {
  outline: none;
  border-color: rgba(217,177,76,0.85);
}

.search-group .fake-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 2px;
  background: #0f141b;
  border: 1px solid rgba(217,177,76,0.55);
  border-radius: 0 0 7px 7px;
  overflow: hidden;
  z-index: 1200;
}

.search-group .fake-select.open .fake-menu {
  display: block;
}

.search-group .fake-menu button {
  width: 100%;
  background: transparent;
  border: 0;
  color: #f3d06a;
  text-align: left;
  font-size: 0.74rem;
  padding: 0.45rem 0.65rem;
}

.search-group .fake-menu button:hover {
  background: rgba(217,177,76,0.16);
}

.search-group > .form-select,
.search-group > .form-control {
  background: #141a22;
  color: #f3d06a;
  border: 1px solid rgba(217,177,76,0.45);
  font-size: 0.74rem;
  padding: 0.35rem 0.65rem;
}

.search-group > .form-select:focus,
.search-group > .form-control:focus {
  background: #141a22;
  color: #f3d06a;
  border-color: rgba(217,177,76,0.85);
}

.search-group > .form-select option {
  background: #111;
  color: #f3d06a;
}

.search-group > .form-control::placeholder {
  color: #b8c0cf;
}

.search-group > *:first-child {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.search-group > *:last-child {
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
}

.search-group .fake-select:first-child .fake-toggle {
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
}

.search-group .btn-search {
  width: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #111;
  border: 1px solid var(--gold);
}

.operation-select { flex: 0 0 170px; max-width: 170px; }
.category-select { flex: 0 0 170px; max-width: 170px; }
.price-input { flex: 0 0 140px; max-width: 140px; }
.loc-input { flex: 0 0 115px; max-width: 115px; }

.btn-login {
  white-space: nowrap;
  border-radius: 12px;
  padding: 0.46rem 1rem;
  font-size: 0.9rem;
}

.dropdown-menu { min-width: 180px; }

/* Enlaces de regreso institucionales: evita color azul del navegador en hover/visited/active */
a#btn-back,
a#btn-back:visited,
a#btn-back:hover,
a#btn-back:focus,
a#btn-back:active,
a.btn.btn-link.back-link,
a.btn.btn-link.back-link:visited,
a.btn.btn-link.back-link:hover,
a.btn.btn-link.back-link:focus,
a.btn.btn-link.back-link:active,
a.btn.btn-link.hub-back-link,
a.btn.btn-link.hub-back-link:visited,
a.btn.btn-link.hub-back-link:hover,
a.btn.btn-link.hub-back-link:focus,
a.btn.btn-link.hub-back-link:active,
a.regresar-link,
a.regresar-link:visited,
a.regresar-link:hover,
a.regresar-link:focus,
a.regresar-link:active {
  color: #8b8d58 !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

a#btn-back:hover,
a#btn-back:focus,
a.btn.btn-link.back-link:hover,
a.btn.btn-link.back-link:focus,
a.btn.btn-link.hub-back-link:hover,
a.btn.btn-link.hub-back-link:focus,
a.regresar-link:hover,
a.regresar-link:focus {
  color: #aeae81 !important;
  text-decoration: underline !important;
}

a#btn-back:active,
a.btn.btn-link.back-link:active,
a.btn.btn-link.hub-back-link:active,
a.regresar-link:active {
  color: #8b8d58 !important;
}

@media (max-width: 991px) {
  .loc-input, .operation-select, .category-select, .price-input { max-width: 100%; }
}